Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Secure Your Secrets in GitOps
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Rosemary Wang
May 19, 2022
Programming
120
1
Share
Secure Your Secrets in GitOps
Learn how to inject secrets into your applications with Flux, a GitOps tool on Kubernetes.
Rosemary Wang
May 19, 2022
More Decks by Rosemary Wang
See All by Rosemary Wang
Build for massive scale & security with the HashiCorp Cloud Platform
joatmon08
0
83
People, process, and technology for ILM and SLM adoption
joatmon08
0
73
Secure Day 2 operations with Boundary and Vault
joatmon08
0
82
Can You Test Your Infrastructure as Code?
joatmon08
1
120
Multi-Account, Multi-Region, Multi-Runtime
joatmon08
1
86
Building a multi-account, multi-runtime service-oriented architecture
joatmon08
0
89
Choose Your Own Abstraction: Iterating on Developer Experience
joatmon08
0
120
Break Glass, Repair Fast, Reconcile Automation
joatmon08
1
90
Building a Developer Platform? Ask these questions.
joatmon08
0
99
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
470
書き換えて学ぶTemporal #fukts
pirosikick
2
340
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
470
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
5
1.5k
Don't Prompt Harder, Structure Better
kitasuke
0
810
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
660
PHPでバイナリをパースして理解するASN.1
muno92
PRO
0
400
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
750
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
220
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
190
「OSSがあるなら自作するな」は AI時代も正しいか ── Build vs Adopt の新しい判断基準
kumorn5s
0
170
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.4k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Bash Introduction
62gerente
615
210k
The SEO Collaboration Effect
kristinabergwall1
1
440
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
New Earth Scene 8
popppiees
3
2.2k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
250
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Visualization
eitanlees
150
17k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Transcript
Copyright © 2022 HashiCorp Secure Your Secrets in GitOps May
19, 2021 Rosemary Wang Developer Advocate at HashiCorp she/her @joatmon08 1
Works, but not ideal. Use SOPS to encrypt and store
in version control. 1 2 3 fluxcd.io/docs/guides/mozilla-sops/#encrypting-secrets-using-hashicorp-vault SOPS 2. Commit encrypted secret to version control. 1. Use encryption key from Vault to encrypt secret. 2
What happens when you accidentally commit a plaintext secret? 3
1. Regret 2. Revoke 3. Rotate 4. Reference 5. Replace
6. Re-run Plan R AKA Remediation 4
Is there a better way? 5
Kubernetes Secret Plaintext 😨 Needs role-based access controls 🤔 Secrets
Manager Securely stores secrets (Some) Rotate secrets for you Audits access Securing Secrets Credentials, Tokens, Keys, Certificates 6
Secrets Manager + Kubernetes Use file-based secrets injection with Secrets
Store CSI Driver. 1 2 3 secrets-store-csi-driver.sigs.k8s.io/ vaultproject.io/docs/platform/k8s/csi @joatmon08 7
If you still need Kubernetes secrets… Sync as Kubernetes Secret
with Secrets Store CSI Driver. 1 2 3 8
github.com/ joatmon08/ hashicorp-vault-flux 9
1. hashicorp.com/blog/manage-kubernetes-secrets- for-flux-with-hashicorp-vault 2. fluxcd.io/docs/guides/mozilla-sops/#encrypting-s ecrets-using-hashicorp-vault 3. secrets-store-csi-driver.sigs.k8s.io/ 4. vaultproject.io/docs/platform/k8s/csi
5. vaultproject.io/docs/platform/k8s/injector Resources 10
Copyright © 2022 HashiCorp Thank you! May 19, 2021 Rosemary
Wang @joatmon08 joatmon08.github.io 11