Skip to content

Conversation

@olljanat
Copy link

@olljanat olljanat commented Jul 25, 2025

In production plugins only NT AUTHORITY\SYSTEM which run Docker engine should have access plugin named pipes.

Copy link
Member

@akerouanton akerouanton left a comment

Choose a reason for hiding this comment

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

SGTM

@akerouanton
Copy link
Member

Dumb question:

Those named pipes cannot be overwritten which why they also need to be closed properly when plugin process exit.

What happens if the plugin crashes?

In production plugins only NT AUTHORITY\SYSTEM which run Docker engine
should have access plugin named pipes.

Signed-off-by: Olli Janatuinen <[email protected]>
@olljanat olljanat force-pushed the namedpipe-hardening branch from baf0e4e to e1209e5 Compare August 14, 2025 16:43
@olljanat
Copy link
Author

Those named pipes cannot be overwritten which why they also need to be closed properly when plugin process exit.

This seems to be invalid comments which I had forgot to there. On some earlier draft I had added defer l.Close() which I though that was needed by later realized that it will break connectivity from Docker.

Removed it now also from commit message.

What happens if the plugin crashes?

It closes normally. User mode services cannot leave named pipes behind when they close/crash.

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.

2 participants