Skip to content

Commit

Permalink
feat(optimus): add ability to delete secret for a project (#104)
Browse files Browse the repository at this point in the history
* feat: add ability to delete secret for a project

* feat: add namespace_name for proxy authentication

* feat: add ability to delete secret for a project
  • Loading branch information
sbchaos authored Feb 28, 2022
1 parent 0d4304b commit 2a30976
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions odpf/optimus/core/v1beta1/runtime.proto
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ service RuntimeService {
};
}

// DeleteSecret deletes a secret for a project
rpc DeleteSecret(DeleteSecretRequest) returns (DeleteSecretResponse) {
option (google.api.http) = {
delete: "/v1beta1/project/{project_name}/secret/{secret_name}"
};
}

// ListProjects returns list of registered projects and configurations
rpc ListProjects(ListProjectsRequest) returns (ListProjectsResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -605,6 +612,14 @@ message ListSecretsResponse {
repeated Secret secrets = 1;
}

message DeleteSecretRequest {
string project_name = 1;
string secret_name = 2;
string namespace_name = 3;
}

message DeleteSecretResponse {}

message ListProjectsRequest {}

message ListProjectsResponse {
Expand Down

0 comments on commit 2a30976

Please sign in to comment.