Component
core/security/trustyai-huggingface-detector
TrustyAI's Hugging Face detector: a service that runs one text classifier from the Hugging Face Hub and reports what it detects in the texts a caller sends. For each text posted to its content route with a threshold, it answers with every label the classifier scores at or above it, never the classifier's first label, read as the one for harmless text. It changes nothing and forwards nothing: what to do about a detection is the caller's decision, and core/security/nemo-guardrails is one such caller. The classifier is values.model at values.model_revision. The default, protectai/deberta-v3-base-prompt-injection-v2 (Apache-2.0), labels each text SAFE or INJECTION, and its own model card states that the project which published it is archived and no longer maintained. Another model labels and scores differently, so a caller's labels and thresholds follow it. The verdict misses some attacks and flags some ordinary requests. The weights are fetched where the service runs, never at build time. It authenticates no caller and every text reaches it as sent, so it is published on an in-cluster address only. Its own metrics, in the Prometheus format at /metrics on the same port, are published as `metrics_endpoint`. The Release supplies the image in infra.image and the catalog names none: TrustyAI's published build carries NVIDIA's proprietary CUDA runtime, whose licence agreement limits its use to systems with NVIDIA GPUs, and is published only under a floating tag, whose superseded digests stop resolving. Nothing renders until the Release sets `infra.image`.
출처
- 콘텐츠 다이제스트
- sha256:8f985fb76602947f3d871a7625d6614d76375528aa12e151d26a51559254d630
- 게시일
- 2026-11-10T10:13:59Z
- 서명 ID
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
서명
- 공식application/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:c34f4d9c71225ccd5e22a7d802c196dda140050af22eb57aa716bedbe73525f8
이 버전의 참조
oci://hub.aggrega.ai/component/core/security/trustyai-huggingface-detector:1.0.0개발자 매개변수
개발자가 Aggregate에서 설정하는 값입니다.
| 이름 | 타입 | 기본값 | 필수 | 설명 |
|---|---|---|---|---|
| model | string | protectai/deberta-v3-base-prompt-injection-v2 | 아니요 | Hugging Face model id of the sequence-classification model the service runs. The default is a prompt-injection classifier labelling each text SAFE or INJECTION; another model labels by its own vocabulary, which a caller's refusal labels must then follow. |
| model_revision | string | 90c9989b1a342275dd0d1a95aad283c04e075671 | 아니요 | Revision of values.model to fetch — a commit id, a tag or a branch. The default is the commit of the default model whose scores a caller's thresholds are measured against; set it together with values.model, and main follows the repository's newest revision. |
운영자 사이징
운영자가 환경별로 조정하는 인프라 사이징입니다.
| 이름 | 타입 | 기본값 | 필수 | 설명 |
|---|---|---|---|---|
| port | integer (min 1024, max 65535) | 8000 | 아니요 | Port the service listens on and its Service accepts callers on. Most operators should omit this and let the Recipe assign the default (8000), the port the published image listens on unless told otherwise. |
| image | string | — | 예 | Image the service and its weights-pull step run, supplied by the Release; the catalog names none. The Recipes run the published build's own server command, log configuration and Hugging Face command-line tool, so the image is TrustyAI's Hugging Face detector or a copy of it. That build carries NVIDIA's proprietary CUDA runtime, whose licence agreement limits its use to systems with NVIDIA GPUs, and is tagged only as latest, under which the registry stops serving a build once the tag moves on, so a Release that must keep one build mirrors it and names the copy here. |
| compute | object | — | 아니요 | — |
| model_cache | object | — | 아니요 | The volume the pull step writes the weights to and the server reads them from. |
출력 계약
이 컴포넌트가 uses 토폴로지를 통해 소비자에게 게시하는 값입니다.
| 이름 | 타입 | 기본값 | 필수 | 설명 |
|---|---|---|---|---|
| host | string | — | 예 | In-cluster DNS name of the Service fronting the detector. Every caller reaching this name can submit text, so it is an address for the component that calls the service rather than one to publish. |
| port | integer | — | 예 | TCP port that Service accepts callers on. It follows the port an operator set in the Release, so a consumer reads it rather than assuming a default. |
| endpoint | string | — | 예 | Base URL of the detector's HTTP API, with the host and the port already composed and no path. A caller posts the texts to check to the content route under it. |
| model | string | — | 예 | Hugging Face model id of the classifier the service loaded, so a caller can record which model gave a verdict. |
| protocol | string | — | 아니요 | URL scheme to reach `host` and `port` over, for a consumer composing its own address rather than reading `endpoint`. |
| metrics_endpoint | string | — | 아니요 | The full address Prometheus scrapes this component's metrics at — scheme, host, port and path, `http://<host>:<port>/metrics` on the port callers reach. Empty where the component serves none reachable. |
uses 소켓
이 컴포넌트가 연결에 사용하는 의존성 소켓입니다. 소켓을 통해 배선되는 모든 연결의 대상은 해당 소켓의 레이블 셀렉터를 충족해야 하며, 각 연결은 소켓이 선언한 슬롯에 첨부를 전달할 수 있습니다. 필수 슬롯은 Aggregate 또는 Release가 해당 소켓을 통해 배선하는 각 연결이 채워야 합니다.
선언된 uses 소켓이 없습니다.
첨부 슬롯
Feature가 이 컴포넌트에 첨부되는 이름 있는 바인딩 지점입니다. 슬롯의 셀렉터는 어떤 Feature가 슬롯을 채울 수 있는지를 제한하고, 슬롯의 inject 목록은 Feature의 자료를 어떻게 전달할 수 있는지를 지정합니다. 필수 슬롯은 인스턴스의 첨부 또는 그 위 범위의 첨부를 통해 모든 인스턴스에서 바인딩되어야 하며, 민감 슬롯은 비밀 자료를 처리하도록 선언됩니다. Feature는 어떤 슬롯도 선언하지 않은 이름으로 첨부될 수도 있습니다.
| 슬롯 | 셀렉터 | 필수 | 주입 | 민감 | 설명 |
|---|---|---|---|---|---|
| model_pull_token | feature.aggrega.ai/kind=secret | 아니요 | env | 예 | Optional Hugging Face Hub access token for a gated model. When attached, the weights-pull step receives it as an environment variable, and the server itself never does; unattached, weights are pulled anonymously, which the default model allows. |
자체 주입 허용 목록
선언된 자체 주입 파이프가 없습니다.
관계
게시된 다른 엔터티와 주고받는 타입 지정 에지입니다. 게시된 대상이 없는 참조는 링크가 아닌 끊어진 에지로 표시됩니다.
사용함
이 엔터티는 카탈로그의 어떤 것도 사용하지 않습니다.
사용됨
소켓 «auth_core» 사용
소켓 «auth_core» 사용
소켓 «auth_core» 사용
소켓 «auth_core» 사용
소켓 «upstream» 사용
소켓 «forward_target» 사용
소켓 «scrape_target» 사용
소켓 «store» 사용
소켓 «detector» 사용
소켓 «detector» 사용
소켓 «jailbreak_detection» 사용
적용 대상
적용 대상
적용 대상
적용 대상
적용 대상
적용 대상
적용 대상
구현
구현