test(auth): add multi-user regression coverage
- 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
This commit is contained in:
parent
b11f64d5a1
commit
dac787b81b
45 changed files with 5298 additions and 23 deletions
|
|
@ -0,0 +1,13 @@
|
|||
# T10: Runtime Configuration and Validation
|
||||
|
||||
## Learnings
|
||||
- Nginx needs `X-Forwarded-Host` and `X-Forwarded-Port` for proper OIDC callback URL generation.
|
||||
- `curl -f` fails 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 if `errors` is 0, which can kill the script if `set -e` is active. Use `errors=$((errors + 1))` instead.
|
||||
- Documenting required environment variables in systemd service files and `DEPLOYMENT.md` is crucial for operators.
|
||||
- Authelia client configuration requires specific `redirect_uris` and `scopes` (openid, profile, email, groups).
|
||||
|
||||
## Verification
|
||||
- `scripts/validate-env.sh` correctly identifies missing OIDC and session variables.
|
||||
- `scripts/healthcheck.sh` and `deploy.sh` now handle auth redirects (302) for the frontend.
|
||||
Loading…
Add table
Add a link
Reference in a new issue