Skip to content

fix(security): stop secrets and server paths reaching clients and logs - #275

Merged
SteveGilvarry merged 2 commits into
masterfrom
security/2-leaks-logging
Nov 18, 2026
Merged

SteveGilvarry merged 2 commits into
masterfrom
security/2-leaks-logging

Conversation

@SteveGilvarry

Copy link
Copy Markdown
Member
  • zmcontrol.pl's stderr went back to whoever sent a PTZ command. A control
    module's errors quote the camera URL, password included.
  • GET /storage showed view-only System users the S3 secret key in
    Storage.Url.
  • A recording that could not be probed returned its full path on the
    server.
  • A reqwest error names the URL it was sent to; HttpClientError now
    returns a generic message, as database errors do.
  • auth_middleware logged the whole URI at debug, query-string token
    included.
  • The login handler logged the username before validating it, so a line
    break in it forged log lines. Same for the server control action.
  • DatabaseConfig, TurnConfig and SentryConfig printed their
    password or DSN through Debug. Nothing prints them today.

Notes for review

  • Second of five stacked PRs; based on the tokens and sessions PR.
  • Behaviour change: a failed PTZ command returns a short reason, and the detail is in the server log.
  • The HttpClientError and config Debug changes are defensive: I found no path that leaks today.

🤖 Generated with Claude Code

- zmcontrol.pl's stderr went back to whoever sent a PTZ command. A control
  module's errors quote the camera URL, password included.
- `GET /storage` showed view-only System users the S3 secret key in
  `Storage.Url`.
- A recording that could not be probed returned its full path on the
  server.
- A reqwest error names the URL it was sent to; `HttpClientError` now
  returns a generic message, as database errors do.
- `auth_middleware` logged the whole URI at debug, query-string token
  included.
- The login handler logged the username before validating it, so a line
  break in it forged log lines. Same for the server control action.
- `DatabaseConfig`, `TurnConfig` and `SentryConfig` printed their
  password or DSN through `Debug`. Nothing prints them today.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@SteveGilvarry
SteveGilvarry force-pushed the security/2-leaks-logging branch from 8a19ba1 to c12a976 Compare November 17, 2026 22:03
@SteveGilvarry
SteveGilvarry changed the base branch from security/1-tokens-sessions to master November 17, 2026 23:53
@SteveGilvarry
SteveGilvarry merged commit db80e3a into master Nov 18, 2026
20 of 21 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant