aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add missing pledge promises (drm, prot_exec) and source referencemurilo ijanc2026-03-251-10/+46
| | | | | Add reference to pledgereq[] in /usr/src/sys/kern/kern_pledge.c and include drm and prot_exec that were missing from the list.
* Fix clippy warnings: needless borrow and collapsible ifmurilo ijanc2026-03-252-10/+10
|
* Log socket setup errors in Unix client handlermurilo ijanc2026-03-251-2/+8
| | | | | Warn when set_nonblocking or set_read_timeout fails instead of silently disconnecting the client.
* Handle HTTP connections in separate threads with cap of 8murilo ijanc2026-03-251-2/+26
| | | | | | A slow connection or DHT lookup (up to 30s) no longer blocks the entire HTTP accept loop. Connections beyond the limit get a 503 response.
* Exit early if data directory cannot be createdmurilo ijanc2026-03-251-2/+8
| | | | | Report the actual error instead of silently ignoring it and failing later with a confusing message in PasteStore::open.
* Fix critical data integrity and security issuesmurilo ijanc2026-03-254-15/+59
| | | | | | | | | | - Atomic writes in store (write-to-temp + rename) to prevent corruption on crash - Validate DHT results against requested content hash to reject forged data from malicious nodes - Limit protocol line size to 128 KiB on Unix socket to prevent memory exhaustion - Use saturating_add for TTL expiry to prevent u64 overflow
* Add pledge(2) and unveil(2) sandboxing for tp and tpdmurilo ijanc2026-03-253-0/+102
| | | | | | | tpd: unveil data dir (rwc), resolv.conf (r) when DNS needed, then pledge stdio rpath wpath cpath fattr inet unix dns. tp: unveil socket path (rw), then pledge stdio unix rpath.
* Add DNS SRV bootstrap discovery for automatic peer findingmurilo ijanc2026-03-253-4/+387
| | | | | | tpd now queries _tesseras._udp.tesseras.net SRV records to discover bootstrap peers when no -b flag is given. Add -n flag to disable this automatic discovery for seed/isolated nodes.
* Initial commit: tesseras-paste decentralized pastebinmurilo ijanc2026-03-2519-0/+3105
DHT-backed encrypted pastebin with two binaries (tp/tpd), XChaCha20-Poly1305 encryption, content-addressed storage, and Unix socket + HTTP interfaces.