Policy inheritance: child layers should only narrow unmanaged_files.exclude
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
Línea de trabajo
Start with merge_policies in src/apm_cli/policy/inheritance.py, around lines 312-315, where unmanaged_files.exclude is merged as a union. Then look at how apm audit reports governed paths. The design rule (intersect versus restrict to the parent's excluded paths) is still open and needs a maintainer decision before code. Done means a merge test where a child ** exclude leaves the parent's governed directories enforced, an audit test for the warning text, and updated policy schema and inheritance docs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
When org policies are inherited (extends), merge_policies tightens every deny-class field from parent to child, with one exception: unmanaged_files.exclude is merged as a union (src/apm_cli/policy/inheritance.py, around lines 312-315). A child layer can therefore add a broad exclude pattern, for example **, which removes every governed path from an inherited unmanaged_files.action: deny.
This is documented behaviour today, so this issue is a design proposal, not a defect report.
Proposal
- Child layers may only narrow
unmanaged_files.exclude: a child exclude is accepted only where it does not widen what the parent excludes. The exact rule needs design (for example, intersect the sets, or accept child patterns only inside the parent's excluded paths). apm auditwarns when an effective child exclude pattern covers a directory the parent policy governs.
Compatibility
Narrowing the union changes behaviour for existing inherited policies that rely on child excludes. It needs a product decision and a migration note before it ships.
Acceptance
- A merge cell where a child exclude
**under a parentaction: denyleaves the parent's governed directories enforced. - An audit cell with the warning text when a child exclude covers a governed directory.
- Docs updated in the policy schema reference and the inheritance guide.
- Lenguaje dominante
- Python
- Estrellas
- 4.4k
- Forks
- 430
- Merge medio
- 19 h 38 min
- PR fusionados (30 d)
- 637
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/apm
-
bug status/accepted type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
microsoft/apm#4925 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[DOCS] Document Mode B waiver formatting/merge-queue requirements and post-approval issue editsAbiertostatus/triage-pending type/docs
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
microsoft/apm#4719 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement status/accepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
microsoft/apm#4075 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG] Claude command transform drops frontmatter keys Claude Code supports on commandsPosiblemente ocupada @abhishekacharya200 la tomó hace 7 días. Abiertoarea/multi-target status/accepted theme/portability triage/recommended type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/apm#3067 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG] apm approve <key> for a bundle saves the grant, then exits 1 when another trust layer still denies itPosiblemente ocupada @danielmeppiel la tomó hoy. Abiertobug status/accepted type/bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
microsoft/apm#4933 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/apm
Issues similares
-
bot-triaged module: correctness (silent) module: fft triage review
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Remove Python pin in recipeAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
conda-forge/zarpaint-feedstock#8 · 1 comentario · 1 reacción ·
-
plot_prediction colorbar shows a 0-1 range instead of the data rangePosiblemente ocupada @nikhil3495 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
mllam/neural-lam#902 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
didi/helixharness#28 ·
Los mantenedores suelen responder en 1 día
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Abiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
DaoCloud/DaoCloud-docs#7839 ·
Los mantenedores suelen responder en 1 día