Skip to main content

3 posts tagged with "Security"

Security features and best practices

View All Tags

Why Thresh Hub Uses Opaque Tokens Instead of JWT

· 5 min read
thresh Team
thresh Development Team

When we designed Thresh Hub's authentication, we made a deliberate choice: opaque tokens with server-side validation instead of JWTs. The three key families (thresh_live_*, thresh_mid_*, thresh_cli_*) are random hex/base64 strings with no embedded claims. Every request validates against a SHA-256 hash stored in the database.

Here's why — and how the whole system fits together.

Why We Chose SignalR as the Primary Transport for Thresh

· 10 min read
thresh Team
thresh Development Team

When you're managing a fleet of development environments across a network, the transport layer isn't just plumbing — it's the nervous system. Every heartbeat, every command dispatch, every metrics payload depends on it. We needed something that was real-time, resilient, and could degrade gracefully when the network couldn't cooperate.

We chose ASP.NET SignalR as the primary transport, with REST polling as automatic failover. Here's why, and exactly how it works under the hood.