authoravatarclover caruso<git@paperclover.net>2026-10-16 16:33:31-07:00
committeravatarclover caruso<git@paperclover.net>2026-10-21 02:52:29-07:00
log072baa047d461286cc5cba586cbf6dbdbde85a5e
treeb891ab5f3a78f7724fb1e9204c275abc97d66c31
parent622ab80aceb431e315bbd18fd708f47e993250c9
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

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

1 files changed, 8 insertions(+), 0 deletions(-)

service/knife/service.pkl+8
......@@ -1,10 +1,18 @@
11amends "../../config/Service.pkl"
22
33import "pkl:json"
4import "../../config/OpenID.pkl" as sso
45
56local bundle = (new json.Parser {}).parse(read("bundle.json"))
67
78meta { name = "The Knife"; access = "infra-admin" }
9requirements {
10 new sso.Client {
11 clientId = module.id
12 name = module.meta.name
13 redirectUris { "https://\(module.container.http.hostname)/api/auth/oidc/callback" }
14 }
15}
816stageIsolation = "fresh"
917prepare = "prepare.py"
1018setup = "setup.py"