Repository navigation
fix: don't repeat a stack-wide grant for a linked resource - #803
Merged
alongubkin merged 2 commits intoOct 2, 2026
Merged
alongubkin merged 2 commits into
alongubkin merged 2 commits into
Conversation
|
Member
Author
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
alongubkin
force-pushed
the
alon/alien-1120-a-stack-wide-permission-doesnt-stop-the-per-resource-link
branch
from
October 1, 2026 00:00
ec67df3 to
0237dc6
Compare
alongubkin
deleted the
alon/alien-1120-a-stack-wide-permission-doesnt-stop-the-per-resource-link
branch
October 2, 2026 18:19
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.
Fixes ALIEN-1120.
Problem
On AWS,
AwsExactPermissionsSetupOwnedCheckrefuses an exact-resource permission on a Live resource, and its message says to use a stack-scoped ('*') permission instead. Following that advice didn't work for linked resources:"*": ["sandbox/execute"].ResourceLinkPermissionsMutationadds a link's default grant unless the profile has an entry for that exact resource id. A*entry didn't count, so it still added"agents": ["sandbox/execute"].The same applies to Live queue, storage, kv and vault links.
Fix
The mutation skips a link's default permission set when the profile already grants it stack-wide. When nothing is left to add, it adds no per-resource entry at all.
Tests
a_stack_wide_grant_satisfies_a_live_link_on_aws: a container whose profile grantssandbox/executestack-wide links a Live sandbox. After the real mutation, the profile has noagentsentry and the real AWS check passes. With the filter disabled, the test fails.cargo test -p alien-preflightspasses.🤖 Generated with Claude Code