Skip to content

Commit 87a5fc9

Browse files
committed
Address feedback round 1
This commit will be squashed before merge.
1 parent fc1868b commit 87a5fc9

File tree

3 files changed

+179
-167
lines changed

3 files changed

+179
-167
lines changed

csi.proto

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,18 @@ message VolumeMetadata {
271271
}
272272

273273
// A standard way to encode credential data. The total bytes of the values in
274-
// the Data field must be less than MaxSecretSize bytes.
274+
// the Data field must be less than 1 Mebibyte.
275275
message Credentials {
276-
// Data contains the credential data, for example username and password. Each
277-
// key must consist of alphanumeric characters, '-', '_' or '.'. The
278-
// serialized form of the secret data is a base64 encoded string, representing
279-
// the arbitrary (possibly non-string) data value here.
280-
// This information is sensitive and should be treated as such (not logged,
281-
// etc.)
282-
map<string, bytes> Data = 1;
276+
// Data contains the credential data, for example username and password.
277+
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
278+
// Each value MUST contain a valid string. An SP MAY choose to accept binary
279+
// (non-string) data by using a binary-to-text encoding scheme, like base64.
280+
// An SP SHALL advertise the requirements for credentials in documentation.
281+
// COs SHALL permit users to pass through the required credentials.
282+
// This information is sensitive and MUST be treated as such (not logged,
283+
// etc.) by the CO.
284+
// This field is REQUIRED.
285+
map<string, string> Data = 1;
283286
}
284287
////////
285288
////////
@@ -328,7 +331,8 @@ message ControllerPublishVolumeRequest {
328331
bool readonly = 5;
329332

330333
// End user credentials used to authenticate/authorize controller publish
331-
// request. This field is OPTIONAL.
334+
// request.
335+
// This field is OPTIONAL.
332336
Credentials userCredentials = 6;
333337
}
334338

0 commit comments

Comments
 (0)