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

Update redis.config.php | Set redis password from Docker secret (REDIS_HOST_PASSWORD_FILE) #2232

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

VesperiaArt
Copy link
Contributor

@VesperiaArt VesperiaArt commented Jun 2, 2024

Set the redis password config from the REDIS_HOST_PASSWORD_FILE environment variable. Fix an issue similar to #1402 when using the REDIS_HOST_PASSWORD_FILE environment variable to provide the redis host secret.

I had the same problem as described in #1402 , except that I was using the REDIS_HOST_PASSWORD_FILE environment variable to provide the redis password value (like some other users in this aforementioned issue). The fix included in this PR has fixed the issue for me and finally freed my logs from getting filled with "NOAUTH Authentication required" . OCC commands also correctly work without printing "NOAUTH Authentication required".

Correctly set the redis password config from the REDIS_HOST_PASSWORD_FILE environment variable. Fix an issue similar to #1402 when using the REDIS_HOST_PASSWORD_FILE environment variable to provide the redis host secret.

Signed-off-by: Vesperia Art <[email protected]>
@VesperiaArt VesperiaArt changed the title Update redis.config.php Update redis.config.php | Set redis password from Docker secret (REDIS_HOST_PASSWORD_FILE) Jun 2, 2024
Copy link
Member

@joshtrichards joshtrichards left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@J0WI J0WI left a comment

Choose a reason for hiding this comment

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

Please update the Readme as well.

@VesperiaArt
Copy link
Contributor Author

Please update the Readme as well.

Not sure what to add, since the README already mention that REDIS_HOST_PASSWORD_FILE is supported for docker secrets. This PR fixes the nextcloud's redis config reading the password from this environment variable.

Do you mean adding instruction for the user to apply the fix themselves ?

@J0WI J0WI merged commit ec1af31 into nextcloud:master Jun 6, 2024
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: occ files:scan -> Exception during scan: NOAUTH Authentication required.
4 participants