mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 05:56:52 +01:00
Add support for accessing the previously ssh-only debug commands via `nebula ctl <command>.` - unix socket (named pipe on windows) for communication - sockets scoped to the user + an optional group - in cmd/nebula and cmd/nebula-service, but not nebula.Main Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
21 lines
525 B
Go
21 lines
525 B
Go
//go:build windows
|
|
|
|
package localapi
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
// peerCheckSupported is false where the connecting process is not identified separately.
|
|
//
|
|
// On windows there is nothing to add: the pipe's security descriptor already admits
|
|
// only the account nebula runs as, which is the check, not a second opinion on it.
|
|
const peerCheckSupported = false
|
|
|
|
var errNoPeerCheck = errors.New("peer credentials are not available on this platform")
|
|
|
|
func peerUID(conn net.Conn) (uint32, error) {
|
|
return 0, errNoPeerCheck
|
|
}
|