Skip to content

Conversation

jiparis
Copy link
Member

@jiparis jiparis commented Jun 25, 2025

Simple PR to implement Project Viewer permissions.
Note that many permissions are inherited from the "Org Member" role, although RBAC is applied when needed.

I've also removed OrgMetricsRead, which is not needed, since it's assumed from the organization role.

Example command with Project Admin role on project "proj13":

➜ cldev wf create --project proj13 --name wf
WRN API contacted in insecure mode
┌──────┬─────────┬───────────┬────────┬────────┬─────────────────┬─────────────────────┐
│ NAME │ PROJECT │ CONTRACT  │ PUBLIC │ RUNNER │ LAST RUN STATUS │ CREATED AT          │
├──────┼─────────┼───────────┼────────┼────────┼─────────────────┼─────────────────────┤
│ wf   │ proj13  │ proj13-wf │ false  │        │                 │ 25 Jun 25 09:33 UTC │
└──────┴─────────┴───────────┴────────┴────────┴─────────────────┴─────────────────────┘
INF To Attest this workflow you'll need to provide an API token. See "chainloop organization api-token" command for more information.

After changing to Project Viewer in "proj13":

➜  cldev wf create --project proj13 --name wf
WRN API contacted in insecure mode
ERR operation not allowed
exit status 1

Refs #2121

Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
@jiparis jiparis requested review from migmartri and javirln June 25, 2025 09:37
@jiparis jiparis merged commit 5a6865c into chainloop-dev:main Jun 25, 2025
13 checks passed
@jiparis jiparis deleted the PFM-3163-viewer branch June 25, 2025 12:34
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.

2 participants