Skip to content

chore: re-anchor go/log-injection CodeQL suppression after route-group split - #1321

Merged
Wikid82 merged 1 commit into
mainfrom
chore/reanchor-codeql-suppression
Sep 9, 2026
Merged

Wikid82 merged 1 commit into
mainfrom
chore/reanchor-codeql-suppression

Conversation

@Wikid82

@Wikid82 Wikid82 commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Why

The management-API authorization hardening (#1316) changed RemoteServerHandler.RegisterRoutes to a (read, admin *gin.RouterGroup) split, adding lines above Update() and shifting the already-suppressed logger.Log()...Warn() go/log-injection sink in remote_server_handler.go from line 142 to ~148.

.github/codeql/codeql-suppressions.yml pinned that entry to an exact line: 142, so after the shift the findings-gate no longer matched it and counted the (unchanged, still-false-positive — logging a uint primary key) result as blocking on the full-tree CodeQL scan that the maindevelopment propagation PR (#1320) runs. #1316's own CodeQL check passed because PR-scoped analysis is diff-informed and doesn't re-block a pre-existing finding whose suppression drifted.

Change

Widen the entry to line_range: {start: 146, end: 150}, exactly mirroring the sibling uptime_service.go entry that hit this same drift before (commit 8466a6eb), so the multi-line log chain stays covered regardless of which line CodeQL anchors startLine to. Reason text keeps a dated Extended 2026-09-09 note per the file's convention.

No code or behavior change. Data-only edit to the CodeQL suppression list. Unblocks #1320.

…p split

The management-API authorization hardening changed
RemoteServerHandler.RegisterRoutes to a (read, admin *gin.RouterGroup)
split, adding lines above Update() and shifting the suppressed
logger.Log()...Warn() sink in remote_server_handler.go from line 142 to
~148. The exact-line suppression entry no longer matched, so the
findings-gate counted the (unchanged, still-false-positive) go/log-injection
result as blocking on the full-tree scan run by the main->development
propagation PR.

Widen the entry to a line_range (146-150), mirroring the existing
uptime_service.go sibling entry that hit the same drift, so the multi-line
log chain stays covered regardless of which line CodeQL anchors to.

No code or behavior change.

Claude-Session: https://claude.ai/code/session_01Jz4LgwfkxaF8E7TdAgk94y
@github-advanced-security

Copy link
Copy Markdown
Contributor

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

✅ Supply Chain Verification Results

PASSED

📦 SBOM Summary

  • Components: 1769

🔍 Vulnerability Scan

Severity Count
🔴 Critical 0
🟠 High 0
🟡 Medium 0
🟢 Low 0
Total 0

📎 Artifacts

  • SBOM (CycloneDX JSON) and Grype results available in workflow artifacts

Generated by Supply Chain Verification workflow • View Details

@Wikid82
Wikid82 merged commit bda03ce into main Sep 9, 2026
33 checks passed
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