Customer branding (#155), steps 1–6: the registry reads the home page of the workspace's company domain and stores its CI colour and logo. - Domain: the admin's address, else the most frequent member domain (tie: alphabetical); free mail never counts; no domain, no branding. - Fetch (internal/branding): own transport (no proxy, no trace headers, no cookies), https on 443 only, public IPs only, checked on every dial after DNS, ≤ 5 redirects within the registrable domain, 10 s per request, HTML ≤ 2 MB, images ≤ 1 MB, User-Agent BreakpilotBranding/1.0. - Colour: theme-color without media, the manifest's theme_color, else the logo's dominant colour; white, black and grey are skipped. - Logo: manifest PNG ≥ 128 px, apple-touch-icon, PNG/ICO/JPEG icon, /favicon.ico; stored as a 256×256 PNG, never SVG. - POST /v1/tenants/{id}/branding/derive ("Neu ermitteln"): synchronous, replaces a manual choice and counts as acknowledged. - Background: tenant creation and trial requests queue the workspace; RunBranding derives queued ones every minute, retries network failures twice, 6 h apart. Audit branding.derived / branding.failed. - Switches: BRANDING_DERIVE=on (off by default), BRANDING_BACKFILL=on queues every customer workspace without branding once at start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
101 lines
4.5 KiB
AMPL
101 lines
4.5 KiB
AMPL
module git.breakpilot.com/platform/tenant-registry
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/coreos/go-oidc/v3 v3.20.0
|
|
github.com/getkin/kin-openapi v0.149.0
|
|
github.com/go-jose/go-jose/v4 v4.1.6
|
|
github.com/golang-migrate/migrate/v4 v4.19.1
|
|
github.com/google/uuid v1.6.0
|
|
github.com/jackc/pgerrcode v0.0.0-20250907135507-afb5586c32a6
|
|
github.com/jackc/pgx/v5 v5.9.2
|
|
github.com/minio/minio-go/v7 v7.0.95
|
|
github.com/testcontainers/testcontainers-go/modules/postgres v0.42.0
|
|
go.opentelemetry.io/otel v1.47.0
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0
|
|
go.opentelemetry.io/otel/sdk v1.47.0
|
|
go.opentelemetry.io/otel/trace v1.47.0
|
|
golang.org/x/crypto v0.58.0
|
|
golang.org/x/image v0.48.0
|
|
golang.org/x/net v0.62.0
|
|
)
|
|
|
|
require (
|
|
dario.cat/mergo v1.0.2 // indirect
|
|
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
|
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
|
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
|
|
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/containerd/errdefs v1.0.0 // indirect
|
|
github.com/containerd/errdefs/pkg v0.3.0 // indirect
|
|
github.com/containerd/log v0.1.0 // indirect
|
|
github.com/containerd/platforms v0.2.1 // indirect
|
|
github.com/cpuguy83/dockercfg v0.3.2 // indirect
|
|
github.com/distribution/reference v0.6.0 // indirect
|
|
github.com/docker/go-connections v0.6.0 // indirect
|
|
github.com/docker/go-units v0.5.0 // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/ebitengine/purego v0.10.0 // indirect
|
|
github.com/felixge/httpsnoop v1.1.0 // indirect
|
|
github.com/go-ini/ini v1.67.0 // indirect
|
|
github.com/go-logr/logr v1.4.4 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-ole/go-ole v1.2.6 // indirect
|
|
github.com/go-openapi/jsonpointer v1.0.0 // indirect
|
|
github.com/goccy/go-json v0.10.5 // indirect
|
|
github.com/gorilla/mux v1.8.0 // indirect
|
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
|
github.com/klauspost/compress v1.18.7 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.2.11 // indirect
|
|
github.com/lib/pq v1.10.9 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
|
github.com/magiconair/properties v1.8.10 // indirect
|
|
github.com/minio/crc64nvme v1.0.2 // indirect
|
|
github.com/minio/md5-simd v1.1.2 // indirect
|
|
github.com/moby/docker-image-spec v1.3.1 // indirect
|
|
github.com/moby/go-archive v0.3.0 // indirect
|
|
github.com/moby/moby/api v1.54.1 // indirect
|
|
github.com/moby/moby/client v0.4.0 // indirect
|
|
github.com/moby/patternmatcher v0.6.1 // indirect
|
|
github.com/moby/sys/sequential v0.7.0 // indirect
|
|
github.com/moby/sys/user v0.4.1 // indirect
|
|
github.com/moby/sys/userns v0.1.0 // indirect
|
|
github.com/moby/term v0.5.2 // indirect
|
|
github.com/oasdiff/yaml v0.1.1 // indirect
|
|
github.com/oasdiff/yaml3 v0.0.14 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/image-spec v1.1.1 // indirect
|
|
github.com/philhofer/fwd v1.2.0 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
|
|
github.com/rs/xid v1.6.0 // indirect
|
|
github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 // indirect
|
|
github.com/shirou/gopsutil/v4 v4.26.3 // indirect
|
|
github.com/sirupsen/logrus v1.9.4 // indirect
|
|
github.com/stretchr/testify v1.12.1 // indirect
|
|
github.com/testcontainers/testcontainers-go v0.42.0 // indirect
|
|
github.com/tinylib/msgp v1.3.0 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.16 // indirect
|
|
github.com/tklauser/numcpus v0.11.0 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 // indirect
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 // indirect
|
|
go.opentelemetry.io/otel/log v1.47.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.47.0 // indirect
|
|
go.opentelemetry.io/proto/otlp v1.11.0 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
|
golang.org/x/oauth2 v0.36.0 // indirect
|
|
golang.org/x/sync v0.25.0 // indirect
|
|
golang.org/x/sys v0.50.0 // indirect
|
|
golang.org/x/text v0.44.0 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20260928230214-8a89bd6388cc // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc // indirect
|
|
google.golang.org/grpc v1.83.2 // indirect
|
|
google.golang.org/protobuf v1.36.12 // indirect
|
|
)
|