goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
23.75k stars 4.73k forks source link

Failed to add volcEngine as a replication registry #20349

Closed zyyw closed 5 months ago

zyyw commented 5 months ago

Steps to reproduce:

  1. go to https://console.volcengine.com/cr/region:cr+cn-beijing/instance/mse-test/overview
  2. click “获取临时访问指令”
  3. docker login with the "临时访问指令" works fine.
  4. Failed to add a replication registry endpoint with VolcEngine CR being the Provider. The Endpoint URL is https://<endpoint from the docker login>. The Access ID is the username from docker login. The Access Secret is the password from docker login.
Screenshot 2024-04-24 at 3 48 38 PM

core.log:

Apr 24 07:39:26 syu-dev core[3218666]: 2024-04-24T07:39:26Z [ERROR] [/pkg/reg/adapter/native/adapter.go:126]: failed to ping registry https://mse-test-cn-beijing.cr.volces.com: InvalidAuthorization: Invalid 'Authorization' header, Pls check your authorization header.
Apr 24 07:39:26 syu-dev core[3218666]: #011status code: 400, request id: 202404241539269F2F3A31A7258FE7F384
zycupup commented 5 months ago

accessID must be our accessKey and accessSecret must be our accessSecret。 the adapter will use our API to get authorization,etc. And the token you get does not have access to our api, it is just used for login,push and pull images

zyyw commented 5 months ago

Thanks for the feedback. Problem resolved.