Skip to content
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

[Synthetics] enable api key when devUrl is set #156059

Merged
merged 2 commits into from
May 3, 2023

Conversation

devcorpio
Copy link
Contributor

@devcorpio devcorpio commented Apr 27, 2023

Summary

Makes sure an ApiKey for synthetics is created when the config xpack.uptime.service.devUrl is set in kibana.yaml

Before this small fix, it wasn't possible for Kibana to communicate with the service when working locally:

[ERROR][plugins.synthetics] API key is not valid. Cannot push monitor configuration to synthetics public testing locations

Screenshot:

Screenshot 2023-04-27 at 18 32 04

@devcorpio devcorpio added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Apr 27, 2023
@devcorpio devcorpio requested a review from a team as a code owner April 27, 2023 17:23
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@dominiqueclarke dominiqueclarke added release_note:skip Skip the PR/issue when compiling release notes v8.8.0 labels Apr 27, 2023
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 17 19 +2
securitySolution 399 402 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 18 20 +2
securitySolution 479 482 +3
total +5

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@shahzad31 shahzad31 merged commit c11dc28 into elastic:main May 3, 2023
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 3, 2023
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c11dc28)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.8

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@devcorpio devcorpio deleted the enablement_for_dev_url branch May 3, 2023 12:18
kibanamachine added a commit that referenced this pull request May 3, 2023
# Backport

This will backport the following commits from `main` to `8.8`:
- [[Synthetics] enable api key when devUrl is set
(#156059)](#156059)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alberto Delgado
Roda","email":"adelgado.roda@gmail.com"},"sourceCommit":{"committedDate":"2023-05-03T11:59:52Z","message":"[Synthetics]
enable api key when devUrl is set (#156059)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c11dc286662414ec3d4693dd9155de49ef1134f8","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:uptime","release_note:skip","v8.8.0","v8.9.0"],"number":156059,"url":"https://github.com/elastic/kibana/pull/156059","mergeCommit":{"message":"[Synthetics]
enable api key when devUrl is set (#156059)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c11dc286662414ec3d4693dd9155de49ef1134f8"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/156059","number":156059,"mergeCommit":{"message":"[Synthetics]
enable api key when devUrl is set (#156059)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c11dc286662414ec3d4693dd9155de49ef1134f8"}}]}]
BACKPORT-->

Co-authored-by: Alberto Delgado Roda <adelgado.roda@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.8.0 v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants