Repository navigation
π fix(security): resolve scanner findings - #61
Conversation
Sanitize untrusted structured log attributes, patch vulnerable web dependencies, scope verified Grype false positives, and refresh generated CSP hashes.
|
Warning Review limit reached
Next review available in: 30 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review detailsβοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: π Files selected for processing (5)
π WalkthroughWalkthroughAdds π₯ Pre-merge checks | β 2β Passed checks (2 passed)
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
π€ Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.grype.yaml:
- Around line 1-29: Update the GO-2026-5932 exceptions in the ignore
configuration to use the exact intended go.mod path instead of **/go.mod, and
add CI validation for each affected dependency/binary using govulncheck or
binary-symbol inspection. Fail CI when golang.org/x/crypto/openpgp is imported
or linked, so the ignore remains valid only while usage is limited to the
verified non-openpgp paths; ensure review is triggered by usage changes as well
as version changes.
In `@internal/server/middleware.go`:
- Around line 505-508: Update the Ed25519 authentication flow around
auth.VerifyRequest to reserve the client IPβs verification capacity using the
existing rate-limiter locking path before verification begins. On verification
error, report the failure through that same path rather than calling
rl.RecordFailure afterward, while preserving the existing reason logging.
πͺ Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
βΉοΈ Review info
βοΈ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 6465aa0e-5c68-43f9-9927-a3179a6ac344
β Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json,!**/package-lock.json
π Files selected for processing (15)
.grype.yamlcmd/portwing/main.godocs/package.jsoninternal/adapter/drydock/adapter.gointernal/audit/audit.gointernal/auth/verify.gointernal/docker/client.gointernal/edge/client.gointernal/edge/tunnel.gointernal/log/logger.gointernal/log/logger_test.gointernal/server/middleware.gopackage.jsonwebsite/package.jsonwebsite/vercel.json
Reserve Ed25519 verification capacity atomically and guard the scoped OpenPGP scanner exceptions with source and shipped-binary checks.
Scope the Docker Compose compress advisory false positive and fail CI if either excluded vulnerable package becomes imported or linked.
Summary
x/crypto/openpgpfindingsValidation
go test -race ./...golangci-lint rungo build ./cmd/portwinggovulncheck ./...grype dir:. --config .grype.yaml --fail-on highnpm cinpm audit --audit-level=moderatenpm run lintnpm --workspace website run test:headersnpm run buildCloses the actionable GitHub Security alerts; Scorecard alert #96 was separately dismissed with evidence because its reported
FROM rootfs-${TARGETARCH}line selects a digest-pinned internal stage.Changelog
applog.Sanitizeto escape newline and carriage-return characters, with unit tests.js-yaml,sharp, and related dependencies.x/crypto/openpgpfindings.Concerns
x/cryptoversions or dependencies change.