-
Notifications
You must be signed in to change notification settings - Fork 61
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
cachi2: allow only relative paths #2137
cachi2: allow only relative paths #2137
Conversation
atomic_reactor/utils/cachi2.py
Outdated
return False | ||
|
||
fake_root = Path("/fake_root") | ||
full_path = (fake_root/path).resolve() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A path may be OK within a fake root but not within a real root (if it's a symlink in the real root)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ben-alkov is working on symlink check, no symlinks out of cloned repo allowed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I can rework it to use real cloned data, not a big issue to be sure that validation is complete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is working on symlink check, no symlinks out of cloned repo allowed.
Hmm, ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But yeah, if it's not a big change to run on the real repo, that would be nicer
For security reasons, only relative paths within cloned remote source can be specified by users Don't allow to point to symlink pointing out of cloned remote source Signed-off-by: Martin Basti <[email protected]>
2198483
to
9bd3a64
Compare
Updated to check symlinks, PTAL |
4246270
into
containerbuildsystem:feature_cachi2
For security reasons, only relative paths within cloned remote source can be specified by users
Maintainers will complete the following section