Skip to content

Commit 375a2e3

Browse files
gavinbarronCopilotramsessanchez
authored
ci: onboard PowerShell pipelines (187/221/663) to network isolation enforcement (CFSClean) (#3732)
* ci: TEMPORARY CFSClean diagnostic - dump npmjs tarball resolutions After `rush install`, print the entries in the re-resolved common/temp/pnpm-lock.yaml that resolved to registry.npmjs.org, to identify exactly which package(s) egress to public npm under 1ES network isolation. To be reverted once the culprits are identified. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6ea00b50-c719-469b-bf9c-72120184bfe0 * ci: diagnostic v2 - list pnpm metadata cache entries from npmjs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6ea00b50-c719-469b-bf9c-72120184bfe0 * ci: TEMP enforce network isolation (no Npm) + skip generation for npmjs diagnostic Enforce networkIsolationMode with policy Good,GitHub,NuGet,PowershellGallery,CFSClean,CFSClean3 (deliberately omitting Npm) so public registry.npmjs.org egress is blocked and the failing pnpm fetch names the culprit package. Generation/downstream steps disabled to keep the build fast. To be reverted before merge. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6ea00b50-c719-469b-bf9c-72120184bfe0 * ci: onboard PowerShell V2 Build to network isolation enforcement (CFSClean) Revert the exploratory diagnostic + generation-disable changes; keep only the network isolation settings. Enforce mode with policy Good,GitHub,Npm,NuGet,PowershellGallery,CFSClean,CFSClean3 onboards the pipeline to 1ES network isolation for CFSClean/SFI compliance. Validated on branch build 234324: all policies (CFSClean, CFSClean2, CFSClean3, Default Deny) reported COMPLIANT and the build succeeded. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6ea00b50-c719-469b-bf9c-72120184bfe0 * ci: drop Npm from network isolation policy (block public npmjs) Removes Npm from the allowlist so public registry.npmjs.org is blocked under enforcement. Validated in build 234324: build succeeds and all CFSClean tiers report COMPLIANT with npmjs blocked. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6ea00b50-c719-469b-bf9c-72120184bfe0 * ci: onboard Weekly (221) and Command-Metadata-Refresh (663) to network isolation enforcement Apply the same network isolation settings as ci-build.yml (187): Enforce mode with policy Good,GitHub,NuGet,PowershellGallery,CFSClean,CFSClean3. 663 previously set networkIsolationPolicy: Permissive; this switches it to enforcement. All three pipelines share install-tools.yml, so the same CFSClean posture applies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6ea00b50-c719-469b-bf9c-72120184bfe0 --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Ramses Sanchez-Hernandez <63934382+ramsessanchez@users.noreply.github.com> Copilot-Session: 6ea00b50-c719-469b-bf9c-72120184bfe0
1 parent 79e0056 commit 375a2e3

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

.azure-pipelines/ci-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ extends:
5151
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
5252
parameters:
5353
pool: $(BuildAgent)
54+
# Onboard to 1ES network isolation enforcement for CFSClean / SFI compliance. Enforce mode with an
55+
# allowlist for the package ecosystems this build uses so it resolves from approved feeds while
56+
# non-allowlisted public egress is blocked.
57+
settings:
58+
networkIsolationMode: Enforce
59+
networkIsolationPolicy: Good,GitHub,NuGet,PowershellGallery,CFSClean,CFSClean3
5460
sdl:
5561
binskim:
5662
enabled: false

.azure-pipelines/command-metadata-refresh.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ extends:
5858
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
5959
parameters:
6060
pool: $(BuildAgent)
61+
# Onboard to 1ES network isolation enforcement for CFSClean / SFI compliance. Enforce mode with an
62+
# allowlist for the package ecosystems this build uses so it resolves from approved feeds while
63+
# non-allowlisted public egress is blocked.
6164
settings:
62-
networkIsolationPolicy: Permissive
65+
networkIsolationMode: Enforce
66+
networkIsolationPolicy: Good,GitHub,NuGet,PowershellGallery,CFSClean,CFSClean3
6367
sdl:
6468
binskim:
6569
enabled: false

.azure-pipelines/weekly-generation.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ extends:
6161
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
6262
parameters:
6363
pool: $(BuildAgent)
64+
# Onboard to 1ES network isolation enforcement for CFSClean / SFI compliance. Enforce mode with an
65+
# allowlist for the package ecosystems this build uses so it resolves from approved feeds while
66+
# non-allowlisted public egress is blocked.
67+
settings:
68+
networkIsolationMode: Enforce
69+
networkIsolationPolicy: Good,GitHub,NuGet,PowershellGallery,CFSClean,CFSClean3
6470
sdl:
6571
binskim:
6672
enabled: false

0 commit comments

Comments
 (0)