Skip to content

Carry LicenseInfo and TenantInfo through the vendored kmodules libs - #447

Merged
ArnobKumarSaha merged 1 commit into
masterfrom
arnob-org-license
Sep 17, 2026
Merged

ArnobKumarSaha merged 1 commit into
masterfrom
arnob-org-license

Conversation

@ArnobKumarSaha

Copy link
Copy Markdown
Member

Part of the org-based licensing track (arnob-org-license in kmodules.xyz/client-go, kmodules.xyz/resource-metadata, go.bytebuilders.dev/audit, go.bytebuilders.dev/license-proxyserver, appscode-cloud/b3).

No handler change was needed. identity.Identify already unmarshals b3's whole response into kmapi.ClusterMetadata, UpsertClusterMetadata already persists it, and ClusterIdentity.Status is ClusterMetadata — so LicenseInfo reaches kube-public/ace-info and the clusteridentities API once the libraries know the field. Nothing outside vendor/ rebuilds ClusterMetadata field-by-field, so no path drops it.

This must ship together with the client-go bump: adding License changes the HMAC-signed ace-info payload. An all-empty LicenseInfo signs as absent, so ConfigMaps written before this change keep verifying against the new library.

Vendored kmodules.xyz sources are hand-patched to the unreleased types, matching what audit and license-proxyserver already carry. go.mod/go.sum are untouched; the real bump lands when client-go and resource-metadata are tagged.

go build ./... passes.

The identity client already unmarshals b3's whole response into ClusterMetadata
and UpsertClusterMetadata already persists it, so LicenseInfo reaches ace-info
and ClusterIdentity with no handler change; only the libs needed to know the
field. The signed ace-info payload changes, which is why this ships with the
kmodules bump rather than ahead of it.

Vendored kmodules.xyz sources are hand-patched to the unreleased types; the real
bump lands when client-go and resource-metadata are tagged.

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Arnob kumar saha <arnob@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit 2dd795c into master Sep 17, 2026
4 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-org-license branch September 17, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant