-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade to use google protobuf #9190
base: main
Are you sure you want to change the base?
Conversation
a71470b
to
8367466
Compare
8367466
to
b4c3780
Compare
42b8fa8
to
5f181e3
Compare
bc55364
to
1470a02
Compare
@@ -31,8 +29,8 @@ const ( | |||
// If these credentials are missing the default credentials will be used. | |||
type MinioCredentials struct { | |||
AccessKey string | |||
SecretKey pb.Sensitive | |||
SessionToken pb.Sensitive | |||
SecretKey string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will start printing these sensitive data into logs, we need to figure out a fix for this.
size := proto.Size(list) | ||
|
||
// Ensure the size is non-negative and fits within uint64 bounds | ||
if size < 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be an assert
x/keys.go
Outdated
@@ -419,7 +419,7 @@ func (p ParsedKey) ToBackupKey() *pb.BackupKey { | |||
key.Attr = attr | |||
key.Uid = p.Uid | |||
key.StartUid = p.StartUid | |||
key.Term = p.Term | |||
key.Term = []byte(p.Term) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may affect performance
@@ -455,7 +455,7 @@ func FromBackupKey(backupKey *pb.BackupKey) []byte { | |||
case pb.BackupKey_DATA: | |||
key = DataKey(attr, backupKey.Uid) | |||
case pb.BackupKey_INDEX: | |||
key = IndexKey(attr, backupKey.Term) | |||
key = IndexKey(attr, string(backupKey.Term)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
2bb0dda
to
941afc0
Compare
941afc0
to
12dae9d
Compare
12dae9d
to
e41ce54
Compare
inspired from #7313