Skip to content

Blueprint apply: UNIQUE constraint failed: certificates.domain #2937

@xMikux

Description

@xMikux

Describe the Bug

Applying a blueprint via Newt fails when the new resource falls under an existing wildcard certificate.

blueprint yaml

public-resources:
  resource-nice-id-uno:
    name: this is my resource
    protocol: http
    full-domain: never-gonna-give-you-up.web.domain.com
    targets:
      - site: lively-yosemite-toad
        hostname: localhost
        method: http
        port: 8000

and pop out error:

Blueprint applied with errors: SqliteError: UNIQUE constraint failed: certificates.domain

Environment

  • OS Type & Version: Ubuntu 24.04
  • Pangolin Version: v1.18.1
  • Gerbil Version: 1.3.1
  • Traefik Version: v3.6
  • Newt Version: v1.12.3

To Reproduce

  1. Set up a wildcard domain (e.g. *.web.domain.com) — not using Traefik auto-generated per-domain cert.
  2. In the dashboard, open Blueprints and add a blueprint with a resource whose full-domain falls under that wildcard, e.g.:
    public-resources:
      resource-nice-id-uno:
        name: this is my resource
        protocol: http
        full-domain: never-gonna-give-you-up.web.domain.com
        targets:
          - site: lively-yosemite-toad
            hostname: localhost
            method: http
            port: 8000
  3. Apply -> fails with SqliteError: UNIQUE constraint failed: certificates.domain.

Expected Behavior

Should be applied normally.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions