Repository navigation
Releases
v1.0.0rc2
This second release candidate of 1.0.0 moves all additions to the API to
camelCase, also where they are stored, so it needs a fresh database: data is
not kept, and there is no migration. It lets users import a service's values
from its service info and keep them in sync, tells users and admins what needs
attention, and lists the invalid fields of rejected requests where they are
known. It also moves the roles of users to a path of their own, so that they
can't collide with those of groups, adds labels to invitations and keeps expired
invitations for a set time. It is a prerelease, for testing the release before 1.0.0. The registry and
cloud-registry-ui ship
together: use version 1.0.0-rc2 of the UI with this version. Read the upgrade
steps
first. See the documentation
for details.
Breaking changes
- Fresh database: stored fields and indexes move to camelCase, without a
migration, from any earlier version. The app refuses to start on data or indexes
of earlier versions, naming the collections, and no longer adds keys or creators to
stored services or warns of data of earlier versions on startup (#352, #353) - API: all fields and query parameters that the registry adds move to camelCase,
without aliases, so clients must follow (e.g.,registrationRules,
verifiedAt,serviceId,userId,createdBy,?includeAccepted=true). The
upgrade steps
list them all (#352, #353) - API: with FOCA 0.21's stricter request checks, query parameters that an
operation doesn't declare return400 Bad Requeston all operations (e.g.,
GET /services, which ignored them), and so docreatedAtandupdatedAt
that aren't date-times, for all users. Responses are checked too, so stored
date-timeandurivalues must be valid: the app logs an error on startup
naming services with invalid ones (#368, #369) - Access control: new policy rules for imports, syncs and notifications
(import-service-info,owners-sync-services,maintainers-sync-services,
get-service-sync,list-syncs,list-notifications,
dismiss-notifications), which overlays that givepoliciesas a list must
include. The registry now needs outgoing connections to fetch service info
(#359, #362; #360, #363; #361, #364) - Helm chart: on foca-common 0.4.0, which checks audiences, the chart no longer
accepts an invalid globalconfig.security.auth.audienceif each issuer has
its own, which it used to ignore (#350, #351) - API:
PUTandDELETE /services/{serviceId}/permissions/{userId}move to
/services/{serviceId}/permissions/users/{userId}, without an alias: the
former paths return404 Not Found, so move API clients in the same upgrade.
With identifiers that start withusers/, the former path is the new path of
the user without that prefix, so stop clients that weren't moved first (#336,
#337) - API: service URLs (
url) with leading or trailing spaces return
400 Bad Request, as links already did, also when verifying a service: they
were stored as written, and would have failed lists of services once responses
are validated (#356, #357) - Access control: the rule
owners-change-permissionsmoves to
.../permissions/users/*, and no longer covers the roles of groups. Overlays
that redefine it, or givepoliciesas a list, must move it. Setting
owners-change-group-permissionstonullnow stops owners from changing
roles of groups (#336, #337) - Invitations:
GET /services/{serviceId}/invitationsno longer lists accepted
invitations unless asked (?includeAccepted=true), now lists expired ones,
and all invitations have astatus(open,expiredoraccepted). Clients
that show all listed invitations as open must check it (#332, #335) - Startup: the app refuses to start if the environment of its service info
(service_info.service.environment) isn't one of the values allowed for
services (custom.endpoints.services.environments). The defaults pass; check
deployments that changed either (#346, #348) - API:
400 Bad Requestresponses to requests with invalid fields list all of
them inerrors, each with a JSON Pointer or parameter name, a stablecode
and a message that doesn't quote the value, also for the registry's own checks
(URLs, schemes, environments, types, identifiers), with FOCA's problem type
andcodeinvalid-request. For those checks,detailnow names the
locations and messages of all invalid fields instead of describing the first
one. Clients that showdetailshould show the messages oferrorsat their
fields (#317, #378)
Features
- Import of service info:
POST /services/importfetches the service info of a
service from a public address, and returns the values for a registration, with
safeguards against server-side request forgery (custom.endpoints.services.service_info).
The Helm chart has an optional egress NetworkPolicy
(egressNetworkPolicy) (#358, #359, #362) - Sync of services with their service info:
PUT /services/{serviceId}/syncturns it
on, by default every 24 hours, without a task queue; while it is on, URLs can't
change.GET /syncsandGET /services/{serviceId}/syncshow the label (synced,
out-of-sync), with a reason from a fixed set. Verified and synced doesn't mean
trusted (#360, #363) - Sync:
?onlyIfEnabled=truesyncs a service only if sync is on for it, and browser
apps on other origins can readRetry-After(#365, #366, #367) - Notifications:
GET /notificationstells users what needs attention on the services
they have a role on, and admins also about pending approvals and what the
configuration no longer allows, computed from the stored data. Dismissing one with
DELETE /notifications/{notificationId}counts for all owners, or all admins (#361,
#364) - Invitations: an optional
labelsays what an invitation is for (e.g., who it
was sent to), returned to those who can list the invitations (#331, #334) - Invitations: those that weren't accepted are kept after they expire, so that
owners see who needs a nudge, for
custom.access_control.invitations.keep_expired_daysdays (default: 30, at most
365;0removes them when they expire, as before), and owners can remove them
earlier (#332, #335) - Admins can list the registry among its own services, or remove it
(/service-info/listing): the entry and its service type are built from the
service info and the public URL, it has no owner, doesn't count for service
limits, is verified, and is brought up to date when the app starts (#347, #349) - Access control: users called
groups, or whose identifiers start with
groups/, can be granted roles and accept invitations, and the namespaces of
issuers may start withgroups/(#336, #337)
Security
- Image: no pip, from FOCA 0.20, so scans no longer report the packages it
vendors, and.trivyignore.yamlhas no entries (#350, #351) - Logs: rejected request values are no longer logged at
INFO(FOCA 0.22),
andserviceInfoUrlis checked by the app only, so that FOCA doesn't return
or log rejected addresses (#368, #369; #381, #382) - Invitations: revoking a user's roles on a service also deletes the invitations
to it that the user created and nobody accepted, with the creator's identifier
and times, so that a removed user's links stop working. Accepted ones keep them
until they expire (#354, #355) - Privacy: kept invitations hold their labels, which may name people, and who
created them and when, for up to 37 days after they were created by default
(7 before): check the default against your privacy statement (#332, #335; #338,
#342) - Image: the build context excludes more files that can hold secrets (#329, #330)
Fixes
python -m cloud_registry.namespace_subjects --dry-runleaves the database as
it is: it no longer sets up the app, which changed indexes and configured rules
and could keep pods of an older version from restarting. It only counts what is
stored, and doesn't check the config as startup does (#339, #343)- Sync:
custom.endpoints.services.service_info.sync_interval_hoursmust be
from 1 to 8760 hours, or the app refuses to start: larger values failed every
worker at startup, and smaller ones fetched from services far more often than
needed (#389, #396)
Documentation
- Upgrade steps: they add up across versions; the matching version of the UI;
access control: what kept invitations store, and which identifiers can't accept
invitations (#338, #342) - API style: additions follow the style of the spec they extend, and additions to
spec objects are kept to a minimum and grouped (#352, #353) pyproject.toml: the comment on the FOCA requirement says that FOCA is
bumped by hand (#372, #373)- Configuration: how many type versions syncs can leave behind without counting
formax_unused_service_types; chart README: the new policy rules that
values files with list-form policies must add (#389, #396)
Maintenance
- FOCA 0.22.0, whose base image drops the zlib1g findings of the 0.21.0 one.
Validation errors keep the validator's reason asdetailand list the invalid
fields, where known, inerrors; logs name routes instead of paths and no
longer quote rejected values atINFO(see
Upgrading)
(#381, #382) - FOCA 0.21.0, pinned with its base image by digest (#368, #369)
- FOCA 0.20.0 and the library chart foca-common 0.4.0, with new values for the
app's probes; the image installs with uv, without pip in it. Images derived
from the app's image must use uv too (#350, #351) - The check of invalid tokens reads the c...
v1.0.0rc1
This first release candidate of 1.0.0 lets owners invite users to their
services by link and limits how many services each user may register. It is
a prerelease, for testing the release before 1.0.0. Deployments of 0.6.0 keep
their data, but the new limit applies right away, registrations and
updates with organization fields other than name and url are rejected,
and overlays that restrict owners or give the policies as a list must add or
remove the new rules of invitations: read the upgrade
steps
first. See the
documentation for
details.
Breaking changes
- Access control: users other than admins may register at most 50 services
each (custom.access_control.max_services_per_user;nullfor no limit);
further registrations return409 Conflictwith the code
services-limit. The app adds who registered the services stored before
(their only user owner) on startup and counts them (new collection
service_counts): check how many services your users registered, and
raise the limit in the same rollout if needed. Services that admins
registered before the upgrade count for the admin, unless reset as
described in the upgrade steps. Restart the app once after the rollout,
so that changes by 0.6.0 pods during the rollout are counted (#124, #286;
#290, #292) - Access control: the base config has three new policy rules,
owners-manage-invitations,owners-revoke-invitationsand
accept-invitations. Overlays that givepoliciesas a list must add
them, or the invitation endpoints return403 Forbidden. Overlays that
stopped owners from granting roles by removing or restricting
owners-change-permissionsmust also setowners-manage-invitationsand
owners-revoke-invitationstonull; the app warns on startup if owners
can create invitations, but no rule lets them grant roles to users (#101,
#274; #290, #292) - API: registrations and updates reject organization fields other than
nameandurl(400 Bad Request), so services can no longer store and
serve unbounded data: clients that send further fields must drop them.
Stored services with such fields are still served, and the app warns of
them on startup; the upgrade steps show how to clean them up (#311, #314)
Features
- Invitations: owners (and admins) invite users to their services by link,
for the roleownerormaintainer
(POST /services/{serviceId}/invitations), list and revoke them; the
invited user accepts with the token (POST /invitations/accept), which
grants the role to their own identifier. Invitations are single-use,
expire aftercustom.access_control.invitations.expiry_days(default: 7,
at most 3650), are limited per service (max_per_service, default: 20),
stored as token hashes only (new collectioninvitations), and those of
owners only grant their role while their creator is still an owner
(those of admins don't depend on the admin role) (#101, #274;
#290, #292) - Services per user: a limit on the services each user may register, served
in the service info's registration rules (#124, #286) - Helm chart:
cloudRegistry.replicassets the number of the app's pods,
and with more than one, a PodDisruptionBudget
(cloudRegistry.podDisruptionBudget) lets node drains evict one at a
time; the chart requires foca-common 0.3.0 (#307, #310)
Security
- Image: the app's dependencies are installed from
uv.lock, with hash
checks, and Dependabot updates the lock (ecosystemuvinstead ofpip)
(#125, #278) - Image: the build backend (
setuptools,setuptools-scm) is installed with
hash checks too, in a separate build stage (#282, #289) - Invitations: the email address of a user who accepted an invitation is
stored and shown only if the identity provider marks it as verified
(email_verified) (#290, #292) - Image: the build context excludes local
.env*files, also inside
cloud_registry/(#312, #315) - Release: the publish job checks the name and SHA-256 of the packaged
chart before it attests, signs and releases it, and attests and signs
exactly that file (#295, #296) - CI: the job that pushes the dev images installs
setuptools-scmfrom the
lock, with hash checks, instead of an unpinned version (#288, #305) - Image: the scans accept the advisories CVE-2026-97688, CVE-2026-59890
and GHSA-xmj3-9gf7-h52w of the urllib3 and setuptools copies that pip
vendors, until 2027-01-31: pip only runs at build time, the app uses the
installed urllib3 2.8.0, and the image installs no setuptools (#325,
#326)
Fixes
- The migration to namespaced subjects
(python -m cloud_registry.namespace_subjects) also namespaces the
creators and acceptors of invitations, so that open invitations of owners
stay valid (#290, #292) - Very large
custom.access_control.invitations.expiry_daysare refused on
startup, instead of failing every invitation with500(#290, #292) /service-inforeportsmax_unused_service_types: 0in the controlled
mode of service types (#313, #316)- The default
documentationUrlin/service-infopoints at the
documentation (https://cloud-registry.readthedocs.io/) instead of the
repository (#327, #328) - Helm chart: the default image is fully qualified
(docker.io/elixircloud/cloud-registry), like MongoDB's, so that
container runtimes that refuse short names (e.g., CRI-O, Podman) pull it;
adapt image allow-lists, admission policies and mirror rules that match
the short nameelixircloud/cloud-registry(#320, #321)
Documentation
- Upgrade steps from 0.6.0: invitations, the services limit, services that
admins registered, and restarting after the rollout; access control:
stopping owners from granting roles also by invitation, revoking the open
invitations of members who leave an owner group; operations: the log lines
of invitations and the services limit; API reference of the newer modules
(#290, #292) - API: only operations with path, query or header parameters reject extra
query parameters; upgrade steps: how to clean up stored services with
extra organization fields (#311, #314; #313, #316) - Configuration and access control: an example of entitlement-style groups
(#318, #319) - Chart README: the upgrade steps to 1.0.0rc1 (#320, #321)
- Upgrade steps from 0.6.0: the fully qualified default image of the Helm
chart; stored services: services whose organization lacksnameorurl
fail responses, also of the whole list, and how to find and fix them;
configuration: no identity provider named, andmax_unused_service_types: 0lets users other than admins add no types at all (#323, #324) - README: the new logo, with a variant for dark mode (#297, #298)
- API docs: "Cloud Components" instead of the deprecated "ELIXIR Cloud
Components" (#302, #304) - Contributing: links the organization's contributing guide instead of
repeating it, and no longer overrides it on GitHub (#301, #309)
Maintenance
- CI uses the organization's shared actions for image scans and the gate
job, pinned by commit to.githubv1.0.0 (#270, #271, #283; #285, #287) - CI: the lint, test, chart and docs jobs install the locked dependencies
(uv sync --locked), so that Dependabot's updates ofuv.lockare
tested (#291, #306) - CI: a
PR titlejob checks the titles of pull requests, under the
CI passedgate (#303, #308) - CI: the test of the chart check runs it with the options of GitHub's
default shell (#299, #300)
Commits
- feat: invite users to services by link by @uniqueg in #274
- build: install locked, hash-checked dependencies by @uniqueg in #278
- ci: use the shared scan-image and gate actions by @uniqueg in #283
- feat: limit services per user by @uniqueg in #286
- ci: pin the shared actions to v1.0.0 by @uniqueg in #287
- build: hash-check the build backend in the image by @uniqueg in #289
- fix: address rc1 pre-release review findings by @uniqueg in #292
- chore: prepare release 1.0.0rc1 by @uniqueg in #294
- ci: check chart artifact before signing by @uniqueg in #296
- docs: replace the README logo by @uniqueg in #298
- ci: fix chart check test shell and comment by @uniqueg in #300
- build(deps): bump the github-actions group across 1 directory with 2 updates by @dependabot[bot] in #284
- build(deps): bump the pre-commit group across 1 directory with 2 updates by @dependabot[bot] in #280
- docs: drop the deprecated ELIXIR Cloud name by @uniqueg in #304
- ci: install locked setuptools-scm in push job by @uniqueg in #305
- ci: run the checks on the locked dependencies by @uniqueg in #306
- docs: stop overriding the org contributing guide by @uniqueg in #309
- ci: check PR titles under the gate by @uniqueg in #308
- fix: reject extra fields in organizations by @uniqueg in #314
- fix: exclude .env files f...
v0.6.0
This release builds the registry on FOCA 0.18 and adds what deployments with
several identity providers and active admins need: admins act as admins
only in admin mode, several token issuers can be trusted (with user
identifiers namespaced by issuer), admins can change the identifier of a
service, and the service info publishes the deployment's rules for
registrations. Some of these changes are breaking (see below): every
deployment must set its public URL (server.public_url), the 0.6.0 chart
needs 0.6.0 images, and clients and UIs must ask for admin mode. Deployments
of 0.5.0 keep their data: read the upgrade
steps
first. See the
documentation for
details.
Breaking changes
- Config:
custom.endpoints.serviceis removed; every deployment must set
FOCA'sserver.public_urlto the absolute URL of the app as clients see
it (e.g.,https://registry.example.org/), or the app (each Gunicorn
worker) refuses to start.custom.access_control.require_adminmoves to
security.access_control.require_admin; the old keys are rejected. The
image loads FOCA's Gunicorn settings (foca.gunicorn_config; same
settings), and startup checks of groups, admins and the service info are
FOCA's, with FOCA's messages (#226, #261) - Helm chart: the chart sets
config.server.public_url(fromhostName,
or the new valuepublicUrl) and rejects the removed keys, so the 0.6.0
chart needs images built with FOCA 0.18 (0.6.0 or later); older images
refuse to start (#226, #261) - Access control: admins act as admins only in admin mode, i.e., in
requests with the headerX-Request-Roles: admin; otherwise they have the
permissions of other users.GET /mereportsadminonly in admin mode
and has the new fieldadmin_available. Configured rules that grant the
roleadminare refused on startup; grants ofadminstored via the
permissions API still apply without admin mode (FOCA warns of them on
startup): revoke them, and make users admins via admin groups instead.
Clients and scripts that need admin rights must send the header: deploy a
UI that sends it before upgrading (e.g., cloud-registry-ui with its admin
mode switch), or setsecurity.access_control.opt_in_roles: []until
then (#240, #263) - Access control: the policy rule
owners-change-permissionscovers
/services/:id/permissions/*(before:.../permissions/:user), so that
user identifiers may contain slashes; it also covers the roles of groups.
Overlays that removed onlyowners-change-group-permissionsto stop
owners from granting roles to groups must also change
owners-change-permissions; the app warns on startup of rules that still
let owners do so (#257, #264; #268, #275) - API: changes of a service (
PUT,DELETE, granting and revoking roles)
may return409 Conflictwith the codeservice-busywhile the service
is renamed (try again); see the new rename endpoint below (#243, #262)
Features
- Several token issuers: deployments can trust several identity providers;
with several, user identifiers are namespaced by issuer
(<namespace>|<sub>, also in roles andGET /me), and may contain
slashes. The chart accepts issuers with their own audience and group
claim. Deployments that add an issuer can keep the subjects of the issuer
trusted so far bare (namespace: "") or migrate them with
python -m cloud_registry.namespace_subjects(#257, #264) - Admin mode (
X-Request-Roles: admin), withadmin_availablein
GET /me, so that UIs can offer a switch (#240, #263) - Renames: admins can change the identifier of a service
(POST /services/{serviceId}/rename); the service keeps its roles, user
names, verification andcreatedAt. New identifiers that are taken return
409 Conflictwith the codeservice-id-taken. Renames lock both
identifiers (new collectionservice_locks, created on startup), and
interrupted renames are finished when the app starts or handles requests
of the registry's operations (#243, #262) - Service info:
registration_rulesinGET /service-infopublishes the
deployment's rules for registrations (allowed environments and URL
schemes, the mode of service types and the limit of unused types), so
that clients don't need to configure them (#256, #260)
Security
- API: user identifiers and groups with the segments
.or..(e.g.,
..,a/../b) are rejected in permission paths (400 Bad Request), as
clients resolve them in URLs (#252, #259) - Startup: the app warns if the rule of owners' roles of groups is changed
or removed, but other configured rules still let owners grant and revoke
roles of groups (#268, #275) - Image: the msgpack copy that pip vendors in the base image
(CVE-2026-114613) is accepted until 2027-01-31, as the app doesn't use it
and pip's latest release still vendors it (#272, #273)
Fixes
- The Swagger UI (the probe path of the chart and the image's health
check), the spec and/service-infono longer depend on MongoDB: only
requests of the registry's operations resume interrupted renames, and
database errors while checking for them are logged instead of failing
the request (#267, #269)
Documentation
- Upgrade steps from 0.5.0: the public URL, admins, Gunicorn, admin mode
(also during rolling updates and with web UIs), the owners' rules of
groups, and adding a token issuer (#226, #261; #240, #263; #257, #264;
#268, #275) - Access control: restricting owners to users' roles, also with namespaced
issuers;GET /meuser_idis namespaced by issuer; FOCA's permissions
API doesn't wait for renames (#268, #275) - Community files (code of conduct, contributing, security policy) come
from the organization's defaults; the developer guide stays in the docs
(#265, #266)
Commits
- feat: publish the registration rules by @uniqueg in #260
- fix: reject dot segments as principals by @uniqueg in #259
- feat: let admins change a service's ID by @uniqueg in #262
- refactor!: use FOCA 0.18 features by @uniqueg in #261
- feat: add admin mode by @uniqueg in #263
- feat: support several token issuers by @uniqueg in #264
- docs: use the org-wide community files by @uniqueg in #266
- ci: accept msgpack CVE vendored by pip by @uniqueg in #273
- fix: keep probes independent of the database by @uniqueg in #269
- fix: close the 0.6.0 review gaps by @uniqueg in #275
- chore: prepare release 0.6.0 by @uniqueg in #277
Full Changelog: v0.5.0...v0.6.0
v0.5.0
This release makes the registry's data more reliable for clients. Service
types are stored and can be curated (modes open, controlled and
moderated), the registry sets the timestamps of services, and the
environments of services come from a configurable allow-list. Some of these
changes are breaking (see below). Deployments of 0.4.0 keep their data:
read the upgrade
steps
first, including the check of the stored environments before the upgrade and
the restart after the rollout. See the
documentation for details.
Breaking changes
- API: the registry sets the timestamps of services (
createdAtwhen a
service is registered,updatedAton every registration and update), as
RFC 3339 date-times in UTC, in milliseconds. Timestamps that users other
than admins send are ignored (not an error), so they now describe the
registry's entry, not the deployment of the service as in the GA4GH
specification. Admins can still set them, e.g., to import services, but
only as RFC 3339 date-times (400otherwise). Services stored before keep
their timestamps until they are updated (#236, #237) - API:
GET /services/typeslists the stored service types, also types that
no service has (yet), instead of the types of the registered services.
Types stay registered when the services that had them change or are
deleted, until admins remove them. On startup, the app stores the types of
the registered services (#235, #241) - API: the environment of services (
environment) must be one of the
values that the deployment allows (custom.endpoints.services.environments,
by defaultprod,test,devandstaging, the values that the GA4GH
specification suggests; an empty list allows any value). Registrations with
other values return400, naming the allowed values. Stored services with
other values are still served, but can only be updated with an allowed
value (or withoutenvironment); the app warns of them on startup (#239,
#242) - Configuration: overlays that give the policies
(security.access_control.policies) as a list must add the new rules
add-service-types(POST /services/types) andlist-approvals(GET /approvals), or users can't add service types or list pending approvals
(#235, #241; #238, #244)
Features
- Service types:
POST /services/typesregisters a type, and admins remove
types that no service has (DELETE /services/types,409 Conflictfor
types in use). Registering or updating a service with a new type registers
the type, too (#235, #241) - Service types:
custom.access_control.service_typessets who may add
types:open(the default) lets any authenticated user add them,
controlledonly admins (other users can only register services with
stored types), andmoderatedany authenticated user, but the types of
users other than admins, and the services that have them, are pending until
an admin approves them (PUT /services/types/approval). Pending types are
only shown to admins and to the users who added them, pending services only
to admins and to the users who have a role on them;GET /approvalslists
those a user may see.GET /metells
clients whether the current user may add types (may_add_service_types)
and whether their new types are pending (service_types_pending) (#235,
#241; #238, #244) - Service types: users other than admins may add at most
custom.access_control.max_unused_service_typestypes that no service has
(default10,nullfor no limit,0for admins only), in every mode;
further types are rejected (409 Conflict). Pending services carry an
internal, indexed flag, so that reads don't grow with the number of pending
types; the app creates the new indexes and reconciles the flags on startup.
Rate-limitPOST /services/typesandPOST /servicesat the ingress, as
the limit is per user (#246, #254) - Access control: the public reads (
GET /services,GET /services/{serviceId},GET /services/types,GET /services/{serviceId}/verificationandGET /verifications) accept an
optional bearer token and then apply that user's visibility rules, e.g.,
show the user's pending types and services. Invalid or expired tokens are
rejected (401 Unauthorized, with aninvalid_tokenchallenge), so that
clients log in again; if the identity provider is unavailable, the request
is treated as anonymous (logged at levelINFO). Pending services can't be
verified (409 Conflict), and services that become pending lose their
verification, also when onlytype.versionchanges (#245, #255) - API: conflicts (
409 Conflict) have a code (code) that tells them
apart. Unlikedetail, which is unchanged, codes are stable, so clients
can branch on them:duplicate-service,pending-service,
unused-types-limit,service-type-registered,service-type-in-use,
verification-mismatch,last-owner, andconflictfor other conflicts.
The API specification lists them as an extensible enum (schema
ConflictError,x-extensible-enum); further codes may be added, so
treat unknown ones likeconflict(#247, #258)
Fixes
- Release workflow: releases are published only after their assets are
uploaded, as immutable releases can't get assets afterwards (#216, #219) - Release workflow: the generated notes of a first release list all merged
pull requests, even if older tags without a release exist (#221, #225) - Startup: without admin groups, the warning also names what nobody can do in
the mode of service types (#248, #251)
Documentation
- Upgrade steps from 0.4.0, and the deviations from the GA4GH specification
on the API page (#248, #251) - Deployment: don't deploy moving image tags (
latest,dev) in production,
and check the kernel of the nodes before running MongoDB 8.0 (#222, #223) - The release version comes from one source (
CITATION.cff), so that the
docs and the chart's README show the current release (#220, #224) - The Zenodo DOI, and badges in the README (#177, #231; #229, #230, #232)
Maintenance
- Workflows and jobs follow the names of all FOCA apps (
ci.yml,
release.yml,scan.yml), with a single required check,CI passed.
Releases are signed byrelease.ymlnow: see "Verifying images and
charts" on the Operations page of the documentation (#233, #234) - Curated release notes are required for every release, and Sourcery skips
the inputs of rule tests (#248, #251; #227, #228)
Commits
- fix: publish releases after uploading assets by @uniqueg in #219
- docs: warn of moving tags, check node kernels by @uniqueg in #223
- docs: take the version from one source by @uniqueg in #224
- ci: start notes at the first release by @uniqueg in #225
- ci: let Sourcery skip rule-test fixtures by @uniqueg in #228
- docs: fix the docs badge URL by @uniqueg in #230
- docs: add the Zenodo DOI and badge by @uniqueg in #231
- docs: use Shields.io for the docs badge by @uniqueg in #232
- ci: align workflow and job names by @uniqueg in #234
- feat: manage service timestamps by @uniqueg in #237
- feat: register and control service types by @uniqueg in #241
- feat!: configure service environments by @uniqueg in #242
- feat: approve service types in moderated mode by @uniqueg in #244
- docs: close the 0.5.0 review gaps by @uniqueg in #251
- fix: bound pending and unused service types by @uniqueg in #254
- feat: use tokens sent with public reads by @uniqueg in #255
- feat: tell conflicts apart by code by @uniqueg in #258
- chore: prepare release 0.5.0 by @uniqueg in #253
Full Changelog: v0.4.0...v0.5.0
v0.4.0
The first release, with the app image, the Helm chart and
these notes published together. It changes almost everything since the last
deployed version (Helm chart 2, FOCA 0.12, images tagged by date) and the
legacy charts (2.x and 3.0.0): the registry now requires FOCA 0.17.0 (or a
later 0.17 release) and Python 3.13 or later, and has owner-based access
control, unique services, verifications by admins and a hardened chart and
image. Many of the changes are breaking: redeploy with a fresh install and an
empty database, and read the upgrade
steps
first. See the documentation for
details.
Breaking changes
- API: writes need an access token of a trusted issuer
(security.auth.issuers) for one of the configured audiences, and a
role: any authenticated user can register services (POST /services) and
becomes their owner; owners can update and delete their services and grant
the rolesownerandmaintainer(updates only); admins can do
everything. Only admins can register services with chosen identifiers
(PUTof a new identifier) (#62, #106; #166, #183) - API: bearer tokens must be access tokens as per RFC 9068 (
typheader
at+jwt); other tokens, such as ID tokens, are rejected (401) (#156,
#165) - API:
POST /service-infois removed (405); the service info comes from
the config only (service_info.service, served by FOCA), and service info
stored in the database is no longer served.GET /service-infois
unchanged, and its requests are logged as before (#100, #107) - API: services are unique by URL (normalized) and API type (
type.group,
type.artifact): registering one again, or changing a service to the URL
and API type of another one, returns409 Conflictnaming the registered
service (serviceId), to users who may read it (#102, #108; #203, #208) - API: URLs must be HTTP(S) URLs with a valid host, without user info,
whitespace, control or format characters, characters that URLs only allow
percent-encoded (e.g.,<,|) or malformed percent-encodings
(contactUrlcan also be amailto:URL); timestamps (createdAt,
updatedAt) must be RFC 3339 date-times; strings are limited in length;
others return400(#115, #118; #114, #119; #157, #169) - API: service URLs (
url) must behttpsURLs by default, as clients send
access tokens to the registered services;httpURLs return400unless
allowed (custom.endpoints.services.url_schemes, see the configuration
changes below). Links keep accepting HTTP(S) URLs (contactUrlalso
mailto:) (#147, #152) - API: registering a service (
POST /services,PUTof a new identifier)
returns201 Createdwith aLocationheader instead of200(#78,
#110) - API: the identifiers
.,..andtypesare rejected (400) (#117,
#121) - API: request bodies are limited to 1 MiB by default (
413 Content Too Large), also chunked ones, before the access token is checked; requests
with an invalidContent-Lengthare rejected (400) (#114, #119) - API: errors handled by the app are problem details, sent as
application/json, as the GA4GH specification declares (including those
of authentication, access control and unknown paths);400responses say
why the request was rejected. Error responses keep the headers of the HTTP
errors, e.g.,Allow(405) andWWW-Authenticate: Bearer(401, with
error="invalid_token"for invalid tokens). Gunicorn rejects malformed
requests itself (e.g., with an invalidContent-Length, or a request line
or headers over its limits), with HTML error pages (#75, #96; #116, #120;
#127) - Configuration: custom configs must apply the config changes of FOCA 0.14,
0.15, 0.16 and 0.17 (e.g.,exceptions.mapping; see the FOCA release
notes and migration guides). Those of FOCA 0.17: the API specifications
(api.specs) and the policies (security.access_control.policies) can be
named entries, which overlays add, change or remove (null) by name; FOCA
refuses to start if an overlay gives named entries for a section that
earlier files set to a non-empty list (see below). Specifications can be
patched (api.specs.<name>.patches, e.g., to require login for reads, see
"Features"). Configured policies are replaced atomically on startup, and
configured rules stored before are removed if
security.access_control.policiesisn't set; deployments that share a
policy collection must all configure the same rules. Rules added via the
permissions API with the values of a configured rule stay deletable via
the API, and stay stored when the rule is removed from the config.
Deployments ofdevimages built with FOCA 0.16: upgrade all instances
before changing configured rules, and don't start the older images again
afterwards (#92; #127; #156, #165; #178, #184) - Configuration: the service info is configured in FOCA's section
service_info.service(its version comes fromservice_info.package);
configs setting it incustom.endpoints.service_infoare rejected (#127) - Configuration: the size limit of request bodies is FOCA's
server.max_content_length(Helm chart:
config.server.max_content_length; the chart sets no limit for ingress
controllers, see "Helm chart" below); configs setting
custom.max_content_length, as for images built fromdevbefore the
FOCA 0.15 upgrade, are rejected (#114, #119; #127) - Configuration: the identity provider is deployment configuration, without
defaults: the base config trusts no token issuers, reads no claims from
the user info and sets no group claim. Deployments must set the issuers,
the group claim, the audience and the admin group mapping (see step 4 of
the upgrade steps on the Upgrading page, and "Deployment configuration" on
the Configuration page of the documentation); otherwise, the app refuses to
start, and the chart fails to render (#166, #183) - Configuration: the app refuses to start if the service info is invalid;
itsidis required, and the default config no longer sets a version (the
app's version is served) or timestamps (#30, #91; #75, #96) - Configuration: the default service info describes the app, not a
deployment, with placeholders using reserved example domains (RFC 2606):
idisorg.example.cloud-registry(was
ELIXIR_CLOUD_SERVICE_REGISTRY_1),organizationisExample Organizationathttps://example.org, there is nocontactUrl,nameis
Cloud Registry(wasELIXIR_CLOUD), with a newdescription.
Deployments set their own (service_info.service); the app logs a warning
on startup whileidororganizationare the placeholders (#148, #160) - Configuration:
custom.endpoints.service.api_pathis now a path prefix in
front of the API base path (e.g., of a reverse proxy), not the API base
path itself (#75, #96) - Configuration:
custom.endpoints.services.meta_versionis removed;
configs that set it are rejected (#74, #95) - Configuration: the API specification (
api.specs) and the policies
(security.access_control.policies) are named entries (FOCA 0.17), so
that overlays change single entries by name: the specification is named
registry, the rules are named as in the base config. Overlays that give
them as lists replace them completely, as before; FOCA refuses to start if
a later overlay gives named entries (#178, #184) - Configuration:
custom.endpoints.services.url_schemeslists the schemes
allowed in service URLs:[https]by default; Docker Compose
(config.dev.yaml) allowshttptoo. On startup, the app warns of stored
services with other schemes; they are still served, but can only be
updated with an allowed scheme (see "Stored services" on the Upgrading
page of the documentation) (#147, #152) - Helm chart: the chart version follows the app version (0.4.0, after 4.0.0
in the repository); the chart attached to a release deploys the image of
that release (cloudRegistry.tagdefaults to the chart'sappVersion)
(#81, #112) - Helm chart: values keys are camelCase, following Helm's conventions:
host_nameis renamed tohostNameandcloud_registryto
cloudRegistry; rendering fails while the old keys are set (#128) - Helm chart: resource names are derived from the release name, and the pod
selectors changed, so releases of the legacy charts must be uninstalled
(see the upgrade steps).appNameof the legacy charts is removed (use
fullnameOverride) (#82, #109) - Helm chart: the chart no longer creates the
app-configConfigMap, the
config Job, its ServiceAccount and RoleBinding, and theapiServervalue
is gone: the app config is set viaconfig, rendered into a config
overlay.hostNameis required (#67, #98) - Helm chart: MongoDB is pinned to
mongo:7.0(instead ofmongo:noble)
and requires authentication (mongodb.auth.existingSecret), with probes
(#68, #99) - Helm chart: both pods run with restrictive security contexts (non-root,
read-only root file system, no capabilities) and without service account
tokens (#82, #109; #117, #121) - Helm chart: a NetworkPolicy lets only the app's pods of the release
connect to MongoDB (mongodb.networkPolicy.enabled, defaulttrue), if
the cluster enforces NetworkPolicies; other pods that connected to MongoDB
directly (e.g., backup jobs) need a NetworkPolicy of their own, or the
policy disabled (#128) - Helm chart: rendering fails without an audience, an admin group mapping
(unless admins are optional),hostNameor the MongoDB Secret (unless
authentication is disabled) (#68, #99; #166, #183) - Helm chart: the chart needs images built with FOCA 0.17 (0.4.0 or later)
for named entries and spec patches inconfig(e.g., the login-for-reads
patch,config.api.specs.registry.patches); see "Configuration" in
`deploymen...