Skip to content

Keyorix v0.97.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 21:13
· 1613 commits to main since this release
2695b6f

Keyorix v0.97.0 — release notes

v0.97.0 is a minor release with breaking changes. If you run v0.96.x, read
Before you upgrade first, then
UPGRADING.md §6k and the
v0.97 upgrade checklist.

The complete list of changes is the ## v0.97.0 section of CHANGELOG.md.
This page is the short version: what an operator has to do, and what a first-time user
walking the product will notice.

Supported upgrade path. v0.96.x to v0.97.x is supported. Coming from an older release,
step through each minor and read its notes
(VERSIONING.md).

Rollback is a restore. v0.97.0 raises the schema compatibility floor (floor 3, schema
epoch 10). A v0.96.x binary refuses to start on a database a v0.97 server has started
against, and nothing lowers the floor. Take a backup before upgrading
(UPGRADING.md §6q, upgrade-rollback.md).

Before you upgrade

Change Who is affected What to do Details
The CLI refuses secrets given as flags (--password, --value, --mfa-code, and others) scripts and CI that call keyorix pass them through KEYORIX_* / KEYORIX_*_FILE, stdin or --from-file UPGRADING §6l
CLI webhook URLs and tokens stay off the command line scripts that pass a notification --url use --url-file or the environment UPGRADING §6x
CLI exit codes 2 to 6 scripts that test for exit code 1 branch on 0 to 6 UPGRADING §6m
KEYORIX_BOOTSTRAP_TOKEN shorter than 32 characters is refused installs that pin a short token use a longer token, for example openssl rand -hex 32 UPGRADING §6g
server.grpc.tls.auto_cert: true is refused configs with that line remove it and give gRPC a certificate UPGRADING §6t
mfa.failed and the other *_failed audit rows are stored with success=false SIEM rules, exports, reports match older history on event_type UPGRADING §6u
PostgreSQL session_replication_role must be origin databases or roles that set another default; Helm postgresql.settings remove the setting before the new server starts UPGRADING §6n
Grants fail closed when their audit row cannot be written automation that creates users, roles, shares or tokens after a 500 on those calls, check whether the object or grant already exists before retrying UPGRADING §6o, §6o.1
A v0.96.x binary cannot start on an upgraded database everyone who may roll back; multi-replica rollouts plan rollback as a restore UPGRADING §6q, §7
PostgreSQL: the server checks it holds the database's data key (DEK) multi-replica installs and anyone rotating the DEK upgrade every replica before the next DEK rotation UPGRADING §6s
A weak SCIM token and an unneeded KMS context fallback are refused at start-up SCIM installs; aws-kms / gcp-kms installs replace the token; remove the fallback flag UPGRADING §6i
SCIM no longer creates or manages sso: accounts installs with SCIM next to SSO run the check query in the section UPGRADING §6v
"Last used" in access recertification means "within the review period" recertification reviewers raise recertification.cadence_days for a longer look-back UPGRADING §6w
audit_durability defaults to standard on PostgreSQL PostgreSQL installs set audit_durability: strict to keep the old behaviour UPGRADING §6c
PostgreSQL verify-full / verify-ca needs ssl_root_cert; ssl_mode is an allowlist; Compose Postgres runs over TLS external PostgreSQL, Compose see the section UPGRADING §2
admin init writes environment: production; development replaces allowed_origins hand-written configs that say environment: development use production, staging or local UPGRADING §6b
Roles carry an assignable scope; the legacy roles (admin, editor, viewer, auditor, super_admin) are install-wide only API clients that grant roles on a project send assignable_scope on role create; grant project_* roles on a project UPGRADING §6z, §6zh
Project names are unique ignoring case and Unicode normalization (schema epoch 10) installs with two live projects whose names fold to the same value the server refuses to start and changes nothing; with it stopped, rename one project of each listed group (the SQL is in the note) UPGRADING §6zk
Setting a member's roles checks authority over every requested role automation that calls the member-roles or user-roles endpoints the same request can now answer 403 UPGRADING §6zn
A Shamir share file that fails the owner and mode rule stops the server installs with the shamir key provider that read share files fix the file's owner and mode UPGRADING §6zo
admin backup on PostgreSQL refuses while its key directory holds a stale DEK backups taken from any replica right after a DEK rotation distribute the new key set first UPGRADING §6zb
Dynamic-secret configs whose admin_dsn names a server file fail on issue and renew dynamic-secret configs stored before #3952 remove the option; see the note UPGRADING §6zf
Config keys that are ignored today and rejected after the next minor release configs written by admin init up to v0.96.x delete secrets.chunking, secrets.limits.max_secrets_per_user and server.http.keepalive UPGRADING §6zg
Security: Vault access migrated with keyorix-migrate v0.96.0 to v0.96.3 may be wider than the Vault policy installs that ran keyorix-migrate vault apply-access run keyorix-migrate vault audit-access and revoke what it lists UPGRADING §6y
A * inside server.http.allowed_origins (or server.http.domain) refuses to start configs with https://* or https://*.example.com list each origin explicitly UPGRADING §6ze
Boot failures exit 78 (operator must fix) or 75 (dependency may come back); the shipped systemd unit stops restarting on 78 supervisors and scripts that test for exit 1 treat 78 as "fix the config", 75 as "retry" UPGRADING §6zd
admin restore --overwrite-existing refuses a target that holds data; admin restore refuses a target whose servers use a newer DEK rotation protocol restore scripts add --replace-existing-data to replace data; restore with a binary at least as new as the target UPGRADING §6zs
MongoDB tlsInsecure=true and Redis skip_verify=true in a dynamic-secret admin_dsn are refused; MySQL compress=true fails to connect dynamic-secret configs with those options remove the option, or set the transport opt-out flag and accept the warning UPGRADING §6zi, §6zl, §6zj
Security: a PostgreSQL or MySQL dynamic-secret admin_dsn must verify the server certificate (sslmode=verify-full, tls=true); a plain sslmode or no tls is refused on save PostgreSQL configs without sslmode=verify-full, MySQL configs without tls=true give the database a trusted certificate and set-admin-dsn; stored configs keep issuing with a WARNING and an audit event for this release only UPGRADING §6zt
GET /api/v1/secrets/{id}/versions returns total_reads only with ?include=total_reads API and SDK callers that read it add the query parameter UPGRADING §6zs
Trusted proxies and token allowlists written as ::ffff:a.b.c.d mean that IPv4 host, not ::/32 configs and tokens with such entries re-issue ::ffff: allowlist entries with a prefix below 96 as plain IPv4 CIDRs UPGRADING §6zs
The Kubernetes sync agent rejects unknown config keys and needs a v0.95.0 or newer server k8s-sync configs with extra or misspelt keys remove them; upgrade the server first UPGRADING §6zs
Outbound webhooks to 100.64.0.0/10 (CGNAT) are refused notification channels or evidence webhooks in that range move the receiver UPGRADING §6zq

Right after the upgrade: audit verify

On the first start after an upgrade from v0.96.x, the server now re-walks the audit chain at
once, because v0.96.x left no record that a full verification had completed. The start log
shows Audit-checkpoint scheduler enabled ... first tick in 0s.

  • A chain of up to 100,000 audit events is covered by that first re-walk, so a plain
    keyorix audit verify reads VALID.
  • A longer chain is re-walked in 7 segments, one per daily tick. Until the last one, plain
    audit verify reads NOT PROVEN. That is the fail-closed answer, not damage to the chain.
    Run keyorix audit verify --full once to prove the whole chain now.
  • A chain with an edited row still reads BROKEN and names the first bad event.
    The meaning of VALID, NOT PROVEN and BROKEN did not change.

A post-upgrade check script should call keyorix audit verify --full: it gives the same
answer for every chain length. Details: UPGRADING §6zc.

The same first start also scans the audit history once in the background for
recover-admin alerting, in windows of 100,000 rows, saving its position after each one.
The server answers requests while it runs, a stop part-way resumes where it left off,
and nothing in the audit table is changed (UPGRADING §6j).

What a first-time user will notice

These are the fixes that came out of walking the product end to end with the release
binaries (docs/demo/GOLDEN-PATH.md is the script).

  • Audit search finds machine identities. keyorix audit search --actor <name>
    (GET /api/v1/audit/search?actor=) now also matches machine identities by a partial,
    case-insensitive name, so a name shown in the ACTOR column can be searched for. Before, only
    user names matched.
  • Break-glass events name the person. The break_glass.activated and
    break_glass.revoked audit descriptions say user 2 ("dana") instead of a bare user 2,
    and the break-glass list response carries the username. When the name cannot be read, the
    bare id stays.
  • A missing key directory is reported as a missing key directory. keyorix-server admin encryption init and the other key-directory commands used to say a live server might be
    using the key directory. They now say that only when another process really holds the key
    lock. A missing directory reads: key directory <dir> does not exist: run `keyorix-server admin init` (or create it with mode 0700).
  • Clearer next steps in the CLI. After admin recover-admin, a session that must set its
    own password is told to run keyorix change-password and then keyorix mfa enroll.
    keyorix system init with a wrong bootstrap token says to check KEYORIX_BOOTSTRAP_TOKEN
    or KEYORIX_BOOTSTRAP_TOKEN_FILE against the token the server started with. user create --help and logout --help describe what they really do, and every --role example in the
    help is a role that exists (project_developer, not developer).
  • Tampered audit rows are explained in plain words. admin verify-audit now says the
    recorded entry_hash does not match the row's contents and the row was changed after it was
    written. Result fields, exit codes and JSON keys are unchanged.
  • The dashboard's Recent Activity is not filled with scheduler heartbeats.
    GET /api/v1/dashboard/activity leaves out the admin_job.* rows the system actor writes
    (the anomaly-alerts job wrote one every pass). A run an admin started still shows, and the
    Audit Log page still lists every row.
  • The Audit Log page filters search the whole log. The actor, actor-type (Human /
    Machine) and event-type filters are sent to the server, so a machine identity's events are
    found however old they are, not only among the 100 newest rows. No API change.
  • The Compliance audit-chain tile says what it counted. GET /api/v1/compliance/posture
    audit_integrity now carries head_id and, when the last chain check is older than a
    minute, stale, latest_event_id and events_since_check. The tile shows the head id,
    when the chain was last checked and at most how many newer events are not verified yet.
    A broken, sealed or not-proven chain reads "not verified", not "N events verified".
  • security.anomaly_detected rows always name actor system. An admin's on-demand run
    used to store type user with no user id and showed as actor "unknown".
  • First-run refusals have typed codes. POST /system/init answers 403
    InvalidBootstrapToken for a wrong or missing token and 403 BootstrapAPIDisabled (with
    the hint to set KEYORIX_BOOTSTRAP_TOKEN or run keyorix system init on the host) when the
    server has no bootstrap token. The token check and the order of checks are unchanged.
  • An un-migrated audit hash encoding is explained as an upgrade step. audit verify
    says the event was hashed with the old audit-hash format, that this is an upgrade step
    that was not run and not evidence of tampering, and to run keyorix audit migrate-chain-encoding (preview first, then --confirm). The offline verify result gains
    a stable reason_code of legacy_hash_encoding.
  • The demo script says why it waits. The scripts/demo scripts (up.sh, seed-demo.sh) print the expected
    wait for the anomaly detector's first pass and a heartbeat line every 15 seconds, instead
    of staying silent for minutes.
  • keyorix secret versions no longer prints an internal note about size and algorithm
    columns.
  • keyorix logout keeps your server URL and ca_file. It revokes the session and removes
    the token; the next login against a server with a self-signed certificate works without
    repeating keyorix config set ca_file. To forget them too, run
    keyorix config unset ca_file. (v0.96.3 and older deleted the whole file.)

Also in this release

Each item links to its documentation; the full list is in CHANGELOG.md.

  • Audit durability. storage.database.audit_durability is strict or standard
    (default standard on PostgreSQL). UPGRADING §6c.
  • Multiple server replicas. storage.encryption.key_dir_lock: database coordinates
    replicas, each with its own key directory, through the database; the Helm chart accepts
    server.replicas above 1 in Secret mode.
    multi-replica-keys.md.
  • PgBouncer. storage.database.pooler supports session and transaction pooling.
    postgresql-poolers.md.
  • Single-writer mode for PostgreSQL, one server only (storage.database.single_writer).
    single-writer.md, UPGRADING §6f.
  • Break-glass has a tab on the web project page, and keeps working in a degraded mode
    while the audit log is down (break_glass.degraded_ttl). UPGRADING §6o.1.
  • Incremental audit-chain verification runs in the background instead of on the request
    path, which is why the first-start behaviour above exists.
  • keyorix doctor, a read-only first-line checklist for a CLI install
    (cli-reference.md).
  • Structured logs. server.log.format: json writes one JSON object per log line.
  • Listener limits. REST headers are limited to 64 KiB (431), and gRPC has idle,
    handshake, stream and metadata caps. UPGRADING §6p.
  • Replace a dynamic-secret config's admin DSN in place, and find the configs that
    need it: keyorix dynamic-secret set-admin-dsn <config-id> and keyorix dynamic-secret refused-dsn --project-id N, also on the web.
  • A recovery code can replace a lost authenticator when re-authentication asks for
    a second factor.
  • Backups blocked by a leftover key-rotation file are visible and fixable.
    keyorix-server admin encryption clear-stale-salt-pending removes an unused
    kek.salt.pending; the refusal is an admin.backup_refused audit event, shows in the
    posture, and administrators see a banner in the web UI (UPGRADING §6zb, §6zr).
  • Defence in depth on authorization. The core now makes the project and permission
    decision itself on bulk rotate, delete, rename, suspend, resume and extend, and on 19
    other operations that relied on the transport alone. Suspended or deprovisioned accounts
    are refused at every mutating entry point.
  • Dynamic secrets and connectors are hardened against hostile servers: bounded reply
    and message sizes for the PostgreSQL, MySQL and Redis clients, contained client panics,
    no orphaned accounts when an issue fails half-way.
  • Errors you can act on. Many ordinary refusals that answered 500 now answer 400, 403,
    404 or 409, and storage faults answer 503 with Retry-After, on REST, gRPC and SCIM.
  • Timestamps are stored in UTC on non-UTC hosts, and a database upgraded from an older
    release now has the same schema as a fresh install.
  • Crypto inventory scoring is configurable with crypto_inventory.quantum_horizon,
    migration_years and unbounded_lifetime_years; the settings change the reported score
    only and nothing is enforced (design-crypto-inventory.md).

New configuration keys since v0.96.3

20 keys were added to the YAML surface; none was removed or renamed. Each is documented in
CONFIGURATION.md.

Key Default Notes
storage.database.ssl_root_cert unset required with ssl_mode verify-full / verify-ca
storage.database.audit_durability standard on PostgreSQL strict keeps the old behaviour; supersedes insecure_audit_skip_durable_sync
storage.database.insecure_audit_skip_reads false opt-out; flagged by the posture check (UPGRADING §6e)
storage.database.single_writer false PostgreSQL, one server only
storage.database.pooler unset pgbouncer-session or pgbouncer-transaction
storage.database.native_read_pool_max 8 PostgreSQL only
storage.database.fdatasync false SQLite only
storage.encryption.key_dir_lock flock database for several replicas
break_glass.degraded_ttl 15m lifetime of a break-glass activation granted while the audit log is down
crypto_inventory.quantum_horizon 2035-01-01 scoring only
crypto_inventory.migration_years 3 scoring only
crypto_inventory.unbounded_lifetime_years 10 scoring only
server.http.hsts_preload false HTTP only; server.grpc.hsts_preload parses and warns
server.grpc.keepalive.max_connection_idle 15m cannot be set to 0
server.grpc.keepalive.handshake_timeout 10s cannot be set to 0
server.http.keepalive.max_connection_idle, server.http.keepalive.handshake_timeout n/a parse and do nothing; do not set them (see the ignored-keys row above)
server.access_log.on_sink_stall block drop keeps serving when the log sink stalls
server.log.format text json for one object per line

Helm

No value was renamed or removed. New values are additive: server.singleWriter,
server.replicas above 1 with server.keysSecret.*, server.podDisruptionBudget.*,
server.topologySpreadConstraints, web.topologySpreadConstraints, server.trustedProxies,
server.accessLog.onSinkStall, server.goMemLimit / server.goMemLimitPercent,
server.probes.*, postgresql.settings, auditDurability,
externalDatabase.{sslRootCert,caSecret,pooler}, networkPolicy.egress.{databaseTo,kmsTo,kmsPorts},
networkPolicy.ingress.* and monitoring.serviceMonitor.*.

Two behaviours to know, both checked with helm template:

  • server.replicas above 1 fails the render unless Secret mode is on
    (server.keysSecret.enabled=true, server.keysSecret.name,
    server.keysPersistence.enabled=false): every replica reads the same key files read-only.
    singleWriter must be false with more than one replica.
  • postgresql.settings.session_replication_role is rejected by values.schema.json.

postgresql.auth.password no longer has an empty placeholder in values.yaml; the render
already failed when it was unset.