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
Programmatically updating servers from without overwriting them #7426
Comments
Hi @maxnitze, That's the behaviour of the feature; |
Is there another way to update an existing server programmatically? |
Apart from GUI, there is no other way to do it now. |
Okay. So from my perspective there are multiple ways to solve my specific problem:
What do you think? |
I installed pgadmin in Kubernetes and added a sidecar to auto-import servers created as configmaps in the pgadmin namespace (using https://github.com/kiwigrid/k8s-sidecar).
To get the servers into pgadmin I compile them all into one
servers.json
(making sure they are allShared
) and callsetup.py load-servers --replace servers.json
in the main pgadmin container with the admin user.This works quite well in general. All servers are created, updated and deleted from the list for all users (the users login with Keycloak/Oauth2).
BUT: Every time something changed (server was added, changed, deleted) and the
load-servers
command ran, the saved passwords of all users are gone. My guess is, that the--replace
deletes the reference somehow.I already tried to use stable keys in the
servers.json
and removing the--replace
hpoing, that this will update the existing entries. But it seems to just add new entries then.Is there the possibility to update all servers without loosing the saved passwords for all users?
Thanks in advance!
The text was updated successfully, but these errors were encountered: