R301 Grant a service account write access only where its use must write

On by default

Grant a service account read-only access to a vault, and write access only where its use must write to that vault.

Reason

Write access lets a leaked token change or replace the credentials that others rely on, not only read them. Most uses only read; only those that store what they generate, such as a token a program makes at runtime, must write.

Verification

A use must write to a vault when it stores there a credential it generates or renews.

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

Provisions of the constitution it cites

Relations

Parent
R137 Secret Manager
Requires
none
Conflicts with
none

Metadata

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