Skip to content

Commit

Permalink
all: Require SSL connection to database if MariaDB SSL is configured
Browse files Browse the repository at this point in the history
With this settings, non-SSL access is forbidden for the affected
users.
  • Loading branch information
jsuchome committed Sep 20, 2017
1 parent b097a03 commit b516726
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions chef/cookbooks/aodh/recipes/aodh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/barbican/recipes/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/ceilometer/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/cinder/recipes/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/ec2-api/recipes/ec2api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/glance/recipes/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/heat/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/horizon/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/ironic/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
end

Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/magnum/recipes/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || is_cluster_founder }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/manila/recipes/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/mysql/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
"TRIGGER"
]
provider db_settings[:user_provider]
require_ssl db_connection[:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/neutron/recipes/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
2 changes: 2 additions & 0 deletions chef/cookbooks/nova/recipes/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand All @@ -81,6 +82,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/sahara/recipes/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down
1 change: 1 addition & 0 deletions chef/cookbooks/trove/recipes/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@
host "%"
privileges db_settings[:privs]
provider db_settings[:user_provider]
require_ssl db_settings[:connection][:ssl][:enabled]
action :grant
end

0 comments on commit b516726

Please sign in to comment.