storj / uplink

Storj network Go library
MIT License
122 stars 17 forks source link

Add encrypted_metadata_encrypted_key to pb.ObjectListItem #71

Closed mniewrzal closed 2 years ago

mniewrzal commented 2 years ago

While listing objects we are not returning encrypted_metadata_encrypted_key to uplink. Because of that, we need to use pb.StreamMeta on uplink side to get key and nonce for metadata. What we need to do:

See: https://github.com/storj/common/blob/34a5992b485615f0d4166fee1fc43d97ab5950ee/pb/metainfo.proto#L381 https://github.com/storj/storj/blob/99deec47b663e6549d4341a1ace2c65c4d6bd4b9/satellite/metainfo/metainfo.go#L2593 https://github.com/storj/uplink/blob/ca7f06e643fd097363f881cc29bd5ae0e450e417/private/metaclient/objects.go#L406 https://github.com/storj/uplink/blob/main/testsuite/backcomp/old_uplink_test.go#L22

storjBuildBot commented 2 years ago

Change https://review.dev.storj.io/c/storj/common/+/6582 mentions this issue.

storjBuildBot commented 2 years ago

Change https://review.dev.storj.io/c/storj/storj/+/6584 mentions this issue.

storjBuildBot commented 2 years ago

Change https://review.dev.storj.io/c/storj/uplink/+/6596 mentions this issue.