Skip to content

formulary: do not allow using the cache when forbidding paths#20487

Merged
MikeMcQuaid merged 2 commits intomainfrom
formulary-forbid-cache
Aug 18, 2025
Merged

formulary: do not allow using the cache when forbidding paths#20487
MikeMcQuaid merged 2 commits intomainfrom
formulary-forbid-cache

Conversation

@Bo98
Copy link
Member

@Bo98 Bo98 commented Aug 18, 2025

While implicitly-set HOMEBREW_FORBID_PACKAGES_FROM_PATHS is more to point non-developers away from paths as they're not well supported, explicitly-set HOMEBREW_FORBID_PACKAGES_FROM_PATHS is a security feature.

Since the cache can contain arbitrary downloads, we shouldn't allow the cache if HOMEBREW_FORBID_PACKAGES_FROM_PATHS is explicitly set.

@Bo98 Bo98 force-pushed the formulary-forbid-cache branch from 0e4832e to b30d13c Compare August 18, 2025 04:33
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Thanks! Should be able to land something like this, just need to tweak approach a bit.

@Bo98 Bo98 changed the title formulary: do not allow using the cache if explicitly forbidding paths formulary: do not allow using the cache when forbidding paths Aug 18, 2025
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Aug 18, 2025
Merged via the queue into main with commit 0cadd6d Aug 18, 2025
36 checks passed
@MikeMcQuaid MikeMcQuaid deleted the formulary-forbid-cache branch August 18, 2025 16:12
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.

2 participants