User and operator guide · Deployment

Local-Live Deployment

Status: currentReviewed: 2026-06-18Audience: deployment engineers, developers
On this pagePurposeOperator PrerequisitesLocal-Live TopologyComponentsStart The Validated StackLogin And Admin AccountBrowser CAC MaterialDeployment Claim BoundaryEvidence OutputsStop Or Roll Back A Local-Live RunTroubleshooting

Purpose

The local-live path is the supported reproducible lab environment for exercising the HTTPS gateway, LDAP, Atlas Cache, Vault, federation providers, firewall simulation, UI, and TrustAI edge validation.

For a complete first-run sequence from an empty workstation, start with deployment:quickstart-from-scratch.html.

Operator Prerequisites

Run local-live from the repository root on a workstation that can build the Go services and frontend and can start Docker containers. The validation script allocates loopback ports dynamically, starting from the documented defaults, so existing local services do not need to be stopped unless every candidate port is already in use.

Required local tools:

  • Docker Engine with Compose v2

  • Go toolchain

  • Node.js and frontend dependencies

  • OpenSSL

  • curl for manual health checks

Primary inputs:

Input File or variable Operator note

Validation script

scripts/run-local-live-validation.sh

Use this script instead of manually editing generated files.

Gateway template

config/live-validation/api-gateway.yaml

The script copies and rewrites this into the run artifact directory.

Support stack

docker/local-live-validation-infra.yml

Containers are bound to loopback for local validation.

TrustAI edge bundle

TRUSTAI_EDGE_BUNDLE_PATH or models/trustai/edge-default

Override only when validating a specific model bundle.

Evidence root

REPORT_ROOT

Set when the operator needs a stable artifact path.

Local-Live Topology

Local Live Deployment
Local Live DeploymentArchitecture diagramOpen full size ↗

Components

Component Source Purpose Boundary

Validation script

scripts/run-local-live-validation.sh

Generates TLS material, starts local dependencies, launches the API gateway, runs the live validation suite, and sanitizes artifacts.

Local evidence only.

Docker infrastructure

docker/local-live-validation-infra.yml

Runs loopback-bound Keycloak, SimpleSAMLphp, Atlas Cache, LDAP, Vault, and firewall simulator containers.

Not a production Compose file.

Gateway config

config/live-validation/api-gateway.yaml

Feeds the local API gateway runtime used by the validation script.

Must not be promoted without environment review.

Live tests

tests/livevalidation/**

Exercises browser CAC, federation, DDIL, protected APIs, WebSocket auth, and operator surfaces.

Skipped live checks are not passed evidence.

Start The Validated Stack

For a normal automated run:

RUN_ID="$(date -u +%Y%m%d-%H%M%S)-local-live"
REPORT_ROOT="artifacts/local-live-validation/$RUN_ID"
mkdir -p "$REPORT_ROOT"

REPORT_ROOT="$REPORT_ROOT" ./scripts/run-local-live-validation.sh 2>&1 | tee "$REPORT_ROOT/operator-console.log"

Expected result: the console log ends with Validation completed successfully. and the evidence directory contains generated gateway config, support-service logs, live security-validation output, local-live capability artifacts, and sanitized summaries.

For a run that remains available for manual inspection:

RUN_ID="$(date -u +%Y%m%d-%H%M%S)-local-live"
REPORT_ROOT="artifacts/local-live-validation/$RUN_ID"
mkdir -p "$REPORT_ROOT"

REPORT_ROOT="$REPORT_ROOT" ./scripts/run-local-live-validation.sh --keep-running 2>&1 | tee "$REPORT_ROOT/operator-console.log"
GATEWAY_BASE_URL="$(rg -o 'https://localhost:[0-9]+' "$REPORT_ROOT/operator-console.log" | head -n 1)"
curl -kfsS "$GATEWAY_BASE_URL/health" | tee "$REPORT_ROOT/manual-health.json"

Open the gateway URL printed in operator-console.log. The default path is usually https://localhost:8443/, but the script may choose a different port when 8443 is busy.

If the script selected a different port, replace 8443 with the printed gateway port.

Login And Admin Account

Use live.validator or live.validator@atlas.mil with ValidationPassword123! only in the local-live validation environment.

Item Value

Username

live.validator

Email

live.validator@atlas.mil

Password

ValidationPassword123!

Account boundary

local-live-only seeded operator

Admin details

security:admin-bootstrap.html

Expected result: the operator can open /icam, /identity, /sessions, and /audit. If a mutation is denied, check operator role and fresh AAL2-or-better assurance.

Browser CAC Material

When local-live starts, it generates local browser CAC/PIV material under:

artifacts/local-live-validation/<timestamp>/browser-cac/

The kept-running console also prints:

  • Browser CAC URL

  • Browser CAC import bundle

  • the generated gateway base URL

Use that material only for local validation. It is not a production CAC/PIV credential, a YubiKey issuance record, or DoD PKI evidence. See security:cac-piv-yubikey.html.

Deployment Claim Boundary

Local-live evidence proves the repository-supported integrated path. It does not prove production deployment approval, production DoD PKI operation, or external authorization.

Evidence Outputs

Artifact Meaning Handling

artifacts/local-live-validation/<timestamp>/api-gateway.generated.yaml

Generated local gateway runtime config.

Sensitive values are sanitized by the script before final artifact use.

artifacts/local-live-validation/<timestamp>/browser-cac/

Generated browser CAC material for local validation.

Local-only certificate material. Do not reuse in deployed environments.

artifacts/local-live-validation/<timestamp>/authoritative-audit/

Local authoritative audit material used by validation.

Treat as evidence, not as a deployed signing authority.

artifacts/security-validation/<timestamp>/

Security validation output when the script invokes the live security gate.

Review skipped checks before citing the run.

Stop Or Roll Back A Local-Live Run

Runs without --keep-running clean themselves up. For a kept-running lab, stop the gateway processes for that run and remove the validation containers and volumes:

pkill -f "$REPORT_ROOT/api-gateway-live" || true
docker compose -f docker/local-live-validation-infra.yml down -v --remove-orphans

This rollback removes local-live container state and generated container volumes. It does not remove the evidence already written under REPORT_ROOT.

Troubleshooting

Symptom Check Expected operator action

Script exits before gateway health is ready

rg -n "ERROR{vbar}failed{vbar}exited" "$REPORT_ROOT/api-gateway.log" "$REPORT_ROOT/operator-console.log"

Keep the failed artifact directory, fix the reported dependency or port issue, and rerun with a new RUN_ID.

Docker support services are not healthy

docker compose -f docker/local-live-validation-infra.yml ps

Capture docker-compose.log, stop the stack with down -v --remove-orphans, and rerun.

Manual browser test cannot connect

rg "Using gateway base URL" "$REPORT_ROOT/operator-console.log"

Use the printed port instead of assuming 8443.

A live sub-check is skipped

rg -n "Skipping{vbar}may skip" "$REPORT_ROOT/security-validation"

Do not claim the skipped behavior. Set the missing variable or collect the missing artifact and rerun.