Skip to content

fix: disable OpenVSX access token expiry - #2290

Merged
svor merged 1 commit into
7.125.xfrom
sv-set-token-expiration-7.125
Dec 2, 2026
Merged

svor merged 1 commit into
7.125.xfrom
sv-set-token-expiration-7.125

Conversation

@svor

@svor svor commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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?

  1. Deploy the operator:

OpenShift

build/scripts/oc-tests/oc-test.sh --install-from pr

on Minikube

./build/scripts/minikube-tests/test-operator-from-sources.sh

Common Test Scenarios

  • Deploy Eclipse Che
  • Start an empty workspace
  • Open terminal and build/run an image
  • Stop a workspace
  • Check operator logs for reconciliation errors or infinite reconciliation loops

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.

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>
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dafa93a1-d5b8-49db-93f0-d3dfd655ed65

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@openshift-ci

openshift-ci Bot commented Dec 2, 2026

Copy link
Copy Markdown

[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.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🐳 New images available:

  • quay.io/eclipse/che-operator:pr-2290-25a58d-amd64
  • quay.io/eclipse/che-operator:pr-2290-25a58d-arm64
  • quay.io/eclipse/eclipse-che-olm-catalog:pr-2290-25a58d-amd64
  • quay.io/eclipse/eclipse-che-olm-catalog:pr-2290-25a58d-arm64

@svor
svor merged commit 9fee303 into 7.125.x Dec 2, 2026
17 checks passed
@svor
svor deleted the sv-set-token-expiration-7.125 branch December 2, 2026 16:58
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