Skip to content

Commit

Permalink
OP-22358-GateIssue adding removed code while cve fix for register can…
Browse files Browse the repository at this point in the history
…ry api
  • Loading branch information
srikanthopsmx committed Jul 9, 2024
1 parent c81e3a1 commit 82621d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ class OpsmxAutopilotController {
@Operation(summary = "Endpoint for autopilot rest services")
@RequestMapping(value = "/api/{version}/registerCanary", method = RequestMethod.POST)
Object triggerRegisterCanary(@PathVariable("version") String version, @RequestBody(required = false) Object data,
HttpServletRequest request) throws Exception {
@RequestHeader(value = "x-spinnaker-user",required = false) String xSpinnakerUser,HttpServletRequest request) throws Exception {

if (applicationFeatureRbac!=null){
applicationFeatureRbac.authorizeUserForVerificationAndTestVerificationGateTrigger(request, data)
}

Response response = opsmxAutopilotService.triggerRegisterCanary(version, data)
Response response = opsmxAutopilotService.triggerRegisterCanary(version, data,xSpinnakerUser)
InputStream inputStream = null

try {
Expand Down

0 comments on commit 82621d4

Please sign in to comment.