Skip to content

Improve provisioner jobs RBAC with a PostgreSQL VIEW #16160

Open
@mafredri

Description

@mafredri

In #16029 we introduced a new RBAC resource called rbac.ResourceProvisionerJobs. However, the scope was limited to owners and template admins for now because proper expression (via RBACObject) requires that we also know the associated template or workspace (jobs refer only to template versions or workspace builds).

If we implement this as a PostgreSQL view which joins in the relevant template or workspace data, we can provisioner jobs to users as well (e.g. builds of their own workspace).

#16029 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that require triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions