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

Security review: bound buildpack execution time #2226

Closed
1 task
natalieparellano opened this issue Apr 23, 2024 · 2 comments
Closed
1 task

Security review: bound buildpack execution time #2226

natalieparellano opened this issue Apr 23, 2024 · 2 comments
Labels
help wanted Need some extra hands to get this done.

Comments

@natalieparellano
Copy link
Member

Description

In the security review, this is LOW-3: Denial-of-Service (DoS) provoked by an unbound execution time. The action plan asks us to

Implement a watchdog or equivalent in order to clean the used caches and terminate the detect or build phases after a certain time threshold

Proposed solution

Describe alternatives you've considered

Additional context

Related issue: buildpacks/lifecycle#1383

  • This feature should be documented somewhere
@natalieparellano natalieparellano added the help wanted Need some extra hands to get this done. label Jun 27, 2024
@natalieparellano natalieparellano transferred this issue from buildpacks/pack-private Jul 17, 2024
@loewenstein
Copy link

Are we sure the additional complexity is worth it? In the local dev case this should be pretty much not matter and in the CI case, the CI system should be able to easily take care of timeouts. Right?

In what use case do we see this relevant?

@natalieparellano
Copy link
Member Author

@loewenstein I am basically of this opinion as well. I think this issue was more relevant went we were considering adding a file locking mechanism to prevent simultaneous builds of the same name (see buildpacks/lifecycle#1383) which would necessitate some cleanup that a time guard could handle. But, since we decided not to do that work, maybe we don't need to do this work. I am going to close this issue and then if others in the community feel differently, we could restart the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need some extra hands to get this done.
Projects
None yet
Development

No branches or pull requests

2 participants