Files
go-otel/k8s/auth-dev.yaml
matsandClaude Sonnet 5 bd17837663
Build and Publish / Metadata (push) Successful in 2s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 58s
Add device-grant dev sign-in (CRD-driven) for local/agent development
AuthClient dev-console + AuthServer deviceFlow via k8s/auth-dev.yaml; otel
server accepts its own URL as an extra audience (OTEL_OIDC_AUDIENCE). Vite
dev-only device-flow sign-in, scripts/dev-auth.mjs helper, AGENTS.md notes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 09:08:46 +00:00

36 lines
1008 B
YAML

# Local/agent development sign-in via the RFC 8628 device grant.
# Tokens minted for dev-console carry aud=[dev-console, https://otel.k6n.net], so the
# otel server (which requires aud to contain its own URL (OTEL_OIDC_AUDIENCE)) accepts them with no
# server-side change. Approval is still gated by the issuer's normal policy.
apiVersion: auth.k6n.net/v1alpha1
kind: AuthClient
metadata:
name: dev-console
namespace: ecommerce
labels:
auth.k6n.net/server: auth
spec:
clientID: dev-console
displayName: Dev console (device grant)
description: Public dev client for local and agent development via the device grant
redirectURIs: []
audience:
- https://otel.k6n.net
scopes:
- openid
- profile
- email
- offline_access
---
# Partial apply: only deviceFlow is owned by this field manager.
apiVersion: auth.k6n.net/v1alpha1
kind: AuthServer
metadata:
name: auth
namespace: ecommerce
spec:
deviceFlow:
clientID: dev-console
codeTTL: 10m
pollInterval: 5s