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

add proposal for robot permission expansion #249

Merged
merged 8 commits into from
Oct 8, 2024
Merged

Conversation

wy65701436
Copy link
Contributor

No description provided.

Signed-off-by: wang yan <wangyan@vmware.com>
Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Signed-off-by: wang yan <wangyan@vmware.com>
Signed-off-by: wang yan <wangyan@vmware.com>
Signed-off-by: wang yan <wangyan@vmware.com>
2. any system level robot account can be created by a system level robot account who with the robot creation permission.

Deletion/Update: A robot account cannot assign permissions to another robot account that exceed its own permissions.
1. any robot account that created by another robot can be updated by the creator robot or the itself, provided that the update permission has been granted to the creator or the robot itself.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the itself should be itself

## Robot accounts that are created and managed by another robot accounts

Robot accounts are principals, it means that you can grant robot account to Harbor resources. However, from the perspective of preventing privilege escalation, generally, a robot account
cannot grant roles that are higher or more powerful than the roles it possesses. When a robot account creates a new robot account, the new robot account doesn't automatically inherit any roles
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace role with permission, avoid using role because the role is only used in project member,

Signed-off-by: wang yan <wangyan@vmware.com>
Copy link

@MinerYang MinerYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

proposals/new/Robot-Account-Expand.md Show resolved Hide resolved
proposals/new/Robot-Account-Expand.md Show resolved Hide resolved
proposals/new/Robot-Account-Expand.md Show resolved Hide resolved
proposals/new/Robot-Account-Expand.md Show resolved Hide resolved
proposals/new/Robot-Account-Expand.md Show resolved Hide resolved
wy65701436 added a commit to wy65701436/harbor that referenced this pull request Sep 26, 2024
Update codes according to the proposal of goharbor/community#249

Signed-off-by: wang yan <wangyan@vmware.com>
wy65701436 added a commit to wy65701436/harbor that referenced this pull request Sep 26, 2024
Update codes according to the proposal of goharbor/community#249

Signed-off-by: wang yan <wangyan@vmware.com>
wy65701436 added a commit to wy65701436/harbor that referenced this pull request Sep 26, 2024
Update codes according to the proposal of goharbor/community#249

Signed-off-by: wang yan <wangyan@vmware.com>
wy65701436 added a commit to goharbor/harbor that referenced this pull request Sep 26, 2024
* have option to enable robot full access

When the system admin enable this option, the robot can be assigned with robot/user/group/quota permissions.

Signed-off-by: wang yan <wangyan@vmware.com>

* robot account permission enhancement

Update codes according to the proposal of goharbor/community#249

Signed-off-by: wang yan <wangyan@vmware.com>

---------

Signed-off-by: wang yan <wangyan@vmware.com>
Signed-off-by: wang yan <wangyan@vmware.com>
Signed-off-by: wang yan <wangyan@vmware.com>
@wy65701436 wy65701436 merged commit 471a36e into main Oct 8, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants