moq-rtmp: debug log of the RTMP app and tcUrl can include a query credential

Open Beginner friendly
#10,460 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Start in rs/moq-rtmp/src/server.rs at the tracing::debug! call that logs %app_name and tc_url during the connect exchange. Check how those values are formed and whether truncating them at ? preserves useful debug context without exposing query credentials. Done when debug logs no longer include query strings; verify by exercising the connect path with a URL containing a token.

Written by the indexing model from the issue text.

Description

moq-rtmp's server logs the raw RTMP app name and tcUrl at debug level during the connect exchange (rs/moq-rtmp/src/server.rs, the tracing::debug! with %app_name and tc_url). An encoder given a server URL and a stream key apart, as OBS is, sends the server URL's query inside both, so a credential carried there (rtmps://host/app?token=<secret>) reaches the logs of anyone running with RUST_LOG=debug. The stream key itself is not logged, which suggests the intent is to keep credentials out.

Suggested fix: log the app name and tcUrl up to any ?, or not at all.

(Written by Claude Opus 5.5)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.