R307 Keep credentials that give access to other credentials out of every vault a service account can access

On by default

Keep credentials that give access to other credentials, such as the tokens of service accounts and SSH private keys, out of every vault that a service account can access.

Reason

With such credentials out of reach of every service account, a leaked service account token does not lead to the tokens of the others, nor to the keys of machines.

Verification

A credential gives access to other credentials when holding it lets one read the secret manager or log in to a machine where credentials are kept, as the token of a service account or an SSH private key does. Where such credentials are kept instead is set in the jurisdiction.

Violated when such a credential is stored in a vault that a service account has access to.

Provisions of the constitution it cites

Relations

Parent
R137 Secret Manager
Requires
none
Conflicts with
none

Metadata

ID
307
Revision
2
Kind
rule
Status
active
Slug
meta-credentials-out-of-service-account-vaults
Default level
user
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh