question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Renewing STS credentials without prompting for password again.

See original GitHub issue

I have been trying out this command-line tool to move our AWS Users over to SAML, including their CLI usage. Unfortunately you always need to sign-in again after 1 hour. Some of our users run processes which take more than an hour to complete and need AWS access throughout the process.

AWS allows SAML users to stay signed in for up to 12 hours. Amazon STS still only allows the generated keys to last for up to 1 hour.

I would love if this command-line tool would allow me to stay signed in, such that I don’t have to re-enter my password every hour.

I have two ideas for how to achieve this:

  1. Introduce a command-line switch such as --auto, which keeps the script running, remembering the user password in memory, and automatically re-authenticating when the time is about to run out.
  2. Grab the cookie which contains the token, and write it to the ~/.aws/config file, and when running the command again, check if the token is still valid, and generate a new STS credential.

The two tactics might even be complementary, such that the --auto parameter makes the script wait until the credentials are about to expire, and then re-authenticates using the token in step 2.

I have not looked deeply into the options for solving this, but I might be able to create a Pull Request, I would just like to know what method would be preferred.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
FrederikNScommented, Jun 26, 2018

So now that SAML caching works, and I have also successfully had 12 hour STS credentials generated, I don’t really feel this issue is a problem anymore. I can now sign in with just my password once a day, which is perfectly fine.

I’m content with closing this issue unless anyone else has additional needs.

1reaction
midecommented, Jan 31, 2018

Interesting; thanks for the info. I’ll take a look when I get a chance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Requesting temporary security credentials - AWS Identity and ...
To request temporary security credentials, you can use AWS Security Token Service (AWS STS) operations in the AWS API. These include operations to...
Read more >
A federated user is repeatedly prompted for credentials ...
Describes an issue in which a federated user is repeatedly prompted for credentials when the user tries to log on to the AD...
Read more >
Refresh the Security Token Service Certificate
Type the password again when prompted. Click OK. Restart the Platform Services Controller node to start both the STS service and the vSphere ......
Read more >
Frequently Asked Questions | FedIdCard
A new password would be useful to an applicant who did not receive the Credential Delivered e-mail, lost or deleted the e-mail, or...
Read more >
SharePoint Keeps Asking for Password Every time?
Go to the file's properties > Security > Advanced > and inherit the permissions. SharePoint prompted for login credentials for three times and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found