Skip to content

Commit

Permalink
[infra-proxy-service] reset node client key, create client & delete c…
Browse files Browse the repository at this point in the history
…lient API (#4592)

* Reset client key

Signed-off-by: Vivek Singh <[email protected]>

* Fixes client reset issue and ignore 404 while deleting the client

Signed-off-by: Vivek Singh <[email protected]>

* Remove clientname optional params & minor comments update

Signed-off-by: Vivek Singh <[email protected]>

* Updated client detail API with key data

Signed-off-by: Vivek Singh <[email protected]>

* indentation changes and comments update

Signed-off-by: Vivek Singh <[email protected]>

* fixes indentation to spaces

Signed-off-by: Vivek Singh <[email protected]>

* comments updated

Signed-off-by: Vivek Singh <[email protected]>

* Rebase changes and comments update

Signed-off-by: Vivek Singh <[email protected]>

* comments update

Signed-off-by: Vivek Singh <[email protected]>
  • Loading branch information
Vivek Singh authored Feb 11, 2021
1 parent 2012294 commit 96800f0
Show file tree
Hide file tree
Showing 19 changed files with 3,588 additions and 759 deletions.
1,008 changes: 589 additions & 419 deletions api/external/infra_proxy/infra_proxy.pb.go

Large diffs are not rendered by default.

436 changes: 436 additions & 0 deletions api/external/infra_proxy/infra_proxy.pb.gw.go

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions api/external/infra_proxy/infra_proxy.pb.policy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion api/external/infra_proxy/infra_proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,24 @@ service InfraProxy {
option (google.api.http).get = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name}";
option (chef.automate.api.iam.policy).resource = "infra:servers:{server_id}:orgs:{org_id}:clients";
option (chef.automate.api.iam.policy).action = "infra:infraServers:get";
}
};
rpc CreateClient (infra_proxy.request.CreateClient) returns (infra_proxy.response.CreateClient) {
option (google.api.http).post = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients";
option (google.api.http).body = "*";
option (chef.automate.api.iam.policy).resource = "infra:servers:{server_id}:orgs:{org_id}:clients";
option (chef.automate.api.iam.policy).action = "infra:infraServers:update";
};
rpc DeleteClient (infra_proxy.request.Client) returns (infra_proxy.response.Client) {
option (google.api.http).delete = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name}";
option (chef.automate.api.iam.policy).resource = "infra:servers:{server_id}:orgs:{org_id}:clients";
option (chef.automate.api.iam.policy).action = "infra:infraServers:update";
};
rpc ResetClientKey (infra_proxy.request.ClientKey) returns (infra_proxy.response.ClientKey) {
option (google.api.http).put = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients/{name}/reset";
option (google.api.http).body = "*";
option (chef.automate.api.iam.policy).resource = "infra:servers:{server_id}:orgs:{org_id}:clients";
option (chef.automate.api.iam.policy).action = "infra:infraServers:update";
};

rpc GetDataBags (infra_proxy.request.DataBags) returns (infra_proxy.response.DataBags) {
option (google.api.http).get = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/data_bags";
Expand Down
243 changes: 243 additions & 0 deletions api/external/infra_proxy/infra_proxy.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 96800f0

Please sign in to comment.