Skip to content

Commit

Permalink
secrets API: add list secret scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-sadura committed Nov 26, 2024
1 parent a7c1311 commit 0ffb06f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions proto/redpanda/api/dataplane/v1alpha2/secret.proto
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,15 @@ message DeleteSecretRequest {
// DeleteSecretResponse is the response of DeleteSecret.
message DeleteSecretResponse {}

// ListSecretScopesRequest is the request of ListSecretScopes.
message ListSecretScopesRequest {
}

// ListSecretScopesResponse is the response of ListSecretScopes.
message ListSecretScopesResponse {
repeated Scope scopes = 1;
}

// Connect Secrets API

// GetConnectSecretRequest is the request of GetSecret.
Expand Down Expand Up @@ -533,6 +542,24 @@ service SecretService {
};
}

// ListSecretScopes lists the supported secret scopes.
rpc ListSecretScopes(ListSecretScopesRequest) returns (ListSecretScopesResponse) {
option (google.api.http) = {get: "/v1alpha2/secret-scopes"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "List Secret Scopes"
description: "List supported secret scopes."
responses: {
key: "200"
value: {
description: "OK"
schema: {
json_schema: {ref: ".redpanda.api.dataplane.v1alpha2.ListSecretsScopesResponse"}
}
}
}
};
}

// Connect Secrets API.

// GetConnectSecret retrieves the specific secret for a specific Connect.
Expand Down

0 comments on commit 0ffb06f

Please sign in to comment.