Repository navigation
Releases
Releases · aws/credential-daemon
v0.3.0
What's Changed
- Breaking:
credential/get'sscopeis now a JSON string holding one IAM policy document's text, and it is applied rather than accepted and ignored. Ascopegiven as an object is invalid params. For Rust consumers,credsd_core::rpc::Scopechanged fromScope(Value)toScope(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 theboundary/set,boundary/unsetandboundary/getRPC methods (alsoboundary_set,boundary_unsetandboundary_getincredsd-client). Policies are taken inline, asfile://<path>, or asfileb://<path>;credssends the text and the daemon never opens a path. Each layer is onests:GetScopedCredentialscall 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_ERRORwithdata.reasonnaming the check. - A fetch that applies a
scopereturnsprovenance: "minted_for_request"— the session is that request's alone. Before this releaseprovenancewas alwayscached_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-loginbootstrap that names a boundary different from the stored one is now a gated replace even when nothing else moves; omitting--boundary-policykeeps the stored boundary, and a bootstrap never removes one. credentials.tomlgainedboundary_policyon AWS session credentials, written bycreds boundary setrather than by hand. Whitespace and key order in it never count as drift; its content does. Aboundary_policythat is not a valid policy, or one on any other credential type, makes that credential aloneCONFIG_INVALID— it is never served without its boundary, and other credentials are unaffected.- Added error codes
VALIDATION_ERROR,SCOPE_DENIEDandSCOPE_UNSUPPORTED_SOURCE. A refused policy or layer serves nothing broader than the boundary allows, and carriesdata.reason,data.layer,data.digestand adata.remediationthe client prints as is; a session STS rejects outright still comes back asREAUTH_REQUIRED. The audit trail records scoping: acredential.scopedevent with the boundary and scope digests, the layer count and the outcome. Policy documents are never logged whole. credential/getandcredential/listaccept anenvironmentparam again, where v0.2.0 made it invalid params. It names a credential:environment: "dev"is served and audited exactly ascredential: "dev",credential/listwith it keeps just that credential, acredentialand anenvironmentthat disagree is invalid params, and a miss byenvironmentisENVIRONMENT_NOT_FOUND.credsitself still rejects--environment/--env.- An
aws-web-identityrefresh 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 noid_tokenSTS accepts, and an AS that detects refresh-token reuse revokes the grant. - Added
scripts/select-artifact.shand 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-tpmbuilds need (libtss2-sys.so.1and thelibtss2-tcti-device.so.0loaded when the TPM is opened were missing). The full behavior is specified indocs/specs/scoped-credentials/. aws-sdk-stsnow requires 1.128 or later, forGetScopedCredentials.
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Breaking: Environments are removed. Every command and RPC method now addresses a credential directly by name.
--environment/--envis a usage error on everycredscommand, and theenvironment/*andconfig/*RPC methods return method-not-found. - Breaking:
credential/gettakes a credential as its subject. - Breaking: Linux release archives are named by platform instead of by distribution.
credsd-linux-x64,credsd-linux-aarch64,credsd-linux-x64-tpmandcredsd-linux-aarch64-tpmreplace theal2023-*andubuntu-*archives, and each runs on both. The binaries are built against manylinux2014. - Added
creds logoutandcredential/logout, which sign anaws-login,aws-idc-ssooraws-web-identitycredential out and keep its entry socreds logincan sign it back in. - Added credential tags:
creds bootstrap --tag KEY=VALUE,creds tag set/creds tag unset, and filtering withcreds list --tag KEY[=VALUE]. - Running
aws-idc-ssobootstrap again on an existing credential now re-authenticates it. aws-loginrecords the signed-in identity and signs in at the Sign-In host for the region's partition.- Error category prefixes are printed once, and
creds listcolumns are wider. - Corrected the README, overview, install guide, command and API references, and OpenRPC schema.
Full Changelog: v0.1.0...v0.2.0
v0.1.0
What's Changed
- Initial release of the AWS Credential Daemon
Full Changelog: https://github.com/aws/credential-daemon/commits/v0.1.0