Skip to content

Fail closed for auth-enabled routes#1461

Open
MaxGhenis wants to merge 1 commit into
mainfrom
codex/harden-auth-fail-closed
Open

Fail closed for auth-enabled routes#1461
MaxGhenis wants to merge 1 commit into
mainfrom
codex/harden-auth-fail-closed

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • raise a configuration error when auth is enabled without the required Auth0 settings
  • require auth on /<country_id>/calculate_demo so the demo endpoint cannot bypass protection
  • add regression tests for the fail-closed decorator behavior and calculate_demo auth

Testing

  • uv run pytest tests/unit/decorators/test_auth.py tests/unit/endpoints/test_calculate_demo_auth.py -q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant