Skip to content

Commit 77a30fc

Browse files
authored
Revert "feat(policies): Add attestation as new resource type and workflow create permission (#754) (#758)
Signed-off-by: Javier Rodriguez <[email protected]>
1 parent 391f047 commit 77a30fc

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

app/controlplane/internal/authz/authz.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const (
5656
ResourceWorkflow = "workflow"
5757
UserMembership = "membership_user"
5858
Organization = "organization"
59-
ResourceAttestation = "attestation"
6059

6160
// We have for now three roles, viewer, admin and owner
6261
// The owner of an org
@@ -102,15 +101,10 @@ var (
102101
PolicyWorkflowRunList = &Policy{ResourceWorkflowRun, ActionList}
103102
PolicyWorkflowRunRead = &Policy{ResourceWorkflowRun, ActionRead}
104103
// Workflow
105-
PolicyWorkflowCreate = &Policy{ResourceWorkflow, ActionCreate}
106-
PolicyWorkflowList = &Policy{ResourceWorkflow, ActionList}
107-
PolicyWorkflowRead = &Policy{ResourceWorkflow, ActionRead}
104+
PolicyWorkflowList = &Policy{ResourceWorkflow, ActionList}
105+
PolicyWorkflowRead = &Policy{ResourceWorkflow, ActionRead}
108106
// User Membership
109107
PolicyOrganizationRead = &Policy{Organization, ActionRead}
110-
// Attestation
111-
PolicyAttestationCreate = &Policy{ResourceAttestation, ActionCreate}
112-
PolicyAttestationRead = &Policy{ResourceAttestation, ActionRead}
113-
PolicyAttestationList = &Policy{ResourceAttestation, ActionList}
114108
)
115109

116110
// List of policies for each role

0 commit comments

Comments
 (0)