Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions odpf/optimus/core/v1beta1/runtime.proto
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ service RuntimeService {
body: "*"
};
}

// UpdateSecret updates secret at project level
rpc UpdateSecret(UpdateSecretRequest) returns (UpdateSecretResponse) {
option (google.api.http) = {
put: "/v1beta1/project/{project_name}/secret/{secret_name}"
body: "*"
};
}

// ListProjects returns list of registered projects and configurations
rpc ListProjects(ListProjectsRequest) returns (ListProjectsResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -559,13 +568,26 @@ message RegisterSecretRequest {
string project_name = 1;
string secret_name = 2;
string value = 3; // base64 encoded secret value
string namespace_name = 4;
}

message RegisterSecretResponse {
bool success = 1;
string message = 2;
}

message UpdateSecretRequest {
string project_name = 1;
string secret_name = 2;
string value = 3; // base64 encoded secret value
string namespace_name = 4;
}

message UpdateSecretResponse {
bool success = 1;
string message = 2;
Comment on lines +587 to +588
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are we using these? I don't think we need a success flag here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will remove success flag from the proto in next PR.

}

message ListProjectsRequest {}

message ListProjectsResponse {
Expand Down