[fix] Fixed OpenVPN CRL access and cron logging - #693
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Essentials Run ID: 📒 Files selected for processing (2)
Included review availability: 2 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
🧰 Additional context used📓 Path-based instructions (1)Flag potential security vulnerabilities Flag obvious performance regressions, such as heavy loops, repeated I/O, or unoptimized queries Flag unused or redundant code Flag outdated or incorrect comments/docstrings Ensure new code handles err...⚙️ CodeRabbit configuration file Files:
🔇 Additional comments (2)
📝 WalkthroughWalkthroughOpenVPN cron commands now forward standard output and standard error to the container’s PID 1 file descriptors. CRL downloads now fail when the output file is empty and set downloaded files to mode Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The changes safely reject unusable CRL downloads, allow OpenVPN to read refreshed CRLs, and forward scheduled-job output to container logs. Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
Full details: Ui Changes, Regression Test, DocsExplanation The PR changes runtime OpenVPN code to fix a CRL permission bug, but it adds no regression test. The existing CI test ( Resolution Add and run a regression test for the changed CRL behavior. The test must verify that a refreshed CRL is readable by the OpenVPN unprivileged user, or at minimum verify the resulting file mode is
Comment |
49cdbb2 to
474f453
Compare
| @@ -1,2 +1,2 @@ | |||
| */1 * * * * sh /openvpn.sh | |||
| */5 * * * * sh /revokelist.sh | |||
| */1 * * * * sh /openvpn.sh >>/proc/1/fd/1 2>>/proc/1/fd/2 | |||
There was a problem hiding this comment.
can you please clarify the redirections?
Bug: OpenVPN could not read the refreshed CRL after switching to its unprivileged user because the file permissions were restrictive. Fix: Updated the CRL permissions so OpenVPN can read it. Forwarded cron output to the container logs for better observability.
474f453 to
2121761
Compare
|
Proposed change log entry: |
Checklist
Reference to Existing Issue
N/A
Description of Changes
Bug:
OpenVPN could not read the refreshed CRL after switching to its unprivileged user because the file permissions were restrictive.
Fix:
Updated the CRL permissions so OpenVPN can read it. Forwarded cron output to the container logs for better observability.
Screenshot
N/A