Skip to content

fix(ci): apply rustfmt to rtmp_bridge disabled-stream test - #123

Merged
AlexanderWagnerDev merged 3 commits into
mainfrom
cursor/ci-autofix-automation-8eed
Aug 1, 2026
Merged

fix(ci): apply rustfmt to rtmp_bridge disabled-stream test#123
AlexanderWagnerDev merged 3 commits into
mainfrom
cursor/ci-autofix-automation-8eed

Conversation

@cursor

@cursor cursor Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Fixes CI failure on PR #122 where cargo fmt --check rejected multi-line formatting in the publish_rejects_disabled_stream_with_valid_key test assertion in src/rtmp_bridge.rs.

Applies cargo fmt to collapse the authorize_publish call onto a single line.

Open in Web View Automation 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Medium Risk
Changes RTMP authentication rate-limiting behavior, which affects brute-force resistance and may throttle legitimate clients retrying with valid keys on disabled or full streams.

Overview
RTMP publish/play auth now treats rejections for valid keys that still cannot connect (disabled stream, pending delete, duplicate publisher, play connection cap) as RecognizedKey, and those failures use the same per-IP auth-failure budget as bad credentials. Operational is only for internal errors (e.g. keygen/DB) that do not reveal whether a key exists.

authorize_publish / authorize_play call consumes_auth_budget() instead of checking only Credential, closing an oracle where attackers could tell valid keys apart from invalid ones by whether attempts were rate-limited.

Tests are updated: disabled-stream valid-key probes must hit the limit after RTMP_AUTH_MAX_FAILURES attempts, including when mixed with bogus keys. clap is bumped in Cargo.lock (4.6.4 → 4.6.5).

Reviewed by Cursor Bugbot for commit 8af9bc2. Bugbot is set up for automated code reviews on this repo. Configure here.

cursoragent and others added 3 commits August 1, 2026 02:03
Operational publish/play rejections after a successful key lookup (disabled
stream, pending delete, publisher slot taken, play connection cap) no longer
bypass the per-IP auth-failure budget. This closes a side channel that let
remote peers distinguish valid keys from guesses by observing whether their
attempt consumed rate-limit quota.

Co-authored-by: Alexander Wagner <info@alexanderwagnerdev.com>
Co-authored-by: Alexander Wagner <info@alexanderwagnerdev.com>
@AlexanderWagnerDev
AlexanderWagnerDev marked this pull request as ready for review August 1, 2026 18:00
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@cursor

cursor Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_b39693ee-04ee-421f-b9ab-91b65f81741b)

@AlexanderWagnerDev

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8af9bc20fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/rtmp_bridge.rs
@AlexanderWagnerDev
AlexanderWagnerDev merged commit 2f83191 into main Aug 1, 2026
12 checks passed
@AlexanderWagnerDev
AlexanderWagnerDev deleted the cursor/ci-autofix-automation-8eed branch August 1, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants