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
130
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
Context Engineering 101: A Practical Introduction
joatmon08
0
6
Build for massive scale & security with the HashiCorp Cloud Platform
joatmon08
0
89
People, process, and technology for ILM and SLM adoption
joatmon08
0
78
Secure Day 2 operations with Boundary and Vault
joatmon08
0
85
Can You Test Your Infrastructure as Code?
joatmon08
1
120
Multi-Account, Multi-Region, Multi-Runtime
joatmon08
1
98
Building a multi-account, multi-runtime service-oriented architecture
joatmon08
0
92
Choose Your Own Abstraction: Iterating on Developer Experience
joatmon08
0
130
Break Glass, Repair Fast, Reconcile Automation
joatmon08
1
94
Other Decks in Programming
See All in Programming
デフォルト運用のCodeRabbit、1年で何が変わったか / How CodeRabbit Changed Our Code Review in 1 Year
bake0937
1
110
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
360
CLIであることを活かしたGitHub Copilot CLI活用術 / GitHub Copilot CLI Pro Tips & Tricks
nao_mk2
1
1.1k
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
180
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
240
分析エージェント精度向上における データアナリストの役割
oura_shoya
0
120
Moments When Things Go Wrong
aurimas
3
120
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
4
640
RTSPクライアントを自作してみた話
simotin13
0
220
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
0
470
AI Agent と正しく分析するための環境作り
yoshyum
3
610
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
2.2k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Ethics towards AI in product and experience design
skipperchong
2
290
What's in a price? How to price your products and services
michaelherold
247
13k
A better future with KSS
kneath
240
18k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
70
39k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
The Invisible Side of Design
smashingmag
302
52k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
360
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
350
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
360
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
810
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