Repository navigation
Conversation
2 of 5 tasks
The writer, journal and remote-config tests pinned how this branch builds its output, not what may leave the box, so they broke once the integration branch replaced the writer, the journal download and the remote config DTO. - The permissions test now saves through saveConfig, so it holds whether the atomic writer or its caller applies the 0600 mode. - The journal tests check that no Stream ID reaches the returned download, the download event, the log or the error notice, instead of the call count and the exact message text. - Remote config now withholds the *_configured flags too. A remote viewer needs stream health, not whether a publish key is saved; the local app keeps the flags for its Stream ID field.
pjeweb
added a commit
that referenced
this pull request
Nov 15, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 16, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 17, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 17, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 18, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 18, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 19, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 21, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 22, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 23, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 24, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 24, 2026
pjeweb
added a commit
that referenced
this pull request
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
An SRT Stream ID is often the publish key for a channel: whoever has it can stream to that channel. Today the box sends the saved Stream ID and relay override back out every time the configuration is read, pushed or applied, so anyone who can open the web app, or read a log, can copy it.
What
How: both fields become write-only in the API. Leaving a field out keeps the saved value, a non-empty string replaces it and an empty string clears it; reads report
srt_streamid_configuredandrelay_streamid_override_configuredinstead. Older clients have to be upgraded together with the backend, because they would clear the ID by saving the now-empty field.docs/STREAM-ID-SECURITY.mdexplains the behaviour in English and Spanish.I also changed the tests so they check what leaves the box rather than how this branch builds it. The integration branch has since replaced the config writer, the journal download and the remote config format, and the old tests failed there even though no Stream ID leaked. Now the permission test saves through the normal config save, and the journal tests check that no Stream ID reaches the download, the log or the error notice.
Your call: I left the "is set" flags out of remote results on purpose, because nothing remote reads them and the remote status allowlist (#63) doesn't carry destination settings. If a remote setup screen ever needs to show "Stream ID saved", it's a one-line addition next to the existing
relay_server_configuredthere.This targets
osb/base/stream-id-secret, a review base that mirrors tested upstream main, so the diff only shows the security change. #45 builds on this PR.Screenshots
Mock data; the same state at the PR base and head.
How to verify
Save a Stream ID, reload Settings: the field is empty and the stream still starts with the saved ID. Type a new one to replace it, or use Clear and Save to remove it. Download the journal or look at the logs: the ID doesn't appear.
apps/backend/src/helpers/stream-id-secret.test.tscovers the scrubbing.Testing and limits
\"srt_streamid\":\"…\") isn't blanked. Plain journals never contain that form; the saved ID is always scrubbed.Risks
An older web app talking to this backend would clear the saved ID on its next save, so both have to be updated together.
Checklist