proto: change username of UP cred to be sensitive (#5934)
* proto: change username of UP cred to be sensitive
This commit is contained in:
1 parent
c186f8e819
commit
7c97bad96f
4 files changed
+4
-4
No files matched your search
@@ -126,7 +126,7 @@ func (*Credential_SshCertificate) isCredential_Credential() {}
|
||||
type UsernamePassword struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// The username of the credential
|
||||
Username string `protobuf:"bytes,10,opt,name=username,proto3" json:"username,omitempty"` // @gotags: `class:"public"`
|
||||
Username string `protobuf:"bytes,10,opt,name=username,proto3" json:"username,omitempty"` // @gotags: `class:"sensitive"`
|
||||
// The password of the credential
|
||||
Password string `protobuf:"bytes,20,opt,name=password,proto3" json:"password,omitempty"` // @gotags: `class:"secret"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
+1
-1
@@ -314,7 +314,7 @@ message Credential {
|
||||
// The attributes of a UsernamePassword Credential.
|
||||
message UsernamePasswordCredentialAttributes {
|
||||
// The username associated with the credential.
|
||||
string username = 1; // @gotags: class:"public"
|
||||
string username = 1; // @gotags: class:"sensitive"
|
||||
|
||||
// The hmac value of the password.
|
||||
string password_hmac = 2; // @gotags: class:"public"
|
||||
|
||||
@@ -21,7 +21,7 @@ message Credential {
|
||||
// UsernamePassword is a credential containing a username and a password.
|
||||
message UsernamePassword {
|
||||
// The username of the credential
|
||||
string username = 10; // @gotags: `class:"public"`
|
||||
string username = 10; // @gotags: `class:"sensitive"`
|
||||
|
||||
// The password of the credential
|
||||
string password = 20; // @gotags: `class:"secret"`
|
||||
|
||||
@@ -1285,7 +1285,7 @@ func (*Credential_JsonAttributes) isCredential_Attrs() {}
|
||||
type UsernamePasswordCredentialAttributes struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// The username associated with the credential.
|
||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" class:"public"` // @gotags: class:"public"
|
||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" class:"sensitive"` // @gotags: class:"sensitive"
|
||||
// The hmac value of the password.
|
||||
PasswordHmac string `protobuf:"bytes,2,opt,name=password_hmac,json=passwordHmac,proto3" json:"password_hmac,omitempty" class:"public"` // @gotags: class:"public"
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Reference in new issue
Block a user