Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
security-profiles-operatorをさわってみた / try-securit...
Search
Naoki Oketani
November 25, 2021
Technology
2.4k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
security-profiles-operatorをさわってみた / try-security-profiles-operator
Kubernetes Meetup Tokyo #47
登壇ふりかえり
Kubernetes Meetup Tokyo #47 で登壇しました
Naoki Oketani
November 25, 2021
More Decks by Naoki Oketani
See All by Naoki Oketani
Observe the Conference / observe-the-conference
okepy
0
490
最小権限を目指して / least privilege of service account
okepy
0
1.9k
kubectl debugを試してみた / k8snovice8-kubectl-debug
okepy
0
2.4k
Other Decks in Technology
See All in Technology
Webとヘルスデータ
yukukotani
1
370
enechainの内製セルフサービスプラットフォーム
hiyosi
0
150
コスト最適化の「めんどくさい」を AWS FinOps Agent でチョット楽にする
classmethod_kaz
0
300
OpenTelemetryのメトリクスをCloudWatchに送ってPromQLで見てみた
ota1022
0
120
SQL文一行も書けない人事がCortexもろもろを使って人事業務を楽にしてみる
ponponmikankan
1
210
薬剤師(ドメインエキスパート)と一緒に育てる薬局向けAIアシスタント
kakehashi
PRO
2
140
AIで仕事のやり方を変える
matsu7874
3
1k
AIオーケストレーションを活用した 開発ワークフローの設計と実践
bqnq
0
130
深夜のクラウド懺悔室 1:29:300 or 1:0:0
kazzpapa3
1
230
AI時代だからこそ、スケールしないことをやろう
yutashigemura
1
130
AIとペアプロを始める。人とのペアプロをやめる。ペアプロの良さを改めて知る。もっと好きになった。 / Rediscovering Pair Programming
honyanya
1
330
Reactの設計論
uhyo
14
7.7k
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
370
The Language of Interfaces
destraynor
162
27k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
510
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
370
The SEO Collaboration Effect
kristinabergwall1
1
550
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Tell your own story through comics
letsgokoyo
1
1.1k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
202
76k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
Exploring anti-patterns in Rails
aemeredith
3
500
Transcript
security-profiles-operatorをさわってみた @ngoktanio @oke-py 2021.11.25 Kubernetes Meetup Tokyo #47
本発表の目的 seccompやAppArmorの • 導入検討のきっかけとなる • 導入、運用事例があったら教えてほしい
モチベーション 多層防御(Defense In Depth)の一要素として セキュリティプロファイルを利用してみたい Certified Kubernetes Security Specialist (CKS)
Exam Curriculum https://github.com/cncf/curriculum/blob/master/CKS_Curriculum_%20v1.22.pdf
セキュリティプロファイルの例 AppArmor, SELinux ファイルアクセスを細かく制御する seccomp 不要なシステムコールの呼び出しを禁止する Docker/Kubernetes開発・運用のためのセキュリティ実践ガイド https://book.mynavi.jp/ec/products/detail/id=114099
Podにseccompプロファイルを適用する方法 1. ホストでプロファイルを有効化する 2. Pod定義でプロファイルを指定する Restrict a Container's Syscalls with
seccomp https://kubernetes.io/docs/tutorials/clusters/seccomp/
セキュリティプロファイルの導入決定(フィクション) Sec「全社的にseccompの導入を必須としました」 Dev「ホストにログインできない。Opsさん、よろしく」 Ops「サービスごとにプロファイルを変えるのしんどい」
kubernetes-sigs/security-profiles-operator
https://github.com/kubernetes-sigs/security-profiles-operator
security-profile-operatorのインストール 検証環境 インストール https://github.com/kubernetes-sigs/security-profiles-operator/blob/master/installation-usage.md
SeccompProfileの適用
SeccompProfileを利用するPodの実行
禁止されているシステムコールを呼び出す Operation not permitted !!!
まとめ • セキュリティプロファイルを利用してより堅牢に • security-profiles-operatorに期待? ◦ 最新リリース(v0.3.0)は半年以上前・・・ ◦ masterブランチはそれなりに更新されている •
SDLCにどう組み込めるか? ◦ プロファイルの作成、検証が大変そう ◦ docker-slimを使えばいけそう?
参考資料 Docker/Kubernetes開発・運用のためのセキュリティ実践ガイド https://book.mynavi.jp/ec/products/detail/id=114099 Hacking Kubernetes https://www.oreilly.com/library/view/hacking-kubernetes/9781492081722/ Restrict a Container's Syscalls
with seccomp https://kubernetes.io/docs/tutorials/clusters/seccomp/ Restrict a Container's Access to Resources with AppArmor https://kubernetes.io/docs/tutorials/clusters/apparmor/ Kubernetes Security Profiles Operator https://github.com/kubernetes-sigs/security-profiles-operator Managing Kubernetes seccomp profiles with security profiles operator https://medium.com/@LachlanEvenson/managing-kubernetes-seccomp-profiles-with-security-profiles-operator-c768cff58b0