Upgrade and migration

Smithproxy configuration is migrated across releases, but upgrades can change schema, packaging, submodules and runtime behavior. Treat upgrades like a network-policy change.

Before upgrading

Back up:

  • /etc/smithproxy/, especially CA and custom-certificate private keys;
  • service and startup overrides;
  • capture/retention configuration;
  • the exact running binary version or container digest.

Export a sanitized configuration and record:

show status
show config full
diag proxy policy list
diag api info

Source upgrade

git fetch --tags origin
git checkout <tested-tag-or-commit>
git submodule update --init --recursive
sudo tools/linux-deps.sh
tools/linux-build.sh

Build and test before replacing the running installation. Do not update only the main repository while leaving socle at an unrelated revision.

Validate and deploy

  1. Run smithproxy --config-check-only with a copy of the production configuration.
  2. Review migration output and the resulting schema.
  3. Test DNS, TCP, TLS, IPv4/IPv6 and every enabled explicit listener.
  4. Verify policy indices, capture output, API authentication and webhook behavior.
  5. Keep a rollback binary/image and matching configuration backup.

Removed legacy components

Current master removed dormant or obsolete components including:

  • smithdog supervisor;
  • smithd query backend;
  • dormant Redis integration;
  • the legacy captive-portal identity backend;
  • unsupported legacy packaging targets;
  • old runtime identity/sobject diagnostics;
  • legacy libcli in favor of libcli2.

Remove service units and monitoring checks that still expect these processes. Do not restore them from old documentation unless deliberately maintaining a historical release.

Behavior requiring retest

  • HTTP CONNECT listener and its policy/DNS path;
  • deny/reject verdict enforcement;
  • IPv6 SOCKS5 and routing targets;
  • outbound TLS SNI rewrite;
  • PCAPNG option and GRE/SPQ1 capture selection;
  • CLI automation affected by libcli2 output and completion;
  • experimental QUIC/HTTP/3 handling.

Rollback

Rollback must restore the binary, dependent submodule/library versions and a compatible configuration together. Revalidate CA paths and service ownership after reverting packages or container volumes.