Repository navigation
OMN-3903: add infisical_folders check (#12) to system_health_check.sh - #694
Conversation
Adds check_infisical_folders() as check #12. Verifies /shared/<transport>/ folders exist in Infisical after seeding. Only runs when INFISICAL_ADDR is set and Infisical is reachable; gracefully skips otherwise. - RED when db folder missing (core infrastructure) - YELLOW when Infisical not running, auth vars missing, or advisory folders (kafka, http, filesystem, graph, mcp) absent - GREEN when all 6 baseline folders present - SKIP when INFISICAL_ADDR is unset (secrets profile not active) Uses curl + grep/sed only (no jq dependency). Auth via universal-auth login with INFISICAL_CLIENT_ID/SECRET. 5-second timeouts on all API calls.
|
Warning Rate limit exceeded
⌛ 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: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Adds
check_infisical_folders()as check #12 tosystem_health_check.sh. Verifies/shared/<transport>/folders exist in Infisical for baseline transport types after seeding (OMN-3898 dependency — already merged).What changed
scripts/system_health_check.sh: newcheck_infisical_folders()function + call in run section + header comment updatedBehavior
INFISICAL_ADDRnot setSKIP— secrets profile not active, silently skippedYELLOW— advisory, not a hard failureYELLOW— advisorydbfolder missing (Infisical running)RED— core infra failureYELLOW— advisoryGREENImplementation notes
POST /api/v1/auth/universal-auth/loginwithINFISICAL_CLIENT_ID/SECRETGET /api/v1/folders?workspaceId=...&environment=prod&path=/shared/jqdependency — usesgrep+sedfor JSON parsingEnumInfraTransportType.valueslugsTesting
Depends on
Fixes: OMN-3903