Skip to content

feat: let registry reads trust other CAs #793

Closed

Description

@uniqueg

Problem

#790 adds ca_bundle to foca.utils.http.GuardedClient, but fetch_json() and the service registry reads of backend lists (foca/plugins/backends/registry.py) still verify registries with the public certificate authorities only. A registry behind a private CA (e.g., an internal Cloud Registry) can't be read.

Adding ca_bundle to fetch_json() alone breaks mypy in registry.py, which passes its options as **dict[str, bool]; so both change together (this is why #790 left them out).

What to do

  • fetch_json(..., ca_bundle: str | os.PathLike[str] | None = None), passed to GuardedClient.
  • A registry entry option (e.g., registry_ca_bundle, next to registry_allow_private_addresses), passed to fetch_json(); the options dict in registry.py typed accordingly (or passed explicitly).
  • Tests (TLS registry with its own CA), docs (docs/plugins.md backend lists, docs/utilities.md).

Done when

  • A registry with a certificate of a private CA can be read with its CA bundle configured; verification can't be turned off.

Activity

  1. added
    priority: low
    status: blocked
    type: feature
    workload: hours
    on Nov 18, 2026
  2. added
    status: triage
    and removed
    status: blocked
    status: triage
    on Nov 18, 2026
  3. self-assigned this
    on Nov 18, 2026
  4. added
    status: in progress
    on Nov 18, 2026
  5. moved this from Backlog to In progress in ELIXIR On-Cloud: Low Priorityon Nov 18, 2026
  6. moved this from In progress to In review in ELIXIR On-Cloud: Low Priorityon Nov 19, 2026
  7. removed
    status: in progress
    on Nov 19, 2026
  8. added this to the v0.23.0 milestone on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: lowtype: featureworkload: hours

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions