Follow the localapi fold on the info API's side

The control socket's fold made Group a value and gave the two 0600
constants one name; the info API's config reader and its tests catch up.

- defaultInfoMode goes for ownerOnlyMode; a group is present when its ID is
- the config test compares the whole Access with ownerOnly()

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Matt RichardsonandClaude Opus 5.5 committed 2026-10-21 12:27:12 -04:00
1 parent f2a8883563
commit 2f1931dc36
3 files changed
+7 -12

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ import (
func TestInfoIsServedOnAPipe(t *testing.T) {
users, err := windows.CreateWellKnownSid(windows.WinBuiltinUsersSid)
require.NoError(t, err)
group := &Group{Name: "Users", ID: users.String()}
group := Group{Name: "Users", ID: users.String()}
s := NewInfoServer(test.NewLogger(), commands.New())
path := pipePrefix + "nebula-info-test"