Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions D06 - Protect Secrets.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# D06 - Protect Secrets

Secrets provide access to resources or help encrypting data in transit or at
rest. Secrets could be private keys for an X509 certificate, HMACs for JWT or similar
cryptographic material. Also, it could be just secrets which provide necessary
access or just holds credentials. Think of backend connectors to databases, API keys,
image registry keys or any other tokens which provide access to an internal or
external service.

Often you cannot avoid providing some kind of keys or credentials to be provided
by a container. E.g. the frontend container needs to have access to a private key,
the HTTPS web service won't start otherwise. Also, a container with a database connector
needs to have access to the database credentials. Or, if you encrypt the database
content: somewhere needs to be a key / the keys for encryption and decryption.

You could encrypt those private information. But again you would need keys for
that, and those need to be accessible for a container. This results in a chicken an
egg problem.

The point of this section is how you deal appropriately with secrets, i.e. where
do I store this kind of information, what is appropriate and what not.



## Threat Scenarios

Expand Down