architecture: register the uninstall in-use cwd check under the path-containment owner guard

Abierto
#5,310 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@danielmeppiel ya está trabajando en esto.

Desde el 24/11/2026.

  • #5308 de @danielmeppiel — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
tooling

Línea de trabajo

Start by finding the architecture linter's registry of path-containment owner guards (search for the existing list that names modules checked for inline realpath/normpath calls) and read how one registered entry plus its mutation case is written. Add install/local_bundle_hook_trust.py to that list and copy an existing mutation case, re-adding a local containment check, to confirm the guard fails. Run the linter and its guard/mutation tests; done means the module is listed and the mutation case fails the guard as expected. Note the open linked PR before starting.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement status/accepted

Follow-up of #5296.

The uninstall in-use check now resolves a hook handler's cwd through utils.path_security.ensure_path_within. Add install/local_bundle_hook_trust.py to the registered path-containment owner guard, with its mutation case, so a future inline realpath or normpath containment check in that module is caught by the architecture linter.

Done when: the guard lists the module, and a mutation case that re-adds a local containment check fails the guard.

Lenguaje dominante
Python
Estrellas
4.4k
Forks
430
Merge medio
16 h 1 min
PR fusionados (30 d)
809

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/apm

Todos los issues de microsoft/apm

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.