Skip to content
Unified Defense StackUnified Defense Stack
You're viewing unreleased documentation from main. Go to the latest release

UDS Core 1.18

UDS Core 1.18.0 extends Keycloak ownership checks to client roles and secrets and updates Grafana across all flavors. Before upgrading, check ownership on any Keycloak clients that changed hands and review the backup guidance if you use Velero.

Review the changes that affect existing clients, backups, and custom configurations.

ChangeImpactAction required
Keycloak client ownershipA missing or outdated created-by attribute can block single sign-on (SSO) reconciliation or deny access to a client’s roles or secret.For affected clients, check the recorded owner and set it to the managing service account’s client ID if needed.
Velero 1.19Velero can no longer restore Restic backups and ignores credentials set through spec.config.credentialsFile.Check your backups and credentials before upgrading.
Loki Helm chart: removed and unsupported valuesThe chart removes bundled MinIO and its minio and ignoreMinioDeprecation values. Helm also rejects previously tolerated top-level keys, including clusterLabelOverride and enterprise, which Core removed from its defaults.Remove these keys from custom Loki values. If you enabled bundled MinIO with minio.enabled, migrate to external object storage before upgrading.
Loki Helm chart: indexGateway.joinMemberlistThe chart removes this unused value.Remove it from custom Loki values.
Authservice 1.1.11Custom request exclusions can match fewer paths.If you configure trigger_rules outside the Core defaults, review your rules and health checks.

This release includes security fixes and updates to Keycloak, Velero, package metadata, and the development bundle.

  • Authservice and Grafana include security fixes. See the Authservice advisory and the Grafana 13.3.2 changelog.
  • Keycloak disables hardware-accelerated Base64 encoding and decoding. UDS Core 1.17.2 also includes this fix. #3240
  • Velero ships with schemas that match the 1.19 server, so Kubernetes accepts new fields such as Backup.spec.backupType. #3272
  • UDS Core packages now link to their source repository. #3220
  • The k3d-standard-next development bundle sets the Pepr watcher memory limit to 768Mi by default. #3230

The table shows changes since UDS Core 1.17.0. Version 1.17.1 already includes the upstream Prometheus Operator and config reloader updates. Version 1.17.2 also includes the Gateway API and Istio updates.

Component1.17.01.18.0
Alertmanager0.34.20.35.1
Authservice1.1.81.1.11
Gateway API CRDs1.6.31.7.0
Grafana13.3.013.3.2
Grafana Helm chart14.3.114.7.0
Grafana UBI 9 minimal image (Iron Bank)9.89.9
Istio Helm charts (all flavors) and images (upstream and Unicorn)1.31.21.32.0
k8s-sidecar (Loki)2.14.12.14.3
kube-prometheus-stack Helm chart93.1.094.3.0
Loki3.7.93.7.11
Loki Helm chart19.0.321.6.4
Memcached (Loki, Iron Bank and Unicorn)1.6.451.6.46
NGINX (Loki gateway, Iron Bank and Unicorn)1.31.71.31.10
Node Exporter1.12.11.13.1
Prometheus Blackbox Exporter Helm chart11.21.112.0.0
Prometheus Operator and config reloader0.95.10.95.2
Prometheus webhook certificate generator (Unicorn)1.15.121.15.17
prometheus-operator-crds Helm chart33.0.133.0.2
UDS Identity Config0.32.60.33.0
UDS Portal and Helm chart0.6.20.6.3
Velero1.18.41.19.0
Velero Helm chart12.2.112.2.5
Velero plugin for AWS1.14.41.15.0
Velero plugin for Microsoft Azure1.14.41.15.0

Follow only the steps that apply to your deployment.

  1. Check Velero backup recovery and credentials

    If you still rely on Restic backups, keep access to a Velero version that can restore them. Before upgrading, create and verify replacement backups for data you still need to recover. See Velero’s 1.19 upgrade guidance.

    UDS Core updates the Velero CRDs and the server and plugin images during the upgrade. You do not need to update them separately.

    If a BackupStorageLocation or VolumeSnapshotLocation uses spec.config.credentialsFile, move those credentials to a Secret in the velero namespace and reference its name and key through spec.credential. See the Velero 1.19 release notes.

  2. Review custom Loki Helm values

    If you use the bundled MinIO subchart, follow the Loki chart upgrade notes to migrate to external object storage while still on chart 19.x. Check custom overrides against the new chart schema before deploying. Core sets gateway.type: nginx and does not expose it as a package value.

    Core leaves the rollout operator disabled by default. If you set rollout_operator.enabled: true and leave rollout_operator.webhooks.failurePolicy unset, the default changes from Ignore to Fail. Verify that the webhook is reachable before upgrading. If it is unavailable, Kubernetes can reject StatefulSet updates and pod evictions in the release namespace.

  3. Review custom Authservice trigger rules

    If you supply trigger_rules, check that each regular expression exclusion matches the whole path. Verify any health checks that depend on an exclusion. See the Authservice 1.1.11 release notes.

  4. Review custom monitoring settings

    If a custom Alertmanager or Thanos Ruler configuration needs Kubernetes API access, review the kube-prometheus-stack changes. The chart no longer mounts service account tokens in those workloads by default. If your platform rejects explicit seccomp profiles, check admission for Blackbox Exporter pods against the chart’s new RuntimeDefault setting. See the Blackbox Exporter upgrade notes.

UDS Identity Config 0.33.0 extends ownership checks in the uds realm to client roles and secrets. When the UDS Operator or Fleet Admin creates a client, Keycloak sets created-by to uds-operator or uds-fleet-admin, respectively. If the same account still manages the client, you normally have nothing to change. OpenTofu-only clients need no change unless you added uds-opentofu-client to ownership-enforced-clients.

Before upgrading, check created-by on clients that an enrolled service account took over. After upgrading, check it if Package SSO reconciliation fails with unauthorized_client or a request for a client role or secret returns 403 Forbidden.

  1. Check the affected client’s recorded owner

    Sign in to the uds realm as an administrator through an unenrolled client and set KEYCLOAK_TOKEN to your access token. In Bash, replace the admin gateway URL and target client ID, then read the current owner with curl and jq. Use your trusted CA for the admin gateway.

    Terminal window
    set -euo pipefail
    : "${KEYCLOAK_TOKEN:?Set KEYCLOAK_TOKEN to an administrator access token}"
    CLIENTS_URL='https://keycloak.admin.uds.dev/admin/realms/uds/clients'
    TARGET_CLIENT_ID='<client-to-migrate>'
    keycloak() {
    curl --fail-with-body --silent --show-error \
    -H "Authorization: Bearer $KEYCLOAK_TOKEN" "$@"
    }
    CLIENT_UUID=$(keycloak --get --data-urlencode "clientId=$TARGET_CLIENT_ID" "$CLIENTS_URL" \
    | jq -er --arg id "$TARGET_CLIENT_ID" '
    map(select(.clientId == $id))
    | if length == 1 then .[0].id | select(type == "string" and length > 0)
    else error("Expected exactly one matching client") end')
    CLIENT_URL="$CLIENTS_URL/$CLIENT_UUID"
    keycloak "$CLIENT_URL" | jq '.attributes["created-by"]'

    A null result means the attribute is missing. Record the result and confirm which service account manages this client. If the IDs match, skip the update.

  2. Correct the owner and verify the change

    Pause automation for the affected client. In the same shell, set OWNER_CLIENT_ID to the managing service account’s client ID. The update preserves the client’s Authorization Services setting.

    Terminal window
    : "${OWNER_CLIENT_ID:?Set OWNER_CLIENT_ID to the client ID of the managing service account}"
    # Keycloak disables Authorization Services if the update omits this field.
    AUTHZ_ENABLED=$(keycloak "$CLIENT_URL" | jq '.authorizationServicesEnabled // false')
    jq -n --arg owner "$OWNER_CLIENT_ID" --argjson enabled "$AUTHZ_ENABLED" \
    '{authorizationServicesEnabled: $enabled, attributes: {"created-by": $owner}}' \
    | keycloak -X PUT -H 'Content-Type: application/json' --data-binary @- "$CLIENT_URL"
    # Expect true.
    keycloak "$CLIENT_URL" | jq -e --arg owner "$OWNER_CLIENT_ID" --argjson enabled "$AUTHZ_ENABLED" \
    '.attributes["created-by"] == $owner and (.authorizationServicesEnabled // false) == $enabled'

    Once the check returns true, resume automation and retry the original reconciliation or role or secret request. Client roles inherit their client’s owner.