Skip to content

v1.8.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 13:13

Kryptkeeper 1.8.0

Kryptkeeper 1.8 can fix two things in your cloud accounts, and only after a second person has read the exact plan and
approved it. Everything before 1.8 only read. Acting is off on every install, for every tenant and for every source
until someone turns it on, and one environment variable stops it for the whole hub. Migrations 000407 and 000408 add
two tables and two columns; nothing existing is rewritten.

Added

  • Propose a fix from a finding (preview). Two action types:
    • crypto.key.enable_rotation turns on automatic rotation of one key in AWS KMS, Azure Key Vault or Google Cloud KMS.
    • crypto.default_encryption.set sets the default encryption key of one Amazon S3 or Google Cloud Storage bucket to
      a customer-managed key you chose. New writes only; existing objects are not rewritten.
  • A frozen plan the approver signs. A read-only dry run records the resource, its state now, the state expected
    afterwards, the provider calls in order and the undo, and hashes it. The approval must carry that hash. A different
    hash answers 409, and a plan older than an hour is refused as stale, so you propose again for a fresh plan.
  • Runs that check themselves. Approving answers 202 with a run id. A background worker runs each step, re-reads the
    resource before writing, reads it back through the read credential afterwards, and undoes the change if a step or the
    check fails. Runs survive a hub restart and resume at the last recorded step.
  • Undo after the fact. A finished run can be undone for 24 hours by filing a new proposal, which needs its own
    approval.
  • A separate write credential per source. It must differ from the read credential, belongs to one tenant, is
    resolved for one run and never appears in a plan, run record, log or audit row. The read credential stays read-only.
  • Narrow policies, published. Provider pages give the exact policy or role to create for AWS, Azure and Google
    Cloud, with every unconfirmed permission string marked. See actions/aws.md,
    actions/azure.md and actions/google-cloud.md.
  • Limits. One resource per proposal; 5 open proposals and 3 runs a day per source; one active run per resource;
    proposals expire after 24 hours. The two counts and the expiry are settings.
  • An Actions page (Crypto estate in the sidebar, marked Preview) with settings, pending proposals, the plan view,
    the run timeline, undo, and banners while a run is in progress or the kill switch is set.
  • API: /api/v1/actions/suggestions, /dry-run, /proposals, /runs, /runs/{id}, /runs/{id}/undo,
    /settings, /sources/{id}, /sources/{id}/write-credential and /test-write-access, all in the OpenAPI document.
  • Operator guide: ACTIONS.md. The threat model has a new section for the acting surface.

How it is kept safe

  • Off by default, at install and after upgrade. Turning a tenant on files a proposal that a second person approves.
    A source also needs its own write credential.
  • Kill switch. KRYPTKEEPER_ACTIONS_DISABLED=1 in the hub's environment beats every setting and cannot be changed
    through the API. Restart the hub to apply it; unfinished runs undo.
  • No approval, no change. The proposer cannot approve their own proposal, break-glass cannot approve an acting type,
    and the MCP agent role cannot approve. A tenant with one person cannot approve anything, and says so.
  • Only undoable actions. Both types restore the earlier state. Nothing destroys a key or rewrites data.

Preview, and what has been proven

Acting is marked Preview. AWS is proven only against AWS's own emulator (the lab record is still to be written). Azure Key Vault and Google Cloud are proven
against recorded responses that follow each provider's API reference. No type has run on a real account, and the
Preview label stays on each cloud until that run is recorded. See PREVIEW_REGISTER.md.

Not in this release

Tracked on the roadmap:

  • Rotate a key now. crypto.key.rotate_now is dropped from 1.8: no provider offers a call that undoes a rotation
    (decision D-389). It may return as a forward-only type that says so.
  • Vault and OpenBao actions. No action type in 1.8.
  • A per-source rotation period for Azure and Google Cloud (both use 90 days; an Azure key whose current version is older
    than that is refused).
  • A working Test write access. The route exists but always answers cannot_tell in 1.8, because no provider probe is
    connected. Review the write policy against the provider page by hand.
  • A finding and a notification when a run ends needs_attention (an audit row and a log line are written), an Actions
    section in the evidence pack, and MCP tools to propose or read runs.
  • A proposal cap shared by several hubs on one database.
  • Step-down to least-privilege accounts and scheduled rotation of Kryptkeeper's own credentials: planned for 1.9.

Upgrading

Nothing changes until you turn acting on. Migrations 000407 (action_runs) and 000408 (action_tenant_settings, and
act_enabled and act_credential_ref on crypto_sources) run at start. To try it, follow section 4 of
ACTIONS.md.