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

External redis+sentinel NOAUTH when using just redis.external.existingSecret #1352

Closed
Kajot-dev opened this issue Nov 28, 2022 · 4 comments
Closed
Labels

Comments

@Kajot-dev
Copy link
Contributor

Kajot-dev commented Nov 28, 2022

Overview

I have Harbor configured with external redis+sentinel
Setting just the redis.external.password (and NOT setting redis.external.password ) field (in the values.yaml) applies the password to the registry and chartmuseum components only, while harbor core fails to PING redis+sentinel with NOAUTH: Authentication required.

To put it simply: Redis password is NOT injected in the Redis connection url if only the redis.external.existingSecret is set

Potentially some resource lookup with helm or some comment (in the values.yaml) explaining that regardless of the redis.external.existingSecret, redis.external.password must be set would be better than nothing (but not perfect ofc).

To reproduce

  1. Have external redis with authentication enabled
  2. Create secret with redis pasword
  3. Use that secret in the redis.external.existingSecret field
  4. Do NOT set the redis.external.password (you're using exisitng secret, right?)
  5. Deploy harbor from helm chart
  6. See harbor core crashing while trying to PING redis

Tested with redis+sentinel deployed with: https://github.com/bitnami/charts/tree/main/bitnami/redis

Expected behaviour

Harbor successfully connects to the Redis database using password from the existing secret

Another small thing is that redis url with the plaintext password is stored inside a ConfigMap and not a Secret (provided redis.external.password is set)

@zyyw
Copy link
Collaborator

zyyw commented Dec 1, 2022

This PR might be able to resolve this issue:

@ScionOfDesign
Copy link

I ran into this issue as well. It's super annoying, as Redis is the only secret that does not yet have the ability to be external.

@rgarcia89
Copy link
Contributor

Ran into that issue as well... quite annoying

Copy link

github-actions bot commented Feb 8, 2024

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants