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

feature: support global robot accounts & advanced permissions #27

Open
moolen opened this issue Mar 3, 2021 · 0 comments
Open

feature: support global robot accounts & advanced permissions #27

moolen opened this issue Mar 3, 2021 · 0 comments

Comments

@moolen
Copy link
Owner

moolen commented Mar 3, 2021

With harbor 2.2.0 global robot accounts with extended permissions can be created.

POST ​/robots

{
  "secret": "string",
  "disable": true,
  "name": "string",
  "level": "string",
  "duration": 0,
  "description": "string",
  "permissions": [
    {
      "kind": "string",
      "namespace": "string",
      "access": [
        {
          "action": "string",
          "resource": "string",
          "effect": "string"
        }
      ]
    }
  ]
}

A new feature would allow users to create new system-level robot accounts. The permissions must be configurable (either all or explicit)

Example for all:

{
    "name": "my-name",
    "duration": 30,
    "description": null,
    "disable": false,
    "level": "system",
    "permissions": [
        {
            "kind": "project",
            "namespace": "*",
            "access": [
                {
                    "resource": "repository",
                    "action": "push"
                },
                {
                    "resource": "repository",
                    "action": "pull"
                },
                {
                    "resource": "artifact",
                    "action": "delete"
                },
                {
                    "resource": "helm-chart",
                    "action": "read"
                },
                {
                    "resource": "helm-chart-version",
                    "action": "create"
                },
                {
                    "resource": "helm-chart-version",
                    "action": "delete"
                },
                {
                    "resource": "tag",
                    "action": "create"
                },
                {
                    "resource": "tag",
                    "action": "delete"
                },
                {
                    "resource": "artifact-label",
                    "action": "create"
                },
                {
                    "resource": "scan",
                    "action": "create"
                }
            ]
        }
    ]
}
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

No branches or pull requests

1 participant