From 072baa047d461286cc5cba586cbf6dbdbde85a5e Mon Sep 17 00:00:00 2001 From: clover caruso Date: Fri, 16 Oct 2026 16:33:31 -0700 Subject: [PATCH] Register the confidential Knife OIDC client Declare the exact Knife callback through the existing Snowglobe OIDC provider. Allocate client knife with its secret owned by the service Nomad input, without restarting the running application or enabling unfinished SSO integration. Verified live registration, confidential client authentication, acceptance of an S256 authorization request, unregistered callback rejection, and both token grant handlers rejecting deliberately nonexistent grants after client auth. Assisted-by: gpt-6.1-sol --- service/knife/service.pkl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/service/knife/service.pkl b/service/knife/service.pkl index 709697861802ab37ab7537e61ce501114ae9546a..2422e4788f054cfa442ccb548fdc9c72037a2e9f 100644 --- a/service/knife/service.pkl +++ b/service/knife/service.pkl @@ -1,10 +1,18 @@ amends "../../config/Service.pkl" import "pkl:json" +import "../../config/OpenID.pkl" as sso local bundle = (new json.Parser {}).parse(read("bundle.json")) meta { name = "The Knife"; access = "infra-admin" } +requirements { + new sso.Client { + clientId = module.id + name = module.meta.name + redirectUris { "https://\(module.container.http.hostname)/api/auth/oidc/callback" } + } +} stageIsolation = "fresh" prepare = "prepare.py" setup = "setup.py" -- 2.54.1