Repository navigation
Closed
Labels
priority: mediumMedium prioritytype: featureNew feature or requestworkload: daysLikely takes days to resolve
Milestone
Description
Why?
The registry enforces rules for registrations that only its configuration knows. Clients can't read them, so UIs and the ELIXIR Cloud Components repeat them in their own settings, and forms accept input that the API then rejects with 400 or 409. The config even says so: "Clients (e.g., UIs) should offer the same values".
The rules:
- Environments (
custom.endpoints.services.environments, feat: configure service environments #239): the values allowed forenvironment; an empty list allows any value. - URL schemes (
custom.endpoints.services.url_schemes, feat: allow only https service URLs by default #152): the schemes allowed for service URLs (httpsonly by default, because clients send access tokens there). - Type mode (
custom.access_control.service_types, feat: register and control service types #235, feat: approve new service types #238):open,controlledormoderated, i.e. who may add service types and whether new ones need approval. - Type limit (
custom.access_control.max_unused_service_types, fix: bound pending and unused service types #246): how many unused service types a user may have.
What?
- Publish these rules in one public, read-only place, e.g. a
GET /service-infoextension field or a small endpoint next toGET /services/types. Follow the GA4GH conventions for extensions, and document the choice. - No token needed; the values are not secret.
- Docs: configuration and API pages; tell client authors to read the rules instead of configuring them.
Acceptance criteria
- Clients can read the allowed environments, URL schemes, type mode and type limit from the API.
- The values always match the configuration in effect.
- Tests cover the defaults and changed settings.
Related: elixir-cloud-aai/cloud-components#453, elixir-cloud-aai/cloud-components#461 (forms that validate like the API).
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritytype: featureNew feature or requestworkload: daysLikely takes days to resolve
Activity
feat: publish the registration rules (#260)