Repository navigation
Description
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?
foca>=0.16.0,<0.17,requires-python = ">=3.11", base imageelixircloud/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.- Follow Migrating to 0.16.0: keep the token type check on (LS Login issues
at+jwttokens); checksubject_prefixandgroup_mappingroles against the new restrictions. security.auth.clients: the frontends (Krini, dashboard, CLI) and Conquest, set by deployments (documented, with a placeholder in the Compose overlay).- 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]build!: require FOCA 0.16 and Python 3.11+[/-][+]build!: require FOCA 0.16 and Python 3.13[/+][-]build!: require FOCA 0.16 and Python 3.13[/-][+]build!: require FOCA 0.17 and Python 3.13[/+]uniqueg commentedon Oct 23, 2026
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.specsandsecurity.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 9068at+jwtchecks,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
devcommit 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.pyblocks releases while these pins are left; a follow-up replaces them with FOCA 0.17.0 andelixircloud/foca:0.17.0-py3.13.fix: reject local versions in release pins
ci: replace release-pins.yaml by release step