Tenant Link Schema
Champs
Tenant Link Schema
Consent-based federation link between two Codemeta tenants, possibly on different installations (ADR 0445)
label
Display name for the connection list. Never sent over the wire.
peerKind
local = another tenant of this installation (loopback, no secrets); remote = a foreign installation (signed HTTPS).
localremotebaseUrl
Remote only. HTTPS enforced and re-validated against assertSafeOutgoingUrl before every call (SSRF).
peerInstallationId
Opaque id of the counterpart installation, stamped during the handshake.
peerTenantId
Counterpart tenant. Stamped on redemption only — never client-writable.
invitationCode
Server-generated invitation. Unique while pending, cleared on redemption. Redacted from every read.
invitationExpiresAt
After this instant the code no longer redeems.
status
pendingacceptedrevokedrevokedSide
Which side ended it. Both sides may revoke.
initiatorpeerroles
mspTenantId
customerTenantId
partyId
THE anchor — the customer party in the MSP CRM. Never leaves the installation.
protocolVersion
Negotiated major version, min(local, peer).
capabilities
What the PEER may do here. Server-enforced.
createTicket
comment
changeStatus
changePriority
requestReturn
peerCapabilities
What we may do there. Display / pre-flight only — never an authorisation basis.
inboundKeyId
NON-SECRET selector (X-Codemeta-Peer-Key). Installation-wide unique — the ingress knows no tenant yet.
inboundSecretEnc
AES-256-GCM blob of the secret inbound signatures are verified with. Encrypted, NOT hashed — HMAC verification needs the plaintext.
inboundSecretRotatedAt
outboundKeyId
The counterpart's selector — what we send in X-Codemeta-Peer-Key.
outboundSecretEnc
AES-256-GCM blob of the secret outbound signatures are created with.
outboundSecretRotatedAt
exchange
TicketExchangeConfig (ADR 0363 §1b) — target, statusMap, priorityMap. Same type as the Jira side.
locationMap
ADR 1116: the counterpart's location key → one of OUR addresses on `partyId`. Only meaningful on the side that owns `partyId`.
peerLocationKey
partyAddressId
seenPeerLocations
ADR 1116: locations the counterpart has reported, with the address they resolved to (null = unresolved). Technical — written by the inbound path, read by the mapping UI.
key
name
street
postalCode
city
countryCode
resolvedAddressId
acceptedAt
acceptedBy
revokedAt
revokedBy
Aucun champ ne correspond au filtre.
Endpoints standard
Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :
GET /api/v1/tenant_links— Liste, paginée et filtrableGET /api/v1/tenant_links/<id>— Une entitéPOST /api/v1/tenant_links— CréerPATCH /api/v1/tenant_links/<id>— Mise à jour partielleDELETE /api/v1/tenant_links/<id>— Suppression logiqueGET /api/v1/tenant_links/<id>/timeline— Audit et activités