Skip to content

fix: windows pipe - construct SDDL with user ID#157

Merged
JoshVanL merged 3 commits into
dapr:mainfrom
mikeee:fix/reload-pipe
May 26, 2026
Merged

fix: windows pipe - construct SDDL with user ID#157
JoshVanL merged 3 commits into
dapr:mainfrom
mikeee:fix/reload-pipe

Conversation

@mikeee

@mikeee mikeee commented May 25, 2026

Copy link
Copy Markdown
Member

Description

Resolves access denied pipe issues downstream with hotreloading now enabled.

Tested working with the runtime in standalone mode

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests

Signed-off-by: Mike Nguyen <hey@mike.ee>
@mikeee mikeee requested review from a team as code owners May 25, 2026 14:31
JoshVanL
JoshVanL previously approved these changes May 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adjusts Windows named-pipe security for the reload/hotreload mechanism by constructing the pipe SDDL using the current user’s identity (instead of the Creator Owner alias) to avoid downstream “access denied” issues when hotreloading is enabled.

Changes:

  • Build the pipe SecurityDescriptor dynamically from the current user’s SID plus BA (Administrators) and SY (Local System).
  • Add a unit test to assert the generated SDDL contains the expected ACEs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
signals/pipe_windows.go Generates an SDDL string using the current user and applies it to winio.ListenPipe.
signals/pipe_windows_test.go Adds a test validating the constructed SDDL format and principals.

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

Comment thread signals/pipe_windows.go Outdated
Comment thread signals/pipe_windows.go
@JoshVanL

Copy link
Copy Markdown
Contributor

@mikeee these comments seem reasonable to add

Signed-off-by: Mike Nguyen <hey@mike.ee>
Signed-off-by: Mike Nguyen <hey@mike.ee>
@JoshVanL JoshVanL merged commit 1bef456 into dapr:main May 26, 2026
6 checks passed
@mikeee mikeee deleted the fix/reload-pipe branch May 26, 2026 09:53
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