refactor: make secrets optional for storage bucket (#3353)
This commit is contained in:
1 parent
86b2f4b90a
commit
e285a8ef6f
7 files changed
+379
-69
No files matched your search
@@ -68,8 +68,8 @@ type StorageBucket struct {
|
||||
// @inject_tag: `gorm:"not_null"`
|
||||
Attributes []byte `protobuf:"bytes,12,opt,name=attributes,proto3" json:"attributes,omitempty" gorm:"not_null"`
|
||||
// secrets_hmac is a sha256-hmac of the unencrypted secrets stored in the db.
|
||||
// @inject_tag: `gorm:"not_null"`
|
||||
SecretsHmac []byte `protobuf:"bytes,13,opt,name=secrets_hmac,json=secretsHmac,proto3" json:"secrets_hmac,omitempty" gorm:"not_null"`
|
||||
// @inject_tag: `gorm:"default:null"`
|
||||
SecretsHmac []byte `protobuf:"bytes,13,opt,name=secrets_hmac,json=secretsHmac,proto3" json:"secrets_hmac,omitempty" gorm:"default:null"`
|
||||
}
|
||||
|
||||
func (x *StorageBucket) Reset() {
|
||||
|
||||
Reference in new issue
Block a user