Skip to content

docs(transforms,virtual-services): add documentation for replay transforms and standalone virtual services - #1015

Draft
slayerjain wants to merge 1 commit into
mainfrom
feat/transforms-vs-docs-next
Draft

slayerjain wants to merge 1 commit into
mainfrom
feat/transforms-vs-docs-next

Conversation

@slayerjain

@slayerjain slayerjain commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Add v4.0.0 documentation for Replay Transforms and standalone Virtual Services in the Keploy Enterprise CLI, aligned strictly with the Phase 1 schemas, CLI commands, and CI-verified behaviors (merging after OSS #5434 and Enterprise #3575 ship):

  • Replay Transforms (versioned_docs/version-4.0.0/transforms/):
    • Understand replay transforms: Four-stage pipeline (match -> extract -> steps -> write back), Phase 1 keploy test-only scope vs Coming items (keyEncoding: base64|hex, ${env:}/${file:}, propagate.answer/ignore, non-header propagate.use, encrypted ENC: recordings, keploy cloud replay, keploy mock replay), safety guardrails (TEST_CASE_REFUSED, redacted reports and --debug logs), --freezeTime / KEPLOY_PROVEN=1 clock-freeze coordination, and self-hosted configuration.
    • Re-sign expired JWTs during replay: Walkthrough for symmetric HS256/HS384/HS512 jwt.resign on HTTP test.request headers (bearer codec, ${secret:NAME} with default raw key encoding, required propagate.targets for forwarded headers on plaintext HTTP mocks under KEPLOY_PROVEN=1), offline preview, and anti-loop/regression safety.
    • Preview and audit transforms: Offline keploy transforms list, keploy transforms test, and keploy transforms schema workflows, ENC: REFUSE_KMS_UNAVAILABLE handling, and keploy test report redaction (applied_transforms, clock_freeze, req.header.Authorization, TestResult.Variables).
    • Drive transforms and virtual services with coding agents: Deterministic === KEPLOY NEXT === and --json agent contract (zero LLM calls inside Keploy), verbatim agent session outputs, and drop-in AGENTS.md snippet.
    • Migrate from Speedscale to Keploy: Honest feature-by-feature mapping of what is available now vs coming next.
    • Transforms reference: Complete transforms: schema, place grammar (header.<Name>, bracket [0] array notation, decode pipes refused), jwt.resign options, CLI flags, REFUSE_* codes (including both REFUSE_PROPAGATE_REQUIRES_PROVEN triggers, REFUSE_INVALID_CONFIG, and REFUSE_ENCRYPTED_PROPAGATE_UNSUPPORTED), TEST_CASE_REFUSED, phases, and exit codes.
  • Virtual Services (versioned_docs/version-4.0.0/virtual-services/):
    • Understand virtual services: Zero-eBPF, zero-root plain-HTTP/1.1 sequence-mode Virtual Services (partitionBy: none), isolation defaults, and upcoming protocol roadmap.
    • Run a virtual service from recordings: Local serving, --detach CI flows with --on-miss 404 | fail and noise.headers (using X-Tenant-Id / X-Region and listing all 27 built-in default-ignored headers), and Docker packaging with an inline 4-line Dockerfile (tested with --build-arg BASE_IMAGE=debian:13-slim, noting glibc binary requirement), mounted spec/mocks, and mandatory >= 16-character KEPLOY_VS_ADMIN_TOKEN off loopback with 401/200 verification and authenticated keploy vs stop.
    • Operate and troubleshoot virtual services: :9901 Admin API (/healthz, /readyz, /state, /misses, /reset, /stop, /shutdown, /metrics), loopback cross-origin CSRF guard, keploy vs explain-miss (unrecorded_route and field_mismatch with header_mismatch), keploy vs reset, and keploy vs stop.
    • Virtual service specification reference: Full virtual-service.yaml schema, keploy mock serve and keploy vs CLI flags (including default --ready-file / --misses-file paths), resource limits (10 MiB body cap, 1000-miss cap), Prometheus metrics, refusal codes, phases, and exit codes.
  • Navigation & cross-links:
    • Wire Replay Transforms and Virtual Services into versioned_sidebars/version-4.0.0-sidebars.json under Universal Mocker.
    • Cross-link the coding-agents guide from universal-mocker/guides/coding-agents.md and ui-capture/agents.md.

Merge Order

Merge only after OSS keploy/keploy#5434 and Enterprise keploy/enterprise#3575 merge and ship in a Keploy Enterprise CLI release.

Validation

  • Verified every === KEPLOY NEXT === block is verbatim from live CLI runs.
  • Verified npx --yes prettier@2.8.8 --check exits 0 across all modified files.
  • Verified commit message complies with commitlint line-length rules.
  • Verified yarn build succeeds with zero broken links or anchors.

@slayerjain
slayerjain marked this pull request as draft November 26, 2026 20:32
@slayerjain
slayerjain force-pushed the feat/transforms-vs-docs-next branch 7 times, most recently from e0fd8b5 to a977be6 Compare November 27, 2026 03:55
Add 10 v4.0.0 documentation pages under
versioned_docs/version-4.0.0/{transforms,virtual-services}/ covering
Replay Transforms (symmetric HS256/384/512 jwt.resign on HTTP
test.request headers, bearer codec, keyEncoding, propagate.targets
under KEPLOY_PROVEN=1, offline preview and schema, report redaction,
TEST_CASE_REFUSED, coding agents, Speedscale migration, and reference)
and standalone plain-HTTP sequence-mode Virtual Services (overview,
local/detached/Docker serving with inline Dockerfile and noise.headers,
Admin API and miss troubleshooting, and specification reference).

Wire both categories into versioned_sidebars/version-4.0.0-sidebars.json
under Universal Mocker, cross-link the coding-agents guides, format all
changed files with prettier@2.8.8, and validate all YAML examples
against the embedded JSON Schemas.

Signed-off-by: slayerjain <shubhamkjain@outlook.com>
@slayerjain
slayerjain force-pushed the feat/transforms-vs-docs-next branch from a977be6 to b589ee6 Compare November 27, 2026 04:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant