mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(core): Allow enforcement of MFA usage on instance (#16556)
Co-authored-by: Marc Littlemore <marc@n8n.io> Co-authored-by: Csaba Tuncsik <csaba.tuncsik@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ export const RESOURCES = {
|
||||
securityAudit: ['generate'] as const,
|
||||
sourceControl: ['pull', 'push', 'manage'] as const,
|
||||
tag: [...DEFAULT_OPERATIONS] as const,
|
||||
user: ['resetPassword', 'changeRole', ...DEFAULT_OPERATIONS] as const,
|
||||
user: ['resetPassword', 'changeRole', 'enforceMfa', ...DEFAULT_OPERATIONS] as const,
|
||||
variable: [...DEFAULT_OPERATIONS] as const,
|
||||
workersView: ['manage'] as const,
|
||||
workflow: ['share', 'execute', 'move', ...DEFAULT_OPERATIONS] as const,
|
||||
@@ -34,7 +34,7 @@ export const API_KEY_RESOURCES = {
|
||||
variable: ['create', 'update', 'delete', 'list'] as const,
|
||||
securityAudit: ['generate'] as const,
|
||||
project: ['create', 'update', 'delete', 'list'] as const,
|
||||
user: ['read', 'list', 'create', 'changeRole', 'delete'] as const,
|
||||
user: ['read', 'list', 'create', 'changeRole', 'delete', 'enforceMfa'] as const,
|
||||
execution: ['delete', 'read', 'list', 'get'] as const,
|
||||
credential: ['create', 'move', 'delete'] as const,
|
||||
sourceControl: ['pull'] as const,
|
||||
|
||||
@@ -6,6 +6,7 @@ export const OWNER_API_KEY_SCOPES: ApiKeyScope[] = [
|
||||
'user:create',
|
||||
'user:changeRole',
|
||||
'user:delete',
|
||||
'user:enforceMfa',
|
||||
'sourceControl:pull',
|
||||
'securityAudit:generate',
|
||||
'project:create',
|
||||
|
||||
@@ -56,6 +56,7 @@ export const GLOBAL_OWNER_SCOPES: Scope[] = [
|
||||
'user:list',
|
||||
'user:resetPassword',
|
||||
'user:changeRole',
|
||||
'user:enforceMfa',
|
||||
'variable:create',
|
||||
'variable:read',
|
||||
'variable:update',
|
||||
|
||||
Reference in New Issue
Block a user