Upgrade from 1.1 to 1.2
Hub 1.2 moves authentication into a new hub-auth component and changes some
chart values. Make these changes to your values file before you run helm upgrade to 1.2.0.
-
Enable and configure
hub-auth.hub-authnow serves OIDC login, token exchange, the signing keyshub-coreverifies tokens against, and theidentityproviders,users, andgroupsAPIs. The Gateway routes those paths tohub-auth, but the chart doesn't deploy it unless you enable it. Without it, nobody can log in. Add thehub-authblock from step 5 of the install guide: setenabled: true,auth.issuerURLandauth.externalURLto Hub's external URL,auth.frontendURLto the UI URL, and apostgresqlblock that points at the same database ashub-core. If your 1.1 values sethub-core.api.externalURL, move that URL toglobal.hubCoreExternalUrl, whichhub-core, the Console, and in-cluster connectors all read, and reuse it for thehub-authURLs. In IAM mode, give thehub-authServiceAccount the same database role. The OIDC redirect URI you registered with your provider (https://api.<your-domain>/oidc/callback) doesn't change. -
Move a pinned signing key.
hub-authnow holds the key for hub-issued tokens, and the chart no longer useshub-core.api.signingKey.hub-authgenerates a new key unless you sethub-auth.auth.signingKey.existingSecretRef. If you pinnedhub-core.api.signingKey.existingSecretRef, set the same Secret underhub-auth.auth.signingKey.existingSecretRef.hub-authalso signs browser sessions now, with its ownhub-auth.auth.hmacKey. If you pinnedhub-core.api.hmacKey.existingSecretRef, andexistingPreviousSecretRefif you use it, set the same Secrets underhub-auth.auth.hmacKey. Otherwisehub-authgenerates a new key, and everyone has to sign in to the Console again after the upgrade. To keep sessions on an install that didn't pin the key, sethub-auth.auth.hmacKey.existingSecretRef.nameto thehub-core-hmacSecret that 1.1 generated. -
Remove values the 1.2 charts reject. The charts validate values against a strict schema, so a removed key fails the upgrade:
hub-connector: removeconnector.hub.allowInsecure. The connector now uses plain HTTP only for in-cluster addresses (localhost,*.svc, and*.svc.cluster.local) and requires HTTPS for every other Hub URL, with no override. Pointconnector.hub.urlat the Hub's HTTPS address, or at its in-cluster Service when the connector runs in the Hub's cluster.hub-core: replaceotelGateway.metricAllowlistwithotelGateway.extraMetricAllowlist. The new list adds patterns to the chart's built-in allowlist rather than replacing it, so list only the extra metrics you need.
-
Re-mint unused registration tokens. A 1.2 migration drops the stored registration tokens, and the new authenticator refuses any token minted before the upgrade. For any connector that hasn't registered yet, mint a new token after the upgrade.
-
Point 1.1 connectors at
hub-auth. Connectors on 1.1 keep working against a 1.2 Hub, so you can upgrade them after the Hub. Before you upgrade the Hub, setconnector.hub.tokenExchangeUrlon each 1.1 connector that reacheshub-coredirectly to thehub-authService on port 8444 (for examplehttp://hub-auth.hub.svc.cluster.local:8444). Connectors that use the Hub's gateway URL need no change.A 1.1 connector that restarts within 24 hours of the registration token in its credentials Secret being minted fails to start, because the 1.2 Hub rejects the repeat registration. Remove the token from the Secret, or upgrade that connector to 1.2.
-
Expect a new Deployment. The discovery aggregator is on by default and runs as
hub-core-aggregator. It serves/apisand/openapion the API hostname.
Users may need to log in again after the upgrade.
The upgrade applies migrations that drop tables and columns. Rolling back to 1.1 requires restoring the database backup you took before the upgrade.
Follow the general upgrade procedure to run the upgrade itself.