Skip to main content

H-16 Artifact registry

Brick H of the Enterprise AI Platform. Technology: Harbor (OCI images, Helm charts, SBOM and signatures, replication, Trivy scanner). French version: ../../fr/bricks/H-16-artifact-registry.md.

Role and responsibilities​

  • Host images, charts, plugins and model artifacts with projects per tenant, immutable tags, retention.

Position and interactions​

  • Execution path: pull path for deployments.
  • global.imageRegistry points to Harbor; proxy cache for upstream registries in air gapped sites.

Open source and developed parts​

  • Open source reused: Harbor.
  • Developed in the platform: Project layout, robot accounts, replication rules.

Data model​

No dedicated table: state lives in Kubernetes objects, Git and the tool's own storage; actions are audited in eai.audit_events through the Control Plane when they go through the API.

Contract: contracts/v1/plugin-manifest.schema.json (schema_version 1.0). Usage is always reported with contracts/v1/usage-event.schema.json, audit with contracts/v1/audit-event.schema.json.

API endpoints​

MethodPath
GET/readyz

GET /readyz​

Response:

{
"status": "ready",
"checks": {
"postgres": "ok",
"redis": "ok",
"clickhouse": "ok"
}
}

SDK examples​

Python​

from enterprise_ai import EnterpriseAI

client = EnterpriseAI(base_url="<control-plane-url>", api_key="eai_live_xxx", tenant="acme", locale="en")
client.system.readyz()

TypeScript​

import { EnterpriseAI } from "@enterprise-ai/sdk";

const client = new EnterpriseAI({ baseUrl: "<control-plane-url>", apiKey: process.env.EAI_API_KEY, tenant: "acme", locale: "en" });
await client.meta.ready();

Java​

EnterpriseAIClient client = EnterpriseAIClient.builder()
.baseUrl("<control-plane-url>")
.apiKey(System.getenv("EAI_API_KEY"))
.tenant("acme")
.locale(Locale.ENGLISH)
.build();
client.meta().ready();

Go​

client, err := eai.NewClient(eai.WithBaseURL("<control-plane-url>"), eai.WithAPIKey(os.Getenv("EAI_API_KEY")), eai.WithTenant("acme"), eai.WithLocale("en"))
if err != nil { log.Fatal(err) }
ctx := context.Background()
_, err = client.Meta.Ready(ctx, nil)

Configuration​

No EAI_* variable: configured through Helm values and the tool's own configuration.

Helm values keys (deploy/helm/enterprise-ai/values.yaml): global.imageRegistry, global.imagePullSecrets.

Security​

  • Content trust: deployment pulls by digest, prevent vulnerable images policy.
  • Tenant resolved from the credential, never from the body; PostgreSQL row level security on every tenant table.
  • Every mutation and policy decision writes a hash chained audit event (G-11).
  • Errors use the standard envelope with message_i18n en and fr.

Observability​

  • Storage usage and pull errors.
  • W3C traceparent propagated, X-Request-Id returned, spans carry eai.tenant_id, eai.project, eai.agent_id, eai.run_id.

FinOps units​

  • Registry storage allocated per project.

Failure modes and resilience​

  • Harbor down -> nodes keep cached images; replica registry in secondary site.

Standalone adoption​

Clients can use their own OCI registry by changing global.imageRegistry.

Acceptance tests​

  1. Pushing a tag twice is refused (immutable).

Implementation roadmap