rill icon indicating copy to clipboard operation
rill copied to clipboard

Refresh credentials upon each attempt to access sources

Open medriscoll opened this issue 2 years ago • 3 comments

Describe the bug At present, if an update is made to one's local AWS credentials, Rill must be restarted in order for those updated credentials to be recognized.

To Reproduce Steps to reproduce the behavior:

  1. Attempt to add a source in Rill pointing at a private S3 bucket that requires credentials
  2. Receive an access error
  3. Update the credentials in ~/.aws/credentials
  4. Re-attempt to add a source pointing to the same S3 bucket
  5. Receive the same access error

Expected behavior The access should work on the second attempt, following a change to the local credentials in ~/.aws/credentials.

medriscoll avatar Nov 14 '23 09:11 medriscoll

Hey @medriscoll

Could you please share more details on how you are updating credentials? It is working for me. I tried two approaches:

  1. Updating ~/.aws/credentials via aws configure.
  2. Updating ~/.aws/credentials directly via file rename.

k-anshul avatar Dec 05 '23 06:12 k-anshul

@k-anshul : Have you tried reproducing it without restarting Rill ?

nishantmonu51 avatar Jan 02 '24 14:01 nishantmonu51

@k-anshul : Have you tried reproducing it without restarting Rill ?

Yes. I tried the exact same steps that Mike mentioned. Tried two ways for step 3 (Update the credentials in ~/.aws/credentials) i.e. via aws configure and direct file edit and both worked.

k-anshul avatar Jan 02 '24 14:01 k-anshul