Repository navigation
Description
FOCA 0.18.0 is not released yet, so two of its new settings and checks can be tightened before it is (maintainer decisions, 2026-10-24):
-
Startup checks (feat: add startup checks of the config #459, PR feat: add startup checks of the config #466): two group settings that keep group mappings from ever applying become errors instead of warnings, as in elixir-cloud-aai/cloud-registry:
Foca.create_app()refuses to start (ValueError, as withsecurity.access_control.require_admin), with access control enabled, ifsecurity.access_control.group_mappingis non-empty, butclaim_groupsis not set (groups can never match), orclaim_groupshas surrounding whitespace (FOCA looks the claim up as written).
An empty
group_mappingwithoutclaim_groupsstays allowed.group_mappingwithoutkeep_group_subjectsstays a warning. -
Validation details (feat(errors): serve validation error details #461, PR feat(errors): serve validation error details #464):
exceptions.validation_detailsdefaults totrue, so that clients get the reason of a rejected request, and Connexion's unescaped request-validation log messages are filtered out by default.
Breaking changes for apps upgrading from 0.17, so both get a section in docs/migration-0.18.md.
Acceptance criteria
- Both group settings raise
ValueErrorat startup, naming the setting to change; an empty mapping without a group claim starts. -
ExceptionConfig.validation_detailsdefaults toTrue;templates/config.yaml, the docs and tests are updated. - Docs (
docs/configuration/access-control.md,docs/deployment.md,docs/configuration/exceptions.md) anddocs/migration-0.18.mddescribe the new behaviour. - Tests at 100% coverage; the strict docs build passes.
Activity