New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(athena-driver) #7407 allow to pass credentials #7429
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 8 Ignored Deployments
|
I've actually found that this change wont work if I want to pass a provider. It compares to undefined and will override it. |
credentials: accessKeyId && secretAccessKey | ||
? { accessKeyId, secretAccessKey } | ||
: undefined, | ||
credentials, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest simplifying this code by moving the original code for credentials
:
credentials: accessKeyId && secretAccessKey
? { accessKeyId, secretAccessKey }
: undefined,
before ...restConfig
.
It will allow anyone to redeclare credentials
by passing it via constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @trompa, for your contribution! 🍰 |
This appears to cause a regression for services using instance metadata and not passing credentials in. We have a working cube install in production on v0.33 that when upgraded to v0.34 returns:
Rolling back to v0.33 resolved this. Checking the diff I can't see exactly why this might be the case, unless |
It doesn't change that behavior. Thanks |
Check List
Issue Reference this PR resolves
[For example #12]
Description of Changes Made (if issue reference is not provided)
[Description goes here]