-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Allow Robot Accounts to Manage Robots with Full Permissions #21251
Comments
For security consideration, the created robot account's permission should never exceed the creator robot account. as you can see in the error log: |
Okay, but if you select only project-by-project, this will work fine. |
Closing the issue b/c it's working as designed. |
Hi, |
I would also have expected that the child robot account has the same right as its parent but can also have less. Can we have a bit of a structured approach on what is working on project/system level and what not. |
Summary table
same thing as list: robo system:"robotcreator"
** via robo robotcreator: **
robo system:"robotcreator2"
** via robo robotcreator2: **
|
@antoine-sncf |
fixes goharbor#21251 Signed-off-by: wang yan <wangyan@vmware.com>
fixes goharbor#21251 Signed-off-by: wang yan <wangyan@vmware.com>
fixes goharbor#21251 Signed-off-by: wang yan <wangyan@vmware.com>
fixes #21251 Signed-off-by: wang yan <wangyan@vmware.com>
End user testing validated Friday. Thank you for your work on this topic. |
Expected behavior and actual behavior:
When you have a Robot account system with the following permissions:
Project [Create, List]
Robot Account [Create, Delete, List, Read]
And you check the "Cover all projects" option, along with selecting the Repository [Pull] action, the expected behavior is that the Robot account should be able to perform all the specified actions across all projects.
However, the actual behavior you are observing is that the Robot account is not able to perform the selected actions as expected :
{"errors":[{"code":"DENIED","message":"permission scope is invalid. It must be equal to or more restrictive than the creator robot's permissions: robot$crossplane"}]}
Steps to reproduce the problem:
curl -k -X 'POST' 'https:///api/v2.0/robots' -u 'robot$crossplane:' -H 'Content-Type: application/json' -d '{"name": "puller","description": "puller","level": "system","duration": -1,"permissions": [{"kind": "project","namespace": "dev","access":[{"resource": "repository","action": "pull"}]}]}'
Versions:
Please specify the versions of the following systems:
Additional context:
The text was updated successfully, but these errors were encountered: