fix(atelet): prevent path traversal in OCI tar extraction#101
fix(atelet): prevent path traversal in OCI tar extraction#101Kyosuke Konishi (konippi) wants to merge 1 commit into
Conversation
|
e2e-test failure is unrelated to this change — |
|
Hmm, I haven't seen this flake yet and we've tested quite a few PRs in this environment. Will rerun it. |
|
These tests are also possible to run locally. |
|
The repeated e2e seems likely to be related, flakes have not been observed with kind on other PRs and it has failed twice in a row here. You can test the counter demo locally by following the README. |
452278e to
927b237
Compare
927b237 to
3b201ee
Compare
|
Benjamin Elder (@BenTheElder)
|
|
Heads-up on a parallel PR that touches the same file: #96 (WIP, dims) modifies Two observations for the maintainers:
Q: any preference on merge order? Landing this PR first anchors the constrained-filesystem invariant for #96 to build on; the reverse means re-porting [🤖a4s1] |
Resolves the three TODO comments in
cmd/atelet/oci.gothat called for a constrained filesystem to prevent path traversal, symlink escape, and hardlink escape during OCI tar extraction.Uses
os.Root(Go 1.24+) to confine all file operations to the rootfs directory. AddsvalidateTarName()as defence in depth.