feat: add trusted gateway telemetry capabilities - #457
Open
alongubkin wants to merge 14 commits into
Open
Conversation
Greptile SummaryThe PR adds trusted, logs-only gateway telemetry capabilities and exposes gateway-source filtering in the CLI.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| crates/alien-manager/src/auth/subject.rs | Adds narrowly scoped telemetry capability subjects and server-controlled gateway log-source classification. |
| crates/alien-manager/src/providers/oss_authz.rs | Extends default authorization to permit gateway capabilities only for their allowed telemetry signal. |
| crates/alien-manager/src/routes/telemetry.rs | Authorizes telemetry by signal and derives forwarding metadata from the authenticated subject. |
| crates/alien-manager/src/providers/otlp_forwarding.rs | Forwards trusted gateway source metadata to the configured OTLP backend. |
| crates/alien-cli/src/commands/logs.rs | Adds gateway-source queries and fixes the prior empty-result behavior by rejecting deployment/source combinations. |
| crates/alien-ai-gateway/src/usage.rs | Extends gateway request diagnostics with request timing and model metadata. |
| crates/alien-ai-gateway/src/router/mod.rs | Propagates request diagnostics context and validated static headers through AI-provider requests. |
Sequence Diagram
sequenceDiagram
participant Gateway as Trusted Gateway
participant Manager as alien-manager
participant Authz as Telemetry Authz
participant OTLP as OTLP Backend
participant CLI as alien logs
Gateway->>Manager: OTLP logs with capability bearer
Manager->>Authz: Authorize Logs signal
Authz-->>Manager: Allow gateway logs capability
Manager->>OTLP: Forward logs with trusted source metadata
CLI->>OTLP: Query by alien.log.source
OTLP-->>CLI: Gateway diagnostics
Reviews (3): Last reviewed commit: "feat: support AI gateway diagnostics and..." | Re-trigger Greptile
…end-to-end-gateway-request-diagnostics-and-logs # Conflicts: # client-sdks/platform/openapi.json # client-sdks/platform/rust/openapi-3.0.json # client-sdks/platform/rust/openapi.json # client-sdks/platform/typescript/.speakeasy/gen.lock
|
Too many files changed for review (405 files, 100 file limit). Bypass the limit by tagging |
…end-to-end-gateway-request-diagnostics-and-logs # Conflicts: # client-sdks/platform/openapi.json # client-sdks/platform/rust/openapi-3.0.json # client-sdks/platform/rust/openapi.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
alien logs --sourcefiltering for AI and Encryption Gateway diagnosticsSecurity
Validation
cargo test -p alien-manager providers::oss_authz::tests --libcargo check -p alien-manager --all-targetscargo check -p alien-cli --all-targetsLinear: ALIEN-556