summaryrefslogtreecommitdiffstats
path: root/internal/handler/grpc/server_test.go
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-14 14:54:30 -0800
committerbndw <ben@bdw.to>2026-02-14 14:54:30 -0800
commit4dbd96ec697196d43ad41eca4fd43d53da46a081 (patch)
treefe3cf316855c4760d48a1a2f3cb4500aa9d3a681 /internal/handler/grpc/server_test.go
parent9ee32a917b13ffb3f52ddbc3a0c72dd8ec71953c (diff)
refactor: use AuthStore interface and remove type assertions
Replace runtime type assertions with compile-time safe AuthStore interface. Add connState struct for cleaner per-connection state management instead of mutable pointer parameters. Reduce auth challenge TTL from 10min to 2min. - Add AuthStore interface with CreateAuthChallenge and ValidateAndConsumeChallenge - Add connState struct for authenticatedPubkey and authChallenge - Remove fragile type assertion pattern in requireAuth and handleAuth - Add nil checks for auth store with clear error messages - Update Handler to have separate auth field - Wire auth store in main.go when auth is enabled
Diffstat (limited to 'internal/handler/grpc/server_test.go')
0 files changed, 0 insertions, 0 deletions