Repository navigation
fix(api): redact runtime env in container action responses - #1303
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⛔ Files ignored due to path filters (1)
⚙️ Run configuration
⛔ Files ignored due to path filters (1)
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughSuccessful start, stop, and restart responses now pass the returned container through Priority: ➖ Normal Change: Bug fix Merge Risk: ⚪ Minimal · up to Start, stop, and restart responses redact sensitive environment values, with tests confirming the secret is not returned. No material merge-blocking risk is established. Security Architecture ReviewSecurity architecture risk: ⚪ Minimal · up to The change reduces sensitive-value disclosure without expanding action permissions or changing container lifecycle behavior. No material security risk was found introduced or worsened in the assessed response path. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Container start, stop and restart responses returned the stored container without runtime env redaction, so their
resultcarried sensitivedetails.envvalues that the detail, list and update endpoints replace with[REDACTED]. The action response now goes throughredactContainerRuntimeEnvlike the rest.A new test stores a container with
DB_PASSWORDandLOG_LEVELin its env and checks all three actions return the password redacted and flagged sensitive, with the plain value nowhere in the payload. I checked the other container-returning responses inapp/api/and they already redact.🔒 Redact runtime environment values in start, stop, and restart responses with
redactContainerRuntimeEnv.✨ Add parameterized tests for all three actions. Verify sensitive values are redacted, non-sensitive values remain visible, and the original secret is absent from the response.