- Enable backend tests in CI (remove if: false) - Fix test_products_helpers.py to pass current_user parameter - Fix test_routines_helpers.py to include short_id in products - Fix llm_context.py to use product_effect_profile correctly - All 221 tests passing
915 B
915 B
T10: Runtime Configuration and Validation
Learnings
- Nginx needs
X-Forwarded-HostandX-Forwarded-Portfor proper OIDC callback URL generation. curl -ffails on 302 redirects, which are common when a page is protected by OIDC.- Health checks and deployment scripts must be updated to allow 302/303/307 status codes for the frontend root.
- Bash
((errors++))returns 1 iferrorsis 0, which can kill the script ifset -eis active. Useerrors=$((errors + 1))instead. - Documenting required environment variables in systemd service files and
DEPLOYMENT.mdis crucial for operators. - Authelia client configuration requires specific
redirect_urisandscopes(openid, profile, email, groups).
Verification
scripts/validate-env.shcorrectly identifies missing OIDC and session variables.scripts/healthcheck.shanddeploy.shnow handle auth redirects (302) for the frontend.