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

Only set REDIS_HOST_PASSWORD when Redis auth is enabled #451

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

mjdazz
Copy link
Contributor

@mjdazz mjdazz commented Oct 15, 2023

Pull Request

Description of the change

REDIS_HOST_PASSWORD is only set when Redis authentication is turned on.

Benefits

Because of the container's entrypoint, Redis setup without authentication only works when the environment variable REDIS_HOST_PASSWORD is not set at all (cf. https://github.com/nextcloud/docker/blob/master/docker-entrypoint.sh#L122). Previously, the chart only allowed for setting it as an empty string which is not enough and leads to a broken Redis connection string.

Possible drawbacks

None I could think of.

Applicable issues

Additional information

Checklist

Due to the container's entrypoint, the configuration is messed up when
Redis is used without authentication and the environment variable
`REDIS_HOST_PASSWORD` is present (cf.
https://github.com/nextcloud/docker/blob/master/docker-entrypoint.sh#L122).

With the old setup, `REDIS_HOST_PASSWORD` will always be a string or an
empty string which is not enough. Now the chart only sets
`REDIS_HOST_PASSWORD` when `redis.auth.enabled` is `true`.

Signed-off-by: mjdazz <[email protected]>
@provokateurin provokateurin merged commit 13a08df into nextcloud:main Oct 15, 2023
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.

2 participants