Comments (5)
you can do it through the robot creation UI, check the pull permission for each project and the push permission of “my-project-name”.
from harbor.
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.
@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.
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.
commenting to keep it active.
cc: @flbla
from harbor.
Related Issues (20)
- Harbor API showing inconsistent data for repositories, including pull/push issues HOT 1
- When Replication, failed to push manifest of artifact HOT 1
- update harbor `2.6.2` to `2.10.3` succ. but `Helm Charts` disappeared HOT 2
- Docker Login failed with status: 401 Unauthorized - Secret Mismatch HOT 2
- Authorize bot to list global labels HOT 1
- MANIFEST_UNKNOWN after failed push HOT 1
- Robots UI Fails to Load After Harbor Upgrade Due to Missing Access Attribute HOT 1
- Response 401 Unauthorized when deleting tag from registry using robot account HOT 1
- Error response from daemon: Get "https://harbor-xxxx": dial tcp: lookup harbor-labnum.aphp.fr on xx.XXX.XX:53: no such host HOT 1
- Harbor Database cleanup doesn't work HOT 2
- Remove with_signature option from ListArtifact API
- Login to harbor via http protocol . Error response from daemon: Get http://harbor.hostname/v2/: received unexpected HTTP status: 500 Internal Server Error
- Does the Harbor support HTTPS bidirectional authentication? HOT 2
- Trivy fanal.db file is growing endlessly HOT 1
- dose pull/push request support to read/write to storage directly?
- Disable globally "scan all" HOT 2
- Error 401 Unauthorized deleting repository using REST API HOT 2
- List artifacts response don not including artifact_type field
- Harbor metrics exporter HOT 2
- Harbor Metrics ServiceMonitor(Prometheus/Victoriametrics)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harbor.