Skip to content

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

Merged
merged 5 commits into from
Nov 30, 2018
Merged

Syncing - Internal repo changes. #198

merged 5 commits into from
Nov 30, 2018

Conversation

pmzara
Copy link
Contributor

@pmzara pmzara commented Nov 28, 2018

Issue #, if available:

Description of changes:

  • Revert "Added support in the agent for Ubuntu LTS release("bionic") ships with Ruby 2.5.x."
  • Remove procfs dependency to make agent more compatible with other operating systems
  • Use S3 Fips endpoints
  • Add use_fips_mode option

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Zara and others added 5 commits November 28, 2018 21:50
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
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 92.153% when pulling 3bbe54f on pmzara:master into dc22129 on aws:master.

@@ -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

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?

Copy link
Contributor Author

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.

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?

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

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?

Copy link
Contributor Author

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.

@pmzara pmzara merged commit 9dcc4d9 into aws:master Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants