This repository was archived by the owner on Oct 12, 2026. It is now read-only.
Repository navigation
sns: test sns:ListTopics with non-root account user - #736
Merged
Merged
Conversation
test that identity policy can grant access to ListTopics Fixes: https://tracker.ceph.com/issues/74595 Signed-off-by: Casey Bodley <[email protected]>
yuvalif
reviewed
Apr 16, 2026
| aws_secret_access_key=key['SecretAccessKey']) | ||
|
|
||
| # expect AccessDenied for lack of identity policy | ||
| e = assert_raises(ClientError, sns.list_topics) |
Contributor
There was a problem hiding this comment.
shouln't the account root have implicit acces to all resources, including topics?
i think that this is the case for the tenanted user, it can list all of the topics it created.
Contributor
Author
There was a problem hiding this comment.
yes, the account root user has this permission by default. but this test case is creating a different (non-root) user and using its credentials to issue this request
Contributor
There was a problem hiding this comment.
can we also verify that the root can list the topics without any policy?
Contributor
Author
There was a problem hiding this comment.
the existing test_cross_account_topic() test case just above this one is already doing a successful list_topics() as an account root user
yuvalif
approved these changes
Apr 16, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
test that identity policy can grant access to ListTopics
Fixes: https://tracker.ceph.com/issues/74595