Federated Service Catalogue Protocol (FSCP)
Overview
FSCP is a secure, decentralized protocol for federating service catalogues across organizations (orgs). It enables discovery, metadata sharing, and selective invocation of services while enforcing trust boundaries, metadata harmonization, and sovereignty controls.
Core Components
| Component | Description | Tech Stack Example |
|---|
| FCG (Gateway) | Org's federation endpoint. Handles peering, queries, auth. | Envoy + SPIFFE/SPIRE for identity. |
| Local Catalogue (LC) | Internal service registry (e.g., Consul, Istio Service Mesh). | Backed by etcd/KV store. |
| Federated Index (FI) | Cached, anonymized view of peered catalogues. | In-memory with TTL (e.g., Redis). |
| Policy Engine (PE) | Enforces sovereignty/trust rules. | OPA (Rego policies) or Cedar. |
Trust Model & Boundaries
Trust is explicit, mutual, and scoped. No implicit trust.
-
Peering Establishment:
-
Trust Boundaries:
- Scopes: Hierarchical (org.service.namespace.action).
- Verification: JWTs with federated claims (OIDC-Fed or OIDC4F).
- Revocation: CRL/OCSP or gossip-based peer status.
- Zones: Logical boundaries (e.g., "public", "partner", "internal") with escalating trust.
-
Access Control:
Metadata Harmonization
Unified schema ensures semantic interoperability without forcing local changes.
-
Core Schema (JSON Schema v2020-12, extensible):
{
"$schema": "https://fscp.trailblazerlabs.io/schema/v1",
"type": "object",
"properties": {
"id": {"type": "string", "format": "uri"}, // org-specific URI
"name": {"type": "string"},
"version": {"type": "string"},
"description": {"type": "string"},
"endpoints": {
"type": "array",
"items": {
"protocol": {"enum": ["http", "grpc", "kafka"]},
"uri_template": {"type": "string"},
"methods": {"type": "array", "items": {"type": "string"}}
}
},
"metadata": {
"tags": {"type": "array"},
"sla": {"type": "object", "properties": {"uptime": {"type": "number"}}},
"sovereignty": {
"regions": {"type": "array", "items": {"type": "string"}}, // e.g., ["EU"]
"pii": {"type": "boolean"} // Flags sensitive data
}
},
"harmonized_from": {"type": "string"} // Local schema origin (e.g., "openapi3")
}
}
-
Harmonization Process:
- Transformers: FCG plugins map local metadata (OpenAPI → FSCP).
- Normalize fields (e.g., merge Swagger paths into
endpoints).
- Anonymize: Mask PII, use hashes for IDs.
- Validation: Schema + semantic checks (e.g., SHACL).
- Versioning: Schema evolution via semantic versioning.
-
Federated Propagation:
- Push/pull diffs to FI with Merkle trees for integrity.
Sovereignty Controls
Orgs retain full control over exposure and data flows.
-
Opt-In Publishing:
- Services tagged with
federation: {zone: "partner", scopes: ["read"]} in LC.
- No auto-discovery; explicit export rules.
-
Query Controls:
- Redaction: Filter metadata (e.g., hide
endpoints.uri unless trusted).
- Geo-Fencing: PE blocks queries from disallowed regions (IP geolocation).
- Rate Limiting: Org-defined quotas per peer.
-
Invocation Safeguards:
- Proxy Mode: FCG proxies calls (sovereign routing).
- Direct Mode: Return endpoint only if authorized; client handles auth delegation (e.g., JWT forwarding).
- Audit: All ops logged immutably (e.g., to blockchain or Verifiable Credentials).
-
Data Residency:
- Metadata tagged with
regions; queries scoped (e.g., "EU-only services").
Protocol Operations (gRPC/HTTP APIs)
Exposed at /fscp/v1.
| Operation | Method | Request | Response | Sovereignty Check |
|---|
| Peer | POST /peers | PeeringManifest | PeerStatus | Manual approval |
| Discover | POST /discover | {query: "payment*", scopes: ["read"], filter: {region: "EU"}} | ServiceList | ABAC + geo |
| Resolve | GET /services/{id} | - | ServiceDetail | Trust scope |
| Invoke | POST /invoke/{id} | {payload: any, context: {}} | ProxyResponse | Proxy/direct auth |
| Status | GET /peers/{peer_id} | - | PeerHealth | Public |
Example Discover Flow:
Client (OrgC) --> OrgA-FCG: POST /discover {query: "invoice", from: "OrgB"}
OrgA-FCG:
- Auth: Verify OrgC JWT
- PE: Check peering with OrgC/OrgB
- FI: Query cached OrgB services → Harmonize → Redact → Return
Security Considerations
- E2E Encryption: mTLS + payload encryption (agebox).
- Threat Model: Mitigates replay (nonces), MITM (pinned certs), insider (PE isolation).
- Compliance: GDPR/CCPA via sovereignty tags; audit trails for SOX.
Implementation Roadmap
- MVP: Peering + basic discover (1 month).
- Harmonization Plugins: OpenAPI/AsyncAPI (2 weeks).
- Sovereignty UI: Dashboard for rules (1 month).
- Scale: Gossip for large meshes (sharded FI).
References
- Inspired by: SPIRE, OIDC-Fed, CNCF Service Mesh Interface (SMI), GAIA-X Federation Services.
- Repo: Hypothetical
github.com/trailblazerlabs/fscp (proto defs, SDKs in Go/Rust).
This design balances federation utility with ironclad sovereignty. Questions or refinements?