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
140
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
From Platform Engineering to AI Automation: Building Infrastructure for Agent Systems
joatmon08
0
120
Context Engineering 101: A Practical Introduction
joatmon08
1
84
Build for massive scale & security with the HashiCorp Cloud Platform
joatmon08
0
110
People, process, and technology for ILM and SLM adoption
joatmon08
0
91
Secure Day 2 operations with Boundary and Vault
joatmon08
0
95
Can You Test Your Infrastructure as Code?
joatmon08
1
170
Multi-Account, Multi-Region, Multi-Runtime
joatmon08
1
110
Building a multi-account, multi-runtime service-oriented architecture
joatmon08
0
110
Choose Your Own Abstraction: Iterating on Developer Experience
joatmon08
0
150
Other Decks in Programming
See All in Programming
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
200
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
4
2.3k
Flow は今どうなっているか
mizdra
PRO
0
770
「人を評価する AI」の設計と実装
ryoyanara
0
260
Deep dive into the select statement (GopherCon UK)
jespino
0
160
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
160
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
520
AIと壁打ちしながら進めるコスト管理
fufuhu
2
1.8k
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
190
業務時間外もAIに働いてもらう話
colorful12
2
9k
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
250
コンパウンドプロダクト開発のためのローカルプロセスマネージャー再発明 #layerxgo
izumin5210
0
530
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Optimising Largest Contentful Paint
csswizardry
37
3.9k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
480
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
550
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
210
The Pragmatic Product Professional
lauravandoore
37
7.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
670
Prompt Engineering for Job Search
mfonobong
0
420
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