-
Notifications
You must be signed in to change notification settings - Fork 186
Syncing - Internal repo changes. #198
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
Conversation
For Fedramp compliance, we need to enable customers to use Fips vips. By setting this option in the configuration file, they can make the Agent use the ADCS Fips vips. cr https://code.amazon.com/reviews/CR-3463212
To support Fedramp requirements, we connect to S3 using its Fips endpoints if use_fips_mode is set to true
…hips with Ruby 2.5.x." This reverts commit 92ad4e3. cr https://code.amazon.com/reviews/CR-3966728
@@ -65,5 +70,39 @@ class InstanceAgentConfigTest < InstanceAgentTestCase | |||
assert InstanceAgent::Config.validate_config.empty?, InstanceAgent::Config.validate_config.inspect | |||
end | |||
end | |||
|
|||
context 'validate use_fips_mode' do |
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.
Why only these 4 regions? why not all 6 from the list above?
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.
FIPS was deployed to be used only in gov regions or some regions that we were running some tests.
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.
You have
FIPS_ENABLED_REGIONS = Set['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'us-gov-west-1', 'us-gov-east-1']
above
Why are only 4 of those regions being special cased here?
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.
Talked with Peng
@@ -238,33 +238,8 @@ def most_recent_install_file_path(deployment_group) | |||
private | |||
def download_from_s3(deployment_spec, bucket, key, version, etag) | |||
log(:debug, "Downloading artifact bundle from bucket '#{bucket}' and key '#{key}', version '#{version}', etag '#{etag}'") | |||
region = ENV['AWS_REGION'] || InstanceMetadata.region |
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.
Why is all of this getting removed?
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.
The code wasn't removed. It was only moved to the new function s3_options to become more clear.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.