Skip to content

feat: check the environment of the service info #346

Closed

Description

@uniqueg

The registry's service info sets its own environment (service_info.service.environment), and custom.endpoints.services.environments lists the values allowed for services. Nothing checks that the two agree, so a registry can describe itself with a value it would refuse for any service.

To do

  • Refuse to start if the service info's environment isn't in custom.endpoints.services.environments, with an error naming both settings.
  • An empty list allows any value, as it does for services, so the check doesn't apply then. The same goes for a service info without environment.
  • Decide what happens with the defaults (dev, which the default list allows) and say so in the docs and the upgrade notes, as deployments with a mismatch no longer start.

Activity

  1. added
    priority: medium
    status: triage
    type: feature
    workload: hours
    on Nov 3, 2026
  2. added this to the v1.0.0-rc2 milestone on Nov 3, 2026
  3. added
    status: in progress
    and removed
    status: triage
    on Nov 3, 2026
  4. removed
    status: in progress
    on Nov 3, 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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions