Skip to content

Commit

Permalink
Add PROGRAMREFERENCE, SYSTEM_APP_ENTITY permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
rmstar committed Nov 20, 2023
1 parent 26d1a30 commit 115f48c
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,22 @@ public static List<EntityTypeWithPermission> convertToEntityTypeWithPermission(R
new EntityTypeWithPermission(EntityType.APPLICATION, StandardPermission.CREATE),
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.CREATE),
new EntityTypeWithPermission(EntityType.APPLICATION, StandardPermission.GET),
new EntityTypeWithPermission(EntityType.ARTIFACT, StandardPermission.GET)
new EntityTypeWithPermission(EntityType.ARTIFACT, StandardPermission.GET),
new EntityTypeWithPermission(EntityType.SYSTEM_APP_ENTITY, StandardPermission.CREATE),
new EntityTypeWithPermission(EntityType.SYSTEM_APP_ENTITY, StandardPermission.USE),
new EntityTypeWithPermission(EntityType.SYSTEM_APP_ENTITY, StandardPermission.UPDATE)
);
case DELETE_PIPELINE:
return Arrays.asList(
new EntityTypeWithPermission(EntityType.APPLICATION, StandardPermission.DELETE),
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.DELETE)
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.DELETE),
new EntityTypeWithPermission(EntityType.SYSTEM_APP_ENTITY, StandardPermission.DELETE)
);
case VIEW_PIPELINE:
return Arrays.asList(
new EntityTypeWithPermission(EntityType.PROGRAM, StandardPermission.GET),
new EntityTypeWithPermission(EntityType.PROGRAM_RUN, StandardPermission.GET),
new EntityTypeWithPermission(EntityType.PROGRAMREFERENCE, StandardPermission.GET),
new EntityTypeWithPermission(EntityType.APPLICATION, StandardPermission.GET),
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.LIST),
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.GET)
Expand Down Expand Up @@ -151,12 +156,15 @@ public static List<EntityTypeWithPermission> convertToEntityTypeWithPermission(R
new EntityTypeWithPermission(EntityType.ARTIFACT, StandardPermission.LIST),
new EntityTypeWithPermission(EntityType.ARTIFACT, StandardPermission.UPDATE),
new EntityTypeWithPermission(EntityType.ARTIFACT, StandardPermission.DELETE),
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.CREATE)
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.CREATE),
new EntityTypeWithPermission(EntityType.SYSTEM_APP_ENTITY, StandardPermission.USE),
new EntityTypeWithPermission(EntityType.SYSTEM_APP_ENTITY, StandardPermission.UPDATE)
);
case USE_WRANGLER:
return Arrays.asList(
new EntityTypeWithPermission(EntityType.APPLICATION, StandardPermission.GET, true),
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.LIST, true)
new EntityTypeWithPermission(EntityType.DATASET, StandardPermission.LIST, true),
new EntityTypeWithPermission(EntityType.SYSTEM_APP_ENTITY, StandardPermission.USE)
);
case MANAGE_SECURE_KEY:
return Arrays.asList(
Expand Down

0 comments on commit 115f48c

Please sign in to comment.