Skip to content

Add scope option to IAM policy generation - #308

Draft
reweeden wants to merge 4 commits into
mainfrom
rew/policy-generation-scope
Draft

reweeden wants to merge 4 commits into
mainfrom
rew/policy-generation-scope

Conversation

@reweeden

@reweeden reweeden commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

For complicated bucket maps it may be impossible to generate an IAM policy that covers all permissions while fitting within the 2048 character limit for assume role policies. Adding in the ability to scope a credential to a certain subset of buckets/prefixes will allow a user to obtain a more limited credential rather than being unable to obtain any credential at all.

This also enables some additional 'least privilege' use cases where different credentials can be requested for different buckets or even prefixes within the same bucket in order to prevent accidentally accessing unwanted data.

Pull Request Checklist

I have:

  • performed a self review of my code I&A code style
    • Resources and Data Structures are sorted by ABC or a defined sorting pattern
  • updated the documentation accordingly
  • verified required action checks are passing
  • deployed my code and all new and existing E2E/Integration tests passed
  • bumped the version number as appropriate

@reweeden
reweeden force-pushed the rew/policy-generation-scope branch from 48a3c24 to 8294657 Compare November 11, 2026 18:38
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.

1 participant