Job aid: values and secrets
Section titled “Job aid: values and secrets”Three files
Section titled “Three files”| File | Holds | Commit? |
|---|---|---|
nw-values.yaml | Settings only | Yes |
nw-secrets.yaml | Passwords and keys (production: from your secret manager) | Never |
pack-values.yaml | The license values your vendor supplies, exactly as given | Never |
Order on the command line: settings, secrets, pack. The later file wins. See M2-S1.
The chart refuses to render without
Section titled “The chart refuses to render without”secrets.sharedKey · core.mongoUrlTemplate with a literal {db} · web.config.clientId ·
altcha.config.altchaHMACKey while altcha.enabled · the pack’s values. It also refuses
core.enabled: false, and a combined-pod autoscaler without resource requests
(M6-S1).
Renders fine, fails later
Section titled “Renders fine, fails later”| Mistake | Symptom |
|---|---|
| Wrong datastore address or password | Pods never ready; connection errors in logs |
Empty identity.config.recoveryCodePepper | Two-factor recovery codes fail when used |
Empty data.config.fieldEncryptionMasterKey | Services fail when they start or first need it |
A {db} that composes a non-existent database | Nothing fails: an empty database is used |
| Message-bus set-up Job cannot reach RabbitMQ’s management address | The install stops on that Job |
Set once, protect for ever
Section titled “Set once, protect for ever”| Value | If changed | Rotation |
|---|---|---|
data.config.fieldEncryptionMasterKey | Every encrypted value unreadable | Never; a provider change uses adoptProvider (M4-S3) |
identity.config.totpEncryptionKey | Stored authenticator secrets unreadable | Never casually |
identity.config.recoveryCodePepper | Every issued recovery code invalid | Only with a plan to reissue codes |
secrets.sharedKey | Gateway and services disagree | The five-step procedure (M3-S2) |
identity.oidc.cookieKeys, storage.linkSigning.key | Sessions or file links break | Set explicitly when you render with helm template or Argo CD |
Secrets that travel separately
Section titled “Secrets that travel separately”- Single sign-on client secret: written into the provider document, never into a file (M4-S1).
- Directory importer client secret:
nw-secrets.yaml(M4-S2). - The master key: with every backup, in your secret manager (M4-S3).
Generate keys with openssl rand -hex 32. Lab secrets start with lab-only and never leave the lab.
License
Section titled “License”A license is required to activate Administration. Your vendor supplies the values and holds the expiry date; there is no license screen. Full guide: Install and renew the license.
| Value | Chart key |
|---|---|
Client ID, token URL (https://) | license.clientId, license.tokenUrl |
| Private key | license.existingSecret + license.existingSecretKey, or license.privateKeyPem |
| Cell ID (multi-tenant cells only) | license.cellId |
kubectl create secret generic platform-license -n <namespace> --from-file=license.pem=./license.pem- Set the values above in
pack-values.yaml, never committed. helm upgrade --install <release> <chart> -n <namespace> $valueskubectl get deployment -n <namespace> -l app=osos-apigateway, thenkubectl rollout status deployment/<gateway-deployment> -n <namespace>.
Validate (the smoke test’s last layer)
- Gateway pods
Runningand ready:kubectl get pods -n <namespace> -l app=osos-apigateway. - The sign-in page appears, not an error page with a Retry button.
- A system administrator sees Administration.
kubectl logs -n <namespace> -l app=osos-apigateway --tail=500 | grep -i licenseshows no error.
Renew or replace (M2-S3)
- Renewed with no new values: nothing to change. If the error page stays once the vendor confirms, restart the gateway and validate again.
- New private key in your own Secret: replace the Secret’s contents, then
kubectl rollout restart deployment/<gateway-deployment> -n <namespace>. - New client ID, token URL, cell ID or a
license.privateKeyPemkey: change the values and runhelm upgrade; the gateway restarts by itself.
When it is refused: people see the error page. The browser’s developer tools and the gateway logs show the status and code.
| What you see | What to do |
|---|---|
Helm names a missing license.* value | Set it from your vendor’s values |
Gateway pods in CreateContainerConfigError | Create the Secret, or correct license.existingSecret and license.existingSecretKey |
503 LICENSE_CONFIGURATION_ERROR | Check the Secret holds the PEM your vendor gave you; restart the gateway |
503 LICENSE_SERVICE_UNAVAILABLE | Check license.tokenUrl and that the gateway pods can reach it; then your vendor |
403 LICENSE_DENIED | Check license.clientId, license.cellId and the address people use; then your vendor |
| Sign-in works, Administration missing | The license does not include it: ask your vendor |