STS Flashcards

1
Q

What is STS?

A

Security Token Service is a web service that enables you to request temporary, limited-privilege credentials for IAM users or for users that you authenticate (federated users)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the STS token valid time?

A

from 15 minutes and up to 1 hour, but can be refreshed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are most important STS API operations?

A
  • AssumeRole
  • AssumeRoleWithSAML
  • AssumeRoleWithWebIdentity
  • GetSessionToken
  • GetFederationToken
  • GetCallerIdentity
  • DecodeAuthorizationMessage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is STS AssumeRole operation?

A
  • Within your own account: for enhanced security

* Cross Account Access: assume role in target account to perform actions there

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is STS AssumeRoleWithSAML operation?

A

return credentials for users logged with SAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is STS AssumeRoleWithWebIdentity operation?

A
  • return creds for users logged with an IdP (Facebook Login, Google Login, OIDC compatible…)
  • AWS recommends against using this, and using Cognito instead
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is STS GetSessionToken operation?

A

for MFA, from a user or AWS account root user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does work STS to Assume a Role?

A

1- Define an IAM Role within your account or cross-account
2- Define which principals can access this IAM Role
3- Use STS to retrieve credentials and impersonate the IAM Role you have access to (AssumeRole API)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is STS GetFederationToken operation?

A

obtain temporary creds for a federated user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is STS GetCallerIdentity operation?

A

return details about the IAM user or role used in the API call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is STS DecodeAuthorizationMessage operation?

A

decode error message when an AWS API is denied

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When you must use STS GetSessionToken API?

A

When the policy includes a condition saying aws:MultiFactorAuthPresent:true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly