mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Add classifier to the web user ACL (#67890)
* Add classifier to the web user ACL * Add to more places
This commit is contained in:
@@ -91,6 +91,7 @@ export const allAccessAcl: Acl = {
|
||||
inferenceModel: fullAccess,
|
||||
inferenceSecret: fullAccess,
|
||||
beam: fullAccess,
|
||||
classifier: fullAccess,
|
||||
mobileDevice: { createEnrollToken: true },
|
||||
};
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@ export function makeAcl(json): Acl {
|
||||
const inferencePolicy = json.inferencePolicy || defaultAccess;
|
||||
const inferenceModel = json.inferenceModel || defaultAccess;
|
||||
const inferenceSecret = json.inferenceSecret || defaultAccess;
|
||||
const classifier = json.classifier || defaultAccess;
|
||||
|
||||
const beam = json.beam || defaultAccess;
|
||||
|
||||
@@ -160,6 +161,7 @@ export function makeAcl(json): Acl {
|
||||
inferencePolicy,
|
||||
inferenceModel,
|
||||
inferenceSecret,
|
||||
classifier,
|
||||
beam,
|
||||
mobileDevice,
|
||||
};
|
||||
|
||||
@@ -137,6 +137,7 @@ export interface Acl {
|
||||
inferencePolicy: Access;
|
||||
inferenceModel: Access;
|
||||
inferenceSecret: Access;
|
||||
classifier: Access;
|
||||
beam: Access;
|
||||
mobileDevice: MobileDeviceAccess;
|
||||
}
|
||||
|
||||
@@ -390,6 +390,13 @@ test('undefined values in context response gives proper default values', async (
|
||||
create: false,
|
||||
remove: false,
|
||||
},
|
||||
classifier: {
|
||||
list: false,
|
||||
read: false,
|
||||
edit: false,
|
||||
create: false,
|
||||
remove: false,
|
||||
},
|
||||
mobileDevice: {
|
||||
createEnrollToken: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user