satellite/metainfo: increase default MaxEncryptedObjectKeyLength
Allow a longer encrypted key length to reduce 'key length is too big' errors in gateway-mt. Gateway is enforcing an unencrypted key length of 1024 bytes but when encrypted some keys are exceeding the current limit. updates https://github.com/storj/gateway-mt/issues/335 Change-Id: I861a2313e558c9f7d39569d21c7a3d429c83575c
This commit is contained in:
parent
a8ba7aa263
commit
d8081169cd
@ -132,7 +132,7 @@ type Config struct {
|
||||
MaxInlineSegmentSize memory.Size `default:"4KiB" help:"maximum inline segment size"`
|
||||
// we have such default value because max value for ObjectKey is 1024(1 Kib) but EncryptedObjectKey
|
||||
// has encryption overhead 16 bytes. So overall size is 1024 + 16 * 16.
|
||||
MaxEncryptedObjectKeyLength int `default:"1280" help:"maximum encrypted object key length"`
|
||||
MaxEncryptedObjectKeyLength int `default:"1750" help:"maximum encrypted object key length"`
|
||||
MaxSegmentSize memory.Size `default:"64MiB" help:"maximum segment size"`
|
||||
MaxMetadataSize memory.Size `default:"2KiB" help:"maximum segment metadata size"`
|
||||
MaxCommitInterval time.Duration `default:"48h" testDefault:"1h" help:"maximum time allowed to pass between creating and committing a segment"`
|
||||
|
2
scripts/testdata/satellite-config.yaml.lock
vendored
2
scripts/testdata/satellite-config.yaml.lock
vendored
@ -593,7 +593,7 @@ identity.key-path: /root/.local/share/storj/identity/satellite/identity.key
|
||||
# metainfo.max-commit-interval: 48h0m0s
|
||||
|
||||
# maximum encrypted object key length
|
||||
# metainfo.max-encrypted-object-key-length: 1280
|
||||
# metainfo.max-encrypted-object-key-length: 1750
|
||||
|
||||
# maximum inline segment size
|
||||
# metainfo.max-inline-segment-size: 4.0 KiB
|
||||
|
Loading…
Reference in New Issue
Block a user