Skip to content

Commit

Permalink
Add new nimbus updater role.
Browse files Browse the repository at this point in the history
  • Loading branch information
knguyen100000010 committed Sep 4, 2024
1 parent 474a58e commit c620273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ private Names() {}
public static final String WRITE = "WRITE";
public static final String EXECUTE = "EXECUTE";
public static final String DELETE = "DELETE";

public static final String NIMBUS_EXTERNAL_ID_UPDATER = "NIMBUS_EXTERNAL_ID_UPDATER";
}

private final ValueBasedRole role;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public void delete(
notes = "Sets the external_id column on a stage given the environment and stage names",
response = EnvironBean.class)
@Path("/external_id")
@RolesAllowed(TeletraanPrincipalRole.Names.WRITE)
@RolesAllowed({TeletraanPrincipalRole.Names.WRITE, TeletraanPrincipalRole.Names.NIMBUS_EXTERNAL_ID_UPDATER})
@ResourceAuthZInfo(
type = AuthZResource.Type.ENV_STAGE,
idLocation = ResourceAuthZInfo.Location.PATH)
Expand Down

0 comments on commit c620273

Please sign in to comment.