Skip to content

fix: avoid license required before login#12626

Merged
ssongliu merged 1 commit intodev-duofrom
chore/current-code-submit-20260428
Apr 28, 2026
Merged

fix: avoid license required before login#12626
ssongliu merged 1 commit intodev-duofrom
chore/current-code-submit-20260428

Conversation

@ssongliu
Copy link
Copy Markdown
Member

No description provided.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot Bot commented Apr 28, 2026

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot Bot commented Apr 28, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ssongliu for approval. For more information see the Code Review Process.

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

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: facdfa8409

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

is_offline: false
is_fxplay: false
is_xpackee: false
is_xpackee: true
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore embedded default to non-EE mode

Changing base.is_xpackee to true in the embedded server config makes fresh/non-overridden installs boot as Enterprise Edition by default, which flips licensing and initialization paths globally (this config is embedded via core/cmd/server/conf/conf.go and read during startup in core/init/viper/viper.go). That is a behavioral change far beyond this fix and can force license-gated flows for users who are not actually deploying EE.

Useful? React with 👍 / 👎.

Comment on lines +56 to +57
if (!globalStore.isXpackEELicenseLoaded) {
await loadProductProFromDB();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Catch license-load failures in route guard

This guard now awaits loadProductProFromDB() without error handling. That helper uses axios-backed API calls and can reject on network/API errors, so a transient failure will throw from beforeEach, abort navigation, and skip the normal next() path. The previous implementation used fetch(...).catch(() => false) and kept routing functional even when the license check failed.

Useful? React with 👍 / 👎.

@ssongliu ssongliu merged commit 1704675 into dev-duo Apr 28, 2026
2 of 3 checks passed
@ssongliu ssongliu deleted the chore/current-code-submit-20260428 branch April 28, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants