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
Rosemary Wang
May 19, 2022
Programming
1
110
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
Tweet
Share
More Decks by Rosemary Wang
See All by Rosemary Wang
Build for massive scale & security with the HashiCorp Cloud Platform
joatmon08
0
70
People, process, and technology for ILM and SLM adoption
joatmon08
0
58
Secure Day 2 operations with Boundary and Vault
joatmon08
0
68
Can You Test Your Infrastructure as Code?
joatmon08
1
100
Multi-Account, Multi-Region, Multi-Runtime
joatmon08
1
63
Building a multi-account, multi-runtime service-oriented architecture
joatmon08
0
77
Choose Your Own Abstraction: Iterating on Developer Experience
joatmon08
0
99
Break Glass, Repair Fast, Reconcile Automation
joatmon08
1
74
Building a Developer Platform? Ask these questions.
joatmon08
0
86
Other Decks in Programming
See All in Programming
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
250
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
110
Fragmented Architectures
denyspoltorak
0
120
Basic Architectures
denyspoltorak
0
450
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
680
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
550
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
0
850
[AI Engineering Summit Tokyo 2025] LLMは計画業務のゲームチェンジャーか? 最適化業務における活⽤の可能性と限界
terryu16
2
390
CSC307 Lecture 05
javiergs
PRO
0
480
Deno Tunnel を使ってみた話
kamekyame
0
340
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.6k
CSC307 Lecture 03
javiergs
PRO
1
480
Featured
See All Featured
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
390
Deep Space Network (abreviated)
tonyrice
0
35
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
300
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
99
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
How to Talk to Developers About Accessibility
jct
1
100
Fireside Chat
paigeccino
41
3.8k
Docker and Python
trallard
47
3.7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
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