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

Aperta
#5,310 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@danielmeppiel ci sta già lavorando.

Dal 24/11/2026.

  • #5308 di @danielmeppiel — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
4.4k
Fork
430
Merge medio
19h 38m
PR unite (30g)
637

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/apm

Tutte le issue di microsoft/apm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.