-
Notifications
You must be signed in to change notification settings - Fork 392
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
Allow preconfiguring connection type value in data-sources.json (e.g. PostgreSQL Passfile) and/or document how to do this #2911
Comments
Hello @webketje I am confused about your authentication screen. |
@LonwoLonwo The screenshot just indicates the location of the field that I wish to show "PostgreSQL PgPass" by default, the first time it is opened. In the context of a Docker container, you don't want to have to do post-deploy configuration in the dashboard, my request is to pre-set this value programmatically via env vars/ config at the server-side. I've searched some more and found: https://dbeaver.com/docs/dbeaver/Database-authentication-models/#pgpass, which mentions the model ID of the value (I think) So I created a connection via the UI, then went into the container to see how the values were updated. What I believe I am looking for is: {
"connections": {
"postgres-1": {
"auth-model": "postgres_pgpass",
...otherProperties
}
}
} Haven't tested yet, but just as much in the dark as to where Cloudbeaver will look for the pgpass file... Does it take into account the PGPASSFILE env var? |
Hello @webketje Sorry for the late response. We've created an article for you about PGPass. Please take a look: https://github.com/dbeaver/cloudbeaver/wiki/Authentication-PostgreSQL-Pgpass |
Thank you @LonwoLonwo, one of the doubts I have was whether, just like postgresql, Cloudbeaver would respect the env var
Having a connection with Another oddity (unrelated to this issue) I noticed while creating a depending container image is that defining serverName in cloudbeaver.conf is not enough to "skip" Cloudbeaver setup, but it works when CB_SERVER_NAME is defined as env var: FROM dbeaver/cloudbeaver:latest
# ... other setup stuff
# must specify this in the Dockerfile and not as 'serverName' in cloudbeaver.conf
# in order to skip manual setup at first visit after container creation
ENV CB_SERVER_NAME='DB ADMIN' |
Is your feature request related to a problem? Please describe.
It looks like it's currently not possible to preconfigure a connection to use a
.pgpass
file. The use case is a Dockerfile extendingdbeaver/cloudbeaver:latest
, settingENV PGPASSFILE='/opt/cloudbeaver/conf/pgpass.conf'
, intended to be deployed on Openshift (using volume mounts and/or docker run --env and/or docker build --build-arg args)Describe the solution you'd like
I would like to be able to preconfigure the value "PostGreSQL Passfile" in the dropdown in the screenshot below as part of the
data-sources.json
connection spec. It already allows host, port, user, if it had aconnectionType
it could easily match a .pgpass file line with the rest of the connection's parameters. If this solution does exist, please make it easier to find in the docs? I've searched them for about an hour.Currently this is the only obstacle standing in the way of a fully automated containerized DB GUI solution. Another acceptable solution would be a way to pre-generate the
credentials-config.json
The text was updated successfully, but these errors were encountered: