After enabling SSL on the OM server, we have to update also the public keys URL for the validation of the JWT tokens by
updating to the secured URL: https://{server_domain}:{port}/api/v1/system/config/jwks.In case we are using a self-signed certificate, it will fail with the error below:To avoid this error, you must import your public certificate into the Java Keystore of the OM server. If your OM
deployment is done with Docker or Kubernetes, you must copy the cert into the openmetadata_server container or pod.
After that, you can proceed with the following steps from your terminal:
Go to your $JAVA_HOME/lib/security where the cacerts keystore is located.
One common issue after enabling SSL with a self-signed certificate is that our workflows in Airflow will fail or will
not be deployed. We can notice it because the following error will be shown in the UI when deploying or re-deploying:This can be solved in two different ways:
Providing a single keystore that has all the cacerts required
This can be achieved using the OPENMETADATA_OPTS environment variable configuration across all the deployments.
However, for Production, we recommend you to bundle your cacerts separately for each components (like ElasticSearch/Opensearch and Airflow) and provide that to each individual configs for openmetadata.yaml.
You can use this environment variable to also provide extra JVM parameters to tune the application as per your infrastructure needs.Below is an example values to be set for the OPENMETADATA_OPTS environment variable to use cacerts truststore which is bundled for an organization issued certificates -
It is expected to have the keystore file either mounted as external volume or to be available over the filesystem where openmetadata server application will be running.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.