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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
8
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
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
6
1k
Oxlintのカスタムルールの現況
syumai
3
160
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
2
270
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
5
700
CLIであることを活かしたGitHub Copilot CLI活用術 / GitHub Copilot CLI Pro Tips & Tricks
nao_mk2
1
1.1k
AI 時代のソフトウェア設計の学び方
masuda220
PRO
28
10k
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
3
920
GitHub Copilot CLIのいいところ
htkym
2
1.1k
今さら聞けないCancellationToken
htkym
0
200
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
120
横断組織出身のQAEがインプロセスQAEでつまずいたこと・活かせたこと
ty89
0
370
~ 秘伝のタレ化した『神スプシ』と戦う ~ 関数型パラダイムで壊れない仕組みへ
h0r15h0
1
130
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
15k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
240
Building the Perfect Custom Keyboard
takai
2
770
Google's AI Overviews - The New Search
badams
0
1k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
140
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
420
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
370
Test your architecture with Archunit
thirion
1
2.2k
Building Adaptive Systems
keathley
44
3k
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