Skip to content

radosgw-admin: 'account rm' strips oidc provider urls - #71627

Merged
cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-80385
Sep 16, 2026
Merged

cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-80385

Conversation

@cbodley

@cbodley cbodley commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

oidcs are stored in rados with the scheme:// part of the url removed, but this caller of delete_oidc_provider() was passing the entire url. use url_remove_prefix() to match logic in rgw_rest_oidc_provider.cc

Fixes: https://tracker.ceph.com/issues/80385

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

oidcs are stored in rados with the scheme:// part of the url removed,
but this caller of delete_oidc_provider() was passing the entire url.
use url_remove_prefix() to match logic in rgw_rest_oidc_provider.cc

Fixes: https://tracker.ceph.com/issues/80385

Signed-off-by: Casey Bodley <[email protected]>
@cbodley
cbodley requested a review from a team as a code owner September 8, 2026 16:01
@github-actions github-actions Bot added the rgw label Sep 8, 2026
@cbodley

cbodley commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

earlier testing from #71396 (comment) only tried the url "localhost:8000/path":

~/ceph/build $ aws --profile rgwroot iam create-open-id-connect-provider --url localhost:8000/path
{
    "OpenIDConnectProviderArn": "arn:aws:iam::RGW11111111111111111:oidc-provider/localhost:8000/path"
}
~/ceph/build $ bin/radosgw-admin account rm --account-id RGW11111111111111111 --purge-data
2026-08-27T14:20:31.818-0400 7f4177883280  1 Deleted account user testacct1root
2026-08-27T14:20:31.826-0400 7f4177883280  1 Deleted account user testacct1user
2026-08-27T14:20:31.839-0400 7f4177883280  1 Deleted account oidc provider localhost:8000/path

also tested with urls that include the scheme:

~/ceph/build $ aws --profile rgwroot iam create-open-id-connect-provider --url https://example.com/identity
{
    "OpenIDConnectProviderArn": "arn:aws:iam::RGW11111111111111111:oidc-provider/example.com/identity"
}
~/ceph/build $ bin/radosgw-admin account rm --account-id RGW11111111111111111 --purge-data
2026-09-08T12:20:07.234-0400 7fe7730ba280  1 Deleted account user testacct1root
2026-09-08T12:20:07.240-0400 7fe7730ba280  1 Deleted account user testacct1user
2026-09-08T12:20:07.254-0400 7fe7730ba280  1 Deleted account oidc provider https://example.com/identity

@cbodley
cbodley requested a review from thotz September 8, 2026 16:48
@anrao19

anrao19 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-10-10:12.

@anrao19

anrao19 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-10-10:12.

Pr testing completed and approved by @ivancich, more details : https://tracker.ceph.com/issues/80444.
@cbodley , if no further testing is needed then pr can be merged

@cbodley
cbodley merged commit d5a9a7c into ceph:main Sep 16, 2026
16 of 17 checks passed
@cbodley
cbodley deleted the wip-80385 branch September 16, 2026 12:32
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/35096390250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants