Skip to content
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

add trusted tar option to faster unpacks #284

Closed
wants to merge 2 commits into from

Conversation

obsd
Copy link
Contributor

@obsd obsd commented Aug 11, 2022

This is a base for discussion regarding #241 issue

tar_file_names = tar_file.getnames()
TarFileToLocalGitExtractor.validate_tar_or_throw(tar_file_names)
tar_file.extractall(path=self.local_clone_path)
if opal_common_config.TRUSTED_TAR == True:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a way to mark specific TARS as safe explicitly - so people won't by mistake treat unsafe tars as safe.
Kinda like React's dangerously set innerhtml

Maybe we can define a regex for the file name that can act as the identification ( and worst people can config it to ".*" for any file)

@roekatz
Copy link
Contributor

roekatz commented May 9, 2023

Not prioritized, closing

@roekatz roekatz closed this May 9, 2023
@roekatz roekatz deleted the oded/add-trusted-tar-option branch May 9, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with performance and iterating over tar policy having large number of files
3 participants