mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
Add document for robot account
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
9235cd6d34
commit
8be3129f11
BIN
docs/img/robotaccount/add_robot_account.png
Normal file
BIN
docs/img/robotaccount/add_robot_account.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 114 KiB |
BIN
docs/img/robotaccount/add_robot_account_2.png
Normal file
BIN
docs/img/robotaccount/add_robot_account_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
BIN
docs/img/robotaccount/copy_robot_account_token.png
Normal file
BIN
docs/img/robotaccount/copy_robot_account_token.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
BIN
docs/img/robotaccount/disable_delete_robot_account.png
Normal file
BIN
docs/img/robotaccount/disable_delete_robot_account.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 118 KiB |
BIN
docs/img/robotaccount/set_robot_account_token_duration.png
Normal file
BIN
docs/img/robotaccount/set_robot_account_token_duration.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
@ -29,6 +29,7 @@ This guide walks you through the fundamentals of using Harbor. You'll learn how
|
||||
* [Working with Helm CLI](#working-with-helm-cli)
|
||||
* [Online Garbage Collection.](#online-garbage-collection)
|
||||
* [View build history.](#build-history)
|
||||
* [Manage robot account of a project.](#robot-account)
|
||||
|
||||
## Role Based Access Control(RBAC)
|
||||
|
||||
@ -597,3 +598,42 @@ Build history make it easy to see the contents of a container image, find the co
|
||||
In Harbor portal, enter your project, select the repository, click on the link of tag name you'd like to see its build history, the detail page will be opened. Then switch to `Build History` tab, you can see the build history information.
|
||||
|
||||
![build_ history](img/build_history.png)
|
||||
|
||||
## Robot Account
|
||||
Robot accounts are accounts created by project admin that are intended for automated operations,
|
||||
|
||||
1, Robot account cannot login Harbor portal.
|
||||
2, Robot account can do docker pull/push only with token.
|
||||
|
||||
### Add a robot account
|
||||
If you are a project admin, you can create a robot account by clicking "New Robot Account" in the **'Robot Accounts'** tab of a project, and enter a name, a description and permission.
|
||||
![add_robot_account](img/robotaccount/add_robot_account.png)
|
||||
|
||||
![add_robot_account](img/robotaccount/add_robot_account_2.png)
|
||||
|
||||
**NOTES:** The name will become robot$accountname that used to distinguish a robot account from harbor user.
|
||||
|
||||
![copy_robot_account_token](img/robotaccount/copy_robot_account_token.png)
|
||||
As Harbor doesn't store your account token, please make sure to copy it in the pop up dialog after creating, otherwise, there is no way to get it from Harbor.
|
||||
|
||||
### Configure duration of robot account
|
||||
If you are a system admin, you can configure the robot account token duration in days.
|
||||
![set_robot_account_token_duration](img/robotaccount/set_robot_account_token_duration.png)
|
||||
|
||||
### Authenticate with a robot account
|
||||
To authenticate with a robot account, use `docker login` as below,
|
||||
|
||||
```
|
||||
docker login harbor.io
|
||||
Username: robot$accountname
|
||||
Password: Thepasswordgeneratedbyprojectadmin
|
||||
```
|
||||
|
||||
### Disable a robot account
|
||||
If you are a project admin, you can disable a robot account by clicking "Disable Account" in the **'Robot Accounts'** tab of a project.
|
||||
![disable_robot_account](img/robotaccount/disable_delete_robot_account.png)
|
||||
|
||||
### Delete a robot account
|
||||
If you are a project admin, you can delete a robot account by clicking "Delete" in the **'Robot Accounts'** tab of a project.
|
||||
![delete_robot_account](img/robotaccount/disable_delete_robot_account.png)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user