From 6b82c14573c286f11918b628bfbd2e3da0c7f267 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Fri, 11 Sep 2026 14:06:43 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20module=20path=20gitea.meghsakha.com=20?= =?UTF-8?q?=E2=86=92=20git.breakpilot.com=20(#22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CONTRIBUTING.md | 4 ++-- README.md | 14 +++++++------- cmd/migrate/main.go | 2 +- cmd/server/main.go | 12 ++++++------ go.mod | 2 +- internal/authn/authn_test.go | 10 +++++----- internal/server/apikeys.go | 2 +- internal/server/apikeys_test.go | 2 +- internal/server/audit.go | 2 +- internal/server/audit_test.go | 2 +- internal/server/catalog.go | 2 +- internal/server/catalog_test.go | 2 +- internal/server/helpers.go | 2 +- internal/server/keycloak.go | 4 ++-- internal/server/keycloak_test.go | 4 ++-- internal/server/server.go | 10 +++++----- internal/server/server_test.go | 10 +++++----- internal/server/tenants.go | 4 ++-- internal/server/tenants_test.go | 2 +- internal/server/users.go | 4 ++-- internal/server/users_test.go | 2 +- 21 files changed, 49 insertions(+), 49 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3ad8852..b28a526 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -Conventions are platform-wide. The full ruleset lives in [`platform/docs/IMPLEMENTATION_PLAN.md §1`](https://gitea.meghsakha.com/platform/docs/src/branch/main/IMPLEMENTATION_PLAN.md). This is the short version. +Conventions are platform-wide. The full ruleset lives in [`platform/docs/IMPLEMENTATION_PLAN.md §1`](https://git.breakpilot.com/platform/docs/src/branch/main/IMPLEMENTATION_PLAN.md). This is the short version. ## Branching @@ -71,7 +71,7 @@ CI runs these. Pre-commit hooks recommended (`.githooks/pre-commit` in this repo ## Audit + observability -Any state-changing endpoint MUST emit an audit event to Tenant Registry `/audit` in the Retraced-shape schema. See [`PRODUCT_INTEGRATION_SPEC.md §8.4`](https://gitea.meghsakha.com/platform/docs/src/branch/main/PRODUCT_INTEGRATION_SPEC.md). +Any state-changing endpoint MUST emit an audit event to Tenant Registry `/audit` in the Retraced-shape schema. See [`PRODUCT_INTEGRATION_SPEC.md §8.4`](https://git.breakpilot.com/platform/docs/src/branch/main/PRODUCT_INTEGRATION_SPEC.md). Any service ships OTel SDK from day one (`OTEL_EXPORTER_OTLP_ENDPOINT` injected by Orca). No `fmt.Println` / `console.log` in committed code. diff --git a/README.md b/README.md index a7bd476..ffad7d7 100644 --- a/README.md +++ b/README.md @@ -2,20 +2,20 @@ Multi-tenant glue: orgs, entitlements, API keys, audit. -> Part of the **Breakpilot Platform**. For the big picture see [`platform/docs`](https://gitea.meghsakha.com/platform/docs): -> [Architecture](https://gitea.meghsakha.com/platform/docs/src/branch/main/PLATFORM_ARCHITECTURE.md) · -> [Infrastructure](https://gitea.meghsakha.com/platform/docs/src/branch/main/INFRASTRUCTURE.md) · -> [Product Integration Spec](https://gitea.meghsakha.com/platform/docs/src/branch/main/PRODUCT_INTEGRATION_SPEC.md) · -> [Implementation Plan](https://gitea.meghsakha.com/platform/docs/src/branch/main/IMPLEMENTATION_PLAN.md) +> Part of the **Breakpilot Platform**. For the big picture see [`platform/docs`](https://git.breakpilot.com/platform/docs): +> [Architecture](https://git.breakpilot.com/platform/docs/src/branch/main/PLATFORM_ARCHITECTURE.md) · +> [Infrastructure](https://git.breakpilot.com/platform/docs/src/branch/main/INFRASTRUCTURE.md) · +> [Product Integration Spec](https://git.breakpilot.com/platform/docs/src/branch/main/PRODUCT_INTEGRATION_SPEC.md) · +> [Implementation Plan](https://git.breakpilot.com/platform/docs/src/branch/main/IMPLEMENTATION_PLAN.md) ## What this is -Multi-tenant glue: orgs, entitlements, API keys, audit. Scaffolded under milestone M4.1. See [`platform/docs`](https://gitea.meghsakha.com/platform/docs) for the full architecture context. +Multi-tenant glue: orgs, entitlements, API keys, audit. Scaffolded under milestone M4.1. See [`platform/docs`](https://git.breakpilot.com/platform/docs) for the full architecture context. **Plane:** Control **Owner:** @sharang **Status:** pre-alpha -**Linked milestone:** [M4.1](https://gitea.meghsakha.com/platform/docs/src/branch/main/IMPLEMENTATION_PLAN.md) +**Linked milestone:** [M4.1](https://git.breakpilot.com/platform/docs/src/branch/main/IMPLEMENTATION_PLAN.md) ## Run locally diff --git a/cmd/migrate/main.go b/cmd/migrate/main.go index fa359a1..eb78f6c 100644 --- a/cmd/migrate/main.go +++ b/cmd/migrate/main.go @@ -24,7 +24,7 @@ import ( _ "github.com/golang-migrate/migrate/v4/database/postgres" "github.com/golang-migrate/migrate/v4/source/iofs" - "gitea.meghsakha.com/platform/tenant-registry/migrations" + "git.breakpilot.com/platform/tenant-registry/migrations" ) func main() { diff --git a/cmd/server/main.go b/cmd/server/main.go index 64507ff..cb12bda 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -10,12 +10,12 @@ import ( "syscall" "time" - "gitea.meghsakha.com/platform/tenant-registry/internal/authn" - "gitea.meghsakha.com/platform/tenant-registry/internal/config" - "gitea.meghsakha.com/platform/tenant-registry/internal/keycloak" - "gitea.meghsakha.com/platform/tenant-registry/internal/product" - "gitea.meghsakha.com/platform/tenant-registry/internal/server" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/authn" + "git.breakpilot.com/platform/tenant-registry/internal/config" + "git.breakpilot.com/platform/tenant-registry/internal/keycloak" + "git.breakpilot.com/platform/tenant-registry/internal/product" + "git.breakpilot.com/platform/tenant-registry/internal/server" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) func main() { diff --git a/go.mod b/go.mod index d1b2fcd..427da2b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.meghsakha.com/platform/tenant-registry +module git.breakpilot.com/platform/tenant-registry go 1.25.0 diff --git a/internal/authn/authn_test.go b/internal/authn/authn_test.go index 6236025..99fbc28 100644 --- a/internal/authn/authn_test.go +++ b/internal/authn/authn_test.go @@ -15,11 +15,11 @@ import ( jose "github.com/go-jose/go-jose/v4" - "gitea.meghsakha.com/platform/tenant-registry/internal/authn" - "gitea.meghsakha.com/platform/tenant-registry/internal/config" - "gitea.meghsakha.com/platform/tenant-registry/internal/keycloak" - "gitea.meghsakha.com/platform/tenant-registry/internal/server" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/authn" + "git.breakpilot.com/platform/tenant-registry/internal/config" + "git.breakpilot.com/platform/tenant-registry/internal/keycloak" + "git.breakpilot.com/platform/tenant-registry/internal/server" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) // stubIssuer is a minimal OIDC issuer: discovery + JWKS + an RS256 signer. diff --git a/internal/server/apikeys.go b/internal/server/apikeys.go index 2232aeb..d3fbfa7 100644 --- a/internal/server/apikeys.go +++ b/internal/server/apikeys.go @@ -10,7 +10,7 @@ import ( "golang.org/x/crypto/argon2" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) // Plaintext key format: `bp_<32 base64 chars>`. Prefix stored for UI is diff --git a/internal/server/apikeys_test.go b/internal/server/apikeys_test.go index b85f172..3c41fb9 100644 --- a/internal/server/apikeys_test.go +++ b/internal/server/apikeys_test.go @@ -4,7 +4,7 @@ import ( "net/http" "testing" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) func TestCreateAPIKey_then_verify(t *testing.T) { diff --git a/internal/server/audit.go b/internal/server/audit.go index 0a0ed26..cf6ea03 100644 --- a/internal/server/audit.go +++ b/internal/server/audit.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) type appendAuditReq struct { diff --git a/internal/server/audit_test.go b/internal/server/audit_test.go index 3208d54..f765e72 100644 --- a/internal/server/audit_test.go +++ b/internal/server/audit_test.go @@ -4,7 +4,7 @@ import ( "net/http" "testing" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) func TestAppendAndListAudit(t *testing.T) { diff --git a/internal/server/catalog.go b/internal/server/catalog.go index 5a56fe4..3ec0786 100644 --- a/internal/server/catalog.go +++ b/internal/server/catalog.go @@ -5,7 +5,7 @@ import ( "net/http" "time" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) // catalog is hard-coded for now. PRODUCT_INTEGRATION_SPEC.md §10 has products diff --git a/internal/server/catalog_test.go b/internal/server/catalog_test.go index 57c96e4..87354d4 100644 --- a/internal/server/catalog_test.go +++ b/internal/server/catalog_test.go @@ -4,7 +4,7 @@ import ( "net/http" "testing" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) func TestGetCatalog(t *testing.T) { diff --git a/internal/server/helpers.go b/internal/server/helpers.go index 3a2baab..8dabb65 100644 --- a/internal/server/helpers.go +++ b/internal/server/helpers.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) // writeJSON serializes body as JSON with the supplied status. It ignores diff --git a/internal/server/keycloak.go b/internal/server/keycloak.go index 6d24363..1086243 100644 --- a/internal/server/keycloak.go +++ b/internal/server/keycloak.go @@ -6,8 +6,8 @@ import ( "net/http" "time" - "gitea.meghsakha.com/platform/tenant-registry/internal/keycloak" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/keycloak" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) // provisionKeycloak is called inside createTenant after the DB insert diff --git a/internal/server/keycloak_test.go b/internal/server/keycloak_test.go index 84db846..c313d5d 100644 --- a/internal/server/keycloak_test.go +++ b/internal/server/keycloak_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - "gitea.meghsakha.com/platform/tenant-registry/internal/keycloak" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/keycloak" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) func TestCreateTenant_provisionsKeycloak(t *testing.T) { diff --git a/internal/server/server.go b/internal/server/server.go index 11bb4f6..caf6d55 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -9,11 +9,11 @@ import ( "log/slog" "net/http" - "gitea.meghsakha.com/platform/tenant-registry/internal/authn" - "gitea.meghsakha.com/platform/tenant-registry/internal/config" - "gitea.meghsakha.com/platform/tenant-registry/internal/keycloak" - "gitea.meghsakha.com/platform/tenant-registry/internal/product" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/authn" + "git.breakpilot.com/platform/tenant-registry/internal/config" + "git.breakpilot.com/platform/tenant-registry/internal/keycloak" + "git.breakpilot.com/platform/tenant-registry/internal/product" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) // Server bundles the dependencies every handler needs. diff --git a/internal/server/server_test.go b/internal/server/server_test.go index c5c8fc1..5f86a52 100644 --- a/internal/server/server_test.go +++ b/internal/server/server_test.go @@ -20,11 +20,11 @@ import ( _ "github.com/jackc/pgx/v5/stdlib" tcpostgres "github.com/testcontainers/testcontainers-go/modules/postgres" - "gitea.meghsakha.com/platform/tenant-registry/internal/config" - "gitea.meghsakha.com/platform/tenant-registry/internal/keycloak" - "gitea.meghsakha.com/platform/tenant-registry/internal/server" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" - "gitea.meghsakha.com/platform/tenant-registry/migrations" + "git.breakpilot.com/platform/tenant-registry/internal/config" + "git.breakpilot.com/platform/tenant-registry/internal/keycloak" + "git.breakpilot.com/platform/tenant-registry/internal/server" + "git.breakpilot.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/migrations" ) // ─── harness ────────────────────────────────────────────────────────────── diff --git a/internal/server/tenants.go b/internal/server/tenants.go index 75de6d9..afe54ff 100644 --- a/internal/server/tenants.go +++ b/internal/server/tenants.go @@ -7,8 +7,8 @@ import ( "regexp" "time" - "gitea.meghsakha.com/platform/tenant-registry/internal/product" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/product" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) // slug validation mirrors the schema CHECK in 0001_init.up.sql so we reject diff --git a/internal/server/tenants_test.go b/internal/server/tenants_test.go index 80afe86..d7755be 100644 --- a/internal/server/tenants_test.go +++ b/internal/server/tenants_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) func TestHealthz(t *testing.T) { diff --git a/internal/server/users.go b/internal/server/users.go index f264d42..5620553 100644 --- a/internal/server/users.go +++ b/internal/server/users.go @@ -6,8 +6,8 @@ import ( "net/http" "time" - "gitea.meghsakha.com/platform/tenant-registry/internal/keycloak" - "gitea.meghsakha.com/platform/tenant-registry/internal/store" + "git.breakpilot.com/platform/tenant-registry/internal/keycloak" + "git.breakpilot.com/platform/tenant-registry/internal/store" ) // membershipItem is one tenant a user belongs to. Source records which diff --git a/internal/server/users_test.go b/internal/server/users_test.go index 7acaf0b..2609b72 100644 --- a/internal/server/users_test.go +++ b/internal/server/users_test.go @@ -4,7 +4,7 @@ import ( "net/http" "testing" - "gitea.meghsakha.com/platform/tenant-registry/internal/keycloak" + "git.breakpilot.com/platform/tenant-registry/internal/keycloak" ) type membershipsBody struct {