Skip to content

Commit

Permalink
DVS-1798: Allow the system-compute token to PATCH smd
Browse files Browse the repository at this point in the history
DVS needs to be able to send PATCH commands to the endpoint:
https://api-gw-service-nmn.local/apis/smd/hsm/v1/State/Components/BulkSoftwareStatus
This lets DVS tell other DVS when their service starts or stops.
It does this with the system-compute token.

So, allow the system-compute token to patch to the endpoint
apis/smd/hsm/v1/State/Components/BulkSoftwareStatus
  • Loading branch information
kwphpe authored and Brant Knudson committed Feb 16, 2021
1 parent 4cbd6ca commit 479f3b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/cray-opa/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: 0.24.0
name: cray-opa
description: Cray Open Policy Agent
home: "cloud/cray-charts"
version: 0.15.0
version: 0.15.1
1 change: 1 addition & 0 deletions stable/cray-opa/templates/_policy.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ allowed_methods := {

{"method": "GET", "path": `^/apis/smd/.*$`},
{"method": "HEAD", "path": `^/apis/smd/.*$`},
{"method": "PATCH", "path": `^/apis/smd/hsm/v1/State/Components/BulkSoftwareStatus$`},

{"method": "GET", "path": `^/apis/hmnfd/.*$`},
{"method": "HEAD", "path": `^/apis/hmnfd/.*$`},
Expand Down

0 comments on commit 479f3b4

Please sign in to comment.