Commit Graph
16 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 fb86a78324 feat(branding): derive colour and logo from the signup domain
ci / shared (pull_request) Successful in 30s
ci / test (pull_request) Successful in 8m49s
ci / image (pull_request) Skipped
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>
2026-12-01 13:15:31 +01:00
Sharang ParnerkarandClaude Opus 5.5 c8dd3ba4dc feat(avvfill): Unicode glyphs (Identity-H) instead of Windows-1252
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 9m6s
ci / image (pull_request) Skipped
With WinAnsi encoding, names like "Michał", "Yılmaz" or "Łódź" fell back to "staff fill it in", a path nobody watches yet. The value is now set as glyph ids of the embedded Geist Regular (Type0 / CIDFontType2, Identity-H) with a ToUnicode map, so any character the font has works and the text still extracts as written. Only control characters and characters without a glyph (e.g. CJK) are refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:23:57 +01:00
Sharang ParnerkarandClaude Opus 5.5 05673defd4 feat(contracts): fill the AVV from the company profile
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 8m26s
ci / image (pull_request) Skipped
A workspace whose company profile is submitted and whose Geschäftsleitung is named (Verantwortliche) now sees its AVV filled in: name with legal form, address, "Vertreten durch" and, as the owner decided, "Geschäftsleitung" on the Weisung line. The new package internal/legal/avvfill writes the details onto the released master as one incremental PDF update: the two content streams holding the blank lines are replaced, the underscores dropped and the value set in their place in Geist Regular at body size, inside the line's marked content. The master's bytes stay an untouched prefix, so its pin still holds; the result is deterministic and cached by master and details digest. Layouts are pinned per master SHA-256; a test makes every released AVV master have one.

Until then the master is listed with "missing" (profile, company_name, address, management) for the portal's hint; details that do not fit the form or the Windows-1252 character set give "manual" and a log line without the values. A staff upload still wins (filled_from: staff). The admin avv-values answer uses the same derivation; its Weisung is now "Geschäftsleitung" only. The legal form is no longer appended twice when the name writes it without spaces ("UG(haftungsbeschränkt)").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:10:45 +01:00
sharang f778cbb1a8 feat(erpsetup): quotes name the Leistungsbeschreibung versions (#117)
ci / shared (push) Successful in 13s
ci / test (push) Successful in 26m31s
ci / image (push) Successful in 40s
2026-11-09 10:25:59 +00:00
Sharang ParnerkarandClaude Opus 5.5 2f3749d1c0 fix(deps): otel 1.47.0 and grpc 1.83.2 for trivy
ci / test (pull_request) Failing after 15m21s
ci / image (pull_request) Skipped
ci / shared (pull_request) Successful in 12s
trivy on the PR: otel/sdk v1.41.0 CVE-2026-39883 (fixed 1.43.0); grpc
v1.79.1 CVE-2026-33186 (critical), CVE-2026-84304, CVE-2026-84445 and
GHSA-hrxh-6v49-42gf (fixed by 1.83.2). jsonpointer 1.0.0 comes with the
otel bump; kin-openapi (contract test only) passes with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
2026-10-28 22:25:49 +01:00
Sharang ParnerkarandClaude Opus 5.5 65ad1b52f6 feat(telemetry): traces to SigNoz for requests, outbound calls and SQL
ci / shared (pull_request) Failing after 12s
ci / test (pull_request) Failing after 15m24s
ci / image (pull_request) Skipped
internal/telemetry: OTLP/HTTP tracer provider from the OTEL_* env
(already set on stage and prod; unset = off), W3C propagation, one server
span per request named after the ServeMux pattern, client spans on the
default transport (Keycloak, ERP, LiteLLM, OIDC) and a pgx QueryTracer.
Client and DB spans only inside a request, so the background loops add
no traces. No raw paths, query strings, bodies, SQL parameters or client
addresses in spans; outbound spans carry the host only.

slog lines logged with a request context get trace_id/span_id; the
access log names the route instead of the raw path (slugs are names).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
2026-10-28 22:24:34 +01:00
Sharang ParnerkarandClaude Opus 5.5 39eaa30e17 fix(deps): bump go-jose to v4.1.6 (CVE-2026-116587)
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 24m47s
ci / image (pull_request) Skipped
trivy fails the shared job on every PR and push to main: go-jose v4.1.4
has a DoS when parsing JWKs that contain RSA keys (fixed in 4.1.6). Used
by the licence signer and the authn JWKS path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
2026-10-28 09:13:40 +01:00
Sharang ParnerkarandClaude Opus 5.5 3551d2355b build(deps): kin-openapi 0.149.0 (CVE-2026-100349, -100351..-100354)
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 25m49s
ci / image (pull_request) Skipped
Trivy fails the shared job on five HIGH advisories in kin-openapi
0.144.0; all are fixed by 0.149.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 10:11:53 +02:00
sharang 89487bbf50 fix(server): keep idle connections longer than orca-proxy's pool (502s on prod) (#65)
ci / shared (push) Successful in 17s
ci / test (push) Successful in 24m22s
ci / image (push) Failing after 14s
2026-10-12 07:21:11 +00:00
sharangandClaude Opus 5.5 8d3cda4bb0 feat(documents): tenant documents with staff upload and signed downloads (#34)
ci / test (push) Successful in 23m15s
ci / shared (push) Successful in 12s
ci / image (push) Successful in 31s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-09-23 20:31:55 +00:00
sharang 6b82c14573 chore: module path gitea.meghsakha.com → git.breakpilot.com (#22)
ci / shared (push) Successful in 13s
ci / test (push) Failing after 16m16s
ci / image (push) Skipped
2026-09-11 14:06:43 +00:00
sharang 739b19341c fix(deps): clear the HIGH/CRITICAL CVEs failing the trivy CI gate (#15)
ci / shared (push) Successful in 13s
ci / test (push) Successful in 21m13s
ci / image (push) Canceled after 0s
2026-08-25 08:49:01 +00:00
sharangandSharang Parnerkar ce75ed04c2 RBAC Phase 1: membership authority endpoint + fail-closed API auth (#14)
ci / shared (push) Failing after 14s
ci / test (push) Successful in 21m13s
ci / image (push) Skipped
Implements the model-B2 membership authority (ratified compliance auth design) and inbound token verification.

- GET /v1/users/{id}/memberships: Keycloak supplies user->tenant links + org_roles (attribute projection until the realm migrates to Organizations); registered tenants override status/plan/products from registry tables (source: registry|keycloak). Closes the M5.2-deferred org_roles stub.
- New internal/authn: OIDC discovery + JWKS verification (go-oidc/v3), audience tenant-registry. /healthz + /readyz stay PUBLIC_EXPLICIT; all other routes INTERNAL_SERVICE_ONLY. AUTH_ENABLED=true refuses to start on incomplete config (fail-closed); false (dev default) keeps current behavior.
- Full suite green incl. postgres testcontainers; openapi.yaml updated (contract test passes).

Activation is a separate step (Auth-5): requires the orca-infra env merge and a portal service token (portal currently calls with no auth).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com>
Reviewed-on: #14
2026-08-24 18:21:46 +00:00
sharang ffab866c87 feat(api): M4.2 — REST surface + pgx Postgres store + OpenAPI 3.1
ci / shared (push) Successful in 6s
ci / test (push) Successful in 1m15s
ci / image (push) Has been skipped
Full M4.2 deliverable: 16 endpoints (tenants CRUD + lifecycle, catalog, entitlements, API keys with argon2 hashing, audit append + filter), Store interface with pgx-backed Postgres + in-memory parallel implementations exercised by the same eachStore harness, openapi.yaml at 3.1 with kin-openapi contract test. M4.3 adds auth.

Refs: M4.2
2026-05-19 10:51:59 +00:00
sharang d66760b246 feat(schema): M4.1 — tenant_registry schema + migrate binary
ci / shared (push) Successful in 5s
ci / test (push) Successful in 20s
ci / image (push) Has been skipped
PLATFORM_ARCHITECTURE.md §5c schema as one initial migration: 6 tables + 4 enums + updated_at triggers. cmd/migrate binary (golang-migrate library, embedded SQL). testcontainers round-trip + seed + slug-constraint tests.

Refs: M4.1
2026-05-19 10:10:14 +00:00
sharang af9f331781 feat(server): tenant-registry skeleton boots against dev stack
ci / shared (push) Successful in 4s
ci / test (push) Successful in 11s
ci / image (push) Has been skipped
Minimal Go service: /healthz + /v1/tenants/by-slug/:slug + /v1/tenants/:id with an in-memory store seeded with the acme tenant. Stdlib-only; pgx + JWT validation land in M4.1 follow-up.
2026-05-19 09:35:04 +00:00