A minimal Go service that validates the ZTSRCP platform's application-provisioning chain — not a generic health check, and not a real tenant application. It exists specifically to answer a question infrastructure monitoring can't: when a new app gets provisioned onto this platform, does the whole chain actually work end to end?
Platform services being up and reachable proves nothing about whether provisionApp — the Jenkins shared library step that onboards an application onto the platform — can correctly wire a new tenant into them. JIT credential generation, per-service database and user creation, least-privilege scoping (Redis ACL key namespace restrictions, OpenSearch index pattern roles), environment variable mapping, and Kubernetes secret injection are all steps between "the database is running" and "an application can actually use it" — and every one of them can break in ways that only surface when something real goes through the full chain.
ztsrcp-app is that something real. It's deployed through the exact same provisionApp path a genuine tenant application would use, exposes a /healthz endpoint, and makes live authenticated connections to four platform database services:
{
"postgresql": {"status": "ok", "latency": "4.2ms"},
"mariadb": {"status": "ok", "latency": "3.8ms"},
"redis": {"status": "ok", "latency": "1.1ms"},
"opensearch": {"status": "ok", "latency": "12.4ms"},
"mongodb": {"status": "skipped", "reason": "not deployed"}
}If any layer of the provisioning chain is broken — a scoping bug, a missing secret, a NetworkPolicy blocking reachability — this fails here, not in a real tenant's onboarding.
The Jenkinsfile passes platformStaging: true to provisionApp. This is a restricted flag not exposed to ordinary application developers — it deliberately routes deployment to the ephemeral Platform Staging cluster instead of the isolated namespace on the persistent production cluster that a normal tenant app's staging branch would land on (see Decoupled Staging Environments).
Both branches target that same ephemeral cluster, with the namespace suffix still derived from branch name:
stagingbranch → staging-suffixed namespace, ephemeral clustermainbranch → production-suffixed namespace, ephemeral cluster
Exercising both namespace-provisioning paths against disposable infrastructure means both paths are already proven working before either one ever runs against the real production cluster for an actual tenant.
Go (net/http, database/sql, go-redis), Docker (multi-stage build), Helm (separate values-staging.yaml / values-production.yaml), deployed via the platform's shared Jenkins library.
Architecture, design decisions, and engineering judgment are mine. AI was used to accelerate implementation — generating code I directed, reviewed, tested, and corrected.