[Synthetics] Fix MTLS settings for synthetics service in Kibana #136267
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the MTLS settings for the service in Kibana which broke due to recent changes in how we used
devUrl
and other settings to decide how to send requests.Now, we'll always
rejectUnauthorized
certs unless users are sending requests tolocalhost
and indev
mode, it doesn't matter whether they serve their own manifests or usedevUrl
.Risk Matrix
localhost
.How to test this PR
Checkout the latest version of the service (make sure it contains the recent changes to DX due to Makefile updates)
Run the service as per the instructions on "how to run it locally" that are present in the docs
Setup Kibana to use the service using
devUrl
andbasicAuth
. Ensure you can create and run monitors (try to use run-once as it's easier to test).Setup Kibana to use the service using
devUrl
and certificates by copying thecrt
andkey
in the service's folder to the Kibanaconfig
folder and using it in the Kibana config. For example:Ensure you can create and run monitors (try to use run-once as it's easier to test).
Setup Kibana to use a local manifest by creating a manifest file like the one below and serving it on port 8081 using
npx http-server --port 8081
.Then update Kibana configs to use the served manifest:
Ensure you can create and run monitors (try to use run-once as it's easier to test).
For maintainers