What is the version of your ORAS CLI
oras 1.0.0
What would you like to be added?
By default, disable pushing files with absolute file path in oras push and oras attach, add a new flag, like --allow-absolute-path to support glass-breaking scenarios.
The artifact packed via oras attach/push --allow-absolute-path can only be pulled via oras pull --T/allow-path-traversal
Why is this needed for ORAS?
Absolutely pathed layers are dangerous, since
- File might be written into any folder outside of the working directory.
- The allowed characters in files names are different between Linux and Windows. Artifacts packed in one platform may not be pulled in another platform.
Are you willing to submit PRs to contribute to this feature?
What is the version of your ORAS CLI
oras 1.0.0
What would you like to be added?
By default, disable pushing files with absolute file path in
oras pushandoras attach, add a new flag, like--allow-absolute-pathto support glass-breaking scenarios.The artifact packed via
oras attach/push --allow-absolute-pathcan only be pulled viaoras pull --T/allow-path-traversalWhy is this needed for ORAS?
Absolutely pathed layers are dangerous, since
Are you willing to submit PRs to contribute to this feature?