SlideShare a Scribd company logo
1 of 15
Download to read offline
Permission Boundary をやっと理解できたので
誰か聞いてくれ (雑)
【AWS IAM】
JAWS-UG 朝会 #13
大竹 孝昌
■ 自己紹介
■ Permission Boundary って何だっけ?
日本語だと 『アクセス許可の境界』
← ユーザーガイドの図
この部分のIAMポリシーだけ
書いたらダメなの?なんで?
利用シーンが思い浮かばない!
■ Permission Boundary って何だっけ?
AWSアカウント(子)
AWSアカウント(親)
Organizations の
SCP(Service Control Policy)は
アカウント外から制御する
Permission Boundary は
アカウント内から制御する
⇒ ところで AWS Organizations に似た機能があったような?
■ Permission Boundary の使い所を確認
⇒ 利用者を権限の強さで分類してみる
ルートユーザー
IAMユーザー
武器(IAM関連の権限)を持つ者たち
タグ付け
書き込み
リスト
読み込み
アクセス権
の管理
■ Permission Boundary の使い所を確認
⇒ 悩ましいのは『書き込み』や『アクセス権限の管理』
例えば、CreatePolicy。
作成するポリシーの
中身までは制御不可。
{
"Version":"2012-10-17",
"Statement":[
{
"Effect": "Allow",
"Action":"*",
"Resource": "*"
}
]
} ほぼ神!
■ Permission Boundary の使い所を確認
⇒ 委任はするけど『特定の操作は制限したい』
IAMロール
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "*",
"Resource": "*"
}
]
}
Permission
Boundary
IAMポリシー
{
"Version": "2012-10-17",
"Statement": [
{
“Sid”: “ひとまず全部許可するけど",
"Effect": "Allow",
"Action": "*",
"Resource": "*"
},
{
“Sid”: “ユーザーとロールの作成はダメ",
"Effect": "Deny",
"Action": [
"iam:CreateUser",
"iam:CreateRole"
],
"Resource": [
"arn:aws:iam::YourAccount_ID:user/*",
"arn:aws:iam::YourAccount_ID:role/*“
(以下略)
IAMポリシー
IAMポリシーの中身は制限できないので制限を加えるポリシーで制御を行う
■ Permission Boundary の使い所を確認
⇒ ここまで条件が揃っている場合には不要
・ IAM権限を持つ人に十分なスキル
・ チームの規模が比較的小規模
・ チーム内の信頼関係が十分に構築済み
・ IAMまわりの統制は不要と感じている
スキルアップのためにIAM関連の裁量を与えたいけど
セキュリティ事故は嫌だし一定のルールは必要だなぁ、、、
Permission Boundary とは、こんなニーズに応えるメカニズムである(個人の感想)
↑ こんなケースはレアだと思う(というか羨ましい)
みんな、IAM関連でこんな悩みを抱えてない?
■ Permission Boundary の使い所を確認
⇒ 抜け道がないよう Permission Boundary の制約は継承したい
IAMロール
Permission
Boundary
IAMポリシー
IAMポリシー
CreateRole は許可するけど
同時に Permission Boundary も
必ず設定すること!!!!
これを実現する
IAMポリシー って
どうやって書くの?
■ Permission Boundary の真髄をマスターする
⇒ サービスレベルの条件キー PermissionsBoundary で特定のIAMポリシーを強制する
IAMポリシーのビジュアルエディタだと、こんな感じで出没
ScopePermissions
■ Permission Boundary の真髄をマスターする
⇒ サービスレベルの条件キー PermissionsBoundary で特定のIAMポリシーを強制する
{
“Sid”: “ひとまず全部許可",
"Effect": "Allow",
"Action": "*",
"Resource": "*"
},
{
“Sid”: “Permission Boundaryなしでロールやユーザーの作成は不許可",
"Effect": "Deny",
"Action": [
"iam:PutUserPermissionsBoundary",
"iam:PutRolePermissionsBoundary"
],
"Resource": [
"arn:aws:iam::YourAccount_ID:user/*",
"arn:aws:iam::YourAccount_ID:role/*"
],
"Condition": {
"StringNotEquals": {
"iam:PermissionsBoundary": "arn:aws:iam::YourAccount_ID:policy/ScopePermissions"
}
}
},
■ Permission Boundary の真髄はWebでマスターする
⇒ Alice と Bob が淡々と教えてくれます。
https://aws.amazon.com/jp/premiumsupport/knowledge-center/iam-permission-boundaries/
あとでゆっくりとじっくりと
噛みしめて読んでください
IAMをマスターすることは、
よきAWSライフへの第一歩である。
IAM権限の委任で悩んだら
『あ、Permission Boundaryが使えるかも』
と思い出してくれたら嬉しいデスッ。
雑なまとめ
ご清聴?
ありがとうございました。

More Related Content

Recently uploaded

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video UnderstandingToru Tamaki
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Gamesatsushi061452
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルCRI Japan, Inc.
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptxsn679259
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイスCRI Japan, Inc.
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsWSO2
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...Toru Tamaki
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 

Recently uploaded (10)

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

JAWS-UG 朝会#13 LT-2 Permission Boundary をやっと理解できたので誰か聞いてくれ(仮)

  • 1. Permission Boundary をやっと理解できたので 誰か聞いてくれ (雑) 【AWS IAM】 JAWS-UG 朝会 #13 大竹 孝昌
  • 3. ■ Permission Boundary って何だっけ? 日本語だと 『アクセス許可の境界』 ← ユーザーガイドの図 この部分のIAMポリシーだけ 書いたらダメなの?なんで? 利用シーンが思い浮かばない!
  • 4. ■ Permission Boundary って何だっけ? AWSアカウント(子) AWSアカウント(親) Organizations の SCP(Service Control Policy)は アカウント外から制御する Permission Boundary は アカウント内から制御する ⇒ ところで AWS Organizations に似た機能があったような?
  • 5. ■ Permission Boundary の使い所を確認 ⇒ 利用者を権限の強さで分類してみる ルートユーザー IAMユーザー 武器(IAM関連の権限)を持つ者たち タグ付け 書き込み リスト 読み込み アクセス権 の管理
  • 6. ■ Permission Boundary の使い所を確認 ⇒ 悩ましいのは『書き込み』や『アクセス権限の管理』 例えば、CreatePolicy。 作成するポリシーの 中身までは制御不可。 { "Version":"2012-10-17", "Statement":[ { "Effect": "Allow", "Action":"*", "Resource": "*" } ] } ほぼ神!
  • 7. ■ Permission Boundary の使い所を確認 ⇒ 委任はするけど『特定の操作は制限したい』 IAMロール { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "*", "Resource": "*" } ] } Permission Boundary IAMポリシー { "Version": "2012-10-17", "Statement": [ { “Sid”: “ひとまず全部許可するけど", "Effect": "Allow", "Action": "*", "Resource": "*" }, { “Sid”: “ユーザーとロールの作成はダメ", "Effect": "Deny", "Action": [ "iam:CreateUser", "iam:CreateRole" ], "Resource": [ "arn:aws:iam::YourAccount_ID:user/*", "arn:aws:iam::YourAccount_ID:role/*“ (以下略) IAMポリシー IAMポリシーの中身は制限できないので制限を加えるポリシーで制御を行う
  • 8. ■ Permission Boundary の使い所を確認 ⇒ ここまで条件が揃っている場合には不要 ・ IAM権限を持つ人に十分なスキル ・ チームの規模が比較的小規模 ・ チーム内の信頼関係が十分に構築済み ・ IAMまわりの統制は不要と感じている スキルアップのためにIAM関連の裁量を与えたいけど セキュリティ事故は嫌だし一定のルールは必要だなぁ、、、 Permission Boundary とは、こんなニーズに応えるメカニズムである(個人の感想) ↑ こんなケースはレアだと思う(というか羨ましい) みんな、IAM関連でこんな悩みを抱えてない?
  • 9. ■ Permission Boundary の使い所を確認 ⇒ 抜け道がないよう Permission Boundary の制約は継承したい IAMロール Permission Boundary IAMポリシー IAMポリシー CreateRole は許可するけど 同時に Permission Boundary も 必ず設定すること!!!! これを実現する IAMポリシー って どうやって書くの?
  • 10. ■ Permission Boundary の真髄をマスターする ⇒ サービスレベルの条件キー PermissionsBoundary で特定のIAMポリシーを強制する IAMポリシーのビジュアルエディタだと、こんな感じで出没
  • 11. ScopePermissions ■ Permission Boundary の真髄をマスターする ⇒ サービスレベルの条件キー PermissionsBoundary で特定のIAMポリシーを強制する { “Sid”: “ひとまず全部許可", "Effect": "Allow", "Action": "*", "Resource": "*" }, { “Sid”: “Permission Boundaryなしでロールやユーザーの作成は不許可", "Effect": "Deny", "Action": [ "iam:PutUserPermissionsBoundary", "iam:PutRolePermissionsBoundary" ], "Resource": [ "arn:aws:iam::YourAccount_ID:user/*", "arn:aws:iam::YourAccount_ID:role/*" ], "Condition": { "StringNotEquals": { "iam:PermissionsBoundary": "arn:aws:iam::YourAccount_ID:policy/ScopePermissions" } } },
  • 12. ■ Permission Boundary の真髄はWebでマスターする ⇒ Alice と Bob が淡々と教えてくれます。 https://aws.amazon.com/jp/premiumsupport/knowledge-center/iam-permission-boundaries/