Allow administrators to bypass UnknownPathExcluder if there are known, trusted files that need to be included in stage operations

Created on 13 December 2023, 11 months ago

Problem/Motivation

In some situations, UnknownPathExcluder gets in the way.

For example: I am creating a project to test how Project Browser and recipes play together. That necessitates many patches. The current version of cweagans/composer-patches allows (indeed, encourages!) me to keep the patch files in a local directory. So I do, at /path/to/project/patches.

The problem is that UnknownPathExcluder will omit the patches directory from the stage directory, which means that stage operations will fail because the patcher plugin can't do its job since the patches aren't there.

Proposed resolution

Add a boolean config flag that allows site admins who know what they're doing to bypass UnknownPathExcluder entirely. By default, the flag will be FALSE, and the current behavior will be the default (which is also smarter from a security perspective, in case security-sensitive files are being stored in the project, but outside the web root). But, if I need to include extra files, like my patches directory, in the stage directory, I can just change that config setting.

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024