Determine what the latest supported solution for securing a metrics endpoint is in Openshift #572
Labels
No labels
ai-review-please
Org/Team Modification
Private Issues
Runner Request
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
forge/forge#572
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Determine what the latest supported solution for securing a metrics endpoint is in Openshift.
Details
Determine what the latest supported solution for securing a metrics endpoint is in Openshift.
I did research, and it seems there are 3 ways to secure endpoints:
oauth2-proxy: An open-source proxy that authenticates traffic via an OIDC provider. It is primarily designed for interactive, human access (web browsers).kube-rbac-proxy: A Kubernetes-native proxy that authorizes access using machine tokens and cluster RBAC. It is designed almost entirely for machine-to-machine communication.openshift/oauth-proxy: OpenShift's native hybrid proxy. It handles both authentication and authorization natively, supporting both human and machine access.I propose we use openshift/oauth-proxy. Because our cluster already uses FAS as a cluster-wide Identity Provider, we can easily deploy the app to support both token-based machine access (for Prometheus scraping) and FAS-authenticated human access. The questions:
arch: External traffic comes to the Route and is forwarded to the Pod. The proxy sidecar bypasses all traffic except the traffic that is trying to access the
metricsendpoint.Ok, lets go with this openshift/oauth-proxy solution.. for the moment just configure it to you need to be authenticated to openshift via FAS in order to view the /metrics..
we also need to configure it so zabbix may access this endpoint.
PR in for it look good, will try deploy this next week with @amedvede