Skip to content

feat: import service info safely #359

Closed

Description

@uniqueg

The registry makes no outgoing calls so far. Add a tested fetch helper free of registry logic, so that FOCA can take it later, and POST /services/import.

  • Helper: allowed schemes only, public addresses only, checked after DNS resolution and pinned for the connection, no redirects, size and time limits, never a token.
  • Import: login and a rate limit per user; the address must end in /service-info, and url is set by cutting that off; the result goes through the same validation as a manual entry; every failed fetch gets the same outward error.
  • Config: permitted private ranges (none by default), fetches per hour.
  • Chart: optional egress NetworkPolicy as a second layer.
  • Docs: API (including the rejected-fetching reasoning), configuration reference, upgrade notes, chart README. They stress that services should make their service info public.
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: hightype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions