Skip to content

build!: require FOCA 0.17 and Python 3.13 #214

Closed

Description

@uniqueg

Why?

Child of #201. FOCA 0.16.0 brings what the ELIXIR On-Cloud auth policy needs at proTES: RFC 9068 at+jwt checks (ID tokens rejected), the clients allowlist, service tokens (service_clients, client_mapping, on-behalf-of users, tied to issuers), resource ownership helpers and foca.utils.urls. It requires Python 3.11 or later. cloud-registry does the same in elixir-cloud-aai/cloud-registry#156.

How?

  1. foca>=0.16.0,<0.17, requires-python = ">=3.11", base image elixircloud/foca:0.16.0-py3.13 (pinned by digest), CI on Python 3.11 and 3.13, Read the Docs on the image's Python version, classifiers.
  2. Follow Migrating to 0.16.0: keep the token type check on (LS Login issues at+jwt tokens); check subject_prefix and group_mapping roles against the new restrictions.
  3. security.auth.clients: the frontends (Krini, dashboard, CLI) and Conquest, set by deployments (documented, with a placeholder in the Compose overlay).
  4. Upgrade notes.

Acceptance criteria

  • proTES runs and CI passes on Python 3.11 and 3.13 with FOCA 0.16; Python 3.10 is no longer supported.
  • ID tokens and tokens of clients that aren't listed are rejected with 401; tests cover both.

Blocked by #159 and the release of FOCA 0.16.0 (not yet released).

Update (2026-10-22): one Python version, 3.13

proTES is a container app, so it targets ONE Python version: 3.13, that of the base image. This replaces "Python 3.11+" and "CI on Python 3.11 and 3.13" above:

  • requires-python = ">=3.13", classifiers for 3.13 only; ruff and mypy target 3.13.
  • CI: one test job, with no Python version in its name (e.g., "Run tests"), no matrix, no 3.14 job; linting and the other jobs on 3.13 too.
  • Read the Docs on 3.13.
  • Acceptance: proTES runs and CI passes on Python 3.13 with FOCA 0.16; Python 3.10 to 3.12 are no longer supported.

This was not done in #204, although elixircloud/foca:0.15.0-py3.13 exists: ip2geotools (used by the distance-based middleware, pro_tes/plugins/middlewares/task_distribution/distance.py) requires typed-ast, which does not build on Python 3.13 (unmaintained; ip2geotools 0.1.6 of 2021 is its latest release). So this issue must also replace ip2geotools, e.g., with a direct call of the geolocation service, or with the configurable provider of #130 (then #130 comes first).

FOCA 0.16.0 is released (image elixircloud/foca:0.16.0-py3.13), so that blocker is resolved.


Update (2026-10-22): generic configuration. proTES must stay generic, so that any organization can deploy it with its own identity provider, clients and groups. Wherever this issue names LS Login, ECP_CLN, Krini, Conquest or other ELIXIR On-Cloud specifics, read them as examples of deployment configuration: the implementation has no such defaults (issuers, audiences, service clients, group mappings and on-behalf-of clients are all set by the deployment), and config comments, chart values, docs and tests use generic, clearly fictitious values. ELIXIR On-Cloud deployment values are documented outside this repository.

Activity

  1. added
    priority: high
    status: blocked
    type flag: breaking change
    type: auth
    type: maintenance
    workload: hours
    ecp-wp4: M4.4
    on Oct 22, 2026
  2. changed the title [-]build!: require FOCA 0.16 and Python 3.11+[/-] [+]build!: require FOCA 0.16 and Python 3.13[/+] on Oct 22, 2026
  3. self-assigned this
    on Oct 23, 2026
  4. moved this from Backlog to In progress in ELIXIR On-Cloudon Oct 23, 2026
  5. added
    status: in progress
    and removed
    status: blocked
    on Oct 23, 2026
  6. changed the title [-]build!: require FOCA 0.16 and Python 3.13[/-] [+]build!: require FOCA 0.17 and Python 3.13[/+] on Oct 23, 2026
  7. uniqueg commented on Oct 23, 2026

    @uniqueg
    MemberAuthor

    Update (2026-10-23): FOCA 0.17 instead of 0.16. FOCA 0.17.0 is about to be released, so this issue targets it directly instead of 0.16 (one migration instead of two). 0.17 adds named entries for api.specs and security.access_control.policies (overlays change single specs or rules by name), spec patches, and atomic replacement of configured policy rules; everything 0.16 brings for this issue (RFC 9068 at+jwt checks, security.auth.clients, the 401 Bearer challenge, Python 3.11+) is included.

    Until 0.17.0 is on PyPI, proTES is built and tested against a pinned FOCA dev commit and FOCA's development image of that commit (pinned by digest), as cloud-registry did in elixir-cloud-aai/cloud-registry#178. scripts/check_release_pins.py blocks releases while these pins are left; a follow-up replaces them with FOCA 0.17.0 and elixircloud/foca:0.17.0-py3.13.

  8. moved this from In progress to Done in ELIXIR On-Cloudon Oct 23, 2026
  9. removed
    status: in progress
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: M4.4priority: hightype flag: breaking changetype: authtype: maintenanceworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions