Harbor: Update Docs for Robot Account to Authenticate using password-stdin

Created on 5 Nov 2020  路  2Comments  路  Source: goharbor/harbor

The robot account tokens are so large they are not allowed as input to the docker cli prompt for password. This can be worked around by providing the robot account token in the docker login command using the --password flag or by using the --password-stdin flag (which would be preferred due to security).

The request is to update the docs at bottom of the following URL that say to use docker login harbor_address and then follow prompts for username and password. This will not work due to the size of the token.

https://goharbor.io/docs/2.0.0/working-with-projects/project-configuration/create-robot-accounts/

One suggestion is to shorten the length of the token.

Or update the docs to something like: echo $PASSWORD | docker login $REGISTRY --username $USER --password-stdin

aredoc help wanted

Most helpful comment

Do we acknowledge though that the docs are incorrect for the current version? You can not put the password in the prompt as the docs suggest.

All 2 comments

In v2.2 we will rework the robot account and the users will be able to set the password for any robots.

The proposed command is not a must-have IMO to the doc, it's more like a shortcut to lower the effort and it will not be needed soon.

Do we acknowledge though that the docs are incorrect for the current version? You can not put the password in the prompt as the docs suggest.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mramanathan picture mramanathan  路  3Comments

Poil picture Poil  路  3Comments

a-kinder picture a-kinder  路  3Comments

steveal picture steveal  路  3Comments

Hotege picture Hotege  路  3Comments