Conversation
Standardizes AWS IAM authentication as a reusable strategy so any SaaS connector can sign requests with AWS Signature V4. Supports both static credentials and STS AssumeRole with automatic credential caching. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Codecov Report❌ Patch coverage is
❌ Your project check has failed because the head coverage (84.94%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #8272 +/- ##
==========================================
- Coverage 85.50% 84.94% -0.57%
==========================================
Files 653 671 +18
Lines 42513 43713 +1200
Branches 4991 5135 +144
==========================================
+ Hits 36351 37130 +779
- Misses 5055 5479 +424
+ Partials 1107 1104 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ticket ENG-3965
Description Of Changes
Adds a reusable
aws_iamauthentication strategy so any SaaS connector can sign outbound HTTP requests with AWS Signature V4. This standardizes IAM-based authentication across connectors rather than each integration reimplementing signing logic.Designed primarily for AWS API Gateway endpoints protected by IAM authorization, but the
servicefield is configurable so it can be used with other AWS services.Code Changes
authentication_strategy_aws_iam.py— newAWSIAMAuthenticationStrategyclass that:botocore.auth.SigV4Authaws_access_key_id/aws_secret_access_key/ optionalaws_session_token) and STS AssumeRole (aws_assume_role_arn)connection_config.secretsand refreshes them 5 minutes before expiryus-east-1strategy_configuration.py—AWSIAMAuthenticationConfigurationschema withregionandservicefieldsauthentication_strategy_factory.py— registersaws_iaminSupportedAuthenticationStrategiesauthentication/__init__.py— imports new module so it is picked up at startuptests/ops/service/authentication/test_authentication_strategy_aws_iam.py— unit tests covering both auth modes, region resolution, credential caching, and error handlingSteps to Confirm
authentication: {strategy: aws_iam}and static AWS credentials; confirm outbound requests includeAuthorization,X-Amz-Date, andX-Amz-Security-Tokenheaders signed with SigV4aws_assume_role_arninstead of static keys; confirm Fides calls STSAssumeRoleand caches the temporary credentials in the connector secretspytest tests/ops/service/authentication/test_authentication_strategy_aws_iam.py -vPre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works