-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ER-444] Enable FIPS configuration at runtime via chef-server.rb #1061
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,7 @@ Requirements: | |
* VirtualBox 4.3+ | ||
* Vagrant 1.7+ | ||
* At least one recent Chef Server 12.0.9+ debian package download, | ||
which you can grab from https://bintray.com/chef/current/chef-server. Note | ||
that you should download the chef-server-core package, and not run the | ||
installer. dvm will then look for the package in either the Downloads dir | ||
which you can get using this command (if you have the most recent chefdk) `mixlib-install download chef-server -p ubuntu -a x86_64 -l 14`. dvm will then look for the package in either the Downloads dir | ||
on your machine or the omnibus/pkg directory under the chef-server repo | ||
where dvm is running. You can also set the INSTALLER environment variable | ||
to tell dvm where to find the package if it is not in one of those locations. | ||
|
@@ -57,7 +55,7 @@ knife config on your workstation. | |
vagrant ssh | ||
sudo -i | ||
# create a user to access chef with | ||
chef-server-ctl user-create -f /tmp/admin.pem admin Admin User [email protected] password | ||
chef-server-ctl user-create -f /tmp/admin.pem admin Admin User [email protected] password | ||
# create an organization | ||
chef-server-ctl org-create -f /tmp/test-validator.pem test Test | ||
# associate the user with the organization | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,11 +39,7 @@ | |
|
||
default['private_chef']['default_orgname'] = nil | ||
|
||
# Enable fips mode (openssl) | ||
# This requires the chef-server-fips package. If you do not have this, | ||
# your chef-server will probably not work. If you have to manually | ||
# change this, you're doing it wrong. | ||
default['private_chef']['fips_enabled'] = false | ||
default['private_chef']['fips_enabled'] = ChefConfig.fips? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When you come back for cleanup tasks, it would be good to add a preflight check that we're on a box that supports fips if it has been enabled in the config. |
||
|
||
### | ||
# Options for installing addons | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
omnibus/files/private-chef-cookbooks/private-chef/recipes/fips.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
node.default['private_chef']['fips_enabled'] = true | ||
node.default['private_chef']['nginx']['enable_non_ssl'] = true | ||
node.default['private_chef']['nginx']['ssl_ciphers'] = "FIPS@STRENGTH:!aNULL:!eNULL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to specify which versions of RHEL we support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No - Chef Server is built for RHEL 5, 6 and 7. We support FIPS in all those versions.