Repository navigation
Let the AI SRE role read the account's name - #24
Merged
Merged
Conversation
Add account:GetAccountInformation to the restricted role's InvestigationReads statement, next to iam:ListAccountAliases and account:ListRegions, so Better Stack can name an integration after its AWS account. Most accounts have no sign-in alias, so the alias alone leaves only the account ID. AllowConfigurationValues=true needs no change: AWS's ReadOnlyAccess already grants the action, and no deny policy names an account: action.
matejlauko
force-pushed
the
ai-sre-account-name
branch
from
November 22, 2026 22:29
33eab46 to
a5a12e5
Compare
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.
What changes for a customer's role
AllowConfigurationValues=false):account:GetAccountInformation, in theInvestigationReadsstatement next toiam:ListAccountAliasesandaccount:ListRegions.What doesn't change
AllowConfigurationValues=true: AWS'sReadOnlyAccessalready grantsaccount:GetAccountInformation(it is in the reviewed v192 copy,test/fixtures/read-only-access-policy.json).account:action, so nothing denies the new read.iam:ListAccountAliasesstays in the role.How to verify
test/simulate_policy.pyexpectsaccount:GetAccountInformationallowed in both settings; without the template change the default setting fails withimplicitDeny.🤖 Generated with Claude Code