chore(docs): improve on password hashing (#6951)

This commit is contained in:
Tim Möhlmann
2023-11-22 12:29:06 +02:00
committed by GitHub
parent 5fcb5568d7
commit 2de7ce99c5
3 changed files with 26 additions and 3 deletions

View File

@@ -7755,7 +7755,7 @@ message ImportHumanUserRequest {
string value = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"$2y$12$hXUrnqdq1RIIYZ2HPytIIe5lXdIvbhqrTvdPsSF7o.jFh817Z6lwm\"";
description: "Encoded hash of a password in Modular Crypt Format: https://passlib.readthedocs.io/en/stable/modular_crypt_format.html"
description: "Encoded hash of a password in Modular Crypt Format: https://zitadel.com/docs/concepts/architecture/secrets#hashed-secrets"
}
];
reserved 2; // was algortithm, which is actually obtained from the encoded hash

View File

@@ -27,7 +27,7 @@ message HashedPassword {
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"$2a$12$lJ08fqVr8bFJilRVnDT9QeULI7YW.nT3iwUv6dyg0aCrfm3UY8XR2\"";
description: "\"hashed password\"";
description: "\"Encoded hash of a password in Modular Crypt Format: https://zitadel.com/docs/concepts/architecture/secrets#hashed-secrets\"";
min_length: 1,
max_length: 200;
}