qa/

directory
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: Apache-2.0

README

hack/qa

Deterministic live-cluster checks for the Kind contributor context (a kind-* or test-mcp-runtime context with actual kind:// node provider IDs). Prefer these over replaying long skill playbooks.

Script Covers
security-regression.sh Suites A/E/F/G/I (auth, headers, login, proxy, log secret scan)
perf-regression.sh S1–S3 latency/throughput, S5 gateway/direct overhead, S6 bounded concurrency plateau and S7 trace-correlated audit lag; explicit matching baselines
validate-authz-matrix.sh Explicit per-service loopback URLs and a real non-admin credential; Kind only
multitenancy-test.sh CLI/API multi-team demo on loopback or disposable .e2e.mcpruntime.org targets
image-cache/ Content-hash image reuse consumed by QA E2E
k8s-hardening-check.sh Namespace inventory, NetworkPolicy presence, privileged/hostNetwork
approval-policy-rehearsal.sh Creates its own Kind cluster and proves the workload-issuer approval policies (session identity only for the runtime API, platform certificates still issue and renew). It retries the policy apply with approvalpolicy/retry.sh because a Helm release reports Ready before its admission webhook serves; approval-policy-rehearsal_test.sh covers the retry offline

Related:

  • hack/qa/validate-authz-matrix.sh — JSON authz matrix probe
  • Staging E2E — strict-prod ship gate (docs/contributor/staging-e2e.md)
  • Skill routing — .codex/skills/cluster-ops/SKILL.md

Example:

export KUBECONFIG="$HOME/.kube/test-mcp-runtime-config"
# Performance requires actual measurements and a baseline; to record deliberately:
# PERF_RECORD_BASELINE=1 SCENARIOS=S3 bash hack/qa/perf-regression.sh
kubectl -n traefik port-forward svc/traefik 18080:8000 >/tmp/pf-traefik.log 2>&1 &
bash hack/qa/security-regression.sh
PERF_API_KEY="$KIND_ADMIN_API_KEY" SCENARIOS=S3 bash hack/qa/perf-regression.sh
bash hack/qa/k8s-hardening-check.sh

Posture inventory is read-only and may target an explicitly chosen kubeconfig. It checks Deployments, StatefulSets and DaemonSets, including init containers. It does not prove NetworkPolicy enforcement; use E2E traffic tests.

The old S4 annotation timer was removed: waiting on an already-Ready server did not measure reconciliation. Use the operator integration and deployment E2E for reconciliation coverage.

Performance inputs, fixed request/session bounds, microbenchmark/benchstat commands, and remaining live acceptance are documented in the performance reference. perf_suite.py is the script's shared implementation; its live commands also verify the explicit Kind context and actual nodes. S3/S7 require the existing admin analytics key in PERF_API_KEY; credentials and tool arguments are excluded from recorded environment files. No live measurements run as part of offline tests.

Demo passwords are random and stored with mode 0600 in the private profile directory as demo-credentials-<run-id>.json. Reusing the run/profile retains them. Exclude this directory from shared artifacts. Demo accounts/teams remain on disposable infrastructure for inspection; cleanup selects only its own servers and sessions. See the demo runbook for configuration.

Directories

Path Synopsis
csrgen command
csrgen prints a base64-encoded PEM CSR shaped like the ones the MCP Runtime runtime API submits: ECDSA P-256, no subject, optional URI and DNS SANs.
csrgen prints a base64-encoded PEM CSR shaped like the ones the MCP Runtime runtime API submits: ECDSA P-256, no subject, optional URI and DNS SANs.
Command e2e-image-cache ensures a local Docker image via content-hash GHCR reuse (pull on hit, build+optional push on miss).
Command e2e-image-cache ensures a local Docker image via content-hash GHCR reuse (pull on hit, build+optional push on miss).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL