Esta página foi traduzida automaticamente. Leia o original em inglês.

Component

core/ai-agent/dify-plugin-daemon

The Dify plugin runtime — the service that installs and runs the plugins a Dify installation's model providers and tools are delivered as. Every model call and every tool invocation an application makes is dispatched through it, so an installation with no plugin runtime can edit a workflow but cannot run one. It keeps its own plugin catalogue and installation records in a dedicated database on the PostgreSQL backend wired through the `backend` uses-socket, coordinates through the Redis-compatible cache wired through `cache`, and calls back into the API server over the internal API on the `api` socket to resolve workspace and credential context. Installed plugin packages and their prepared runtime environments live on its own volume, and it verifies each package's signature before running it, so it renders as a single-replica stateful server with a persistent claim. Exports its host, port and protocol to consumers via the uses topology. It serves its own metrics in the Prometheus format at /metrics/ on that port, on by default and asking no key, and its Recipe publishes that address as `metrics_endpoint`.

Procedência

OficialAssinado por uma identidade de assinatura que este catálogo reconhece como publicador oficial.
Digest do conteúdo
sha256:235db0a06173e63ea780afee705f161b356137d9bb23b70ec6ded021a2a2ce76
Publicado
2026-11-10T10:07:46Z
Identidade de assinatura
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

Assinatura

  • Oficialapplication/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:6b10147c2e908f21a543eea128ac8d8c25ebff57f5816ccadcbed892b88011ba

Referência nesta versão

oci://hub.aggrega.ai/component/core/ai-agent/dify-plugin-daemon:1.0.0

Parâmetros do desenvolvedor

Valores que o desenvolvedor define no Aggregate.

NomeTipoPadrãoObrigatórioDescrição
plugin_databasestringdify_pluginnãoName of the database the runtime keeps its plugin catalogue in. It sits on the same backend as the platform's own database and is separate from it, so an installation that reuses one server for both keeps the two schemas apart.
verify_signaturebooleantruenãoWhether a plugin package must carry a valid signature before the runtime will install it. Left at the default, an unsigned package is refused, which is what stops arbitrary code entering the installation through the plugin path. Set it false only for an installation that develops its own unsigned plugins.
max_package_sizeinteger (min 1)52428800nãoLargest plugin package, in bytes, the runtime accepts for installation.
max_execution_timeoutinteger (min 1)600nãoHow long, in seconds, one plugin invocation may run before the runtime stops it.

Dimensionamento do operador

Dimensionamento de infraestrutura que o operador ajusta por ambiente.

NomeTipoPadrãoObrigatórioDescrição
portinteger (min 1024, max 65535)5002nãoHTTP listen port the plugin-dispatch API is served on.
engine_versionstring0.6.10-localnãoDify plugin-runtime container image tag. The runtime is released on its own cadence, so this tag moves independently of the API server's.
computeobject—não—
storageobject—não—
overridesobject (open)—nãoProvider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads.

Contrato de saída

Valores que este componente publica para os consumidores pela topologia uses.

NomeTipoPadrãoObrigatórioDescrição
hoststring—simIn-cluster DNS name of the Service fronting the plugin runtime. The API server dials this name to dispatch a model call or a tool invocation.
portinteger—simTCP port that Service accepts dispatch requests on. It follows the port an operator set in the Release, so a consumer reads it rather than assuming a default.
protocolstring—nãoURL scheme to reach `host` and `port` over, which a consumer composes its base URL on.
metrics_endpointstring—nãoThe full address Prometheus scrapes this component's metrics at — scheme, host, port and path, `http://<host>:<port>/metrics/` on the dispatch port. Empty where the component serves none reachable.

Sockets uses

Os sockets de dependência pelos quais este componente se conecta. O destino de cada conexão ligada por um socket deve satisfazer o seletor de rótulos dele, e cada conexão pode carregar um acoplamento nos slots que o socket declara. Cada conexão que o Aggregate ou a Release liga pelo socket deve preencher os slots obrigatórios.

backend

Seletor
component.aggrega.ai/category=datastore
Injeção
env

Slots que cada conexão por este socket pode preencher

SlotSeletorObrigatórioInjeçãoSensívelDescrição
credentialfeature.aggrega.ai/kind=secretnãoenvsimOptional password the runtime presents to the backend this connection reaches, shared with that backend. When attached, supplies the backend password via the credential subsystem; unattached, the Recipe uses the development literal `apppass`, which this catalog publishes, so every Release that leaves the slot unattached shares that password.

cache

Seletor
component.aggrega.ai/category=datastore
Injeção
env

Slots que cada conexão por este socket pode preencher

SlotSeletorObrigatórioInjeçãoSensívelDescrição
server_cafeature.aggrega.ai/kind=secretnãofilesimOptional authority the runtime checks the cache's certificate against while the cache publishes protocol valkey-tls or redis-tls, where the image does not already trust the authority that signs it. Its Secret holds ca.crt. The Recipe mounts the whole Secret read-only and points the runtime's cache client at the file. The build halts on a server_ca publishing no Secret name, and on one wired to a cache served without TLS. Fill it with core/referenced-secret.

api

Seletor
component.aggrega.ai/category=ai-agent
Injeção
env

Slots que cada conexão por este socket pode preencher

SlotSeletorObrigatórioInjeçãoSensívelDescrição
credentialfeature.aggrega.ai/kind=secretnãoenvsimOptional credential the runtime presents on every call back into the internal API of the API server this connection reaches, which the server compares against its own. The API server and the task worker hold the same key in their inner_api_key slots, so the credential is attached to all three or to none: attaching it to some of them leaves the rest carrying a different value, which renders cleanly and is refused when the call is made. Unattached, the Recipe uses the pinned development literal `dify-plugin-inner-api-key`, suitable for evaluation only and published in this catalog, so every Release that leaves the slot unattached shares it.

Slots de acoplamento

Pontos de vinculação nomeados nos quais uma Feature se acopla a este componente. O seletor de um slot restringe qual Feature pode preenchê-lo, e sua lista inject indica como o material da Feature pode ser entregue. Um slot obrigatório deve estar vinculado em cada instância, por um acoplamento na instância ou em um escopo acima dela, e um slot sensível é declarado para lidar com material secreto. Uma Feature também pode se acoplar com um nome que nenhum slot declara.

SlotSeletorObrigatórioInjeçãoSensívelDescrição
plugin_daemon_keyfeature.aggrega.ai/kind=secretnãoenvsimOptional credential the runtime requires of every caller, and which the API server and the task worker present on every call they make, each on its own connection to the runtime. The same credential is attached here and on both connections, or on none: attaching it to some of them leaves the rest carrying a different value, which renders cleanly and is refused when the call is made. Unattached, the Recipe uses the pinned development literal `dify-plugin-daemon-server-key`, suitable for evaluation only and published in this catalog, so every Release that leaves the slot unattached shares it.

Lista de permissões de autoinjeção

env

Relações

Arestas tipadas de e para outras entidades publicadas. Uma referência sem destino publicado é exibida como uma aresta quebrada em vez de um link.

Usa

Usado por

Referência do conceito Component →

O catálogo Aggrega — um índice aberto de componentes, funcionalidades, receitas e dos plugins que os renderizam.

Criado com o sistema de design compartilhado do Aggrega.

Privacidade