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: Ib02e2064c42e96b9d59936905832d8dd6068d2c7
This commit is contained in:
parent
37e7eeb0e9
commit
3180e09750
@ -130,7 +130,7 @@ type Config struct {
|
|||||||
MaxInlineSegmentSize memory.Size `default:"4KiB" help:"maximum inline segment size"`
|
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
|
// 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.
|
// has encryption overhead 16 bytes. So overall size is 1024 + 16 * 16.
|
||||||
MaxEncryptedObjectKeyLength int `default:"1750" help:"maximum encrypted object key length"`
|
MaxEncryptedObjectKeyLength int `default:"2000" help:"maximum encrypted object key length"`
|
||||||
MaxSegmentSize memory.Size `default:"64MiB" help:"maximum segment size"`
|
MaxSegmentSize memory.Size `default:"64MiB" help:"maximum segment size"`
|
||||||
MaxMetadataSize memory.Size `default:"2KiB" help:"maximum segment metadata 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"`
|
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
@ -629,7 +629,7 @@ identity.key-path: /root/.local/share/storj/identity/satellite/identity.key
|
|||||||
# metainfo.max-commit-interval: 48h0m0s
|
# metainfo.max-commit-interval: 48h0m0s
|
||||||
|
|
||||||
# maximum encrypted object key length
|
# maximum encrypted object key length
|
||||||
# metainfo.max-encrypted-object-key-length: 1750
|
# metainfo.max-encrypted-object-key-length: 2000
|
||||||
|
|
||||||
# maximum inline segment size
|
# maximum inline segment size
|
||||||
# metainfo.max-inline-segment-size: 4.0 KiB
|
# metainfo.max-inline-segment-size: 4.0 KiB
|
||||||
|
Loading…
Reference in New Issue
Block a user