R300 Grant a service account only the vaults its use needs

On by default

Grant each service account access only to the vaults that its use needs.

Reason

A service account’s token reads with no person there to unlock each read, so whoever holds it reads everything it can reach. Granting it only the vaults its use needs bounds what a leaked token exposes.

Verification

The use of a service account is the machine, service or task it is given to (rule 302), and the vaults that use needs are those that hold a credential it reads or a place it must write to (rule 301).

Violated when a service account has access to a vault that its use does not need.

Provisions of the constitution it cites

Relations

Parent
R137 Secret Manager
Requires
none
Conflicts with
none

Metadata

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