Bug #74595
closedAuthorizationError when using SNS client to list-topics
0%
Description
Hello,
We've recently begun using the RGW accounts feature in Squid 19.2.1 for IAM support. We have found that we cannot list topics via an SNS client, even when it shouldn't be an issue.
I've managed to reproduce this reliably in both Squid and main.
Steps to reproduce:
1. vstart a cluster with at least one RGW
2. Configure a user with an account:
# Allow using authenticated brokers without setting up SSL (simplifies testing). ceph config set client.rgw rgw_allow_notification_secrets_in_cleartext true # Create user: radosgw-admin user create --uid=user1 --display-name=user1 # Create account that user will be migrated into: ACCOUNT_ID=$(radosgw-admin account create --account-name=test | jq .id -r) # Migrate user as an IAM user. They won't be able to run any S3 or SNS actions until we attach the managed policies in the next step: radosgw-admin user modify --uid=user1 --account-id=$ACCOUNT_ID # Attach S3FullAccess and SNSFullAccess managed policies: radosgw-admin user policy attach --uid=user1 --policy-arn=arn:aws:iam::aws:policy/AmazonS3FullAccess radosgw-admin user policy attach --uid=user1 --policy-arn=arn:aws:iam::aws:policy/AmazonSNSFullAccess
3. Run the attached script, specifying the arguments, and you should observe a failure when attempting to list topics.
$ python3 reproducer.py -u http://XXX:8000 -b test -i key-from-previous-step -p secret-from-previous-step --kafka-endpoint kafka://XXX:9094 --kafka-username kafka-username --kafka-password kafka-password Exception type:AuthorizationErrorException exception:An error occurred (AuthorizationError) when calling the ListTopics operation: None
Ceph version:
ceph --version *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** ceph version 20.3.0-4858-gf81d65999f1 (f81d65999f1b5e2e3ae09859765774a7cd64e51c) tentacle (dev) ```
Files
JM Updated by Joseph Mundackal 10 months ago
- Priority changed from Normal to High
- Backport set to squid tentacle
NH Updated by Nathan Hoad 10 months ago
- File deleted (
reproducer.py)
NH Updated by Nathan Hoad 10 months ago
- File reproducer.py reproducer.py added
JI Updated by J. Eric Ivancich 10 months ago
- Assignee set to Yuval Lifshitz
CB Updated by Casey Bodley 9 months ago
- Status changed from New to Need More Info
one data point: https://github.com/ceph/s3-tests/pull/537 added test coverage for account topic apis, and the calls to list_topics() have been succeeding there
perhaps you could capture the rgw log output (at debug_rgw=20) of one of these failing requests?
NH Updated by Nathan Hoad 8 months ago
CB Updated by Casey Bodley 8 months ago
- Status changed from Need More Info to New
one data point: https://github.com/ceph/s3-tests/pull/537 added test coverage for account topic apis, and the calls to list_topics() have been succeeding there
thanks @Nathan Hoad! it looks like that test case is using an account root user, so doesn't test interactions with identity policy. i just created a new test case in https://github.com/ceph/s3-tests/pull/736 with a non-root user, and see that failing with the same AuthorizationError
CB Updated by Casey Bodley 8 months ago
- Status changed from New to Triaged
CB Updated by Casey Bodley 8 months ago
- Status changed from Triaged to Fix Under Review
- Assignee changed from Yuval Lifshitz to Casey Bodley
- Pull request ID set to 68429
CB Updated by Casey Bodley 8 months ago
- Target version deleted (
v20.2.1)
CB Updated by Casey Bodley 7 months ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot 7 months ago
- Merge Commit set to c6ea09b123c45a19190f2b65e4c9f1fbc4282ca6
- Fixed In set to v21.0.0-927-gc6ea09b123
- Upkeep Timestamp set to 2026-04-27T13:16:54+00:00
UB Updated by Upkeep Bot 7 months ago
- Copied to Backport #76276: squid: AuthorizationError when using SNS client to list-topics added
UB Updated by Upkeep Bot 7 months ago
- Copied to Backport #76277: tentacle: AuthorizationError when using SNS client to list-topics added
UB Updated by Upkeep Bot 7 months ago
- Tags (freeform) set to backport_processed
NH Updated by Nathan Hoad 7 months ago
I tested this and verified it fixes the issue, thank you!
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-04-27T13:16:54+00:00 to 2026-08-27T18:31:11+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~641
- Upkeep Timestamp changed from 2026-08-27T18:31:11+00:00 to 2026-10-24T01:49:42+00:00