Kaloyan Raev
ea48322dd3
satellite/metainfo: use deterministic signing for satStreamID
...
So we can have stable UploadID for multipart uploads.
Change-Id: Iac6780394c8cc0f96c0b9c4b850b92ed3627a9b0
2021-01-19 15:56:29 +00:00
Egon Elbre
0df0e980a0
satellite/metainfo/metabase: fix FixedSegmentSize calculation
...
Commiting multipart object with same sized segments should always
end with FixedSegmentSize = -1.
Change-Id: Iedeafb763b62b2513de0a753dce20ddad5b32d90
2021-01-11 14:47:49 +02:00
Michał Niewrzał
71ca18134b
satellite/metainfo: reject downloading a segment from multipart object
...
Non-multipart uplink implementation is always trying to download object
by downloading last segment first (PartNumber=0, Index=-1) but this
approach won't work with multipart object. We need to reject such old
style request with reasonable message.
Change-Id: I9221e019933565a8d25136bdfef3e054320bac3d
2021-01-11 08:04:33 +00:00
Michał Niewrzał
da316c27aa
satellite/metainfo/metabase: disable PlainSize validation
...
We need to accept segments with PlainSize == 0 to be backward compatible
for old uplinks.
Change-Id: I926abe751e9e0ad7e06e42a5301ab78a3f23aafa
2021-01-07 14:14:20 +00:00
Michal Niewrzal
f3ef8088e7
satellite/metainfo/metabase: add Verify method for Pieces
...
This change adds Verify method for pieces to do some basic checks.
Change-Id: I0ff4313b594d2cb3aad7da545f940e10ee654b77
2020-12-21 12:49:03 +00:00
Egon Elbre
365410d10b
satellite/metainfo/metabase: add commit with specifying a list of segments
...
Change-Id: Ibb9999545691d150f36e20ce70ac00a3802ad7b2
2020-12-09 15:16:38 +02:00
Michal Niewrzal
218bbeaffa
Merge 'master' branch
...
Change-Id: Ica5c25607a951076dd9f77e35e308062f71ce3f0
2020-12-07 15:05:52 +01:00
Michal Niewrzal
cfb45a785c
satellite/metainfo/metabase: add TotalPlainSize to objects table
...
We need to know how large is object in general and we shouldn't query
segments for that.
Change-Id: Ie316e1ec38bfc39065e6046b79b55d58f3ce9d53
2020-11-25 14:35:28 +01:00
Fadila Khadar
c9bbd83f96
satellite/metainfo/metabase: align object status to those already in use
...
Change-Id: I33b2ce7282838e1172b7cb92d4e76169c96fddcb
2020-11-17 14:07:42 +01:00
Michal Niewrzal
b7df41a0a1
satellite/metainfo/metabase: add EncryptedMetainfoEncryptedKey parameter
...
to metabase
* EncryptedMetainfoEncryptedKey added to CommitSegment and
UpdateMetadata request
* EncryptedMetainfoEncryptedKey returned with GetObject response and all
delete responses
* EncryptedMetainfoEncryptedKey returned with object iterator results
Change-Id: I917541ab5f3e1863bc8f238d17a15fbf72a23025
2020-11-17 10:19:12 +00:00
Egon Elbre
bc460cd62d
satellite/metainfo/metabase: use txutil.WithTx in commit
...
Change-Id: I84347291179c7042e22bda703a1c9bd80a1513a0
2020-11-12 14:38:33 +02:00
Michal Niewrzal
9d25b3a7d3
satellite/metainfo/metabase: add ListSegments request
...
Change-Id: Ie777a0f791685beab3973e76b10a9ce76398e7d7
2020-11-12 11:46:17 +01:00
Kaloyan Raev
9dcd0936d7
satellite/metainfo: MakeInlineSegment to use metabase
...
Change-Id: Ib32c1d9e91e3f13b4e44abefb2b5d0352b64bd79
2020-11-11 15:24:21 +02:00
Egon Elbre
184e1ffa9d
satellite/metainfo/metabase: commit object without proofs
...
Change-Id: I788111b9e5bdc961be9e731f8203e52ca9da9dca
2020-11-09 15:18:07 +00:00
Michal Niewrzal
4134100d80
satellite/metainfo/metabase: add UpdateObjectMetadata request
...
Change-Id: Iec73000e58f373294f37ef3e4470412d1c5f1340
2020-11-03 11:08:41 +00:00
Kaloyan Raev
f7aa5b4e39
metabase: CommitObject return metabase.Object
...
An immediate purpose is to be used in test cases for deleting objects
Change-Id: I481d3be5800e55da231ecb628ef7eb3ea011d196
2020-11-03 09:57:44 +00:00
Michal Niewrzal
ae17ae73d7
satellite/metainfo/metabase: add metadata and nonce to CommitObject
...
request
Change-Id: I584775800963fc2167c749f3da20475036fa5325
2020-11-02 16:49:18 +01:00
Egon Elbre
53b396b901
satellite/metainfo/metabase: move Encryption to Begin
...
Change-Id: Ic1fb935ce7668e901f6cbe14a67c071a1f16a9ad
2020-10-29 16:04:21 +02:00
Michal Niewrzal
809eb14ac2
satellite/metainfo/metabase: move metainfo PoC into storj repo
...
Change-Id: I39356d8bc7305b4a8ea0c1fb5603010ad72a68b9
2020-10-29 09:44:55 +01:00