Skip to content

[deckhouse-cli] Back up the licensing Secrets with the cluster config - #522

Closed
yalosev wants to merge 1 commit into
mainfrom
feat/backup-licensing-secrets
Closed

yalosev wants to merge 1 commit into
mainfrom
feat/backup-licensing-secrets

Conversation

@yalosev

@yalosev yalosev commented Dec 1, 2026

Copy link
Copy Markdown
Member

What changes for the user

d8 backup cluster-config now saves two more Secrets from the d8-system namespace:

  • cluster-key - the key of the cluster that license keys are bound to;
  • license-token - the token the cluster uses to request license keys.

Why

A license key (ClusterLicense) is bound to the cluster UUID and to the cluster key. The UUID (kube-system/d8-cluster-uuid) is already in the archive. Without cluster-key a restored cluster generates a new key and rejects every restored license key.

Details

Secrets are selected by the built-in list of names, so the change is two lines in whitelist.yml and two test cases. Both Secrets are optional: a cluster without them is backed up as before.

d8 backup cluster-config now saves d8-system/cluster-key and
d8-system/license-token. A license key is bound to the cluster key, so
restored ClusterLicense objects are rejected without it.

Signed-off-by: Yuriy Losev <yuriy.losev@flant.com>
@yalosev
yalosev requested a review from ldmonster as a code owner December 1, 2026 10:48
@yalosev

yalosev commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Opened in the wrong place: development moved to the internal repository.

@yalosev yalosev closed this Dec 1, 2026
@yalosev
yalosev deleted the feat/backup-licensing-secrets branch December 1, 2026 10:49
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