Encrypting Secrets The GitOps Way With sops And age

  Рет қаралды 2,365

Mircea Anton

Mircea Anton

Күн бұрын

Пікірлер: 14
@fuzzyherbivore193
@fuzzyherbivore193 7 ай бұрын
Great video, I loved the progression from the foundations to the final setup with really good explanations of the how and why of each step! Thank you!
@mirceanton
@mirceanton 7 ай бұрын
Glad it was helpful!
@atulghodmare
@atulghodmare Ай бұрын
Great explanation, but how can we integrate the existing set up with argocd so that it will look for secret.yaml in the helm manifest?
@mirceanton
@mirceanton Ай бұрын
I'm actually not sure. I haven't used ArgoCD that much and definitely not with SOPS. I know FluxCD has native support for it though, as that's what I'm using.
@acuffaro
@acuffaro 3 ай бұрын
Very good video!
@mirceanton
@mirceanton 3 ай бұрын
Thank you! I'm glad you found it useful
@dyrion
@dyrion 7 ай бұрын
I have a question, how should I be working with the encryption/decryption with more people involved? should I just give them the secret key? is it even recommended to use sops in a teamwork environment?
@mirceanton
@mirceanton 7 ай бұрын
As always, it depends! You can use SOPS with other encryption backends, such as AWS KMS, GCP KMS or Azure Key Vault, which may or may not fit in with the tooling your team is already using. However, assuming you want to keep using AGE for the encryption backend, then one option would be to set up multiple recipients for encryption: github.com/FiloSottile/age/?tab=readme-ov-file#multiple-recipients > Every recipient will be able to decrypt the file. This means that everyone on the team can have their own encryption key, capable of decrypting the files. github.com/getsops/sops?tab=readme-ov-file#encrypting-using-age > You can encrypt a file for one or more age recipients (comma separated) using the --age option or the SOPS_AGE_RECIPIENTS environment variable. Furthermore, to increase security, you could set up a combination of the two, using key groups, such that more than one key is required to decrypt everything. Maybe everyone has an age key on their local machine and they also need KMS configured, or something like that.
@dyrion
@dyrion 7 ай бұрын
@@mirceanton thanks a lot! i'll be giving it a try
@PhạmMinhQuang-w9s
@PhạmMinhQuang-w9s 2 ай бұрын
what if in the future my age key is leaked and i need to gen new key, how it is possible to update all secret?
@mirceanton
@mirceanton 2 ай бұрын
You can decrypt all secrets with the old key, generate a new key to replace the old one and then re-encrypt everything. You can use the batch encrypt/decrypt scripts I show here to handle that more easily Though at that point I'd just rotate all secrets just to be safe.
@LUKAS3675
@LUKAS3675 4 ай бұрын
how is formatted your secret.yaml? seems that sops is a bit picky about its yaml
@mirceanton
@mirceanton 4 ай бұрын
Yeah, sops is rather picky about YAML formatting. I'm pretty sure it uses 4 spaces for indentation and does not support blank lines or comments. What you can do to check is to encrypt a file and then decrypt it to a new file to see the format. I handle this in my repo by using those 2 bash scripts and doing a sops encrypt followed by a force decrypt (overwrites the unencrypted file so that I have the right formatting)
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Talos Linux - The Best OS For Kubernetes
23:43
Mircea Anton
Рет қаралды 10 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Is This Budget Mini-LED Gaming Monitor Good? - Xiaomi G Pro 27i Review
29:40
Migrating From OPNsense To Mikrotik
19:11
Mircea Anton
Рет қаралды 25 М.
Jak serwować LLM Bielik-11B 🦅 - Tutorial #17
27:45
ML-Workout
Рет қаралды 4,9 М.
Should You Virtualize Your Firewall?
10:01
Mircea Anton
Рет қаралды 453
Security Best Practices - Firewall Filtering with MikroTik Marc
32:31
Admiral Platform (RemoteWinBox)
Рет қаралды 7 М.
Enhance Your Linux DFIR Skills with MasterParser
57:08
Security Joes
Рет қаралды 463
MikroTik product news  FTC11XG
2:34
Multilnk Solutions Inc.
Рет қаралды 3 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.