-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
Support FIPS endpoints, disable S3 Transfer Acceleration in GovCloud #730
Conversation
The Fog::AWS::Utils region_to_host method returns the standard S3 endpoints even when ENV['AWS_USE_FIPS_ENDPOINT']=='true'. When FIPS is called for, and we are in a region where FIPS endpoints are available, this method should return the FIPS endpoint. Furthermore, when S3 Transfer Acceleration (S3TA) is requested by configuration, the above endpoint gets overridden to select the S3TA endpoint. However, S3TA is not avaialble in GovCloud, and has no FIPS endpoint equivalents. In this instance, if the region is a GovCloud region, or if FIPS mode is called for, do _not_ override the endpoint to use S3TA.
@matt-domsch-sp Thanks for all the details and the patch. The code looks reasonable to me, though I have zero experience with govcloud, fips, and acceleration. Is there anything else we should check or test before proceeding, or did you have questions? (I noticed it's marked as work-in-progress still) |
I'm not aware of anything else. There aren't any tests for this code and I haven't added any either. It would be a behavior change re no S3TA for systems that enable the FIPS mode flag, but that's probably few and far between. I've marked it ready for review. |
@matt-domsch-sp Thanks. We could consider having an error or at least warning in the case where you are trying to enable acceleration in a context where it would be unavailable. That might help smooth this out, though I presume it wouldn't have worked previously anyway. What do you think? |
I've added a warning and explicit disabling of acceleration. @geemus thanks for the suggestion. |
d527a94
to
365a4bb
Compare
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.
Looks like a typo snuck into the warning message, but otherwise looking good. Thanks!
Fix a typo in acceleration disable warning.
The Fog::AWS::Utils region_to_host method returns the standard S3 endpoints even when ENV['AWS_USE_FIPS_ENDPOINT']=='true'. When FIPS is called for, and we are in a region where FIPS endpoints are available, this method should return the FIPS endpoint.
Furthermore, when S3 Transfer Acceleration (S3TA) is requested by configuration, the above endpoint gets overridden to select the S3TA endpoint. However, S3TA is not avaialble in GovCloud, and has no FIPS endpoint equivalents. In this instance, if the region is a GovCloud region, or if FIPS mode is called for, do not override the endpoint to use S3TA.