Skip to content
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

add user parameter for db connection #1327

Merged
merged 2 commits into from
Oct 15, 2020
Merged

add user parameter for db connection #1327

merged 2 commits into from
Oct 15, 2020

Conversation

nichtsfrei
Copy link
Member

@nichtsfrei nichtsfrei commented Oct 14, 2020

What:

under some circumstances the db username is not the same as the local
user. To support that usecase the parameter db-user is added.

Why:

To enable socket connection into an container with trust instead of peer configuration.

How:

Start a docker container with with a installed postgresql, mount -v /tmp/test:/var/run/postgresql:z , change peer to trust in it via:

 RUN sed -i 's/peer/trust/' /etc/postgresql/11/main/pg_hba.conf

start a migration with a postgres known username and db:

/usr/local/sbin/gvmd --db-host=/tmp/test/ -d gvmd --db-user gvm -m

Checklist:

Copy link
Contributor

@mattmundell mattmundell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK.

Could you add a change log entry, please?

under some circumstances the db username is not the same as the local
user. To support that usecase the parameter db-user is added.
@nichtsfrei nichtsfrei merged commit 1f3fe26 into greenbone:master Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants