Skip to content

Commit fd5d210

Browse files
committed
Restrict getRoutingRules and getUIConfiguration APIs to ADMIN
1 parent b835337 commit fd5d210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ public Response readExactMatchSourceSelector()
440440
}
441441

442442
@GET
443-
@RolesAllowed("USER")
443+
@RolesAllowed("ADMIN")
444444
@Produces(MediaType.APPLICATION_JSON)
445445
@Path("/getRoutingRules")
446446
public Response getRoutingRules()
@@ -463,7 +463,7 @@ public Response updateRoutingRules(RoutingRule routingRule)
463463
}
464464

465465
@GET
466-
@RolesAllowed("USER")
466+
@RolesAllowed("ADMIN")
467467
@Produces(MediaType.APPLICATION_JSON)
468468
@Path("/getUIConfiguration")
469469
public Response getUIConfiguration()

0 commit comments

Comments
 (0)