Upgrades¶
Crios upgrades are a values change plus a helm upgrade. Because releases can include database migrations, always take a backup first and always run pinned version tags, so an upgrade is a decision, not an accident.
Before you upgrade¶
-
Take a backup and wait for it to finish; see backups:
-
Read the release notes. Your Crios contact ships a changelog with each release; check it for new required values, removed features, deprecations and migration notes.
-
Check health first. Upgrading an already degraded install makes diagnosis harder; look at Admin → Health or
kubectl -n <namespace> get pods.
Tip
Never run latest. Pin explicit tags (vX.Y.Z) for every Crios image so cluster state always matches a known release, and so helm rollback really returns to the previous code.
Upgrade flow¶
-
Update every image tag in
deploy/values-<org>.yamlto the new release version:orchestrator.image.tag,ui.image.tag,sandbox-manager.image.tag,stream-sidecar.image.tag,mcp-server.image.tag, everyorchestrator.sandboxImages.*entry andsandbox-manager.sandboxImages.streamSidecar. Ship them together as one release; do not mix versions across components. Compare the rest of your values file with the new release'sdeploy/values-org-template.yamltoo: the third-party images it pins (the git server, coturn, the data stores) move between releases, and your copy keeps the old pins until you change them. -
Use the chart from the new release bundle, and refresh its packaged dependencies:
-
Apply:
-
Watch the rollout:
Upgrades keep the data volumes, and the generated Secrets persist across upgrades.
Database migrations¶
You do not run migration commands by hand. Crios keeps three migration chains, all applied automatically:
| Chain | Database | Version table | When it runs |
|---|---|---|---|
| Platform | Control plane (crios-postgres) |
schema_migrations |
At orchestrator startup, before the pod serves traffic |
| Pipeline | The pipeline database: pipeline-postgres when enabled, otherwise the control-plane database |
pipeline_schema_migrations |
When the orchestrator connects to that database |
| Workflow | Same as the pipeline chain, continuing its version numbers | pipeline_schema_migrations |
Right after the pipeline chain |
Each migration is applied and recorded in one transaction, so a crash can never leave one half-applied.
Platform chain. Each new orchestrator pod checks the version table and applies anything pending. A successful boot logs Database migrations complete. The pod has up to 10 minutes for this before Kubernetes restarts it (orchestrator.startupProbe: 60 checks, 10 seconds apart); raise orchestrator.startupProbe.failureThreshold if your release notes announce a long migration. If a migration fails, the pod exits with Failed to run migrations: …; during a rolling upgrade the old pods keep serving, so read the orchestrator logs rather than retrying blindly:
Pipeline and workflow chains. These cover the collector pipeline and the workflow engine. A failure here does not stop the orchestrator: it starts without them, logs pipeline database unavailable, collector pipeline degraded, and Admin → Health shows the pipeline database as down. Fix the cause and restart the orchestrator deployment so every feature picks the database up again. Some workflow-chain steps also migrate stored data; for example, the step that removed the database source switch from workflow nodes flags affected nodes as needing setup and deactivates workflows that cannot run until a connection is bound.
Project databases hold each project's own application data, and their schema belongs to the project's app, not to Crios; upgrades do not migrate them.
With two or more orchestrator replicas, a rolling upgrade briefly runs old and new code side by side against the migrated schema. Migrations are written to be additive so this is safe; they are still forward-only (see below). Admin → Health shows the platform chain's current version.
After the upgrade¶
- All pods are
Runningwith the new image tags (kubectl -n <namespace> get pods -o wide). - Admin → Health shows every component up and the new migration version, and Admin → License the expected license state (license).
- Start a short test session to confirm sandboxes schedule and complete.
- On clusters with Kata, re-apply the Kata-default policy if the release notes ask for it (
kubectl apply -f deploy/manifests/kyverno-kata-default.yaml). Since it was renamedcrios-default-kata-runtimeand matches namespaces labelledcrios.dev/kata-default=true, label your namespace and delete the old policy (kubectl delete clusterpolicy crios-prod-default-kata-runtime --ignore-not-found).
Deployments that still hold project memory from before memory moved into each project's own database can copy it across once, as an instance admin, with POST /api/v1/admin/memory/migrate and the body {} (or {"project_id": "…"} for one project). The copy is idempotent and resumable; the response says how many rows remain.
Release notes that need action¶
Each note names the release that made the change. Check it when you upgrade from an earlier release to that release or a later one.
- From v1.4.71: finished sessions keep their event history, and so their chat transcripts, for 90 days by default; the first prune after the upgrade deletes older ones. To keep everything, set
orchestrator.config.sessionEventsRetentionDays: 0before upgrading. - From v1.4.77:
- Connecting local or private LLM endpoints is no longer part of the Free edition: it needs an Enterprise license, a license that grants
local-llm, or the operator settingCRIOS_ALLOW_LOCAL_LLM(licensing). - The per-organization session, member and publication limits bind instance admins too, unless the license exempts them (licensing).
- Connecting local or private LLM endpoints is no longer part of the Free edition: it needs an Enterprise license, a license that grants
- From v1.4.84: the per-organization workflow limit binds instance admins too, and the member limit also counts the accounts and members an instance admin adds in Admin, unless the license exempts them (licensing).
- From v1.4.309:
backup.pvc.enableddefaults tofalse. If your archives went only to the backup volume, every run fails withno destination succeededafter the upgrade: configure an S3 bucket (backups), or setbackup.pvc.enabled: trueto keep the volume. The existing volume and its archives are kept either way. - From v1.4.401:
- The values template pins the git server at
gitea/gitea1.27.3(earlier templates pinned 1.21, which has a known vulnerability, CVE-2026-60004). Setgitea.image.tagin your values file to1.27.3. Back up the git server's volume and database first: Gitea migrates its database forward when it starts, and an older version will not start on it again, so the change cannot be undone by lowering the tag. - A skill update or rollback that ships a packaged workflow the skill had dropped before this release can answer
409 workflow_name_taken, naming the skill's own former workflow. Delete or rename that workflow in the project, or ship the definition under a new name.
- The values template pins the git server at
- From v1.4.405:
- The sandbox network policy no longer opens the Android emulators' adb port to every sandbox; each Android sandbox gets a policy of its own when its emulator is created. Android sessions running across the upgrade lose their emulator connection: restart them once the upgrade is done (
kubectl -n <namespace> get pods -l app=crios-emulatorlists their emulators). Installs withoutsecurity.sandboxNetworkPolicy.enabledare unaffected. - The sandbox manager serves its metrics on port
9091instead of its health port; point any scrape configuration of your own there.
- The sandbox network policy no longer opens the Android emulators' adb port to every sandbox; each Android sandbox gets a policy of its own when its emulator is created. Android sessions running across the upgrade lose their emulator connection: restart them once the upgrade is done (
- From v1.4.407: the TURN relay refuses every cluster address except the live screen's media Service,
<release>-orchestrator-webrtc(UDP 7882), and the values template pinscoturn/coturn4.18.0instead ofinstrumentisto/coturn: copy itscoturn.imageinto your values file. The live screen through TURN drops for one to three minutes during the upgrade, and viewers reconnect on their own; voice calls do not use TURN. If that Service is ever deleted and recreated, its address changes: restart both (kubectl -n <namespace> rollout restart deploy/crios-orchestrator deploy/crios-coturn). - From v1.4.410: changing a provider's base URL (
api_base) needs its API key again in the same change, so a key never follows a new address; without it the change is refused with400. An organization still using the instance-wide provider keys from before providers became per-organization sees no key for a built-in provider it pointed at another address until it saves its own. - From the release after v1.4.433 (model endpoint guard): every call to an organization's model, embedding or speech provider now goes through one address check, made each time a connection is opened.
- In-cluster model servers must be listed in the same deploy. A provider whose base URL points inside the cluster (a Service or pod address, a
*.svcname,localhost) is refused until its exacthost:portis inorchestrator.config.llmEndpointAllowList(configuration). Before this release, enabling local models (CRIOS_ALLOW_LOCAL_LLMor the license) was enough to reach them; it no longer is, and listing the host inworkflowEgressAllowHostsdoes not help. List only servers that authenticate their callers: every organization can use a listed endpoint. To find the providers concerned, list the rows ofprovider_configwith a non-emptyapi_baseand check which resolve to a private or cluster address; also check the orchestrator's environment for a provider base URL (OPENAI_BASE_URLand the like). - If your cluster ranges are not set, private model servers on your network stop too. When
orchestrator.clusterServiceCIDR/orchestrator.clusterPodCIDRdo not match the cluster, the orchestrator logsWorkflow egress perimeter: …at start and treats every private address as inside the cluster. On the chart defaults that happens on k3s, EKS, AKS overlay, GKE, microk8s and Docker Desktop (not on kubeadm, Talos or kind). A model server on your LAN that worked with local models enabled is then refused ("endpoint address not allowed"; saving it answers400 llm_endpoint_inside_cluster). Set the two ranges to your cluster's, or list the server inllmEndpointAllowList, which works either way. With correct ranges on EKS with the VPC CNI, a model server on a VPC instance sits inside the pod range and needs an entry. - Outbound proxy. A private or in-cluster
HTTP(S)_PROXYmust be listed inllmEndpointAllowListlike a model server, provider host names must resolve from the orchestrator (a host it cannot resolve is refused), and the proxy itself must refuse your cluster's ranges. MiniMax calls now go through the proxy like every other provider's; before, they ignored it. - Redirects are not followed. A provider whose base URL only worked through a redirect fails until an organization admin enters the final URL.
- Workflow model connections with a custom endpoint. A workflow connection of type "LLM provider" could carry a hidden
base_url; it is no longer accepted, and a step bound to such a connection fails with an input error that names it. Find them withSELECT id, project_id FROM workflow_credentials WHERE cred_type = 'llm_provider' AND config ? 'base_url';on the pipeline database (CRIOS_PIPELINE_DATABASE_URL; the platform database when that is unset). Their owners open the connection under Connections and save it again (rotating the key does it too), or delete and recreate it; the connection then calls the provider's own endpoint. For a custom endpoint, an organization admin adds it as a provider (custom providers). - Provider base URLs are plain addresses. A base URL with a query (
?…), a fragment (#…) or user info (user:password@host) can no longer be saved (400 api_base_invalid), and for providers saved earlier, and for a base URL from the orchestrator's environment (OPENAI_BASE_URLand the like), those parts are no longer sent; the orchestrator logs a warning once per provider it changes. A provider that carried its credentials in the URL then answers401, and one whose URL ended in?api-version=…or similar is called at a different address. To find them, list the rows ofprovider_configwhoseapi_basematches[?#@]. Move URL credentials to an extraAuthorizationheader on the provider, and put a fixed query value into the path your gateway expects. Azure Speech (?cid=…for a custom model) and Google Speech (?location=…) keep their query. - Step errors are shorter. A failed model call's step message is the provider's name, the HTTP status and a short fixed reason; the provider's own explanation is in the orchestrator log, with the execution id.
- In-cluster model servers must be listed in the same deploy. A provider whose base URL points inside the cluster (a Service or pod address, a
- From the release after v1.4.438: the values template pins the git server at
gitea/gitea28.4.0. After 1.27.3, Gitea's versions jumped to 28.x and the 1.27 line gets no further security fixes. Setgitea.image.tagin your values file to28.4.0. Back up the git server's volume and database first: Gitea migrates its database forward when it starts, and an older version will not start on it again, so the change cannot be undone by lowering the tag. - When the upgrade stops with
vault: the Secret(s) … hold Vault's keys: this release moves Vault's unseal key and root token into a namespace of their own, where the orchestrator cannot read them. The upgrade refuses to run until you have copied them there, and changes nothing until then: follow Moving Vault's keys, then run the upgrade again. - Admission policies for the orchestrator: on Kubernetes 1.30 and newer, this release installs the orchestrator guard, which refuses anything the orchestrator creates or changes beyond what it needs. If an admission webhook of your own changes pods in the Crios namespace (a service mesh's sidecar injector, for example), upgrade with
orchestratorGuard.validationActions: [Warn, Audit]. Then use the platform for a day: sessions, Android sessions if you run the emulator, workflows with code, datastores and backups. Read what would have been refused withkubectl -n <namespace> logs deploy/crios-orchestrator | grep ValidatingAdmissionPolicy, and switch to[Deny]once nothing is there. Then rotate Vault's keys (Moving Vault's keys, step 5). If your values file setsorchestrator.config.storageMeterImage, pin it by digest: the upgrade refuses to render a tag. - Project variables through one Vault role: sandboxes now read their project's variables through one static Vault role,
crios-project-env, and the orchestrator no longer writes a Vault policy and role for each project. The change takes two upgrades, both with this release or a later one. The first keeps the orchestrator's old Vault permission for one more run, for its pods from before the upgrade that are still rolling out, and the second removes it. Run the second only once no orchestrator pod from before this release is left (kubectl -n <namespace> rollout status deploy/crios-orchestrator). After the second upgrade, ahelm rollbackpast this release leaves the older orchestrator without that permission, because a rollback runs no Vault job: sandboxes start without their project's variables, and saving variables fails. Go back withhelm upgradeand the previous release's chart and values instead, which writes the permission again, after copying Vault's keys back (Moving Vault's keys).
Moving Vault's keys¶
Vault's unseal key and root token used to live in the release namespace, as the Secrets vault-unseal-key and crios-vault-init-token. There, the orchestrator could read them, and the root token opens every secret in Vault. They now live in <namespace>-vault-keys along with the unsealer, which keeps Vault unsealed, and the job that configures Vault on every upgrade. The orchestrator cannot read them there. Vault itself stays where it is. What the orchestrator writes is held by the orchestrator guard, in [Deny], on Kubernetes 1.30 and newer: until the guard denies, the orchestrator's own permissions in the release namespace can still reach the keys, which is why step 5 waits for it.
-
Copy the keys before the upgrade. Nothing restarts. The chart creates the new namespace itself, so the labels and annotations below let Helm adopt the one you create:
NS='<namespace>' KNS=$NS-vault-keys kubectl create namespace $KNS kubectl label namespace $KNS app.kubernetes.io/managed-by=Helm app.kubernetes.io/instance=crios \ app.kubernetes.io/component=vault-keys pod-security.kubernetes.io/enforce=restricted \ pod-security.kubernetes.io/audit=restricted pod-security.kubernetes.io/warn=restricted kubectl annotate namespace $KNS meta.helm.sh/release-name=crios meta.helm.sh/release-namespace=$NS \ helm.sh/resource-policy=keep for s in vault-unseal-key crios-vault-init-token; do kubectl -n $NS get secret $s -o json \ | jq --arg ns $KNS '{apiVersion, kind, type, data, metadata: {name: .metadata.name, namespace: $ns, annotations: {"helm.sh/resource-policy": "keep"}}}' \ | kubectl create -f - done for s in vault-unseal-key crios-vault-init-token; do if a=$(set -o pipefail; kubectl -n $NS get secret $s -o jsonpath='{.data}' | shasum -a 256) && b=$(set -o pipefail; kubectl -n $KNS get secret $s -o jsonpath='{.data}' | shasum -a 256); then [ "$a" = "$b" ] && echo "$s: copied" || echo "$s: DIFFERS" else echo "$s: STOP: a read failed in $NS or $KNS" fi doneUpgrade only once both Secrets print
copied. -
Upgrade. Vault keeps running unsealed. The unsealer starts in the new namespace and reports every 5 seconds that Vault is unsealed:
-
Restart Vault once, at a quiet moment, to prove that the unsealer opens it. Until Vault is unsealed again, sessions cannot read their provider keys:
-
Delete the old copies, which anything able to read the release namespace's Secrets can still read:
-
Rotate both, once the orchestrator guard runs in
[Deny]. If you upgraded with[Warn, Audit], come back to this step after you switch: until then, a copy made after a rotation would stay valid. Moving the keys does not take back a copy someone may already have made. A new unseal key and a new root token make any old copy worthless.The order below keeps Vault open throughout, and each step is checked before the next. The new key takes over only when you send it back from its file (
-verify). You store each new secret in your password manager before the Secret that holds it changes. The unsealer gets the new key before the token changes. The old root token goes last, revoked with the new one. Don't upgrade while you rotate: the upgrade's Vault job uses the root token, and an upgrade can restart Vault or the unsealer. Take a Vault backup first: it is the last one the old key opens. Run this in a scratch directory. The keys go to Vault on stdin, and the new key and token are left in files readable only by you, so you can store them:NS='<namespace>' KNS=$NS-vault-keys umask 077; mkdir -p vault-rotate && cd vault-rotate kubectl -n $KNS get secret crios-vault-init-token -o jsonpath='{.data.token}' | base64 -d > root-token.old kubectl -n $KNS get secret vault-unseal-key -o jsonpath='{.data.unseal-key}' | base64 -d > unseal-key.old # Runs a vault command in Vault's pod with the token in the file $1. The # token goes in on the first line of stdin, the command's own input after it. vault_as() { local tf=$1; shift { cat "$tf"; echo; cat; } | kubectl -n $NS exec -i crios-vault-0 -c vault -- \ sh -c 'read -r t; export VAULT_TOKEN="$t"; exec vault "$@"' vault "$@" } # Prints each token that is not an orphan (revoking the old root token # revokes those too), each one it cannot read, and each root-policy one. scan_tokens() { { cat "$1"; echo; } | kubectl -n $NS exec -i crios-vault-0 -c vault -- sh -c ' read -r t; export VAULT_TOKEN="$t" for a in $(vault list auth/token/accessors | tail -n +3); do if ! l=$(vault token lookup -accessor "$a" 2>&1); then case "$l" in *"invalid accessor"*) ;; *) echo "unreadable: $a" ;; esac; continue fi printf "%s\n" "$l" | grep -qE "^orphan[[:space:]]+true[[:space:]]*$" || echo "child: $a" printf "%s\n" "$l" | grep -qE "^policies[[:space:]]+\[(.*[[:space:]])?root([[:space:]].*)?\]" && echo "root: $a" done; echo "scan done"' } # 0. Nothing in progress, the token is root, and the scan prints it as the # only root token, with no child and nothing unreadable. vault_as root-token.old operator rekey -status -format=json < /dev/null | jq -e '.started == false' vault_as root-token.old operator generate-root -status -format=json < /dev/null | jq -e '.started == false' vault_as root-token.old token lookup -format=json < /dev/null > lookup.json jq -e '.data.policies == ["root"]' lookup.json && jq -j .data.accessor lookup.json > old.accessor scan_tokens root-token.old # "root: <old.accessor>", then "scan done" # 1. A new unseal key. Until 1c answers complete, the old key stays the # live one, and a cancel (below) changes nothing. vault_as root-token.old operator rekey -init -key-shares=1 -key-threshold=1 -verify -format=json < /dev/null > rekey-init.json vault_as root-token.old write -format=json sys/rekey/update \ nonce="$(jq -r .nonce rekey-init.json)" key=- < unseal-key.old > rekey.json jq -e '.data.complete and .data.verification_required' rekey.json jq -j '.data.keys_base64[0]' rekey.json > unseal-key.new vault_as root-token.old write -format=json sys/rekey/verify \ nonce="$(jq -r .data.verification_nonce rekey.json)" key=- < unseal-key.new > verify.json # 1c jq -e .data.complete verify.json # the new key is live from here on # 2. Store unseal-key.new in your password manager now: it is the live key, # and only this file holds it. Then the Secret, read back, and the # unsealer, which reads its mounted copy. jq -n --rawfile k unseal-key.new '{data: {"unseal-key": ($k | @base64)}}' > patch.json kubectl -n $KNS patch secret vault-unseal-key --type merge --patch-file patch.json && rm patch.json kubectl -n $KNS get secret vault-unseal-key -o jsonpath='{.data.unseal-key}' | base64 -d | cmp - unseal-key.new && echo MATCH kubectl -n $KNS rollout restart deploy/crios-vault-unsealer kubectl -n $KNS rollout status deploy/crios-vault-unsealer --timeout=120s kubectl -n $KNS logs deploy/crios-vault-unsealer --tail=3 # "Vault is unsealed" # 3. A new root token: an orphan with the root policy and no TTL (a child # of the old token would die with it). Store it, then the Secret. vault_as root-token.old token create -policy=root -orphan -format=json < /dev/null > token.json jq -j .auth.client_token token.json > root-token.new && jq -j .auth.accessor token.json > new.accessor && rm token.json vault_as root-token.new token lookup -format=json < /dev/null | jq -e --rawfile a new.accessor \ '.data | .policies == ["root"] and .orphan == true and .ttl == 0 and .expire_time == null and .accessor == $a' jq -n --rawfile t root-token.new '{data: {token: ($t | @base64)}}' > patch.json kubectl -n $KNS patch secret crios-vault-init-token --type merge --patch-file patch.json && rm patch.json kubectl -n $KNS get secret crios-vault-init-token -o jsonpath='{.data.token}' | base64 -d | cmp - root-token.new && echo MATCH # 4. Last, the old root token, revoked by its accessor with the new token. # Its accessor must be gone, and the scan print one root token, the new. vault_as root-token.new token revoke -accessor "$(cat old.accessor)" < /dev/null if l=$(vault_as root-token.new token lookup -accessor "$(cat old.accessor)" < /dev/null 2>&1); then echo "STOP: the old token still resolves" else case "$l" in *"invalid accessor"*) echo "old token gone" ;; *) printf "STOP: %s\n" "$l" ;; esac fi scan_tokens root-token.new # "root: <new.accessor>", then "scan done"Stop at the first command that fails or prints anything else, and look. Until 1c answers complete, any doubt means a cancel: nothing has changed, and the old key stays the live one. Vault 2 cancels only with the rekey's nonce:
If 1c's own answer is lost, find out which key is live before anything else. A rekey still started (
operator rekey -status) means the verify did not take: cancel it, and the old key is live. Otherwise checkunseal-key.new. Vault takes only the live key as the current one and answersinvalid keyto any other, and the check's rekey changes nothing once cancelled:vault_as root-token.old operator rekey -init -key-shares=1 -key-threshold=1 -verify -format=json < /dev/null > check.json vault_as root-token.old write -format=json sys/rekey/update \ nonce="$(jq -r .nonce check.json)" key=- < unseal-key.new | jq -e .data.complete # true: the new key is live vault_as root-token.old operator rekey -cancel -nonce="$(jq -r .nonce check.json)" < /dev/nullFrom 1c until the unsealer restarts in 2, the unsealer still has the old key, so if Vault restarts it stays sealed: unseal it by hand with
unseal-key.new. After the block, restart Vault once more (step 3). Under a runtime that boots each pod in a virtual machine, such as Kata Containers, Vault can stay sealed for a minute or more, and anything that reads Vault meanwhile fails. Then take a backup, the first that opens with the new key, and delete the directory.
Keep the old unseal key and root token while you keep older backups
A Vault restored from a backup taken before the rotation opens only with the unseal key it had then, and refuses the new one; it also knows only the root token it had then. Keep the old key and token in escrow, labelled with the date you rotated, until the last backup from before that date has expired.
To go back to the previous release, copy the two Secrets back into the release namespace first, then roll back: the previous release's unsealer reads them there. The block below reads each Secret in the key namespace first, and stops with the old copy left in place if it is missing there. Then it deletes any old copy left in the release namespace (after step 5 it holds the old key) and creates a new one. If the key namespace has lost them, create them from your password manager instead. Don't copy them with kubectl apply: it writes each Secret, key included, into its kubectl.kubernetes.io/last-applied-configuration annotation, and the check stops on that annotation:
NS='<namespace>'
KNS=$NS-vault-keys
for s in vault-unseal-key crios-vault-init-token; do
kubectl -n $KNS get secret $s > /dev/null || { echo "$s: STOP: not in $KNS"; continue; }
kubectl -n $NS delete secret $s --ignore-not-found
kubectl -n $KNS get secret $s -o json \
| jq --arg ns $NS '{apiVersion, kind, type, data,
metadata: {name: .metadata.name, namespace: $ns, annotations: {"helm.sh/resource-policy": "keep"}}}' \
| kubectl create -f -
done
for s in vault-unseal-key crios-vault-init-token; do
if a=$(set -o pipefail; kubectl -n $KNS get secret $s -o jsonpath='{.data}' | shasum -a 256) &&
b=$(set -o pipefail; kubectl -n $NS get secret $s -o jsonpath='{.data}' | shasum -a 256); then
[ "$a" = "$b" ] && echo "$s: copied" || echo "$s: DIFFERS"
kubectl -n $NS get secret $s -o json \
| jq -e '(.metadata.annotations // {}) | has("kubectl.kubernetes.io/last-applied-configuration") | not' > /dev/null \
&& echo "$s: no last-applied annotation" || echo "$s: STOP: its last-applied annotation holds a copy of the key"
else
echo "$s: STOP: a read failed in $KNS or $NS"
fi
done
Once both Secrets print copied and no last-applied annotation, check the revision you go back to (helm history lists them). Its manifest must not hold the two Secrets:
helm -n $NS history crios
if m=$(helm -n $NS get manifest crios --revision '<previous-revision>' 2>&1); then
printf '%s\n' "$m" | grep -E "^ name: (vault-unseal-key|crios-vault-init-token)" || echo "no key Secret in it"
else
printf "STOP: %s\n" "$m"
fi
unset m
If it prints no key Secret in it, roll back (below). If it prints a name, don't roll back to that revision: it rendered the Secrets itself, as an install does when nothing created them first, so its manifest holds the values rendered then, not your live key and token. Helm 3 refuses that rollback. Helm 4 rolls back the rest of the release and fails on a conflict over the Secrets' data, and with --force-conflicts it succeeds and writes those values over the live key and token. Go back with helm upgrade instead, with the previous release's chart version and your values: the chart finds the Secrets you copied and leaves them alone. If it prints STOP, Helm hasn't read that revision, and the check has no answer: Helm's error follows STOP. Correct the revision number and run the check again. A revision that helm history no longer lists can't be rolled back to: go back with helm upgrade, as just described.
Rolling back¶
helm rollback restores the previous chart and images:
Warning
Rollback covers application code only. Database migrations are forward-only: a newer schema is generally tolerated by the immediately previous release, but that is not guaranteed, and Helm cannot un-migrate. To truly return to the pre-upgrade state, restore the pre-upgrade backup (for the control-plane database, ./scripts/backup/restore-dr.sh <archive> --namespace <namespace> --release crios --components postgres; see backups), then reinstall the previous release.
If an upgrade fails in a way you cannot diagnose, capture the orchestrator logs and the helm history output and contact Crios support; see troubleshooting for what to collect.