Skip to content

Conversation

@KevFan
Copy link
Contributor

@KevFan KevFan commented Jan 22, 2026

Description

Part of Kuadrant/kuadrant-operator#1690

Add traces for:

  • Auth Config controller
    • Link with parent trace if present in annotation
  • Auth Config Status controller
    • Link with parent trace if present in annotation
  • Secret controller
image

Verification

  • Create cluster
kind create cluster 
make install
  • Run jaeger
podman run --rm --name jaeger \
  -p 16686:16686 \
  -p 4317:4317 \
  -p 4318:4318 \
  -p 5778:5778 \
  -p 9411:9411 \
  cr.jaegertracing.io/jaegertracing/jaeger:2.14.0
  • Run authorino locally
make run RUN_EXTRA_ARGS="--tracing-service-endpoint=http://localhost:4318 --tracing-service-insecure=true"
  • Create Authconfig and API key secret
kubectl apply -f -<<EOF
apiVersion: authorino.kuadrant.io/v1beta3
kind: AuthConfig
metadata:
  name: talker-api-protection
spec:
  hosts:
  - talker-api.127.0.0.1.nip.io
  authentication:
    "friends":
      apiKey:
        selector:
          matchLabels:
            group: friends
      credentials:
        authorizationHeader:
          prefix: APIKEY
EOF

kubectl apply -f -<<EOF
apiVersion: v1
kind: Secret
metadata:
  name: api-key-1
  labels:
    authorino.kuadrant.io/managed-by: authorino
    group: friends
stringData:
  api_key: ndyBzreUzF4zqDQsqSPMHkRhriEOtcRx
type: Opaque
EOF
kubectl apply -f -<<EOF
apiVersion: authorino.kuadrant.io/v1beta3
kind: AuthConfig
metadata:
  name: talker-api-protection
  annotations:
    traceparent: 00-b9793372e63e6928a90511fe525089e5-71950e994731984a-01
spec:
  hosts:
  - talker-api.127.0.0.1.nip.io
  authentication:
    "friends":
      apiKey:
        selector:
          matchLabels:
            group: friends
      credentials:
        authorizationHeader:
          prefix: APIKEY
EOF
  • View that AuthConfig and AuthConfig Status reconciles are linked to another trace (missing parent span warning is expected since the parent trace does not exist in jaeger)
image image

@KevFan KevFan self-assigned this Jan 22, 2026
@KevFan KevFan added kind/enhancement New feature or request size/medium labels Jan 22, 2026
@KevFan KevFan added this to Kuadrant Jan 22, 2026
@KevFan KevFan moved this to Ready For Review in Kuadrant Jan 22, 2026
@KevFan KevFan marked this pull request as ready for review January 22, 2026 16:24
@KevFan KevFan requested a review from a team January 26, 2026 10:49
Copy link
Member

@adam-cattermole adam-cattermole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, ran through the steps and all is working

@KevFan KevFan added this pull request to the merge queue Jan 26, 2026
Merged via the queue into Kuadrant:main with commit e674840 Jan 26, 2026
11 checks passed
@github-project-automation github-project-automation bot moved this from Ready For Review to Done in Kuadrant Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement New feature or request size/medium

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants