Skip to content

feat: add URL normalization and scheme checks #342

Closed

Description

@uniqueg

Why?

cloud-registry normalizes and checks URLs in stored records (lowercased scheme and host, default ports removed, paths normalized, allowed schemes per field, https-only option in elixir-cloud-aai/cloud-registry#147). proTES (TES endpoints), TRS-Filer and DRS-Filer (access URLs) need the same checks. Part of FOCA 0.16.0, so cloud-registry v0.3.0 uses it (cloud-registry#157).

How?

  1. Move the generic URL helpers from cloud_registry/ga4gh/registry/service.py (normalization, allowed schemes per field) into a FOCA utility.
  2. Apps configure the allowed schemes for their own fields; FOCA doesn't know which fields hold URLs.
  3. Switch cloud-registry to the FOCA utility afterwards (separate issue there).

Acceptance criteria

  • FOCA offers a tested URL normalization and scheme-check helper with per-field configuration.
  • Documented; cloud-registry and proTES can use it.

Activity

  1. added
    priority: medium
    status: on hold
    type: feature
    workload: hours
    on Oct 21, 2026
  2. added
    status: blocked
    status: in progress
    and removed
    status: on hold
    status: blocked
    on Oct 21, 2026
  3. uniqueg commented on Oct 21, 2026

    @uniqueg
    MemberAuthor

    Done in #366.

  4. removed
    status: in progress
    on Oct 21, 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: mediumtype: featureworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions