Skip to content

Add EdgeZero-backed Trusted Server CLI and audit bootstrap - #774

Closed
ChristianPavilonis wants to merge 2 commits into
mainfrom
feature/ts-cli-next
Closed

Add EdgeZero-backed Trusted Server CLI and audit bootstrap#774
ChristianPavilonis wants to merge 2 commits into
mainfrom
feature/ts-cli-next

Conversation

@ChristianPavilonis

@ChristianPavilonisChristianPavilonis commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a host-target ts product CLI backed by EdgeZero for auth/provision/serve/build/deploy and config push workflows.
  • Adds deterministic Trusted Server config init/validate/push support with flattened config payloads and runtime reconstruction helpers.
  • Adds ts audit to inspect public pages with headless Chrome/Chromium, write js-assets.toml, and bootstrap a draft trusted-server.toml.

Changes

FileChange
crates/trusted-server-cli/New ts CLI crate with clap args, config commands, EdgeZero delegation, and audit command.
crates/trusted-server-core/src/config_payload.rsAdds deterministic flatten/hash payload helpers for config-store entries.
crates/trusted-server-core/src/settings*.rsAligns runtime config loading with flattened config-store entries and stricter validation.
crates/trusted-server-adapter-fastly/src/main.rsLoads runtime settings from platform config-store path.
edgezero.tomlAdds Trusted Server EdgeZero manifest.
trusted-server.example.toml / .gitignoreMoves source-controlled config to an example template and ignores operator-owned outputs.
docs/superpowers/specs/ and docs/superpowers/plans/Adds design specs and implementation plans for the EdgeZero CLI and audit command.
docs/guide/cli.md, docs/guide/getting-started.md, README.mdDocuments the new CLI and audit workflow.
.cargo/config.toml, CI workflowsAdds host-target CLI aliases/checks.

Closes

Test plan

  • cargo test --workspace
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • JS tests: cd crates/js/lib && npx vitest run
  • JS format: cd crates/js/lib && npm run format
  • Docs format: cd docs && npx prettier --check .
  • WASM build: cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
  • Manual testing via fastly compute serve
  • Other: cargo test --package trusted-server-cli --target "$(rustc -vV | sed -n 's/^host: //p')"
  • Other: cargo clippy --package trusted-server-cli --target "$(rustc -vV | sed -n 's/^host: //p')" --all-targets -- -D warnings
  • Other: cargo build --package trusted-server-cli --target "$(rustc -vV | sed -n 's/^host: //p')"
  • Other: cargo run --package trusted-server-cli --target "$(rustc -vV | sed -n 's/^host: //p')" -- audit --help

Checklist

  • Changes follow CLAUDE.md conventions
  • No unwrap() in production code — use expect("should ...")
  • Uses project logging/output conventions (no println!/eprintln! in production CLI code)
  • New code has tests
  • No secrets or credentials committed

@ChristianPavilonisChristianPavilonis linked an issue Jun 19, 2026 that may be closed by this pull request
@ChristianPavilonis
ChristianPavilonis marked this pull request as ready for review June 22, 2026 15:20
Comment threadcrates/trusted-server-core/src/settings.rs Dismissed
@ChristianPavilonis

Copy link
Copy Markdown
CollaboratorAuthor

Split pr into #799 and #800. Closing

@aram356
aram356 deleted the feature/ts-cli-next branch July 7, 2026 21:43
Sign up for freeto 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.

2 participants

@ChristianPavilonis@github-advanced-security