-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nomad inproperly unpack tar.gz artifact archives with symlinks #2292
Comments
In go-getter lib we doesn't find any flags that responds for such behavior, so as quick workaround we pack our archives with dereference ( |
Need to investigate whether this allows the chroot to be escaped |
Hello Is there any news on this matter? |
This issue is visible using Nomad 0.9.0-beta3 as well, with the The symlink itself is gone, and the symlinks themselves become zero bytes files! 😞 The use case is to download a largish app (which uses NVIDIA CUDA), extract it and run it. The app also has OS packages, but I want to avoid that to be able to use Nomad to run multiple different versions on the same machine. |
thanks @shantanugadgil , I've verified this on 0.9.0-beta3 and I'm looking into it right now. |
Okay, this is apparently a well-known issue in go-getter that has not been fixed yet: |
The associated issue has been fixed in |
Hey there Since this issue hasn't had any activity in a while - we're going to automatically close it in 30 days. If you're still seeing this issue with the latest version of Nomad, please respond here and we'll keep this open and take another look at this. Thanks! |
Still open, see #5446 for details |
@cgbaker any update/followup on the go-getter and thus this issue? This would be super useful addition and seems something obvious to have. 😄 As per the workarounds its not a complete blocker, though would be great to be functional directly via Nomad. 👍 |
This is definitely something that we want to address, but it is not a priority. Feel free to keep pinging this issue. |
Hey there Since this issue hasn't had any activity in a while - we're going to automatically close it in 30 days. If you're still seeing this issue with the latest version of Nomad, please respond here and we'll keep this open and take another look at this. Thanks! |
to keep the stale bot from closing this. |
Hey there Since this issue hasn't had any activity in a while - we're going to automatically close it in 30 days. If you're still seeing this issue with the latest version of Nomad, please respond here and we'll keep this open and take another look at this. Thanks! |
Nomad version
Nomad v0.5.4
We've made artifact with many symlinks in it. Is our case this links goes to so(shared objects), like in this sample:
Then in job file we've specifed follow atrifact declaration:
Artifact was successfully downloaded, and was extracted, but the contents of extracted dir, differs from
that which was in tar.gz archive:
As you can see, all symlinks after extract turn into simple files with zero length
The text was updated successfully, but these errors were encountered: