Refresh credentials upon each attempt to access sources
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:
- Attempt to add a source in Rill pointing at a private S3 bucket that requires credentials
- Receive an access error
- Update the credentials in ~/.aws/credentials
- Re-attempt to add a source pointing to the same S3 bucket
- 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.
Hey @medriscoll
Could you please share more details on how you are updating credentials? It is working for me. I tried two approaches:
- Updating
~/.aws/credentialsviaaws configure. - Updating
~/.aws/credentialsdirectly via file rename.
@k-anshul : Have you tried reproducing it without restarting Rill ?
@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.