Skip to content

Commit a3d5456

Browse files
authored
fix(controlplane): allow generating downloadURL (#659)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 18ca26c commit a3d5456

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controlplane/internal/authz/authz.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ var ServerOperationsMap = map[string][]*Policy{
160160
// There are no policies for the download endpoint, we do a manual check in the service layer
161161
// to differentiate between upload and download requests
162162
"/controlplane.v1.CASCredentialsService/Get": {},
163+
// We have an endpoint to generate a download URL
164+
"/controlplane.v1.CASRedirectService/DownloadRedirect": {PolicyArtifactDownload},
163165
// CAS Backend listing
164166
"/controlplane.v1.CASBackendService/List": {PolicyCASBackendList},
165167
// Available integrations

0 commit comments

Comments
 (0)