fix(security): resolve all critical, high, and medium security vulnerabilities
This commit is contained in:
1 parent
da26dd1c8d
commit
dc88677169
33 files changed
+438
-85
No files matched your search
@@ -150,12 +150,15 @@ export class ApiKeysService {
|
||||
})
|
||||
.catch(() => {});
|
||||
|
||||
const scopes = key.scopes.split(',').map((s) => s.trim().toLowerCase());
|
||||
const hasAdminScope = scopes.includes('*') || scopes.includes('admin') || scopes.includes('all');
|
||||
|
||||
return {
|
||||
id: key.id,
|
||||
name: key.name,
|
||||
role: 'ADMIN', // Grants admin level access for n8n automation
|
||||
role: hasAdminScope ? 'Admin' : 'USER',
|
||||
email: 'apikey-system@canina.ir',
|
||||
scopes: key.scopes.split(',').map((s) => s.trim()),
|
||||
scopes,
|
||||
isApiKey: true,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user