Move profile resolution to the authz gate

This commit is contained in:
Theodor S. Midtlien
2026-09-18 11:19:35 +02:00
parent 96f9ea7428
commit 6dcb1374e9
18 changed files with 518 additions and 332 deletions
+4
View File
@@ -58,6 +58,10 @@ func TestSetConfig_AllFieldsSaved(t *testing.T) {
ctx := privilegedTestCtx()
s := New(ctx, "console", "", false, false, false, false)
// The gate resolves the handle and hands the profile down in the context;
// driving the handler directly skips it, so the test stands in for it.
ctx = withTarget(ctx, ic.ConfigPath)
rosenpassEnabled := true
rosenpassPermissive := true
serverSSHAllowed := true