-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Expected Behavior
HTTP/1.1 401 Unauthorized
{"error": "Unauthorized"}
Actual Behavior
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 147
# HELP tekton_pipelines_controller_pipelinerun_count Number of pipelineruns
# TYPE tekton_pipelines_controller_pipelinerun_count gauge
tekton_pipelines_controller_pipelinerun_count{status="success"} 42
...
[MORE METRICS OUTPUT]
Steps to Reproduce the Problem
curl http://${POD_IP}:9090/metricsAdditional Info
Recommended Approach: kube-rbac-proxy Sidecar
Deploy kube-rbac-proxy as a sidecar container to enforce authentication:
┌─────────────────────────────────────────┐
│ Pod: tekton-pipelines-controller │
│ │
│ ┌───────────────┐ ┌──────────────┐ │
│ │ Controller │ │ kube-rbac- │ │
│ │ │ │ proxy │ │
│ │ :9090 │◄──┤ :8443 │◄──┼─── HTTPS + Bearer Token
│ │ (localhost) │ │ (external) │ │ (Authenticated)
│ └───────────────┘ └──────────────┘ │
└─────────────────────────────────────────┘
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.