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
77
People, process, and technology for ILM and SLM adoption
joatmon08
0
64
Secure Day 2 operations with Boundary and Vault
joatmon08
0
74
Can You Test Your Infrastructure as Code?
joatmon08
1
110
Multi-Account, Multi-Region, Multi-Runtime
joatmon08
1
71
Building a multi-account, multi-runtime service-oriented architecture
joatmon08
0
79
Choose Your Own Abstraction: Iterating on Developer Experience
joatmon08
0
110
Break Glass, Repair Fast, Reconcile Automation
joatmon08
1
80
Building a Developer Platform? Ask these questions.
joatmon08
0
90
Other Decks in Programming
See All in Programming
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
510
Fundamentals of Software Engineering In the Age of AI
therealdanvega
1
230
受け入れテスト駆動開発(ATDD)×AI駆動開発 AI時代のATDDの取り組み方を考える
kztakasaki
2
550
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
190
ベクトル検索のフィルタを用いた機械学習モデルとの統合 / python-meetup-fukuoka-06-vector-attr
monochromegane
2
340
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
240
文字コードの話
qnighy
44
17k
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
210
NOT A HOTEL - 建築や人と融合し、自由を創り出すソフトウェア
not_a_hokuts
2
910
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
110
コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions
handlename
0
170
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
0
510
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
100
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
120
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
170
Exploring anti-patterns in Rails
aemeredith
2
280
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Evolving SEO for Evolving Search Engines
ryanjones
0
150
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
390
Technical Leadership for Architectural Decision Making
baasie
3
280
Done Done
chrislema
186
16k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
76
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
280
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