Closed
Description
Currently, there is no enforcement on LinkPhysicalAddress regarding the origin of the provided address or times of use.
The following scenario can occur:
- GetPhysicalAddress returns an address issued by lakeFS
- Perform upload to address and LinkPhysicalAddress
- Commit data (commit-x)
- Perform LinkPhysicalAddress using the same address on same branch
- Commit data (commit-y)
Result - commit-x has invalid metadata for address
- The solution will be to enforce single use of addresses issued by lakeFS using GetPhysicalAddress and will be solved as part of the changes suggested in Proposal: Uncommitted GC #4382