Skip to content

Fix non-admin ApplicationCredential deletion - #1028

Merged
winiciusallan merged 1 commit into
k-orc:mainfrom
shiftstack:fix-appcreds-deletion
Oct 29, 2026
Merged

winiciusallan merged 1 commit into
k-orc:mainfrom
shiftstack:fix-appcreds-deletion

Conversation

@mandre

@mandre mandre commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Resolve managed credential owners through resource.userRef and query Keystone directly under that user. A deleted credential now returns 404 without falling back to user enumeration, whose 403 response prevented finalizer removal for non-admin users.

Preserve discovery for imports and propagate direct lookup errors. Add client and actuator tests, regenerate the client mock, and cover deletion with a non-admin KUTTL regression test.

Fixes #1022.

@github-actions github-actions Bot added the semver:patch No API change label Oct 27, 2026
@mandre
mandre force-pushed the fix-appcreds-deletion branch from aeb3d6d to 252d314 Compare October 28, 2026 09:34
Resolve managed credential owners through `resource.userRef` and query
Keystone directly under that user. A deleted credential now returns 404
without falling back to user enumeration, whose 403 response prevented
finalizer removal for non-admin users.

Preserve discovery for imports and propagate direct lookup errors. Add
client and actuator tests, regenerate the client mock, and cover deletion
with a non-admin KUTTL regression test.

Fixes k-orc#1022.
@mandre
mandre force-pushed the fix-appcreds-deletion branch from 252d314 to 010572c Compare October 28, 2026 10:19

@winiciusallan winiciusallan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! We have regression tests for that case following how to reproduce, and they're all green.

@winiciusallan
winiciusallan added this pull request to the merge queue Oct 29, 2026
Merged via the queue into k-orc:main with commit 99923f4 Oct 29, 2026
10 checks passed
@winiciusallan
winiciusallan deleted the fix-appcreds-deletion branch October 29, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch No API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ApplicationCredential deletion hangs on 403 from GET /v3/users since #1014

2 participants