ui icon indicating copy to clipboard operation
ui copied to clipboard

Add support for CA certificate for auth provider

Open lgutter opened this issue 2 months ago β€’ 4 comments

Description & motivation πŸ’­

When using an SSO provider with a certificate signed by our own internal CA, the ui server is currently unable to verify the certificate. This change adds support for providing a CA certificate to enable verification of the used certificate.

Screenshots (if applicable) πŸ“Έ

N/A

Design Considerations 🎨

minimal impact, only used IF a CA cert is provided.

Testing πŸ§ͺ

Added tests and I already use this to connect to a self-hosted keycloak.

How was this tested πŸ‘»

  • [x] Manual testing
  • [ ] E2E tests added
  • [x] Unit tests added

Steps for others to test: πŸšΆπŸ½β€β™‚οΈπŸšΆπŸ½β€β™€οΈ

Deploy this new version & provide a caFile or caData (base64 encoded) to trust a custom certificate for SSO.

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

#2957

Docs

Any docs updates needed?

Changes required are mimimal, but the env vars for web UI should be updated with:

TEMPORAL_AUTH_CA
The path for the Transport Layer Security (TLS) Certificate Authority file for the auth provider endpoint.

In order to use TLS with a self-hosted Auth provider, you'll need a CA certificate issued by a trusted Certificate Authority. Set this variable to properly locate and use the file.

TEMPORAL_AUTH_CA_DATA
Stores the data for a TLS CA file.

This variable can be used instead of providing a path for `TEMPORAL_AUTH_CA`.

lgutter avatar Nov 28 '25 09:11 lgutter