Skip to content

Conversation

@c-kruse
Copy link
Contributor

@c-kruse c-kruse commented Nov 11, 2025

Adds options to enable configuring a ServiceMonitor in conjunction with auth.strategy = "openshift".

Conditionally creates:

  • auth.openshift.bearerTokenAuth configuration to allow bearer token delegation by default when openshift auth is selected.
  • New ClusterRole and ClusterRoleBindings Resources to grant openshift auth proxy access to subjectaccessreviews for passed bearer tokens when enabled.
  • ServiceMonitor configuration
  • New ServiceAccount, Role, RoleBinding, and service-account-token Secret for ServiceMonitor to authenticate with auth proxy when enabled. Works with default configuration of auth.openshift.bearerTokenAuth.

Adds options to enable configuring a ServiceMonitor in conjunction with
auth.strategy = "openshift".

Conditionally creates:
- auth.openshift.bearerTokenAuth configuration to allow bearer token
  delegation by default when openshift auth is selected.
- New ClusterRole and ClusterRoleBindings Resources to grant openshift
  auth proxy access to subjectaccessreviews for passed bearer tokens
  when enabled.
- ServiceMonitor configuration
- New ServiceAccount, Role, RoleBinding, and service-account-token
  Secret for ServiceMonitor to authenticate with auth proxy when
  enabled. Works with default configuration of
  auth.openshift.bearerTokenAuth.

Signed-off-by: Christian Kruse <christian@c-kruse.com>
@c-kruse
Copy link
Contributor Author

c-kruse commented Nov 11, 2025

@vsomwanshi I see you have been struggling with instrumenting the network observer with openshift auth and a ServiceMonitor. I have also been struggling to find a nice way to do this. Here is one idea.

Interested in your thoughts on this approach vs. finding a way to bypass the proxy.

*disclaimer - this is very rough and subject to change. The idea is that a values.yaml like this could get it all running (likely with some careful naming and management to avoid conflicts in the required cluster scoped resources.

serviceMonitor:
  create: true
  bearerTokenSecret:
    enabled: true

auth:
  strategy: openshift
  openshift:
    bearerTokenAuth:
      createClusterRole: true
      createClusterRoleBinding: true

tls:
  skupperIssued: false
  openshiftIssued: true

route:
  enabled: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant