Skip to content

chore: userinfo coalescing, check-config app use #702

Closed

Description

@uniqueg

Two loose ends of closed issues, for later.

Coalescing user-info requests (#615)

#615 added userinfo_cache_ttl (PR #669). Concurrent cache misses for the same token still each call the issuer's user info endpoint (foca/security/auth.py): the code only makes sure that a slow response doesn't replace a newer one. Neither #615 nor #669 covers this. Shorter TTLs make such misses more frequent.

To do: decide whether concurrent requests for one token should share one fetch per process. Requests must not get a response that started before a revocation they should see any more than today, and with validate_userinfo, every validation keeps its own fetch.

check-config and the web app (#621)

#621 asks the CLI to build the config "without creating the web app". foca check-config calls create_app() with the startup switches off (_create_app_without_writes in foca/cli.py, as docs/cli.md says), so it does create the app, in order to run the startup checks.

To do: either run the config loading and startup checks without creating the app, or decide that the current way stays, as those checks need the app.

Acceptance criteria

  • Each point is decided; if the behaviour changes, with tests and docs.

Activity

  1. added
    priority: low
    status: triage
    type: maintenance
    workload: hours
    on Nov 5, 2026
  2. added this to the v0.22.0 milestone on Nov 9, 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: lowstatus: triagetype: maintenanceworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions