Skip to content

v0.3.0

Latest

Choose a tag to compare

@antgoncj antgoncj released this 30 Nov 23:16
78e957a

What's Changed

  • Breaking: credential/get's scope is now a JSON string holding one IAM policy document's text, and it is applied rather than accepted and ignored. A scope given as an object is invalid params. For Rust consumers, credsd_core::rpc::Scope changed from Scope(Value) to Scope(String), so code that constructs one will not compile.
  • Added scoped credentials. A credential can carry a boundary policy that narrows every session served for it, however it is asked for, and a single fetch can narrow further on top of it: creds boundary set / unset / show, creds bootstrap --boundary-policy, creds get --policy, and the boundary/set, boundary/unset and boundary/get RPC methods (also boundary_set, boundary_unset and boundary_get in credsd-client). Policies are taken inline, as file://<path>, or as fileb://<path>; creds sends the text and the daemon never opens a path. Each layer is one sts:GetScopedCredentials call against the credential's regional STS endpoint, so only AWS session credentials can be narrowed, and a policy AWS refuses is never stored.
  • A policy must be one JSON object, repeat no key at any depth, use only U+0020–U+00FF plus tab, LF and CR, and compact to at most 2,048 bytes. A refusal is VALIDATION_ERROR with data.reason naming the check.
  • A fetch that applies a scope returns provenance: "minted_for_request" — the session is that request's alone. Before this release provenance was always cached_shared.
  • Boundary changes are presence-gated. Adding a first boundary needs no approval, because it can only remove permissions; replacing a different boundary or removing one does, and the challenge shows both digests and the document. An aws-login bootstrap that names a boundary different from the stored one is now a gated replace even when nothing else moves; omitting --boundary-policy keeps the stored boundary, and a bootstrap never removes one.
  • credentials.toml gained boundary_policy on AWS session credentials, written by creds boundary set rather than by hand. Whitespace and key order in it never count as drift; its content does. A boundary_policy that is not a valid policy, or one on any other credential type, makes that credential alone CONFIG_INVALID — it is never served without its boundary, and other credentials are unaffected.
  • Added error codes VALIDATION_ERROR, SCOPE_DENIED and SCOPE_UNSUPPORTED_SOURCE. A refused policy or layer serves nothing broader than the boundary allows, and carries data.reason, data.layer, data.digest and a data.remediation the client prints as is; a session STS rejects outright still comes back as REAUTH_REQUIRED. The audit trail records scoping: a credential.scoped event with the boundary and scope digests, the layer count and the outcome. Policy documents are never logged whole.
  • credential/get and credential/list accept an environment param again, where v0.2.0 made it invalid params. It names a credential: environment: "dev" is served and audited exactly as credential: "dev", credential/list with it keeps just that credential, a credential and an environment that disagree is invalid params, and a miss by environment is ENVIRONMENT_NOT_FOUND. creds itself still rejects --environment/--env.
  • An aws-web-identity refresh token that ends in a browser re-authentication is now cleared instead of presented again — either the authorization server rejected it or it rotated it while minting no id_token STS accepts, and an AS that detects refresh-token reuse revokes the grant.
  • Added scripts/select-artifact.sh and the matching "Choosing an archive" rules in the install guide: how an installer maps a host to a release asset, including that a host with a TPM takes the plain archive when the tpm2-tss libraries do not all resolve.
  • Corrected the install and getting-started guides to the credsd-linux-* archive names, and the tpm2-tss runtime libraries the -tpm builds need (libtss2-sys.so.1 and the libtss2-tcti-device.so.0 loaded when the TPM is opened were missing). The full behavior is specified in docs/specs/scoped-credentials/.
  • aws-sdk-sts now requires 1.128 or later, for GetScopedCredentials.

Full Changelog: v0.2.0...v0.3.0