Skip to content

About

SWT Conformance Test Suite - Language-independent, versioned conformance test suite for Secure Webhook Token (SWT)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SWT Conformance Test Suite

Language-independent, versioned conformance test suite for Secure Webhook Token (SWT) (draft-knauer-secure-webhook-token-03).

Purpose

This repository provides:

  • Versioned, language-independent JSON test vectors (vectors/draft-03/)
  • JSON Schemas for test vectors and adapter IPC (schemas/)
  • Deterministic, test-only cryptographic fixtures (fixtures/)
  • An independent Go CLI test runner (cmd/swt-conformance) with zero dependency on any SWT implementation
  • An official Go reference library adapter (runners/go/)

Architecture

flowchart LR
    V["Test Vectors (vectors/draft-03)"] --> R["Independent Runner (swt-conformance)"]
    K["Test-Only Keys (fixtures/keys)"] --> R
    S["JSON Schema (schemas/)"] --> R
    R -- "JSON via stdin" --> A["Language Adapter (Go / Python / Rust / TS)"]
    A -- "JSON via stdout" --> R
    R --> Rep["Conformance Report (JSON / Markdown / Text)"]
Loading

Quickstart

1. Validate Test Vectors and Deterministic Fixtures

go run ./cmd/swt-conformance validate --vectors ./vectors/draft-03
go run ./tools/generate-vectors --check

2. Build the Runner and Go Adapter

go build -o ./swt-conformance ./cmd/swt-conformance
(cd runners/go && go build -o ./swt-go-adapter .)

3. Run the Suite

./swt-conformance run \
  --vectors ./vectors/draft-03 \
  --adapter ./runners/go/swt-go-adapter \
  --format json \
  --out report.json

See runners/README.md to integrate your own SWT implementation in any language.

Disclaimer

Passing this test suite is evidence of conformance to the tested requirements, not formal certification or proof of security.

About

SWT Conformance Test Suite - Language-independent, versioned conformance test suite for Secure Webhook Token (SWT)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages