Skip to content

fix: stop invalidating Keystone tokens on neutron ArgoCD sync#2060

Open
skrobul wants to merge 3 commits into
mainfrom
no-token-invalidation
Open

fix: stop invalidating Keystone tokens on neutron ArgoCD sync#2060
skrobul wants to merge 3 commits into
mainfrom
no-token-invalidation

Conversation

@skrobul
Copy link
Copy Markdown
Collaborator

@skrobul skrobul commented Jun 2, 2026

For a while we have been experiencing occasional issues with authentication between Neutron and Undersync. This was traced down to the tokens for service accounts being prematurely invalidated.

Turns out Keystone revokes all of the existing tokens when the password change for a given account is attempted. It does not matter if the password is already set to the exact same value or not. This PR works around that problem by executing password change API call only when the desired password does not authenticate.

Please note this fixes only Neutron where we have seen that problem the most. I am working on a more generic, upstream patch for other components.

related https://rackspace.atlassian.net/browse/PUC-1615

skrobul added 3 commits June 2, 2026 10:32
Avoid invalidating existing Keystone tokens on every sync by probing
auth with the candidate password before applying it; only update when
authentication fails (password has changed or was never set).
This is to gain ability to modify ks-user jobs.
Same pattern as the keystone-upsert sensor: probe auth with the
candidate password before applying it to avoid invalidating Keystone
tokens on every sync when the password hasn't changed.
@skrobul skrobul requested a review from a team June 2, 2026 10:34
@skrobul
Copy link
Copy Markdown
Collaborator Author

skrobul commented Jun 2, 2026

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant