fix: use REDISCLI_AUTH env var to avoid passing password via -a flag in Redis health checks#3618
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Redis Helm deployment template refactors authentication handling by introducing an ChangesRedis Authentication and Health Checks
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
5405e4c to
36a1311
Compare
4f16733 to
2ffea79
Compare
REDISCLI_AUTH env var to avoid passing password via -a flag in Redis health checks
Confidence Score: 5/5This change is safe to merge — it is a targeted refactor of Helm probe commands with no functional regressions and a minor security improvement. The only file touched is a Helm deployment template. The new REDISCLI_AUTH env var is correctly scoped inside the existing auth.enabled conditional, so it is never set when authentication is off. The unconditional redis-cli ping command works correctly in both auth and no-auth modes. No secrets management changes, no new Kubernetes resources, and no Go or UI code is affected. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "fix: reids to pass the secret in env" | Re-trigger Greptile |
36a1311 to
de7044b
Compare
2ffea79 to
77e78f9
Compare
de7044b to
55c8715
Compare
77e78f9 to
d82ba33
Compare

Summary
Simplifies Redis health check commands by leveraging the
REDISCLI_AUTHenvironment variable for automatic authentication, removing the need for conditional-a "$REDIS_PASSWORD"flags in liveness and readiness probes.Changes
REDISCLI_AUTHenvironment variable to the Redis container, sourced from the same secret asREDIS_PASSWORD. When set,redis-cliautomatically uses this variable for authentication without requiring the-aflag.redis-cliprobe commands (which branched on whether auth was enabled) with a single unconditionalredis-cli ping. When auth is enabled,REDISCLI_AUTHhandles it transparently; when auth is disabled, the variable is simply not set.Type of change
Affected areas
How to test
Deploy the Bifrost Helm chart with Redis auth enabled and verify that the liveness and readiness probes succeed without errors:
Expected: probes report successful
pingresponses and the pod reachesRunningstate.Breaking changes
Related issues
Security considerations
REDISCLI_AUTHis sourced from the same Kubernetes secret asREDIS_PASSWORD, so there is no change in how the password is stored or exposed. This approach avoids passing the password as a visible command-line argument, which is a minor security improvement.Checklist
docs/contributing/README.mdand followed the guidelines