Skip to content

Commit 8b7a163

Browse files
author
Toni Reina
authored
Update the validation for Role.name (#196)
The previous validation was too restrictive. With this change we validate that role names cannot contain non-printable characters, same as we do for account names.
1 parent 271d899 commit 8b7a163

7 files changed

Lines changed: 33 additions & 34 deletions

File tree

gen/go/qdrant/cloud/iam/v1/iam.pb.go

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/iam/v1/iam.swagger.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/ui/v1/ui.swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/python/qdrant/cloud/iam/v1/iam_pb2.py

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/typescript/qdrant/cloud/iam/v1/iam_pb.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/typescript/qdrant/cloud/iam/v1/iam_pb.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/qdrant/cloud/iam/v1/iam.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ message Role {
637637
// This is a required field.
638638
string account_id = 4 [(buf.validate.field).string = {uuid: true}];
639639
// The name of the role.
640-
// Name can only contain letters, numbers, spaces, underscores and dashes.
640+
// Name can only contain printable characters.
641641
string name = 5 [(buf.validate.field).string = {
642642
max_len: 64
643643
min_len: 4
644-
pattern: "^[\\w\\s-]+$"
644+
pattern: "^([^\\x00-\\x1F\\x7F])*$"
645645
}];
646646
// The human readable description of this role.
647647
string description = 6 [(buf.validate.field).string = {max_len: 256}];

0 commit comments

Comments
 (0)