Shomei
Rust authentication proxy for HTTP, TCP and SSH that requires hardware-attested YubiKey approval.
At a Glance
Self-hosted Shomei auth proxy released under the MIT License, free to use, modify and distribute.
Engagement
Available On
Listed Dec 2026
About Shomei
Shomei (署名, Japanese for "signature") is an open-source Rust authentication proxy for HTTP and TCP, backed by hardware-attested YubiKeys. It is published by adrianchifor under the MIT license and places YubiKey approval in front of web APIs, SSH and Tailscale SSH. The latest listed release is 0.5.0.
What It Is
Shomei is a gateway that sits in front of upstream services and requires a supported YubiKey to approve access. In reverse proxy mode it supports browser WebAuthn, one-use CLI assertions and encrypted session cookies for HTTP, while configured TCP targets use short-lived mTLS certificates. In forward proxy mode it accepts YubiKey assertions or sessions for HTTP and HTTPS, and short-lived mTLS certificates for TCP and SSH.
All enrolled keys authenticate as shomei. The default policy requires a YubiKey 5 Series key with firmware 5.7.4 or later, PIN and touch. YubiKey 4 can be accepted only on a localhost origin when explicitly enabled.
How the Approval Workflow Works
Keys are enrolled by running shomei get-id and adding each token to an identities allowlist. The gateway verifies each key's hardware attestation and reloads the file when it changes. Removing a key revokes its existing HTTP sessions and TCP relay access.
For APIs, shomei sign produces an assertion sent in an Authorization: Shomei header. It can be bound to a specific method, path and query. Selected endpoints can be protected with protected_paths while the rest of a site stays public. A browser overlay, approvedFetch, lets an app prompt for a key touch on actions such as Deploy.
SSH, TCP and Fleet Access
shomei ssh and shomei connect use mTLS certificates, which last 300 seconds by default, to reach named TCP routes such as SSH or databases. With forwarding enabled, scopes define permitted CIDRs, ports and DNS suffixes for a fleet. A single gateway can serve multiple hostnames and upstreams.
Tailscale SSH
Shomei can verify a YubiKey, set a temporary posture attribute on the calling device, and start OpenSSH to the requested host. Tailscale policy then controls which hosts the device can reach. This mode requires Tailscale Premium or Enterprise.
Setup Path
The README provides an install script and a Docker Compose deploy demo and SSH demo. A gateway is run from the ghcr.io/adrianchifor/shomei container image configured with a TOML file. The README links a security audit report and a pentest document.
Collections
Popular collections
- UI Design Skills for Coding Agents
Collection by @mayachen
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- Black Friday 2026: Learn with AI
Collection by @evtuff
Add Shomei to one of your collections.
Community Discussions
Be the first to start a conversation about Shomei
Share your experience with Shomei, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Self-hosted Shomei auth proxy released under the MIT License, free to use, modify and distribute.
- Reverse proxy with browser WebAuthn, one-use CLI assertions and encrypted session cookies
- Forward proxy for HTTP, HTTPS, TCP and SSH
- Short-lived mTLS certificates for TCP targets
- Tailscale SSH YubiKey approval
- Default policy requires YubiKey 5 Series (firmware 5.7.4+), PIN and touch
Capabilities
Key Features
- Reverse proxy with browser WebAuthn, one-use CLI assertions and encrypted session cookies
- Forward proxy for HTTP, HTTPS, TCP and SSH
- Short-lived mTLS certificates for TCP targets
- Hardware-attested YubiKey enrollment via identities allowlist
- Per-path protection with protected_paths
- Request-bound assertions for method, path and query
- Browser approval overlay (approvedFetch)
- Multi-host reverse gateway with named HTTP and TCP upstreams
- Fleet forwarding scopes with CIDR, port and DNS suffix rules
- Tailscale SSH approval via posture attribute
- Allowlist revocation of sessions and relays
