Source code and setup instructions: darkedges/udap-agent-trust-poc.
The first four parts established the trust boundaries, enrollment process, signed client authentication and live authorisation model. This final installment covers the operational proof: running the stack, demonstrating a denial and testing the boundaries that a green token response cannot prove.
The implementation uses React, FastAPI, PostgreSQL and Docker Compose. The examples in this series describe the local provider. A separate optional PingFederate adapter supports the registered-client integration path, with licensed-runtime acceptance still outstanding.
Making the demonstration operationally credible
The most useful demonstration has a failure path that an audience can inspect.
I use separate browser profiles for operator and administrator sessions. The operator submits enrollment; the administrator approves it; the operator performs a protected action. Then the administrator changes policy, suspends the agent or revokes its certificate, and the operator retries the same resource action.
The audit trail provides a second view of those decisions. It records actions, outcomes, organisation context where available, correlation identifiers and scope information. The operator-facing views are organisation-scoped. Raw signing assertions and bearer tokens are excluded from ordinary audit entries, while token reveal is an explicit owning-operator action.
The automated scenario runner creates labelled test agents and exercises enrollment, tenant isolation, both authentication paths, permission withdrawal, suspension, rotation and revocation. These agents are separate from manually created demonstration agents, making repeat runs easier to understand.
For local startup, the basic commands are:
docker compose up --build -d
docker compose cp authority:/trust/ca.pem ./poc-transport-ca.crt
Import-Certificate -FilePath ./poc-transport-ca.crt -CertStoreLocation Cert:\CurrentUser\Root
The gateway is available at https://localhost:8443. Trusting the generated transport CA is an explicit local setup step. The agent-issuing CA is separate, so repairing browser or service TLS does not require replacing agent identities.
That distinction became useful during development. The authority started successfully, but its readiness check failed with Missing Authority Key Identifier. The HTTPS server was listening; the client correctly rejected the certificate profile.
The original generated transport certificates omitted extensions required by the strict verifier. Python's SSL documentation describes the stricter verification flags enabled by default since Python 3.13. The correction added the CA key usage and identifiers, plus server certificate key usage, authority identifiers and server-auth extended key usage.
The regression test now performs real TLS handshakes against every service certificate, checking both the service hostname and localhost. It also verifies that legacy transport certificates are replaced and compliant certificates survive subsequent bootstrap runs unchanged. A mocked HTTP test alone would not have found that defect.
The local suite includes authority HTTP checks, a cross-service lifecycle test with isolated in-memory storage, strict TLS regression tests and PingFederate adapter contract tests. That is distinct from verifying the deployed Compose stack: PostgreSQL persistence, container networking and browser acceptance still require their runtime checks. The repository includes an HTTPS smoke runner and a browser acceptance test for that next layer.
There are deliberate limits. This POC uses a fixed issuer and direct certificate trust. It does not implement arbitrary chain building, CRL or OCSP integration, external SSO, user delegation or discovery metadata. An optional PingFederate adapter has since been added for registered-client provisioning and PF-issued tokens; its licensed-runtime acceptance remains to be completed. The lifecycle described here uses the local provider. Local demo accounts and secrets need a different deployment design before public exposure. The row-locked JSON persistence model also needs replacement before concurrent production use.
The complete identity contract
The useful result is a repeatable explanation of access: who approved an agent, what its key proves, which operations are allowed and how withdrawal reaches the protected resource. That is the contract the POC makes visible across the full series.
Top comments (0)