Restrict raw beta file downloads to operators
This commit is contained in:
@@ -61,6 +61,7 @@ describe('management route permissions', () => {
|
||||
it.each([
|
||||
'/configs/[id]', '/api/configs/[id]', '/api/configs/inspect',
|
||||
'/api/campaigns/[id]/file/[fileId]', '/api/deployments/[id]/file/[fileId]',
|
||||
'/api/betas/[id]/revisions/[revision]/files/[scriptId]',
|
||||
'/api/servers/[name]/logs/[file]', '/api/servers/[name]/telemetry-requests'
|
||||
])('prevents viewer access to secret-bearing raw content at %s', route => {
|
||||
for (const method of ['GET', 'HEAD']) {
|
||||
|
||||
Reference in New Issue
Block a user