Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

sns: test sns:ListTopics with non-root account user - #736

Merged
cbodley merged 1 commit into
ceph:masterfrom
cbodley:wip-74595
Apr 27, 2026
Merged

cbodley merged 1 commit into
ceph:masterfrom
cbodley:wip-74595

Conversation

@cbodley

@cbodley cbodley commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

aws_secret_access_key=key['SecretAccessKey'])

# expect AccessDenied for lack of identity policy
e = assert_raises(ClientError, sns.list_topics)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

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.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we also verify that the root can list the topics without any policy?

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.

the existing test_cross_account_topic() test case just above this one is already doing a successful list_topics() as an account root user

@cbodley
cbodley merged commit 9913f2e into ceph:master Apr 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants