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

[8.7] [Synthetics] only allow params to be saved against specific namespaces (#155759) #155818

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

dominiqueclarke
Copy link
Contributor

Backport

This will backport the following commits from main to 8.7:

Questions ?

Please refer to the Backport tool documentation

elastic#155759)

## Summary

This PR prevents saving synthetics params to arbitrary Kibana spaces.

Previously, we accepted a `namespaces` array which could be used to save
a param to spaces that do not exist. In the past, the client would send
this value as `namespaces: ['*']` when a param is meant to e shared
across spaces.

This PR replaces the `namespaces` array with a simple
`share_across_spaces` boolean.

Params are now only allowed to be saved to the current active space, or
`*`.

---------

Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
(cherry picked from commit ead18ac)

# Conflicts:
#	x-pack/plugins/synthetics/server/routes/settings/add_param.ts
#	x-pack/plugins/synthetics/server/routes/settings/params.ts
@dominiqueclarke dominiqueclarke enabled auto-merge (squash) April 26, 2023 02:22
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Apr 26, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@dominiqueclarke dominiqueclarke added the ci:cloud-deploy Create or update a Cloud deployment label Apr 26, 2023
@dominiqueclarke dominiqueclarke merged commit efcabab into elastic:8.7 Apr 26, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 1.4MB 1.4MB +303.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
security 58.0KB 58.0KB +48.0B
synthetics 26.9KB 27.0KB +138.0B
total +186.0B
Unknown metric groups

API count

id before after diff
security 269 270 +1

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport ci:cloud-deploy Create or update a Cloud deployment Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants