Add a credential-isolated OTLP gateway for agent-native OpenTelemetry
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, node.js, typescript
- Lĩnh vực
- backend, observability, security
Hướng nghiên cứu
Start by reading src/awf-config-schema.json, src/services/api-proxy-env-config.ts, and containers/api-proxy/server.js, along with the linked OTEL environment and configuration docs. Trace how agent environment variables and trusted sidecar exports are configured, then map the sandbox topologies named in the issue. Done means a documented config and minimum-version contract plus focused tests demonstrate authenticated traces, metrics, and logs through the gateway without exposing upstream credentials or changing AWF's own exporter behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
gh-aw needs to declare whether an agentic engine supports OpenTelemetry and automatically configure supported engines to export to the workflow's default collector from inside the agent sandbox. Agent telemetry should be gatewayed by AWF rather than giving the untrusted agent the external collector's credentials.
The currently pinned AWF release in gh-aw is v0.28.70. AWF supports forwarding OTEL_* variables, automatically allowing collector destinations, and proxying OTLP/HTTP egress through Squid. The API-proxy sidecar also exports its own spans. However, the inspected configuration schemas and API-proxy implementation do not expose an agent-facing OTLP ingestion gateway that keeps upstream endpoint credentials in the trusted sidecar. Squid transport proxying alone does not provide that credential boundary.
Relevant sources:
- Environment: OpenTelemetry variables
- AWF configuration specification (section 9.2 documents sidecar telemetry export separately from agent environment forwarding)
- Runtime configuration schema
- API-proxy OTEL environment configuration
- API-proxy server
Requested behavior
Provide an explicit AWF configuration contract to enable agent-native OTLP export through a trusted AWF-owned gateway:
- Expose sandbox-reachable OTLP/HTTP ingestion endpoints for traces, metrics, and logs, supporting standard SDK configuration (prefer
http/protobuf). - Set or rewrite the agent's standard
OTEL_EXPORTER_OTLP_ENDPOINTand protocol variables to the internal gateway. Keep real collector headers, endpoint credentials, workload-identity tokens, and gh-aw multi-endpoint configuration out of the agent environment. - Forward agent telemetry only to the configured default collector. Multi-target agent export is not required; existing fan-out for AWF's own spans must remain unchanged. Prevent per-signal overrides from selecting additional external collectors.
- Resolve authentication in the trusted gateway, including applicable workload-identity handling, rather than requiring credentials in the agent.
- Preserve resource attributes and trace correlation without rewriting engine-originated telemetry into AWF-originated spans.
- Make the gateway reachable under supported AWF sandbox runtimes/topologies, including isolated Docker, ARC/DinD, and supported microVM profiles, without broadening the agent's external egress permissions.
- Leave agent export disabled when no usable default collector is configured, and report invalid configuration without printing secrets.
- Publish the config/schema and minimum-version contract so gh-aw can gate this integration reliably.
Acceptance criteria
- A mock instrumented agent can export traces, metrics, and logs through AWF to a test collector using only internal gateway configuration.
- The collector receives authenticated requests, while agent environment/process inspection and emitted config/log artifacts contain no upstream collector credentials.
- A multi-endpoint host configuration sends agent telemetry to the default collector only; AWF's own exporter behavior is unchanged.
- Per-signal overrides cannot bypass the configured gateway/default destination.
- Missing collector configuration, exporter failures, shutdown flushing, payload limits, and supported sandbox connectivity are covered by focused tests.
This blocks safely enabling capability-driven engine OTEL export in github/gh-aw; forwarding the existing exporter headers into the agent would weaken its current credential exclusions.
- Ngôn ngữ chính
- TypeScript
- Star
- 169
- Fork
- 89
- Merge trung bình
- 5 giờ 18 phút
- Pull request đã merge (30 ngày)
- 450
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/gh-aw-firewall
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/gh-aw-firewall#12415 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
code-quality refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
github/gh-aw-firewall#12411 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
code-quality refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/gh-aw-firewall#12345 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Duplicate Code] Repeated lstat identity-swap stub and fixture setup in src/nvx/live-mount-policy.test.tsCó thể đã có người làm @lpcox đã nhận 1 ngày trước. Đang mởcode-quality refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/gh-aw-firewall#12023 · 1 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
awf-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/gh-aw-firewall#11612 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của github/gh-aw-firewall
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ardia-browser/ardia#5810 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
SocialGouv/egapro#5329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
activepieces/activepieces#17974 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
OHDSI/Data2Evidence#3777 ·
Maintainer thường phản hồi trong vòng 3 ngày