Giter Club home page Giter Club logo

Comments (5)

wy65701436 avatar wy65701436 commented on July 22, 2024

you can do it through the robot creation UI, check the pull permission for each project and the push permission of “my-project-name”.

Like:
image

from harbor.

theabrar avatar theabrar commented on July 22, 2024

thanks @wy65701436 for the reply, I understand its achievable using the way you describe, however, trying to do it using the terraform provider (example in the documentation), as it'll be cumbersome with having multiple harbor deployments and projects with a robot account per project.
If this is more related to terraform-provider-harbor happy to raise this as a bug there.

from harbor.

flbla avatar flbla commented on July 22, 2024

@wy65701436
I re-open this ticket as I think it's not an issue with the provider but with the UI as with the API you can create a robot account with "Cover all project" rights AND specific projects rights :

[
  {
    "creation_time": "2024-04-15T14:32:14.849Z",
    "description": "System level Robot account for Project",
    "disable": false,
    "duration": -1,
    "editable": true,
    "expires_at": -1,
    "id": 1,
    "level": "system",
    "name": "robot$ci",
    "permissions": [
      {
        "access": [
          {
            "action": "pull",
            "effect": "allow",
            "resource": "repository"
          }
        ],
        "kind": "project",
        "namespace": "*"
      },
      {
        "access": [
          {
            "action": "pull",
            "effect": "allow",
            "resource": "repository"
          },
          {
            "action": "push",
            "effect": "allow",
            "resource": "repository"
          }
        ],
        "kind": "project",
        "namespace": "library"
      }
    ],
    "update_time": "2024-04-15T14:33:03.769Z"
  }
]

from harbor.

github-actions avatar github-actions commented on July 22, 2024

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

from harbor.

theabrar avatar theabrar commented on July 22, 2024

commenting to keep it active.
cc: @flbla

from harbor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.