add secure coding AI review guides#5572
Conversation
Agent-Logs-Url: https://github.com/wled/WLED/sessions/82b5d757-7791-4aa3-8f77-96b25e52b6d5 Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
Agent-Logs-Url: https://github.com/wled/WLED/sessions/dc60e89a-6f5e-4441-8b4d-a70d61c1bf5c Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughAdds two WLED security guidance documents (hardening + securecode) and updates .coderabbit.yaml to reference them, applying path-scoped security rules for firmware, WebUI, and usermods plus secrets/supply-chain scanning. ChangesSecurity Review Standards and CodeRabbit Configuration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
Agent-Logs-Url: https://github.com/wled/WLED/sessions/73d38e00-6610-47e7-a7de-4a926fe0cc68 Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
Agent-Logs-Url: https://github.com/wled/WLED/sessions/73d38e00-6610-47e7-a7de-4a926fe0cc68 Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
This comment was marked as outdated.
This comment was marked as outdated.
avoid false-flag alerts from other security scanners
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
config-derived => ingress-derived
* strlcmp does not exist in the C standard library, nor in POSIX * Backtick artifacts in .coderabbit.yaml YAML strings
Avoid credential-shaped URL examples that possibly retrigger secret scanners.
Rules are applied when source buffer or copy size are derived from untrusted values.
Add guidance for handling trusted internal values in FW1.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
this PR is adding security-aware review checklists (for coderabbit PR reviews) that should be relevant for WLED.
The lists are based on the OWASP "top 10" from https://github.com/github/awesome-copilot/blob/main/instructions/security-and-owasp.instructions.md, and on lessons learned from past reviews.
This PR now includes:
docs/*.instructions.mdnaming pattern:docs/securecode.instructions.mddocs/secure-short.instructions.mddocs/securecode.instructions.md, including concrete pattern guidance for:Update.*pathsOrigin/Refereradvisory checks for non-internet-exposed deploymentsSummary by CodeRabbit
Summary by CodeRabbit
Documentation
Chores