For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configure JIT Access to the AWS Console

Providing just-in-time access to the AWS console with authenticated SSO Launch URLs and session recording

Overview

Using Keeper Privileged Cloud, when a user launches an RBI session on an AWS linked cloud resource record, Keeper automatically signs in the user to the AWS Management Console. No password required.

This works with both JIT ephemeral accounts and existing AWS users.

Before you start

  • Set up the PAM configuration as outlined in AWS Environment Setup, and connect the corresponding gateway.

  • Make sure the record's URL is pointed to the correct AWS console, such as https://console.aws.amazon.com/ (or https://console.amazonaws-us-gov.com/ for GovCloud). If the URL points somewhere else, or the account is in an AWS China region, the session still opens but lands on the regular AWS login page.

  • To use ephemeral accounts, make sure to check the "create ephemeral account for connection" box in the record's JIT settings, and validate the permissions the account should receive.

PAM Cloud Resource record JIT settings for ephemeral account creation
This record is setup to use an ephemeral account when connecting to the cloud resource.

Launching a session

1

Open the record

Click Launch.

2

Access the AWS console

The AWS console opens in a Remote Browser Isolation ("RBI") window, and the remote AWS session is already signed in.

3

Audit and protect

Based on the configuration of the resource, sessions can be automatically session recorded and summarized with KeeperAI.

That's everything the user does. The rest happens in the background.

PAM Cloud Resource record showing the AWS console in an RBI window after automatically being logged into the environment
This record shows the AWS console in an RBI window after automatically being logged into the environment with an ephemeral account.

What happens behind the scenes

1

An ephemeral user account is created when needed

For an ephemeral account, the gateway creates a new user in AWS with the permissions from the JIT settings. For an existing user, it skips this step.

2

A temporary access key is created

The gateway creates a temporary access key (a token) on the user's account. AWS won't issue a console login link without one.

3

A single use SSO launch URL is generated

The gateway uses the newly minted access key to generate a pre-authorized login link, which is the SSO launch URL, and passes it to the RBI.

4

RBI is redirected to the AWS console

When the RBI window loads, it opens the link and the user is logged straight in to the console.

AWS console showing the newly created ephemeral user after launching the RBI session
In this example, an ephemeral user account has been created in the AWS IAM instance when the RBI session from above launched.

When the session ends

A session ends when the JIT timer runs out or when the user closes the RBI session. The KeeperPAM Gateway then removes what it created:

  • Ephemeral user: The user is deleted from AWS, and its access key goes with it.

  • Existing user: The gateway deletes the access key it created for the session. The user account and any access keys it already had are left alone.

AWS console showing the previously created ephemeral user no longer exists after closing the RBI session
In this example, the AWS console shows the previously created ephemeral user no longer exists after closing the RBI session.

Troubleshooting

The user already has two access keys

AWS limits each user at two access keys. If an existing user already has two, the gateway can't add the temporary one, so the SSO launch URL can't be generated and the session doesn't start. The user sees this error:

Can't start the session: this launch credential's AWS user is already at the maximum of 2 access keys, so a temporary sign-in key can't be created. Remove an unused access key on that IAM user and try again.

To fix it, delete one of the user's access keys in AWS (IAM > Users > select the user > Security credentials > Access keys), then launch again. Check that nothing still depends on the key before you delete it. Deactivating the key isn't enough, because AWS counts inactive keys toward the limit.

Ephemeral users don't run into this. They start with no access keys.

The console takes a while to load

AWS needs a few seconds to recognize a new access key before it will issue a login link. Expect a short wait on every launch, and up to about 15 seconds for a brand-new ephemeral user.

Last updated