Skip to content

Adreed/10.32.4#3457

Open
adreed-msft wants to merge 13 commits into
mainfrom
adreed/10.32.4
Open

Adreed/10.32.4#3457
adreed-msft wants to merge 13 commits into
mainfrom
adreed/10.32.4

Conversation

@adreed-msft
Copy link
Copy Markdown
Member

Covers some trivy vulnerabilities atop 10.32.3

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets trivy-reported vulnerabilities by updating Go/dependency versions and hardening Linux SDDL parsing/handling to avoid crashes from malformed or malicious security descriptors, along with a version bump and pipeline configuration updates.

Changes:

  • Replace panic paths with returned errors when parsing/validating SDDL on Linux, to avoid taking down entire jobs.
  • Add overflow-safe range validation in Linux SDDL helper parsing logic and introduce a regression test to prevent crash regressions.
  • Update Go/dependency versions and bump AzCopy version, plus adjust 1ES pipeline feature flags.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ste/sourceInfoProvider-Local_linux.go Removes panic behavior in SDDL conversion/sanity checks and returns errors instead.
sddl/sddlHelper_linux.go Adds overflow-safe range validation for SD offsets to prevent out-of-bounds slicing/crashes.
sddl/sddlHelper_linux_test.go Adds a Linux-only regression test to ensure crafted SDs don’t panic.
go.mod Updates dependency versions and bumps the module Go version.
go.sum Captures new dependency checksums for the updated modules.
common/version.go Bumps AzCopy version to 10.32.4.
ChangeLog.md Adds a new changelog entry describing dependency/vulnerability changes.
build-1es-pipeline.yaml Disables network isolation via 1ES feature flags.
Comments suppressed due to low confidence (1)

go.mod:103

  • go.mod is updated to go 1.26.3, but the repo's pipelines (e.g., build-1es-pipeline.yaml and azure-pipelines.yml) still pin AZCOPY_GOLANG_VERSION: '1.25.8'. If CI/build agents use 1.25.8, go will likely refuse to build a module requiring 1.26.x. Please keep the module Go version and pipeline Go toolchain version in sync (either update the pipeline variables/tasks, or adjust the go directive as intended).
replace github.com/Azure/azure-sdk-for-go/sdk/storage/azfile => github.com/Azure/azure-sdk-for-go/sdk/storage/azfile v1.5.2-0.20250507070125-9e8eb1f00372

go 1.26.3


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sddl/sddlHelper_linux.go
Comment on lines 1129 to 1130
return "", fmt.Errorf("dacloffset (%d) points outside Security Descriptor of size %d bytes!",
dacloffset+8, len(sd))
Comment on lines +73 to +75
a.Nil(panicked, v.testName, "panicked")
a.NotNil(err, v.testName, "should have returned an error")
a.Contains(err.Error(), "must lie within sd", v.testName, "error wasn't as expected")
Comment thread ChangeLog.md
Comment on lines +4 to +6
## Version 10.32.3

### Dependency updates
Comment thread build-1es-pipeline.yaml
Comment on lines +64 to +65
featureFlags:
disableNetworkIsolation: true
@adreed-msft adreed-msft mentioned this pull request May 11, 2026
Broken in Golang, removed in next major revision anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants