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 option to disable db user creation trough environment variable #36428

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Jan 29, 2023

When providing root/superuser db credentials, instead of using them as-is Nextcloud uses them to create a new non-root/superuser user.

While this can be useful to protect admins against accidentally running with elevated db access, this also interferes with some setup mechanisms that want more control over what db user is used. Currently the only option for these systems is to patch out the behavior themselves (see for NixOs for example).

This adds a way to disable this behavior by setting the setup_create_db_user config variable to false, this can also be done trough an environment variable (NC_setup_create_db_user=false) for the setup command.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Jan 29, 2023
@icewind1991 icewind1991 added this to the Nextcloud 26 milestone Jan 29, 2023
@icewind1991 icewind1991 requested review from a team, ArtificialOwl, blizzz and come-nc and removed request for a team January 29, 2023 15:44
@blizzz blizzz mentioned this pull request Feb 1, 2023
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

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

Code looks good, non blocking question inline

@icewind1991 icewind1991 added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 21, 2023
@icewind1991 icewind1991 merged commit 8bc9e23 into master Feb 21, 2023
@icewind1991 icewind1991 deleted the disable-db-user-create branch February 21, 2023 16:11
@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
@szaimen
Copy link
Contributor

szaimen commented Jun 20, 2023

This was not documented, was it?

@joshtrichards
Copy link
Member

This was not documented, was it?

Indeed. Created tracker in docs repo for the time being: nextcloud/documentation#11858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish pending documentation This pull request needs an associated documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants