rust-lang / rust-lang/simpleinfra

awscreds fails when run in same shell

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HCL
Stars
178
Forks
107
Avg merge
15h 57m
Merged PRs (30d)
38

Description

As far as I can tell, the awscreds script will fail to run if you run it again in the same shell (i.e. AWS_SESSION_TOKEN is still set), as that token is no longer valid after 12 hours, but the AWS CLI will continue to use it.

For now I've manually worked around this via unset AWS_SESSION_TOKEN but we should probably aim to do so in the script? Not sure.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the awscreds script and reproduce running it twice in the same shell while AWS_SESSION_TOKEN remains set. Check how the script and AWS CLI handle that variable; the issue is done when a repeated run no longer uses the stale token and completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.