Project

General

Profile

Actions

Bug #74595

closed
NH CB

AuthorizationError when using SNS client to list-topics

Bug #74595: AuthorizationError when using SNS client to list-topics

Added by Nathan Hoad 10 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-927-gc6ea09b123
Released In:
v21.2.0~641
Upkeep Timestamp:
2026-10-24T01:49:42+00:00

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

reproducer.py (3.9 KB) reproducer.py Nathan Hoad, 01/28/2026 04:42 PM
crash.log (107 KB) crash.log Nathan Hoad, 04/09/2026 05:44 PM

Related issues 2 (0 open — 2 closed)

Copied to rgw - Backport #76276: squid: AuthorizationError when using SNS client to list-topicsResolvedCasey Bodley

Actions
Copied to rgw - Backport #76277: tentacle: AuthorizationError when using SNS client to list-topicsResolvedCasey Bodley

Actions

JM Updated by Joseph Mundackal 10 months ago Actions #1

  • Priority changed from Normal to High
  • Backport set to squid tentacle

NH Updated by Nathan Hoad 10 months ago Actions #2

  • File deleted (reproducer.py)

NH Updated by Nathan Hoad 10 months ago Actions #3

JI Updated by J. Eric Ivancich 10 months ago Actions #4

  • Assignee set to Yuval Lifshitz

CB Updated by Casey Bodley 9 months ago Actions #5

  • 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 Actions #6

I have attached logs from an RGW with the failed request.

CB Updated by Casey Bodley 8 months ago Actions #7

  • 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 Actions #8

  • Status changed from New to Triaged

CB Updated by Casey Bodley 8 months ago Actions #9

  • 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 Actions #10

  • Target version deleted (v20.2.1)

CB Updated by Casey Bodley 7 months ago Actions #11

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot 7 months ago Actions #12

  • 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 Actions #13

  • Copied to Backport #76276: squid: AuthorizationError when using SNS client to list-topics added

UB Updated by Upkeep Bot 7 months ago Actions #14

  • Copied to Backport #76277: tentacle: AuthorizationError when using SNS client to list-topics added

UB Updated by Upkeep Bot 7 months ago Actions #15

  • Tags (freeform) set to backport_processed

NH Updated by Nathan Hoad 7 months ago Actions #16

I tested this and verified it fixes the issue, thank you!

UB Updated by Upkeep Bot 3 months ago Actions #17

  • 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 Actions #18

  • 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
Actions

Also available in: PDF Atom