Skip to content

Commit

Permalink
Highlight base64 requirement for secret data (#1496)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbatuigas authored Nov 5, 2024
1 parent 2aa0ff4 commit 2e2c0fb
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 18 deletions.

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

Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export class CreateSecretRequest extends Message<CreateSecretRequest> {
scopes: Scope[] = [];

/**
* The secret data.
* The secret data. Must be Base64-encoded.
*
* @generated from field: bytes secret_data = 4;
*/
Expand Down Expand Up @@ -465,7 +465,7 @@ export class UpdateSecretRequest extends Message<UpdateSecretRequest> {
scopes: Scope[] = [];

/**
* The secret data.
* The secret data. Must be Base64-encoded.
*
* @generated from field: bytes secret_data = 4;
*/
Expand Down Expand Up @@ -735,7 +735,7 @@ export class CreateConnectSecretRequest extends Message<CreateConnectSecretReque
labels: { [key: string]: string } = {};

/**
* The secret data.
* The secret data. Must be Base64-encoded.
*
* @generated from field: bytes secret_data = 4;
*/
Expand Down Expand Up @@ -956,7 +956,7 @@ export class UpdateConnectSecretRequest extends Message<UpdateConnectSecretReque
labels: { [key: string]: string } = {};

/**
* The secret data.
* The secret data. Must be Base64-encoded.
*
* @generated from field: bytes secret_data = 4;
*/
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion proto/gen/openapi/openapi.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions proto/gen/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ components:
title: Secret scopes
type: array
secret_data:
description: The secret data.
description: The secret data. Must be Base64-encoded.
format: byte
type: string
required:
Expand Down Expand Up @@ -2477,7 +2477,7 @@ paths:
description: Name of connector.
type: string
secret_data:
description: The secret data.
description: The secret data. Must be Base64-encoded.
format: byte
type: string
required:
Expand Down Expand Up @@ -2642,7 +2642,7 @@ paths:
description: Secret labels.
type: object
secret_data:
description: The secret data.
description: The secret data. Must be Base64-encoded.
format: byte
type: string
required:
Expand Down Expand Up @@ -3247,7 +3247,7 @@ paths:
title: Secret scopes
type: array
secret_data:
description: The secret data.
description: The secret data. Must be Base64-encoded.
format: byte
type: string
required:
Expand Down Expand Up @@ -3663,7 +3663,7 @@ paths:
content:
multipart/form-data:
schema:
example: '{"name":"redact-orders","input_topic_name":"orders","output_topic_names":["orders-redacted"],"environment_variables":[{"key":"LOGGER_LEVEL","value":"DEBUG"}]}'
example: '{"name":"redact-orders", "input_topic_name":"orders", "output_topic_names":["orders-redacted"], "environment_variables":[{"key":"LOGGER_LEVEL", "value":"DEBUG"}]}'
properties:
metadata:
$ref: '#/components/schemas/DeployTransformRequest'
Expand Down
8 changes: 4 additions & 4 deletions proto/redpanda/api/dataplane/v1alpha2/secret.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ message CreateSecretRequest {
}
}];

// The secret data.
// The secret data. Must be Base64-encoded.
bytes secret_data = 4 [
(google.api.field_behavior) = INPUT_ONLY,
(google.api.field_behavior) = REQUIRED,
Expand Down Expand Up @@ -174,7 +174,7 @@ message UpdateSecretRequest {
}
}];

// The secret data.
// The secret data. Must be Base64-encoded.
bytes secret_data = 4 [
(google.api.field_behavior) = INPUT_ONLY,
(google.api.field_behavior) = REQUIRED,
Expand Down Expand Up @@ -267,7 +267,7 @@ message CreateConnectSecretRequest {
(google.api.field_behavior) = IMMUTABLE
];

// The secret data.
// The secret data. Must be Base64-encoded.
bytes secret_data = 4 [
(google.api.field_behavior) = INPUT_ONLY,
(google.api.field_behavior) = REQUIRED,
Expand Down Expand Up @@ -360,7 +360,7 @@ message UpdateConnectSecretRequest {
(google.api.field_behavior) = IMMUTABLE
];

// The secret data.
// The secret data. Must be Base64-encoded.
bytes secret_data = 4 [
(google.api.field_behavior) = INPUT_ONLY,
(google.api.field_behavior) = REQUIRED,
Expand Down

0 comments on commit 2e2c0fb

Please sign in to comment.