refactor(core): Enforce authorization by default on all routes (no-changelog) (#8762)
This commit is contained in:
committed by
GitHub
parent
2811f77798
commit
db4a419c8d
@@ -1,6 +1,7 @@
|
||||
export type DefaultOperations = 'create' | 'read' | 'update' | 'delete' | 'list';
|
||||
export type Resource =
|
||||
| 'auditLogs'
|
||||
| 'banner'
|
||||
| 'communityPackage'
|
||||
| 'credential'
|
||||
| 'externalSecretsProvider'
|
||||
@@ -27,6 +28,7 @@ export type ResourceScope<
|
||||
export type WildcardScope = `${Resource}:*` | '*';
|
||||
|
||||
export type AuditLogsScope = ResourceScope<'auditLogs', 'manage'>;
|
||||
export type BannerScope = ResourceScope<'banner', 'dismiss'>;
|
||||
export type CommunityPackageScope = ResourceScope<
|
||||
'communityPackage',
|
||||
'install' | 'uninstall' | 'update' | 'list' | 'manage'
|
||||
@@ -56,6 +58,7 @@ export type WorkflowScope = ResourceScope<'workflow', DefaultOperations | 'share
|
||||
|
||||
export type Scope =
|
||||
| AuditLogsScope
|
||||
| BannerScope
|
||||
| CommunityPackageScope
|
||||
| CredentialScope
|
||||
| ExternalSecretProviderScope
|
||||
|
||||
Reference in New Issue
Block a user