navidrome/core/apiauth
Deluan ddcc611af3 refactor(log): redact caller-marked secret values in the log hook
Replaces the statement-wide SQL arg redaction from the previous commit,
which hid every arg of property and password writes (user names, emails,
scanner properties) and made troubleshooting harder.

log.WithSecrets marks values on a context, log calls now pass their
context to the logrus entry, and the redaction hook replaces those values
in the message and fields. logSQL logs the real args again; only the
encrypted password, the API v1 key and the JWT secrets are marked.
2026-09-28 20:06:28 -04:00
..
apiauth_suite_test.go feat(api): add API v1 scope rules and grant secrets 2026-09-28 20:06:27 -04:00
cache.go fix(api): consolidate grant deletes and harden API v1 auth after review 2026-09-28 20:06:28 -04:00
cache_test.go fix(api): consolidate grant deletes and harden API v1 auth after review 2026-09-28 20:06:28 -04:00
context.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
credentials.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
credentials_test.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
db_test.go test(api): share API v1 test helpers and check scopes in Go 2026-09-28 20:06:28 -04:00
export_test.go feat(api): add API v1 login, setup, grant resolution and token minting 2026-09-28 20:06:27 -04:00
scopes.go refactor(api): tighten API v1 auth internals and first-admin setup 2026-09-28 20:06:28 -04:00
scopes_test.go fix(api): never widen the scopes an access token claims 2026-09-28 20:06:28 -04:00
secret.go feat(api): add API v1 scope rules and grant secrets 2026-09-28 20:06:27 -04:00
secret_test.go feat(api): add API v1 scope rules and grant secrets 2026-09-28 20:06:27 -04:00
service.go fix(api): consolidate grant deletes and harden API v1 auth after review 2026-09-28 20:06:28 -04:00
service_session_test.go fix(api): consolidate grant deletes and harden API v1 auth after review 2026-09-28 20:06:28 -04:00
service_test.go fix(api): consolidate grant deletes and harden API v1 auth after review 2026-09-28 20:06:28 -04:00
signer.go refactor(log): redact caller-marked secret values in the log hook 2026-09-28 20:06:28 -04:00
signer_test.go refactor(api): reuse existing helpers in API v1 auth 2026-09-28 20:06:28 -04:00