Skip to content

Accept a request S3 external ID that matches the configured default - #1482

Open
biglittlebigben wants to merge 2 commits into
mainfrom
benjamin/s3-external-id-match
Open

biglittlebigben wants to merge 2 commits into
mainfrom
benjamin/s3-external-id-match

Conversation

@biglittlebigben

Copy link
Copy Markdown
Contributor

When s3_allow_request_assume_role_external_id is false, a request that sets assume_role_external_id is no longer rejected if the ID equals s3_assume_role_external_id and the request's assume_role_arn is empty or equals s3_assume_role_arn. Any other request-supplied external ID is still rejected.

A request that sets an external ID now logs at Info when its external ID or ARN differs from the configured default.

  • pkg/config/storage.go: relaxed gate and Info log
  • pkg/config/config_test.go: cases for a matching ID with the configured ARN (accepted), a matching ID with a different ARN (rejected), and a differing ID (rejected)

🤖 Generated with Claude Code

When the request assume_role_external_id field is disallowed, a request
that supplies the configured external ID is now accepted as long as its
assume_role_arn is empty or matches the configured ARN. A request that
sets an external ID logs at Info when its external ID or ARN differs
from the configured default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@biglittlebigben
biglittlebigben marked this pull request as ready for review October 24, 2026 00:07
@biglittlebigben
biglittlebigben requested a review from a team as a code owner October 24, 2026 00:07

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

AV-sync stats summary: view in run #40044533288

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants