Component Tools & Private-OCI Registry Credentials
Ce contenu n’est pas encore disponible dans votre langue.
Component Tools
Section titled “Component Tools”A component tool is a gtc component you register for a tenant by URL
(store, repo, or OCI). Greentic reads the component’s describe() operations
and surfaces them as agentic-worker tools (keyed component:<ref>), so a
Digital Worker can call them like any other tool.
You register them under a tenant’s Component tools tab in the admin
console. Each registration is a name plus a source_url (for example
ghcr.io/acme/refund:1.2.3); on registration Greentic pins the component’s
version (from the tag) and, when possible, its digest.
Private-OCI components
Section titled “Private-OCI components”A public component resolves anonymously. A private OCI package — for
example a private ghcr.io repository — needs a credential to pull. Without
one, introspection fails and the component never appears as a tool.
To support this, add a registry credential for the tenant.
Add a registry credential
Section titled “Add a registry credential”In the same Component tools tab, open the Registry credentials section and add one per registry host:
| Field | Meaning |
|---|---|
| Registry host | e.g. ghcr.io — matched exactly against a component’s ref |
| Username | any non-empty value for GHCR (the token is the secret) |
| Token | a registry access token (for GHCR, a PAT with read:packages) |
The credential is stored sealed (the same encryption the platform uses for MCP server tokens) and scoped to the tenant. It is shared by every private component of that tenant whose registry host matches.
How it’s used
Section titled “How it’s used”- On registration, the admin resolves the component’s digest through the distributor, authenticating with the matching registry credential — so a private package still pins a content digest. This is best-effort: if the credential is missing or the registry is unreachable, the digest is left unpinned and registration still succeeds.
- In the Designer, when a component’s registry host has a credential, the
Designer authenticates the pull itself (over the tenant-scoped, server-side
feed — the token never reaches the browser), fetches the component, reads its
describe(), and surfaces its operations as tools. A component whose host has no credential is pulled anonymously, exactly as before.
Requirements
Section titled “Requirements”Authenticated private-OCI pulls require greentic-distributor-client 0.5.4
or newer across the admin and Designer.