Repository navigation
fix: disable OpenVSX access token expiry - #2290
Conversation
Backport of 0d7a337 to 7.125, application.yml only. The operator provisions two OpenVSX personal access tokens (the extensions publisher and the Admin API token) with no expires_timestamp. Since openvsx v0.33.0 that is exactly the state a startup backfill job looks for: it stamps such rows with now + 90 days, after which the tokens are deactivated and extension publishing stops with no error surfaced to the user. Neither the secret nor the provision Job can repair this: the secret is created with CreateIfNotExists and every statement in the Job is ON CONFLICT (id) DO NOTHING. Set ovsx.access-token.expiration to 0 so expiry stays off. These are infrastructure tokens with no human operator to rotate them, so opting out is the right semantic. isTokenExpiryEnabled() is expiration.isPositive(), and 0 is the value upstream documents for disabling it; the backfill is then skipped and the recurring expiry sweep is deleted. Note this only prevents new stamps. Installations whose tokens already carry an expires_timestamp also need it cleared in the database, because the value is checked inline on every token use regardless of configuration. fixes https://redhat.atlassian.net/browse/CRW-14594 Assisted-by: Claude Opus 5 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: svor The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
🐳 New images available:
|
What does this PR do?
Backport of 0d7a337 to 7.125, application.yml only.
The operator provisions two OpenVSX personal access tokens (the extensions publisher and the Admin API token) with no expires_timestamp. Since openvsx v0.33.0 that is exactly the state a startup backfill job looks for: it stamps such rows with now + 90 days, after which the tokens are deactivated and extension publishing stops with no error surfaced to the user
Screenshot/screencast of this PR
What issues does this PR fix or reference?
https://redhat.atlassian.net/browse/CRW-14594
How to test this PR?
OpenShift
on Minikube
Common Test Scenarios
PR Checklist
As the author of this Pull Request I made sure that:
Reviewers
Reviewers, please comment how you tested the PR when approving it.