Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 07 · DevOps · CI/CD, IaC & Operations · about 17 min to read

Play it as a journeyTutor comes with a plan

Secrets that stay secret: Vault, SOPS and KMS

Config, Secrets & Storage
Config, Secrets & Storage · Open board

The settings and passwords clipped to a container, and where each one is kept. This lesson is about the passwords: where they live so that one stray copy does not open everything.

Before you start. The Page at 3 a.m. (Incident Response) taught you to stop the harm first and then write action items that change the system, not the person. Config, Secrets & Storage showed that a Kubernetes Secret is only base64 text, which is an encoding and not a lock. The key that has to change (secrets and key management) gave you envelope encryption: a data key locks the data, and a master key inside a key service locks the data key. Infrastructure as Code & GitOps gave you the rule that Git holds the wanted state, except secrets.

Lesson 57 of 70 in DevOps

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • December 2017 to September 2022: a key in a public repository
  • Secrets store: one place that holds secrets and checks who asks
  • Envelope encryption and KMS: lock the data with a key that never leaves
  • SOPS: a secret file that is safe to commit
  • Dynamic credentials and leases: a login that dies by itself
  • External Secrets Operator: bring a secret into Kubernetes without copying it
  • Envelope encryption, a SOPS-style file and a lease, in one script
  • Rotation by overlap
  • Trade-offs and edge cases

Terms it explains: access key, secret, secrets store, secret zero, data key, key management service (KMS), master key, envelope encryption, SOPS, dynamic credential, lease, External Secrets Operator, ExternalSecret, refresh interval, Common mistakes, ConfigMap.

Lab

A backup every night, and someone drops the main table at 11:59 pm. What is the cheapest way to lose under a minute of writes instead of a day?

Pick what you would add, then switch between both tabs and watch Data lost and Storage bill.

Open The restore drill

Review DevOps