harbor icon indicating copy to clipboard operation
harbor copied to clipboard

New Registry Endpoint - Internal server error

Open nikola-vortexwe opened this issue 3 years ago • 4 comments

Hi guys, I am trying to deploy the latest version of Harbor via docker-compose without SSL communication between Harbore components. All of the config files are left with the default configurations they come with.

The deployment step worked fine, but I am unable to create a new registry endpoint. I get the following error while trying to do so: Convert registry model to dao layer model error: crypto/aes: invalid key size 17 Add registry 'https://hub.docker.com' error: crypto/aes: invalid key size 17 {"errors":[{"code":"INTERNAL_SERVER_ERROR","message":"crypto/aes: invalid key size 17"}]}.

Validations against the desired registry - Docker Hub are performed successfully, meaning that the credentials are properly getting checked against it. The value of both the CORE_SECRET and JOBSERVICE_SECRET environment variables are exactly 16 characters long.

Any ideas what I'm doing wrong? Please, let me know if you need further information.

nikola-vortexwe avatar Jul 21 '21 11:07 nikola-vortexwe

@ninjadq should we validate the configurations during the preparing stage? Especially the length of the secret key and xsrf key.

heww avatar Jul 22 '21 01:07 heww

note: maybe we can add verification of key length in prepare script in future

ninjadq avatar Aug 08 '21 12:08 ninjadq

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.

github-actions[bot] avatar Jul 05 '22 11:07 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

github-actions[bot] avatar Aug 05 '22 09:08 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

github-actions[bot] avatar Sep 07 '22 09:09 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

github-actions[bot] avatar Oct 07 '22 09:10 github-actions[bot]