MCPcopy Create free account
hub / github.com/PostHog/duckgres / SetUserSecretManager

Function SetUserSecretManager

server/exports.go:353–355  ·  view source on GitHub ↗

SetUserSecretManager installs the per-user persistent secret manager on a Server. Used by the multitenant control plane after the config store is up. Must be called before the server starts accepting connections.

(s *Server, mgr UserSecretManager)

Source from the content-addressed store, hash-verified

351 // Should be unreachable. Log the length, not the value — it is
352 // arbitrary client input.
353 cc.logger().Warn("Non-canonical duckgres.query_source at billing teardown; degrading to default.",
354 "value_len", len(qs))
355 qs = defaultQuerySource
356 }
357 return cc.orgID, cc.username, qs, cc.workerMillicores, cc.workerMiB, time.Since(cc.backendStart)
358}

Callers 1

SetupMultiTenantFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected