-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists
Milestone
Description
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?
- Yes, I am willing to implement it.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists