Validation playbook

Summary

Validate one capability at a time and retain the exact commit, configuration and commands used. A single successful HTTPS request covers only a small part of Smithproxy behavior.

Preflight

smithproxy --config-check-only
openssl version
show status
show event list
diag workers proxy list
diag api info

Record the Smithproxy commit/tag, socle submodule revision, OpenSSL version and enabled build options.

Minimal protocol matrix

Area Tests
Address family IPv4, IPv6
Entry mode TPROXY, REDIRECT, SOCKS5, HTTP CONNECT
Transport TCP, UDP
TLS TLS 1.2, TLS 1.3, valid and invalid origin certificate
Application DNS, HTTP/1.1, HTTP/2, supported STARTTLS
Policy accept, deny, no-match/fallback
Capture per-session PCAPNG, aggregate rollover, GRE if enabled
Management CLI auth, API authorization, token expiry

Run only rows enabled in the deployment, but document omissions.

Session verification

For each test, compare the client result with:

diag proxy session list 7 tls io ips
show event list

Verify:

  • source and original destination;
  • matched policy index/name;
  • selected TLS/content/DNS/routing profiles;
  • upstream destination after DNAT;
  • SNI and ALPN where applicable;
  • byte counters in both directions.

Policy tests

Create explicit positive and negative cases around each boundary:

  • source just inside/outside a CIDR;
  • first and last port of a range;
  • IPv4 versus IPv6 object membership;
  • exact FQDN and subdomain behavior;
  • policy ordering when two rules could match;
  • deny behavior before and after reload.

Do not validate only the intended match. The adjacent non-match is what proves the boundary.

Capture validation

  1. Generate a uniquely identifiable request body.
  2. Roll the aggregate capture if used.
  3. Open the resulting file with tshark or Wireshark.
  4. Confirm both directions, timestamps and expected plaintext visibility.
  5. Confirm excluded policies produce no payload capture.
  6. Check diag writer stats and disk usage.

For SSL key logs, decrypt a separate wire capture and confirm the keys correspond to the tested session.

Routing validation

Test every candidate and method separately:

  • round-robin distribution over more requests than candidates;
  • repeated L3 keys for sticky-l3;
  • same addresses with different destination ports for sticky-l4;
  • IPv4 and IPv6 candidate separation;
  • SNI rewrite with an origin that reports the received SNI;
  • unavailable backend behavior, noting that Smithproxy does not health-check or retry candidates as a load balancer.

API and webhook validation

  • reject invalid API keys and expired tokens;
  • verify release-build protection of status endpoints;
  • validate webhook common fields and optional-field absence;
  • test receiver timeout, non-2xx and malformed JSON;
  • explicitly verify fail-open behavior for access-request;
  • test content discard and base64 replacement with fragmented payloads;
  • verify secrets and content are absent from routine receiver logs.

Regression record

Store for each run:

build identity
config checksum
test command
expected result
actual result
relevant event/session excerpt
capture filename/checksum, if applicable

This is more useful than a screenshot because it can be compared after an upgrade.