R141 Let only a service’s own service account read its credentials in the service tier
Superseded by R299 Keep in each vault only the credentials of one service or use, R300 Grant a service account only the vaults its use needs, R302 Give each machine and each service a service account of its own.
Let a credential in the service tier, the part of the secret manager kept for the credentials of services, be read only by the service account of the service it belongs to, and keep it out of every login shell.
Reason
A leaked service credential costs more than a leaked general one. When only the service that uses it can read it, neither a login shell nor an agent running in one can reach it, and that service is the only way it can leak.
Verification
The service tier is the part of the secret manager (a vault, say) that the jurisdiction sets aside for the credentials of services. A login shell is the shell that a person or an agent gets on logging in, together with every process started from it.
Violated when an agent reads an entry of the service tier, a value from the service tier enters the environment of a login shell, or a service account can read the entries of a service other than its own.