19 Commits
Author SHA1 Message Date
barrypandClaude Fable 5.1 2919037d3b Update argon2 to 0.6
The only API change affecting us is that PasswordHash moved to
password_hash::phc; use the argon2 crate's top-level re-export instead.
Existing argon2id hashes in password files still verify.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kmrgkpp9YBJ6AMaWYPPZuD
2026-09-12 13:22:39 -07:00
barrypandClaude Fable 5.1 44c8e6b6f8 Updated rust libraries
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kmrgkpp9YBJ6AMaWYPPZuD
2026-09-12 13:21:53 -07:00
barrypandClaude Fable 5.1 08aace5428 Bump version to 0.4.0 and add --version to both binaries
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kmrgkpp9YBJ6AMaWYPPZuD
2026-09-12 13:13:12 -07:00
barrypandClaude Fable 5.1 6385be0890 Handle SIGTERM/SIGINT for a graceful shutdown
Running as PID 1 in a container, the daemon silently dropped SIGTERM,
so `docker stop` always hit the 10s timeout and SIGKILL, and host
reboots waited on it.

The accept loop now polls a non-blocking listener and a shutdown flag
registered via signal-hook. On SIGTERM or SIGINT it stops accepting,
gives in-flight requests up to 3s to finish, removes the socket file,
and exits with status 0. Log lines mark signal receipt and completion.

Adds integration tests that spawn the binary, perform an auth
round-trip, signal it, and assert a clean exit and socket removal.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kmrgkpp9YBJ6AMaWYPPZuD
2026-09-12 13:05:20 -07:00
Barry Pederson 1de0fa16db Add some logging so that with the env variable RUST_LOG=debug or similar, there is timestamped output to stderr 2026-02-03 15:57:11 -08:00
Barry Pederson 8e2f622811 Updated rust libraries 2026-02-03 12:59:43 -08:00
Barry Pederson a03b738c7a Add argon2 password hashing 2026-02-03 12:59:01 -08:00
Barry Pederson 120db0bd90 Updated rust libraries 2026-01-02 12:07:01 -08:00
Barry Pederson 3fac9def78 I think I've got the workspace thing figured out..how the Cargo.toml files should reference each other 2025-02-21 15:11:31 -08:00
Barry Pederson e5f2bbf64e clap and common need to be dependencies under the server directory, despite what rustrover says 2025-02-21 14:32:35 -08:00
Barry Pederson 93ad2cc8a7 Updated to Rust 2024 edition 2025-02-21 14:24:57 -08:00
Barry Pederson 9228a861af Ran 'cargo update' 2025-02-21 14:20:21 -08:00
Barry Pederson da84d2d6b9 rename 'handler' to 'repository' for clarity 2024-11-30 12:44:34 -08:00
Barry Pederson 076e48f457 Add a separate client binary, with some common code to the server.
The cargo workspace thing was a PITA to figure out, but it seems to be working.  Could maybe be simplified?
2024-11-02 15:58:35 -07:00
Barry Pederson 46ad77f19e Restructure and add unit tests...maybe it works now? 2024-11-02 13:49:07 -07:00
Barry Pederson ac9743dc8a WIP: trying to refactor to separate password-checking from network-communication 2024-11-02 11:05:16 -07:00
Barry Pederson b9c091f71f Use once_cell to allow for global static immutable options
So they don't have to be passed around all over the place
2022-03-01 10:03:38 -08:00
Barry Pederson bb65edd766 Add structopt option parsing, use a plain textfile for each user rather than YAML 2022-02-28 19:14:54 -08:00
Barry Pederson 36f26d4a85 First pass, creates socket, should listen and respond 2022-02-28 11:58:57 -08:00