Skip to content

Require HTTPS for upstream panic-rule table checks - #653

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/panic-table-https-20261107
Nov 7, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
fix/panic-table-https-20261107

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

The optional --upstream panic-rule table check followed redirects without restricting their protocol. This adds curl --proto '=https' and --proto-redir '=https' to that one fetch, addressing Sonar issue AaGsvalIi1OfbecDqiNE (shell:S6506).

The SHA-256 comparison, failure exit, canonical table/pin and default offline path remain unchanged. The command only reads the upstream table; it does not execute downloaded code.

Validation on signed head 222e364 (tree a480be96c3114bc764088bfd72d92a03d309be9d): Bash syntax, existing PA rule/table control, optional upstream comparison and git diff --check pass. ShellCheck was unavailable locally; hosted checks provide the separate CI result.

This is a one-file security correction based on c1d8754. The existing Rhodibot canon-lockstep mismatch and mirror setup/access failures remain separate. No canon repin, baseline waiver, credential or mirror change is included.

Merged as 46d26a4. Its verified signed tree exactly matches a480be96c3114bc764088bfd72d92a03d309be9d. All nine required PR contexts passed; CodeRabbit’s review check completed successfully with no inline findings. Post-merge main SonarCloud, E2E, pinned-source closure and Hypatia baseline pass. The open new-code vulnerability query is now empty. This does not resolve or waive the separate upstream canon-lockstep and mirror-configuration failures.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T12:12:29.529895Z 222e364 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The upstream table download now permits only HTTPS for the initial request and redirects. Existing timeout, failure handling, hash comparison, and re-pin error behavior remain unchanged.

Changes: Upstream fetch restriction

Layer / File(s) Summary
Restrict upstream request protocols
tests/panic-attack-rule-ids-test.sh
The upstream curl request now permits HTTPS for the initial request and redirects.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: Minimal · up to 222e3

The optional upstream check is restricted to HTTPS. No merge-blocking risk is evident from the supplied change context.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the HTTPS requirement for the upstream panic-rule table fetch.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c1d8754 and 222e364.

Files selected for processing: 1

  • tests/panic-attack-rule-ids-test.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sonarqubecloud

sonarqubecloud Bot commented Nov 7, 2026

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 46d26a4 into main Nov 7, 2026
62 of 63 checks passed
@hyperpolymath
hyperpolymath deleted the fix/panic-table-https-20261107 branch November 7, 2026 12:16
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.

1 participant