Sharang Parnerkar and Claude Fable 5.1
0cb0883846
feat(server): MIGRATE_ON_START; image CMD instead of ENTRYPOINT
...
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 22m5s
ci / image (pull_request) Skipped
orca's `cmd` sets the container CMD, so with an ENTRYPOINT the stage
service ran `/tenant-registry /bin/sh -c …` (no migrations) and the
erpmock service ran the registry. The image now has CMD only and the
server applies embedded migrations itself when MIGRATE_ON_START=true.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-09-12 10:09:59 +02:00
Sharang Parnerkar and Claude Fable 5.1
fafec29cc4
chore(lint): drop unused outboxSelect
...
ci / shared (pull_request) Successful in 14s
ci / test (pull_request) Successful in 22m6s
ci / image (pull_request) Skipped
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-09-12 10:06:46 +02:00
Sharang Parnerkar and Claude Fable 5.1
7b02cd1c21
feat(erp): always-on ERP link, usage events, outbox, CLI licences
...
ci / shared (pull_request) Successful in 12s
ci / image (pull_request) Skipped
ci / test (pull_request) Failing after 14m32s
M-MIG-7 (ERP/02, decisions 3, 12, 13, 18):
- migration 0004: subscriptions, usage_events, erp_outbox,
erp_webhook_receipts, licences; tenants.status_changed_at (trigger)
- internal/erp: Frappe REST client (Customer upsert by tenant_id,
Subscription list, Usage Record, Lead) + webhook signing/verification
- internal/erpmock + cmd/erpmock: ERPNext stand-in for staging —
/api/resource/{doctype} with token auth, request log, /_mock/fire/*
triggers that mutate docs and deliver signed webhooks
- POST /v1/internal/erp/webhook (HMAC, idempotent by event id):
sales_order.submit → subscriptions + entitlements (SKU → product/plan,
add-on SKUs → limits) + active; sales_invoice.overdue → warning /
restricted / halted by days overdue; payment_entry.submit → active;
subscription.cancel → halted
- outbox worker (customer.upsert on tenant create, usage.record,
lead.create on catalog request) with backoff; reconcile job mirrors
ERP subscriptions and applies the time-based ladder (trial expiry,
warning→restricted 14 d, restricted→halted 30 d, halted→archived 30 d)
- POST/GET /v1/usage/events (idempotency_key, batch), GET
/v1/subscriptions, GET /v1/internal/erp/status, POST
/v1/internal/erp/reconcile
- CLI licences: Ed25519 signer (LICENCE_SIGNING_KEY), POST /v1/licences
(entitlement-gated, expiry capped by the entitlement), GET
/.well-known/licence-keys.json, POST /v1/licences/heartbeat (grace
ladder, renewal past half-life, revoked), revoke/list
- authn Principal carries tenant-context claims (user tokens scope usage
and licence calls to their own tenant); authz groups usage(.read)
- tests for every path (both stores), erpmock, erp client, licence pkg;
openapi.yaml + README updated; Dockerfile ships /erpmock
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-09-12 09:45:05 +02:00
sharang
2ea49be29d
feat(m-mig-5): products table, entitlement check, tenant ladder, per-client authz ( #23 )
ci / shared (push) Successful in 12s
ci / test (push) Successful in 21m58s
ci / image (push) Successful in 56s
2026-09-12 07:38:47 +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
a048d47959
feat(tenants): provision the product tenant with the registry UUID on create ( #21 )
ci / shared (push) Successful in 12s
ci / test (push) Failing after 16m8s
ci / image (push) Skipped
pre-mvp-2026-09-02
2026-09-01 21:20:03 +00:00
sharang
80565fdbf2
fix(keycloak): org create must send a domain (KC 26 rejects domainless) ( #20 )
ci / shared (push) Successful in 12s
ci / test (push) Successful in 21m24s
ci / image (push) Successful in 17s
2026-09-01 09:18:15 +00:00
sharang
84516e9b4f
feat(keycloak): organizations become the membership authority source ( #19 )
ci / shared (push) Successful in 11s
ci / test (push) Successful in 21m22s
ci / image (push) Successful in 19s
2026-09-01 09:03:23 +00:00
sharang
4eaee521d4
fix(build): builder image Go 1.25, go.mod requires >= 1.25.0 ( #18 )
ci / shared (push) Successful in 14s
ci / test (push) Successful in 21m24s
ci / image (push) Successful in 27s
2026-08-31 17:18:10 +00:00
sharang
03b479ab6f
fix(ci): image job needs a docker CLI, build in docker:27-cli ( #17 )
ci / shared (push) Successful in 12s
ci / test (push) Successful in 21m18s
ci / image (push) Failing after 6s
2026-08-31 15:51:36 +00:00
sharang
583d8f8f25
ci: the image job never ran — fix condition, tag :latest, deploy for real ( #16 )
ci / shared (push) Successful in 13s
ci / test (push) Successful in 21m20s
ci / image (push) Failing after 11s
2026-08-30 21:10:33 +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
sharang and Sharang 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
31cb06cf3d
Repoint registry.breakpilot.com -> repo.breakpilot.com (Harbor) ( #13 )
ci / shared (push) Failing after 11s
ci / test (push) Successful in 21m10s
ci / image (push) Skipped
2026-08-09 21:22:11 +00:00
sharang
52cbfc2b82
chore(ci): repoint registry/git/cargo meghsakha.com -> breakpilot.com ( #12 )
ci / shared (push) Failing after 12s
ci / test (push) Successful in 21m9s
ci / image (push) Skipped
2026-08-06 09:49:53 +00:00
sharang
8fa1a1bffd
feat(store): set trial_ends_at on tenant create
...
ci / shared (push) Successful in 6s
ci / test (push) Successful in 1m42s
ci / image (push) Has been skipped
trial_ends_at = NOW()+14d for customer kind; demo kind gets status=demo and no end. Unblocks M12.1 portal banner.
Refs: M4.1 + M12.1 prep
2026-05-19 16:27:09 +00:00
sharang
a37ae1d121
fix(audit): strip IPv6 brackets before INET insert
...
ci / shared (push) Successful in 7s
ci / test (push) Successful in 1m46s
ci / image (push) Has been skipped
Caught during live local-smoke run.
Refs: M4.2/M5.3
2026-05-19 15:09:00 +00:00
sharang
9138731eea
feat(keycloak): M4.3 — Admin API adapter + claim resolver
...
ci / shared (push) Successful in 5s
ci / test (push) Successful in 1m32s
ci / image (push) Has been skipped
internal/keycloak Adapter (HTTPAdapter + Mock). POST /v1/tenants now provisions a KC organization + IT_ADMIN invite when admin_email is set; KC failures emit keycloak.provision_failed but don't roll back. POST /v1/internal/keycloak/claims resolves the current claim bundle for any (tenant_id|tenant_slug|user_attrs.*) lookup. Mock used in tests + when KEYCLOAK_ADMIN_URL is empty. HTTPAdapter tested against an in-process stub KC (httptest.Server).
Refs: M4.3
2026-05-19 11:51:09 +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
e70ed771ca
fix(dev): default port :8080 → :8090
...
ci / shared (push) Successful in 4s
ci / test (push) Successful in 9s
ci / image (push) Has been skipped
Unblock local dev: Keycloak owns :8080, so tenant-registry shifts to :8090. Prod is functionally unchanged.
Refs: M5.1
2026-05-19 09:47:36 +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
sharang
e960a5ff9d
chore(domain): yourplatform.com → breakpilot.com
...
ci / shared (push) Successful in 4s
ci / test (push) Has been skipped
ci / image (push) Has been skipped
Apply platform-domain decision (2026-05-18). No services touched; docs/config only.
Refs: M1.1
2026-05-18 20:28:42 +00:00
sharang
daff430960
ci: rework workflow for Gitea Actions (M0.2)
...
ci / shared (push) Successful in 3s
ci / test (push) Has been skipped
ci / image (push) Has been skipped
Switches commitlint to bash regex, gitleaks to inline binary, trivy to inline binary (v0.70.0). Per-stack jobs gated on hashFiles.
Refs: M0.2
2026-05-18 19:42:27 +00:00
sharang
db14bfac9f
chore: bootstrap repo scaffolding (M0.1)
...
ci / shared (push) Failing after 6s
ci / test (push) Failing after 3s
ci / image (push) Has been skipped
Bootstraps §1.2 scaffolding (README, CONTRIBUTING, CODEOWNERS, CHANGELOG, PR + issue templates, LICENSE, CI workflow, release workflow, commitlint, cliff, .editorconfig, .gitignore, .env.example) and ships a proprietary all-rights-reserved LICENSE naming both founders.
Refs: M0.1
2026-05-18 19:15:33 +00:00
sharang
a24d372bcb
Initial commit
2026-05-18 19:05:34 +00:00