proto: change username of UP cred to be sensitive (#5934)

* proto: change username of UP cred to be sensitive
pull/5954/head
Irena Rindos 9 months ago committed by GitHub
parent c186f8e819
commit 7c97bad96f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

@ -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

Loading…
Cancel
Save