Skip to content

The balancer name from the annotation is not validated #61

Closed as not planned

Description

@lexfrei

A name from the robotlb/balancer annotation goes to Hetzner as is, so a name Hetzner does not accept makes every reconcile of that Service fail.

Hetzner allows 1 to 128 characters matching ^\S(.*\S)?$. An empty name, a name with a trailing space or a very long one is rejected on create, and the rejection repeats on every retry. An empty value also goes into the list call as name=. I have not checked whether Hetzner reads that as an empty filter or as no filter.

I'd like robotlb to check the annotation against these rules before any API call, and put a warning event on the Service when it does not fit.

Activity

  1. lexfrei commented on Oct 6, 2026

    @lexfrei
    CollaboratorAuthor

    Closing. Hetzner rejects a name it doesn't accept with a 422 that says what is wrong, and robotlb puts that error into the warning event on the Service. Since #55 the retries back off. A copy of Hetzner's name rule in robotlb would need an update every time Hetzner changes it. Discussion in #67.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions