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
98
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
29
People, process, and technology for ILM and SLM adoption
joatmon08
0
17
Secure Day 2 operations with Boundary and Vault
joatmon08
0
43
Can You Test Your Infrastructure as Code?
joatmon08
1
81
Multi-Account, Multi-Region, Multi-Runtime
joatmon08
1
45
Building a multi-account, multi-runtime service-oriented architecture
joatmon08
0
59
Choose Your Own Abstraction: Iterating on Developer Experience
joatmon08
0
58
Break Glass, Repair Fast, Reconcile Automation
joatmon08
2
49
Building a Developer Platform? Ask these questions.
joatmon08
0
56
Other Decks in Programming
See All in Programming
KawaiiLT 登壇資料 キャリアとモチベーション
hiiragi
0
160
Browser and UI #2 HTML/ARIA
ken7253
2
170
複雑なフォームの jotai 設計 / Designing jotai(state) for Complex Forms #layerx_frontend
izumin5210
6
1.4k
Cline with Amazon Bedrockで爆速開発体験ハンズオン/ 株式会社ブリューアス登壇資料
mhan
0
110
Bedrock × Confluenceで簡単(?)社内RAG
iharuoru
1
110
Contribute to Comunities | React Tokyo Meetup #4 LT
sasagar
0
590
Qiita Bash
mercury_dev0517
2
220
KANNA Android の技術的課題と取り組み
watabee
0
170
実践Webフロントパフォーマンスチューニング
cp20
43
9.9k
Road to RubyKaigi: Making Tinny Chiptunes with Ruby
makicamel
4
530
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
700
Memory API : Patterns, Performance et Cas d'Utilisation
josepaumard
1
160
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
2.9k
YesSQL, Process and Tooling at Scale
rocio
172
14k
Build your cross-platform service in a week with App Engine
jlugia
230
18k
How to Think Like a Performance Engineer
csswizardry
23
1.5k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
The World Runs on Bad Software
bkeepers
PRO
68
11k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
690
Building Applications with DynamoDB
mza
94
6.4k
Rails Girls Zürich Keynote
gr2m
94
13k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
47
2.7k
Documentation Writing (for coders)
carmenintech
69
4.7k
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