Skip to content

Cover exempted resources in IAM role policy test#10549

Open
david-crespo wants to merge 1 commit into
mainfrom
iam-test-exempted
Open

Cover exempted resources in IAM role policy test#10549
david-crespo wants to merge 1 commit into
mainfrom
iam-test-exempted

Conversation

@david-crespo

@david-crespo david-crespo commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Add IpPool, VpcRouter, RouterRoute, ConsoleSession, and UserBuiltin to the policy_test resource universe and remove them from the coverage exemption list. As far as I can tell, these were not exempted for any particular reason — the comment just says "Resources that we should test, but for which we have not yet added a test."

This came up because I'm experimenting with an Oso to Cedar conversion and I'm trying to get as much test coverage as possible to validate the port.

Adds IpPool, VpcRouter, RouterRoute, ConsoleSession, and UserBuiltin to the
policy_test resource universe and removes them from the coverage exemption
list. All five are role-gated (FleetChild / InProjectFull) so they fit the
existing matrix; no new test machinery needed.
silo1-proj1-limited-collaborator ✘ ✘ ✘ ✘ ✘ ✘ ✔ ✘
silo1-proj1-viewer ✘ ✘ ✘ ✘ ✘ ✘ ✔ ✘
unauthenticated ! ! ! ! ! ! ! !
scim ✘ ✘ ✘ ✘ ✘ ✘ ✘ ✘

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Anybody can create child because that's the perm we use to allocate IP addresses. It would be nice to have this only work for users in a silo linked to the pool, but currently this is enforced in app code.

silo1-admin ✘ ✔ ✔ ✔ ✔ ✔ ✔ ✔
silo1-collaborator ✘ ✔ ✔ ✔ ✔ ✔ ✔ ✔
silo1-limited-collaborator ✘ ✔ ✔ ✔ ✘ ✘ ✘ ✘
silo1-viewer ✘ ✔ ✔ ✔ ✘ ✘ ✘ ✘

@david-crespo david-crespo Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

viewer and limited collaborator can't modify networking resources, as expected

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