-
Notifications
You must be signed in to change notification settings - Fork 236
extends: org also fails to layer dependencies.require from parent (same root as #1198) #1201
Copy link
Copy link
Closed
Labels
area/audit-policyapm-policy.yml schema, custom_checks, install-time enforcement.apm-policy.yml schema, custom_checks, install-time enforcement.priority/highShips in current or next milestoneShips in current or next milestonestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).theme/governanceGoverned by policy. apm-policy, audit, enforcement, enterprise rollout.Governed by policy. apm-policy, audit, enforcement, enterprise rollout.type/bugSomething does not work as documented.Something does not work as documented.
Metadata
Metadata
Assignees
Labels
area/audit-policyapm-policy.yml schema, custom_checks, install-time enforcement.apm-policy.yml schema, custom_checks, install-time enforcement.priority/highShips in current or next milestoneShips in current or next milestonestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).theme/governanceGoverned by policy. apm-policy, audit, enforcement, enterprise rollout.Governed by policy. apm-policy, audit, enforcement, enterprise rollout.type/bugSomething does not work as documented.Something does not work as documented.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
Summary
Same root cause as #1198 (
unmanaged_filesnot layered throughextends: org). Thedependencies.requirefield is also dropped when a repoapm-policy.ymldeclaresextends: organd the org floor declaresdependencies.require.Repro
Run
apm audit --ci --policy ./apm-policy.ymlin the repo withsecure-baselineremoved fromapm.yml. Expected:required-packagescheck fails withsecure-baseline missing from manifest. Actual: check passes withNo required packages configured— the org's required list never made it into the layered policy.Workaround (proven)
Redeclare in the repo override:
Why this matters
Defeats the "required floor" governance pattern that the policy reference (https://microsoft.github.io/apm/enterprise/policy-reference/) is documented to support. Org wants to mandate
secure-baselineeverywhere;extends: orgis the documented mechanism; today it silently downgrades the floor.Likely fix location
Same place as #1198 — the inheritance-merge code path that handles
extends:. Looks like an additive/union merge is missing fordependencies.require(and possiblydependencies.deny, untested).Context
Discovered while wiring a 5-beat enterprise demo. Repro is reproducible end-to-end on a public org. Same workaround as #1198 unblocks; would prefer a fix so policy authors don't have to remember to redeclare two separate fields per override file.