R43 Store credentials only in the places designated for them

On by default

Store a credential only where the jurisdiction designates for it.

Reason

A credential is protected strictly and kept from leaking (Art. II §1).

Verification

A credential (password, API key, token, private key, recovery phrase) is stored only where it is designated in the jurisdiction, for example a secret manager, or local environment files kept out of version control. A repository is such a place only where it is designated explicitly in the jurisdiction, for example a private repository on a self-hosted service whose workflow keeps credentials in it; otherwise a repository holds at most a reference to where the value lives.

Where the jurisdiction designates a repository explicitly, a scan of that repository for credentials cannot decide this rule, since a credential found there may be where it belongs; review decides it.

When unsure whether a place is designated, treat it as not designated: keep the credential out, and ask a principal with authority over the jurisdiction.

Violated when a credential is stored anywhere else.

Provisions of the constitution it cites

Relations

Parent
R265 Credentials
Requires
none
Conflicts with
none

Metadata

ID
43
Revision
7
Kind
rule
Status
active
Slug
credential-designated-place
Default level
project
Constitution revisions
>=1
Check
builtin
Default
on
Uses
Instructions instructions, Review review
Original language
English en
Translations
Chinese zh