-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Credentials Overwrite does not work for Postgres node #4611
Comments
@kamalptw I'm unable to reproduce this by using
Also, the endpoint can only be called once. So, if you make a call to the endpoint with |
@kamalptw i managed to find the issue, and the above PR should fix it ^ |
@netroy Thanks so much. I'll keep an eye out for when this gets released! |
Fix got released with |
Describe the bug
After overwriting credentials globally for Postgres node, when adding and saving Postgres credentials, we get an error connecting to 127.0.0.1:5432. Notice that the host and port are the default ones and not the ones we overwrote.
To Reproduce
Steps to reproduce the behavior:
As a self hosted instance, we would like to hide postgres connection parameters from the users who are accessing the instance. We do this using CREDENTIALS_OVERWRITE_ENDPOINT variable. We make an API call like so
curl -H "Content-Type: application/json" --data @credentials.json <instance-url>/<CREDENTIALS_OVERWRITE_ENDPOINT>
This returns a
{success: true}
meaning the credential was successfully overwritten for postgresAfter this
Expected behavior
The expectation is that the overwritten credentials should be used when adding a new credential rather than the default host, database, password and port.
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: