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.5k
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
PagerDuty Tech Hub-鳴らすけれど、人は動かない
ezaki
0
160
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
130
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
WasmをRustにする
sansantech
PRO
0
250
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
280
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
120
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
7
6k
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
430
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
0
410
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
160
How to Design Configuration for Rails Applications
willnet
1
720
Featured
See All Featured
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
480
HDC tutorial
michielstock
2
960
Mind Mapping
helmedeiros
1
400
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
sira's awesome portfolio website redesign presentation
elsirapls
0
450
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Evolving SEO for Evolving Search Engines
ryanjones
0
330
Building the Perfect Custom Keyboard
takai
2
900
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
Why Our Code Smells
bkeepers
PRO
340
58k
Designing for Performance
lara
612
70k
Design in an AI World
tapps
1
350
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