From 25a58d32dc4aa58b79581bc38eab87c0286b5f37 Mon Sep 17 00:00:00 2001 From: Valerii Svydenko Date: Wed, 2 Dec 2026 16:39:02 +0200 Subject: [PATCH] fix: disable OpenVSX access token expiry Backport of 0d7a33715 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 --- pkg/deploy/openvsx/openvsx-server/application.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/deploy/openvsx/openvsx-server/application.yml b/pkg/deploy/openvsx/openvsx-server/application.yml index 60b19131f9..c627562d7a 100644 --- a/pkg/deploy/openvsx/openvsx-server/application.yml +++ b/pkg/deploy/openvsx/openvsx-server/application.yml @@ -76,6 +76,8 @@ ovsx: enabled: false redis: enabled: false + access-token: + expiration: 0 integrity: key-pair: create registry: