e78dffc4bd
wip: random half done-junk
2026-03-23 11:31:03 -06:00
a854fef67e
test(auth/csvauth): regression test for Authenticate token deadlock
...
Guards against the v1.2.4 bug (fixed in c32acd5) where Authenticate
held a.mux via defer for its full duration, then called
loadAndVerifyToken which also tries to acquire a.mux — deadlock on
every token auth request.
TestAuthenticateTokenNoDeadlock exercises both the bare-token
("", token) and named-username ("api", token) forms with a 1s
timeout, so a regression fails fast rather than hanging the suite.
2026-03-23 00:26:16 -06:00
c32acd5a74
ref(auth/csvauth): don't hold mutex longer than necessary
2026-03-03 03:05:05 -07:00
66dde73bd4
chore(auth/csvauth): add .goreleaser.yaml
2026-03-03 02:31:36 -07:00
249385c775
fix(auth/csvauth): load tokens into hashmap so that they can be retrieved by CredentialKeys
2026-03-03 02:26:34 -07:00
d415a8c743
fix(auth/csvauth): turn the old CLI-only warnings and errors into returned errors
2026-03-03 01:21:36 -07:00
8ef2f73cb0
fix(auth/csvauth): oops, should have added as auth.BasicAuthenticator, done
2026-02-26 21:12:29 -07:00
d756f205b0
ref(auth/csvauth): create and adhere to Principle interface for verified credential
2026-02-26 16:44:54 -07:00
737f3b0057
fix(auth/csvauth): make username lookups timing safe
2026-02-26 02:23:31 -07:00
1789c92815
fix(auth/csvauth): don't allow BOTH username and password to be empty
2026-02-26 02:23:31 -07:00
3465e9e232
doc(auth/csvauth): update examples
2026-02-26 02:23:31 -07:00
01a4cdda8a
feat(auth/csvauth): add Authenticate(user, pass string) to get verified Credential
2026-02-26 02:23:31 -07:00
7d35551fa7
ref(auth/csvauth): separate Login, Token, and ServiceAccount files
2026-02-26 02:23:31 -07:00
85c7b78ca6
ref(auth/csvauth): enable token use with Verify(dummy, token)
2026-02-21 15:41:02 -07:00
85d42550bf
feat(auth/csvauth): add token support,make secrets non-printing
2026-02-21 05:49:11 -07:00
dd48b2420b
feat(auth/csvauth): make secrets non-printing
2026-02-21 05:49:11 -07:00
af634f2175
doc+fix(cmd/csvauth): cleanup help, print with bare '--help'
2026-02-21 05:49:11 -07:00
6e0c91feb4
fix(cmd/csvauth): use errors.Is(err, ErrInQuestion) correctly
2026-02-21 05:49:11 -07:00
f269f80771
doc(auth/csvauth): add Go Reference badge
2025-10-11 19:06:21 -06:00
154da0aa04
chore(csvauth): add LICENSE
2025-10-06 00:42:20 -06:00
612cd2e53c
feat(csvauth): store and verify or retrieve credentials
2025-10-05 20:50:38 -06:00