Skip to content

Create option to allow insecure metrics requests when mTLS provider is Istio #888

Open
@sobotklp

Description

@sobotklp

When creating a TemporalCluster resource with MTLS.provider: istio, this creates PeerAuthentication resources with the mutual TLS set to STRICT mode, as expected.

There is an issue if the metrics collector isn't itself using Istio, and therefore doesn't (automatically) have mTLS enabled when it connects to the metrics port. These requests will then fail.

In our case, this happens because we're using the DataDog agent in hostNetwork: true mode, in which case Istio sidecars are not automatically injected into the pod.

It would be handy if we could create an exception for the metrics port. Say for example,

mTLS:
  provider: istio
  permissiveMetrics: true # Allow non-TLS requests to the metrics port
  refreshInterval: 1h0m0s

which would add the following to the PeerAuthentication resource created by the operator:

portLevelMtls:
  9090:
    mode: PERMISSIVE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions