SlideShare une entreprise Scribd logo
1  sur  39
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Soup to Nuts: Identity Federation for AWS
Quint Van Deman,
Global Business Development Manager,
AWS Identity & Directory Services
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Build consistent vernacular
& mental model
Tour the major federation
bridges across AWS
Fun & lively session with
demos
Links to key content &
patterns
What to expect
(C) Copyright Jean-Remy Duboc and licensed for reuse under
the Creative Commons Attribution-Generic2.0 License
By Adam.J.W.C. (Own work) [CC BY 3.0
(http://creativecommons.org/licenses/by/3.0], via
Wikimedia Commons
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Building a consistent vernacular & mental model
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What do we mean when we say
“federation”?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Identity consumersIdentity providers
Definition (for today)
Stores
identities
Authentication Authorization
(Coarse)
Authorization
(Fine)
Trust
Stores
references
Protocols
No Sync
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Rationale
Users Security Compliance
Before
After
Unique credentials
1:Many reuse
Credentials everywhere
Centrally managed
Bespoke
Unified
Result
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Understanding planes of access
EC2
Control plane – AWS API
(e.g. ec2:StartInstance)
Data plane – VPC connection
(e.g. SSH, RDP)
Different:
• Paths
• Credentials
• Protocols
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Understanding planes of access
DynamoDB
Control plane – AWS API
(e.g. dynamodb:CreateTable)
Data plane – AWS API
(e.g. dynamodb:GetItem)
Same:
• Path
• Credential
• Protocol
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Mental Model
Evaluation SelectionUse cases Blueprints
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Bridge #1: Security Markup Assertion Language (SAML)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SAML Primer
Service provider
(SP)
Metadata (in advance)
Assertion
Identity provider
(IdP)
AuthN &
AuthZ
User
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SAML
Internal
AD
SAML IdP
Cognito Apps APIs
Console API CLI Data plane APIs
SAML Federation
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SAML Federation
Demonstrations
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SAML demo review
Amazon S3
permissions
Many AWS accounts
Custom
durations
MFA for
SAML
http://bit.ly/2dBXMUq
SAML federation for the
AWS Management Console,
APIs, and CLI
Self-paced
workshop materials
(all this & much more)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SAML demo review
SAML federation for an Amazon Cognito
enabled web app & custom API (using API Gateway)
Cognito documentation
(includes sample code)
http://amzn.to/2wSH4IC
CloudFront S3 SPA
Cognito
Cognito
SAML IdP Assertion
Tokens API Gateway
(Chalice)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SAML Federation
SAML
Internal
AD
SAML IdP
Cognito Apps APIs
Console API CLI Data plane APIs
Redshift Aurora MySQL
QuickSight AppStream
SaaS Apps (Outside AWS)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Bridge #2: Open ID Connect (OIDC)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
OIDC Primer
Relying Party
(RP)
Metadata & Registration (in advance)
Tokens
OpenID provider
(OP)
User
AuthN &
AuthZ
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
OIDC Federation
SAML
OIDC
OIDCExternal
Internal
AD
OIDC OP
SAML IdP
Cognito Apps APIs
Redshift Aurora MySQL
QuickSight AppStream
Apps
Data plane APIs
SaaS Apps (Outside AWS)
Console API CLI
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
OIDC Federation
Demonstrations
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
OIDC demo review
OIDC federation for an Amazon Cognito
enabled web app & custom API (using API Gateway)
Cognito documentation
(includes sample code)
CloudFront S3 SPA
Cognito
Cognito
OP
Tokens API Gateway
(Chalice)
Tokens http://amzn.to/2wSH4IC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
OIDC demo review
OIDC federation for an Amazon Cognito
enabled backend app & external API
Cognito documentation
Cognito Tokens
SSM Param Store
External API
http://amzn.to/2grl7NV
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Bridge #3: Active Directory Trust with Kerberos
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
AD Trust/Kerberos Primer
On premises
Active Directory
Domain Controller
AWS Directory Service
For Microsoft Active Directory
(Enterprise Edition)
Kerberos enabled
resource
AD Forest Trust Domain Join
User Group
Add group membership
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
AD Trust
SAML
OIDC
OIDC
AD Trust
External
Internal
AD
OIDC OP
SAML IdP
Cognito Apps APIs
Redshift Aurora MySQL
QuickSight AppStream
Apps
Data plane APIs
Windows/EC2
Workspaces
SQL Server
WorkDocs WorkMail
SaaS Apps (Outside AWS)
Console API CLI
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
AD Trust details for Windows/EC2
Use on premises AD identities for
authentication & authorization in
Windows/EC2
Directory Service documentation
On premises
Active Directory
Domain Controller
AWS Directory Service
For Microsoft Active Directory
(Enterprise Edition)
Domain joined
Windows EC2
instance
AD Forest Trust Domain Join
User
Group
Add group membership
http://amzn.to/2ysq4Ns
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AD Trust details for Workspaces
Use on premises AD identities to
provision and access workspaces
Workspaces documentation
On premises
Active Directory
Domain Controller
AWS Directory Service
For Microsoft Active Directory
(Enterprise Edition)
AD Forest Trust
User Admin
Search &
Provision
Domain Join
Login
(AuthN & AuthZ)
http://amzn.to/2x6IcZB
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Bridge #4: AWS Cross Account (XA) Trust
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
AWS XA Trust Primer
Target AWS Account
IAM Role
Permission Policy:
Controls access to
AWS services & resources
Trust Policy:
Specifies the Principals who
can assume the role, and a
shared secret (external id)
Source AWS Account
IAM Role
IAM User
Permission Policy:
Allows sts:AssumeRole
to remote role (in
target)
sts:AssumeRole
Short-term credential
Invoke AWS APIs
Access Mgmt Console
( You ) ( External Entity )( or vice versa )
Note: AWS XA Trusts also support many other use cases
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Cross Account
Cross
Account
Trust
Cognito Apps APIs
Redshift Aurora MySQL
QuickSight AppStream
Data plane APIs
Windows/EC2
Workspaces
SQL Server
WorkDocs WorkMail
SaaS Apps (Outside AWS)
Console API CLI
External
Apps AWS Cred
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Cross account trust details
Use AWS credentials from one account
to federate into another account
IAM documentation
aws sts assume-role --role-arn arn:aws:iam::012345678912:role/RoleName 
--role-session-name use_traceable_name --external-id mysharedsecret
{
"AssumedRoleUser": {
"AssumedRoleId": "XXXXXXXXXXXXXXXXXXXXX:use_traceable_name",
"Arn": “<roleARN>/use_traceable_name"
},
"Credentials": {
"SecretAccessKey": "ssssssssssssssssssssssssssssssssssssssss",
"SessionToken": "ttttttttttttttttttttttttttttttttttttttttttt",
"Expiration": "2017-10-19T00:01:38Z",
"AccessKeyId": "aaaaaaaaaaaaaaaaaaaaaaa"
}
}
http://amzn.to/2zzwE2n
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Bridge #5: Custom Federation Broker
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Custom Federation Broker Primer
Broker
Credential
User
Entitlements &
Policies
sts:AssumeRole (or)
sts:GetFederationToken
Scoping policy
Short-term credential
authN & authZ
Note: Mostly a legacy mechanism
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Custom Broker
Cross
Account
Trust
Custom
Cognito Apps APIs
Redshift Aurora MySQL
QuickSight AppStream
Data plane APIs
Windows/EC2
Workspaces
SQL Server
WorkDocs WorkMail
SaaS Apps (Outside AWS)
Console API CLI
External
Apps
BrokerCredential
AWS Cred
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Wrap Up
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Summary
SAML
OIDC
AD Trust
XA Trust
Custom
Many bridges, for different:
• Planes of access
• Protocols
• Source credentials
Remember our mental model:
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Remaining whitespace
CC0 Public Domain - Free for commercial use
http://maxpixel.freegreatpicture.com/Shadow-White-Space-Renovate-Blank-Renovated-Light-763247
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Other helpful links
• SAML:
• Amazon Redshift - http://amzn.to/2yxWX98
• Amazon RDS MySQL & Amazon Aurora - http://amzn.to/2gjBDvP
• Amazon AppStream 2.0 - http://amzn.to/2gkU17q
• Amazon Quicksight - http://amzn.to/2xPfyf3
• OIDC:
• Amazon Cognito Federated Identities - http://amzn.to/2gl3yvp
• sts:AssumeRoleWithWebIdentity - http://amzn.to/2yTcOCr
• AD Trust:
• Amazon RDS SQL Server - http://amzn.to/2glehop
• WorkDocs - http://amzn.to/2x6CNBz
• WorkMail - http://amzn.to/2kZFxyZ
• AWS IAM Cross account trust - http://amzn.to/2kZvRon
• Custom federation broker - http://amzn.to/2yyqzov
• Chalice (Python serverless framework for AWS) - https://github.com/aws/chalice
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
aws.amazon.com/activate
Everything and Anything Startups
Need to Get Started on AWS

Contenu connexe

Tendances

Tendances (20)

GPSTEC310_IAM Best Practices and Becoming an IAM Ninja
GPSTEC310_IAM Best Practices and Becoming an IAM NinjaGPSTEC310_IAM Best Practices and Becoming an IAM Ninja
GPSTEC310_IAM Best Practices and Becoming an IAM Ninja
 
Getting Started with Amazon EC2 Container Service
Getting Started with Amazon EC2 Container ServiceGetting Started with Amazon EC2 Container Service
Getting Started with Amazon EC2 Container Service
 
Identity and Access Management: The First Step in AWS Security
Identity and Access Management: The First Step in AWS SecurityIdentity and Access Management: The First Step in AWS Security
Identity and Access Management: The First Step in AWS Security
 
Security & Compliance in the cloud
Security & Compliance in the cloudSecurity & Compliance in the cloud
Security & Compliance in the cloud
 
Getting Started with AWS for Developers
Getting Started with AWS for DevelopersGetting Started with AWS for Developers
Getting Started with AWS for Developers
 
SID331_Architecting Security and Governance Across a Multi-Account Strategy
SID331_Architecting Security and Governance Across a Multi-Account StrategySID331_Architecting Security and Governance Across a Multi-Account Strategy
SID331_Architecting Security and Governance Across a Multi-Account Strategy
 
Introduction to the Security Perspective of the Cloud Adoption Framework (CAF)
 Introduction to the Security Perspective of the Cloud Adoption Framework (CAF) Introduction to the Security Perspective of the Cloud Adoption Framework (CAF)
Introduction to the Security Perspective of the Cloud Adoption Framework (CAF)
 
SID301_Using AWS Lambda as a Security Team
SID301_Using AWS Lambda as a Security TeamSID301_Using AWS Lambda as a Security Team
SID301_Using AWS Lambda as a Security Team
 
Building Serverless Microservices with AWS
Building Serverless Microservices with AWSBuilding Serverless Microservices with AWS
Building Serverless Microservices with AWS
 
WPS205_Is AWS GovCloud Right for your Regulated Workload
WPS205_Is AWS GovCloud Right for your Regulated WorkloadWPS205_Is AWS GovCloud Right for your Regulated Workload
WPS205_Is AWS GovCloud Right for your Regulated Workload
 
Dow Jones & Wall Street Journal's journey to manage traffic spikes while miti...
Dow Jones & Wall Street Journal's journey to manage traffic spikes while miti...Dow Jones & Wall Street Journal's journey to manage traffic spikes while miti...
Dow Jones & Wall Street Journal's journey to manage traffic spikes while miti...
 
WIN401_Migrating Microsoft Applications to AWS
WIN401_Migrating Microsoft Applications to AWSWIN401_Migrating Microsoft Applications to AWS
WIN401_Migrating Microsoft Applications to AWS
 
MBL201_Progressive Web Apps in the Real World
MBL201_Progressive Web Apps in the Real WorldMBL201_Progressive Web Apps in the Real World
MBL201_Progressive Web Apps in the Real World
 
WIN302-Deep Dive on Active Directory From One to Many AWS Regions.pdf
WIN302-Deep Dive on Active Directory From One to Many AWS Regions.pdfWIN302-Deep Dive on Active Directory From One to Many AWS Regions.pdf
WIN302-Deep Dive on Active Directory From One to Many AWS Regions.pdf
 
Achieving Continuous Compliance with CTP and AWS
Achieving Continuous Compliance with CTP and AWS Achieving Continuous Compliance with CTP and AWS
Achieving Continuous Compliance with CTP and AWS
 
Data Protection in Transit and at Rest
Data Protection in Transit and at RestData Protection in Transit and at Rest
Data Protection in Transit and at Rest
 
SID201_IAM for Enterprises How Vanguard strikes the Balance Between Agility, ...
SID201_IAM for Enterprises How Vanguard strikes the Balance Between Agility, ...SID201_IAM for Enterprises How Vanguard strikes the Balance Between Agility, ...
SID201_IAM for Enterprises How Vanguard strikes the Balance Between Agility, ...
 
Application Performance Management on AWS
Application Performance Management on AWSApplication Performance Management on AWS
Application Performance Management on AWS
 
Dev & Test on AWS Webinar October 2017 - IL Webinar
Dev & Test on AWS Webinar October 2017 - IL WebinarDev & Test on AWS Webinar October 2017 - IL Webinar
Dev & Test on AWS Webinar October 2017 - IL Webinar
 
WIN302-Deep Dive on Active Directory From One to Many AWS Regions
WIN302-Deep Dive on Active Directory From One to Many AWS RegionsWIN302-Deep Dive on Active Directory From One to Many AWS Regions
WIN302-Deep Dive on Active Directory From One to Many AWS Regions
 

En vedette

En vedette (20)

Automating Big Data Technologies for Faster Time-to-Value
 Automating Big Data Technologies for Faster Time-to-Value Automating Big Data Technologies for Faster Time-to-Value
Automating Big Data Technologies for Faster Time-to-Value
 
Managing Container Images with Amazon ECR - AWS Online Tech Talks
Managing Container Images with Amazon ECR - AWS Online Tech TalksManaging Container Images with Amazon ECR - AWS Online Tech Talks
Managing Container Images with Amazon ECR - AWS Online Tech Talks
 
Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Machine ...
Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Machine ...Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Machine ...
Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Machine ...
 
Tips and Tricks for Running Container Workloads on AWS
Tips and Tricks for Running Container Workloads on AWSTips and Tricks for Running Container Workloads on AWS
Tips and Tricks for Running Container Workloads on AWS
 
Keynote - Security is Coming
Keynote - Security is ComingKeynote - Security is Coming
Keynote - Security is Coming
 
Automating Amazon Inspector Assessments and Findings Remediation
Automating Amazon Inspector Assessments and Findings RemediationAutomating Amazon Inspector Assessments and Findings Remediation
Automating Amazon Inspector Assessments and Findings Remediation
 
Getting Started with Serverless Apps
Getting Started with Serverless AppsGetting Started with Serverless Apps
Getting Started with Serverless Apps
 
Delivering DevOps on AWS - Transformation Day Public Sector London 2017
Delivering DevOps on AWS - Transformation Day Public Sector London 2017Delivering DevOps on AWS - Transformation Day Public Sector London 2017
Delivering DevOps on AWS - Transformation Day Public Sector London 2017
 
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...
Cloud Economics; How to Quantify the Benefits of Moving to the Cloud - Transf...
 
Serverless by Example: Building a Real-Time Chat System
Serverless by Example: Building a Real-Time Chat SystemServerless by Example: Building a Real-Time Chat System
Serverless by Example: Building a Real-Time Chat System
 
Building Chatbots with Amazon Lex
Building Chatbots with Amazon LexBuilding Chatbots with Amazon Lex
Building Chatbots with Amazon Lex
 
Deep Dive on Amazon DynamoDB - AWS Online Tech Talks
Deep Dive on Amazon DynamoDB - AWS Online Tech TalksDeep Dive on Amazon DynamoDB - AWS Online Tech Talks
Deep Dive on Amazon DynamoDB - AWS Online Tech Talks
 
Introduction to Amazon Web Services
Introduction to Amazon Web ServicesIntroduction to Amazon Web Services
Introduction to Amazon Web Services
 
Voice of the Customer: Zocdoc and Elevating Security While Moving to AWS
Voice of the Customer: Zocdoc and Elevating Security While Moving to AWSVoice of the Customer: Zocdoc and Elevating Security While Moving to AWS
Voice of the Customer: Zocdoc and Elevating Security While Moving to AWS
 
Run Your CI/CD Pipeline at Scale for a Fraction of the Cost - AWS Online Tech...
Run Your CI/CD Pipeline at Scale for a Fraction of the Cost - AWS Online Tech...Run Your CI/CD Pipeline at Scale for a Fraction of the Cost - AWS Online Tech...
Run Your CI/CD Pipeline at Scale for a Fraction of the Cost - AWS Online Tech...
 
Become a Cloud Security Ninja
Become a Cloud Security NinjaBecome a Cloud Security Ninja
Become a Cloud Security Ninja
 
Internet of Things (IoT) with Intel
Internet of Things (IoT) with IntelInternet of Things (IoT) with Intel
Internet of Things (IoT) with Intel
 
Incident Response: Preparing and Simulating Threat Response
Incident Response: Preparing and Simulating Threat ResponseIncident Response: Preparing and Simulating Threat Response
Incident Response: Preparing and Simulating Threat Response
 
運用 Amazon 提供 Robo-Advisors 與 FinteXchange 交易市集上的AaaS、DaaS、PaaS 服務
運用 Amazon 提供 Robo-Advisors 與 FinteXchange 交易市集上的AaaS、DaaS、PaaS 服務運用 Amazon 提供 Robo-Advisors 與 FinteXchange 交易市集上的AaaS、DaaS、PaaS 服務
運用 Amazon 提供 Robo-Advisors 與 FinteXchange 交易市集上的AaaS、DaaS、PaaS 服務
 
Digital Transformation - Transformation Day Public Sector London 2017
Digital Transformation - Transformation Day Public Sector London 2017Digital Transformation - Transformation Day Public Sector London 2017
Digital Transformation - Transformation Day Public Sector London 2017
 

Similaire à Soup to Nuts: Identity Federation for AWS

Similaire à Soup to Nuts: Identity Federation for AWS (20)

AWS X-Ray: Debugging Applications at Scale - AWS Online Tech Talks
AWS X-Ray: Debugging Applications at Scale - AWS Online Tech TalksAWS X-Ray: Debugging Applications at Scale - AWS Online Tech Talks
AWS X-Ray: Debugging Applications at Scale - AWS Online Tech Talks
 
DEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-RayDEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-Ray
 
Use Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition SystemUse Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition System
 
Use Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition SystemUse Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition System
 
SRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the EdgeSRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the Edge
 
How to use IAM roles grant access to AWS
How to use IAM roles grant access to AWSHow to use IAM roles grant access to AWS
How to use IAM roles grant access to AWS
 
Best Practices for Active Directory with AWS Workloads
Best Practices for Active Directory with AWS WorkloadsBest Practices for Active Directory with AWS Workloads
Best Practices for Active Directory with AWS Workloads
 
MAE401_Designing for DisneyMarvel Studio-Grade Security
MAE401_Designing for DisneyMarvel Studio-Grade SecurityMAE401_Designing for DisneyMarvel Studio-Grade Security
MAE401_Designing for DisneyMarvel Studio-Grade Security
 
Serverless in Action on AWS
Serverless in Action on AWSServerless in Action on AWS
Serverless in Action on AWS
 
GPSTEC302_Anti-Patterns- Learning through Failure
GPSTEC302_Anti-Patterns- Learning through FailureGPSTEC302_Anti-Patterns- Learning through Failure
GPSTEC302_Anti-Patterns- Learning through Failure
 
Technological Accelerants for Organizational Transformation - DVC303 - re:Inv...
Technological Accelerants for Organizational Transformation - DVC303 - re:Inv...Technological Accelerants for Organizational Transformation - DVC303 - re:Inv...
Technological Accelerants for Organizational Transformation - DVC303 - re:Inv...
 
DVC303-Technological Accelerants for Organizational Transformation
DVC303-Technological Accelerants for Organizational TransformationDVC303-Technological Accelerants for Organizational Transformation
DVC303-Technological Accelerants for Organizational Transformation
 
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
 
Federation & Access Management
Federation & Access ManagementFederation & Access Management
Federation & Access Management
 
HLC302_Adopting Microservices in Healthcare Building a Compliant DevOps Pipel...
HLC302_Adopting Microservices in Healthcare Building a Compliant DevOps Pipel...HLC302_Adopting Microservices in Healthcare Building a Compliant DevOps Pipel...
HLC302_Adopting Microservices in Healthcare Building a Compliant DevOps Pipel...
 
SRV336_Build a Serverless, Face-Recognizing IoT Security System with Amazon R...
SRV336_Build a Serverless, Face-Recognizing IoT Security System with Amazon R...SRV336_Build a Serverless, Face-Recognizing IoT Security System with Amazon R...
SRV336_Build a Serverless, Face-Recognizing IoT Security System with Amazon R...
 
Security @ (Cloud) Scale Deep Dive
Security @ (Cloud) Scale Deep DiveSecurity @ (Cloud) Scale Deep Dive
Security @ (Cloud) Scale Deep Dive
 
Identity Round Robin Workshop - Serverless Round: Security Week at the SF Loft
Identity Round Robin Workshop - Serverless Round: Security Week at the SF LoftIdentity Round Robin Workshop - Serverless Round: Security Week at the SF Loft
Identity Round Robin Workshop - Serverless Round: Security Week at the SF Loft
 
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
 
Devoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWSDevoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWS
 

Plus de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Plus de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Soup to Nuts: Identity Federation for AWS

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Soup to Nuts: Identity Federation for AWS Quint Van Deman, Global Business Development Manager, AWS Identity & Directory Services
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Build consistent vernacular & mental model Tour the major federation bridges across AWS Fun & lively session with demos Links to key content & patterns What to expect (C) Copyright Jean-Remy Duboc and licensed for reuse under the Creative Commons Attribution-Generic2.0 License By Adam.J.W.C. (Own work) [CC BY 3.0 (http://creativecommons.org/licenses/by/3.0], via Wikimedia Commons
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Building a consistent vernacular & mental model
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved What do we mean when we say “federation”?
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Identity consumersIdentity providers Definition (for today) Stores identities Authentication Authorization (Coarse) Authorization (Fine) Trust Stores references Protocols No Sync
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Rationale Users Security Compliance Before After Unique credentials 1:Many reuse Credentials everywhere Centrally managed Bespoke Unified Result
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Understanding planes of access EC2 Control plane – AWS API (e.g. ec2:StartInstance) Data plane – VPC connection (e.g. SSH, RDP) Different: • Paths • Credentials • Protocols
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Understanding planes of access DynamoDB Control plane – AWS API (e.g. dynamodb:CreateTable) Data plane – AWS API (e.g. dynamodb:GetItem) Same: • Path • Credential • Protocol
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Mental Model Evaluation SelectionUse cases Blueprints
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Bridge #1: Security Markup Assertion Language (SAML)
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved SAML Primer Service provider (SP) Metadata (in advance) Assertion Identity provider (IdP) AuthN & AuthZ User
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved SAML Internal AD SAML IdP Cognito Apps APIs Console API CLI Data plane APIs SAML Federation
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved SAML Federation Demonstrations
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved SAML demo review Amazon S3 permissions Many AWS accounts Custom durations MFA for SAML http://bit.ly/2dBXMUq SAML federation for the AWS Management Console, APIs, and CLI Self-paced workshop materials (all this & much more)
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved SAML demo review SAML federation for an Amazon Cognito enabled web app & custom API (using API Gateway) Cognito documentation (includes sample code) http://amzn.to/2wSH4IC CloudFront S3 SPA Cognito Cognito SAML IdP Assertion Tokens API Gateway (Chalice)
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved SAML Federation SAML Internal AD SAML IdP Cognito Apps APIs Console API CLI Data plane APIs Redshift Aurora MySQL QuickSight AppStream SaaS Apps (Outside AWS)
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Bridge #2: Open ID Connect (OIDC)
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved OIDC Primer Relying Party (RP) Metadata & Registration (in advance) Tokens OpenID provider (OP) User AuthN & AuthZ
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved OIDC Federation SAML OIDC OIDCExternal Internal AD OIDC OP SAML IdP Cognito Apps APIs Redshift Aurora MySQL QuickSight AppStream Apps Data plane APIs SaaS Apps (Outside AWS) Console API CLI
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved OIDC Federation Demonstrations
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved OIDC demo review OIDC federation for an Amazon Cognito enabled web app & custom API (using API Gateway) Cognito documentation (includes sample code) CloudFront S3 SPA Cognito Cognito OP Tokens API Gateway (Chalice) Tokens http://amzn.to/2wSH4IC
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved OIDC demo review OIDC federation for an Amazon Cognito enabled backend app & external API Cognito documentation Cognito Tokens SSM Param Store External API http://amzn.to/2grl7NV
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Bridge #3: Active Directory Trust with Kerberos
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved AD Trust/Kerberos Primer On premises Active Directory Domain Controller AWS Directory Service For Microsoft Active Directory (Enterprise Edition) Kerberos enabled resource AD Forest Trust Domain Join User Group Add group membership
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved AD Trust SAML OIDC OIDC AD Trust External Internal AD OIDC OP SAML IdP Cognito Apps APIs Redshift Aurora MySQL QuickSight AppStream Apps Data plane APIs Windows/EC2 Workspaces SQL Server WorkDocs WorkMail SaaS Apps (Outside AWS) Console API CLI
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved AD Trust details for Windows/EC2 Use on premises AD identities for authentication & authorization in Windows/EC2 Directory Service documentation On premises Active Directory Domain Controller AWS Directory Service For Microsoft Active Directory (Enterprise Edition) Domain joined Windows EC2 instance AD Forest Trust Domain Join User Group Add group membership http://amzn.to/2ysq4Ns
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AD Trust details for Workspaces Use on premises AD identities to provision and access workspaces Workspaces documentation On premises Active Directory Domain Controller AWS Directory Service For Microsoft Active Directory (Enterprise Edition) AD Forest Trust User Admin Search & Provision Domain Join Login (AuthN & AuthZ) http://amzn.to/2x6IcZB
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Bridge #4: AWS Cross Account (XA) Trust
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved AWS XA Trust Primer Target AWS Account IAM Role Permission Policy: Controls access to AWS services & resources Trust Policy: Specifies the Principals who can assume the role, and a shared secret (external id) Source AWS Account IAM Role IAM User Permission Policy: Allows sts:AssumeRole to remote role (in target) sts:AssumeRole Short-term credential Invoke AWS APIs Access Mgmt Console ( You ) ( External Entity )( or vice versa ) Note: AWS XA Trusts also support many other use cases
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Cross Account Cross Account Trust Cognito Apps APIs Redshift Aurora MySQL QuickSight AppStream Data plane APIs Windows/EC2 Workspaces SQL Server WorkDocs WorkMail SaaS Apps (Outside AWS) Console API CLI External Apps AWS Cred
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Cross account trust details Use AWS credentials from one account to federate into another account IAM documentation aws sts assume-role --role-arn arn:aws:iam::012345678912:role/RoleName --role-session-name use_traceable_name --external-id mysharedsecret { "AssumedRoleUser": { "AssumedRoleId": "XXXXXXXXXXXXXXXXXXXXX:use_traceable_name", "Arn": “<roleARN>/use_traceable_name" }, "Credentials": { "SecretAccessKey": "ssssssssssssssssssssssssssssssssssssssss", "SessionToken": "ttttttttttttttttttttttttttttttttttttttttttt", "Expiration": "2017-10-19T00:01:38Z", "AccessKeyId": "aaaaaaaaaaaaaaaaaaaaaaa" } } http://amzn.to/2zzwE2n
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Bridge #5: Custom Federation Broker
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Custom Federation Broker Primer Broker Credential User Entitlements & Policies sts:AssumeRole (or) sts:GetFederationToken Scoping policy Short-term credential authN & authZ Note: Mostly a legacy mechanism
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Custom Broker Cross Account Trust Custom Cognito Apps APIs Redshift Aurora MySQL QuickSight AppStream Data plane APIs Windows/EC2 Workspaces SQL Server WorkDocs WorkMail SaaS Apps (Outside AWS) Console API CLI External Apps BrokerCredential AWS Cred
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Wrap Up
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Summary SAML OIDC AD Trust XA Trust Custom Many bridges, for different: • Planes of access • Protocols • Source credentials Remember our mental model:
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Remaining whitespace CC0 Public Domain - Free for commercial use http://maxpixel.freegreatpicture.com/Shadow-White-Space-Renovate-Blank-Renovated-Light-763247
  • 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Other helpful links • SAML: • Amazon Redshift - http://amzn.to/2yxWX98 • Amazon RDS MySQL & Amazon Aurora - http://amzn.to/2gjBDvP • Amazon AppStream 2.0 - http://amzn.to/2gkU17q • Amazon Quicksight - http://amzn.to/2xPfyf3 • OIDC: • Amazon Cognito Federated Identities - http://amzn.to/2gl3yvp • sts:AssumeRoleWithWebIdentity - http://amzn.to/2yTcOCr • AD Trust: • Amazon RDS SQL Server - http://amzn.to/2glehop • WorkDocs - http://amzn.to/2x6CNBz • WorkMail - http://amzn.to/2kZFxyZ • AWS IAM Cross account trust - http://amzn.to/2kZvRon • Custom federation broker - http://amzn.to/2yyqzov • Chalice (Python serverless framework for AWS) - https://github.com/aws/chalice
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved aws.amazon.com/activate Everything and Anything Startups Need to Get Started on AWS