Fix/pr 567 issue 682 followup - #727
Conversation
Restore the FRR config debug log using a redacted copy, preserving debugging value without exposing resolved BGP passwords or raw FRR credentials. Resolves review threads openperouter#44 and openperouter#45. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: yahlifried <yfriedla@redhat.com>
Route API and static config debug payloads through the shared redaction helpers so resolved BGP passwords and raw FRR credentials are never logged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: yahlifried <yfriedla@redhat.com>
Reject cross-field NeighborID collisions during common underlay validation while preserving the existing specific listen-range errors. Resolves review threads openperouter#64 and openperouter#43. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: yahlifried <yfriedla@redhat.com>
Move password-secret clearing into static underlay construction, retain plaintext precedence, and rely on common reconciliation validation for duplicate identities. Resolves review threads openperouter#26, openperouter#30, openperouter#31, openperouter#57 and openperouter#59. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: yahlifried <yfriedla@redhat.com>
Deep-compare all surviving neighbors and resolved passwords, use specific error assertions, and cover an empty Secret value. Resolves review threads openperouter#55, openperouter#40, openperouter#56 and openperouter#47. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: yahlifried <yfriedla@redhat.com>
Keep the shared password-secret fixture constants together. Follow-up to review thread openperouter#71. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: yahlifried <yfriedla@redhat.com>
|
Warning Review limit reachedNext included review available in 18 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (12)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe changes redact passwords from configuration logs, relocate duplicate and empty-neighbor validation to conversion, clear conflicting static secret references, and expand password-resolution coverage with exact state and error assertions. ChangesConfiguration safety
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to This change redacts BGP credentials in configuration logging, validates invalid neighbor identities, and preserves documented static-password behavior. The supplied coverage indicates these changes are ready to merge without an identified current production risk. Sequence Diagram(s)sequenceDiagram
participant Controller
participant Conversion
participant FRR
Controller->>Conversion: redact API configuration
Conversion->>FRR: redact raw FRR passwords
FRR-->>Conversion: return redacted snippets
Conversion-->>Controller: return redacted configuration for logging
Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The changes address the coding objectives in issue [ Full details: Out of Scope Changes checkExplanation The code and test changes remain within the cleanup and review-follow-up scope of issue [ Full details: Description checkExplanation The description includes the cleanup classification, the follow-up purpose, issue reference, release note, and AI acknowledgment. The main description section is empty, but the opening text provides the essential context. ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
Redact the complete password directive rather than only its first token, so quoted or whitespace-containing raw-FRR values cannot leak through logs. Handle case-insensitive command and diff formats, and document static-password precedence and the Linux MD5 key limit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: yahlifried <yfriedla@redhat.com>
9f6ade3 to
638e82c
Compare
fixing some leftover comments from this PR #567,
fixes #682
/kind cleanup
What this PR does / why we need it:
Special notes for your reviewer:
AI Guidelines Acknowledgment:
Summary by CodeRabbit
Security
Validation