@@ -271,15 +271,18 @@ message VolumeMetadata {
271
271
}
272
272
273
273
// 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 .
275
275
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 ;
283
286
}
284
287
////////
285
288
////////
@@ -328,7 +331,8 @@ message ControllerPublishVolumeRequest {
328
331
bool readonly = 5 ;
329
332
330
333
// End user credentials used to authenticate/authorize controller publish
331
- // request. This field is OPTIONAL.
334
+ // request.
335
+ // This field is OPTIONAL.
332
336
Credentials userCredentials = 6 ;
333
337
}
334
338
0 commit comments