Skip to content

feat: tighten group checks and error details #467

Closed

Description

@uniqueg

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 with security.access_control.require_admin), with access control enabled, if

    • security.access_control.group_mapping is non-empty, but claim_groups is not set (groups can never match), or
    • claim_groups has surrounding whitespace (FOCA looks the claim up as written).

    An empty group_mapping without claim_groups stays allowed. group_mapping without keep_group_subjects stays a warning.

  • Validation details (feat(errors): serve validation error details #461, PR feat(errors): serve validation error details #464): exceptions.validation_details defaults to true, 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 ValueError at startup, naming the setting to change; an empty mapping without a group claim starts.
  • ExceptionConfig.validation_details defaults to True; templates/config.yaml, the docs and tests are updated.
  • Docs (docs/configuration/access-control.md, docs/deployment.md, docs/configuration/exceptions.md) and docs/migration-0.18.md describe the new behaviour.
  • Tests at 100% coverage; the strict docs build passes.

Activity

  1. added this to the v0.18.0 milestone on Oct 24, 2026
  2. added
    priority: medium
    status: in progress
    type flag: breaking change
    type: feature
    workload: hours
    on Oct 24, 2026
  3. removed
    status: in progress
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype flag: breaking changetype: featureworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions