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 ussename ACL auth connect distribution registry failed #18892

Closed
MinerYang opened this issue Jul 5, 2023 · 1 comment
Closed

Comments

@MinerYang
Copy link
Contributor

MinerYang commented Jul 5, 2023

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior:
upstream distribution do not support username-password auth mode
using external_reids.username would cause distribution redis connection failure , which would not affect image push/pull but only have an impact on distribution performance, could see error log in the registry container.

time="2023-07-05T06:29:53.894080917Z" level=error msg="redis: error connecting: WRONGPASS invalid username-password pair or user is disabled." go.version=go1.20.4 instance.id=ea5a081f-84d5-4d63-8618-70f2078871be redis.connect.duration=124.519µs service=registry version=v2.8.2.m
time="2023-07-05T06:29:53.894240222Z" level=error msg="redis: error connecting: WRONGPASS invalid username-password pair or user is disabled." go.version=go1.20.4 instance.id=ea5a081f-84d5-4d63-8618-70f2078871be redis.connect.duration=116.94µs service=registry version=v2.8.2.m

Steps to reproduce the problem:

  • configure external redis with both username and password
external_redis:
  # support redis, redis+sentinel
  # host for redis: <host_redis>:<port_redis>
  # host for redis+sentinel:
  #  <host_sentinel1>:<port_sentinel1>,<host_sentinel2>:<port_sentinel2>,<host_sentinel3>:<port_sentinel3>
  host: myhost:6379
  password: mypassword
  # Redis AUTH command was extended in Redis 6, it is possible to use it in the two-arguments AUTH <username> <password> form.
  username: virginia
 ...
  • install harbor
  • push/pull image into harbor

Versions:
Please specify the versions of following systems.

  • harbor version: v2.8.0/v2.8.1 / v2.8.2
  • docker engine version: 23.0.3

Additional context:

Note: distribution (until v2.8.2) only support auth by password

@MinerYang
Copy link
Contributor Author

This issue could be bypassed by following this FAQ

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

No branches or pull requests

2 participants