-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use authorisation if present, regardless of environment #138817
Use authorisation if present, regardless of environment #138817
Conversation
Pinging @elastic/uptime (Team:uptime) |
@elasticmachine merge upstream` |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Works great on dev and qa. Continues not to work on prod and staging, as they are prohibited from using basic auth on the service side.
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
Post FF Testing
Thus, the PR changes work as expected. |
* fix: always send authorization to synth service when configured * [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs' Co-authored-by: Kibana Machine <[email protected]>
* fix: always send authorization to synth service when configured * [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs' Co-authored-by: Kibana Machine <[email protected]>
Summary
This PR allows Kibana to use the Authorization keys in its configuration file regardless of the environment in which its running.
Before this change you wouldn't be able to use Basic Auth in Elastic Cloud because it would be ignored due to this extra check.
Now, if the
username
andpassword
settings exist, we do use them. That should be fine because it shouldn't be possible to set those keys unless doing tests on a particular region which allows for those keys to be set. Furthermore, one does need to have the credentials anyway.How to test this PR
Locally
xpack.uptime.service.username
andxpack.uptime.service.password
) and remove TLS settings.Once it goes to cloud (POST FF)
username
andpassword keys (
xpack.uptime.service.usernameand
xpack.uptime.service.password) and use the service's dev manifest as the value for
xpack.uptime.service.manifestUrl`.Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
For maintainers