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

[Fleet] Do not allow namespace or dataset to be edited for input only package policies #148422

Merged

Conversation

hop-dev
Copy link
Contributor

@hop-dev hop-dev commented Jan 4, 2023

Summary

Part of #145529.

Input packages will create component and index templates on package policy creation. These changes make it so that to change the namespace or dataset of an input only package the user must create a new package policy, this is because by changing these the user is sending the data to a new destination which semantically is a different policy.

❓ Question: what do we publicly call package policies? Here is the new text I have added:

Screenshot 2023-01-04 at 21 05 15

@hop-dev hop-dev added Team:Fleet Team label for Observability Data Collection Fleet team 8.7 candidate labels Jan 4, 2023
@hop-dev hop-dev requested a review from a team as a code owner January 4, 2023 21:14
@hop-dev hop-dev self-assigned this Jan 4, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@@ -20,7 +20,7 @@ const DATA_STREAM_DATASET_VAR: RegistryVarsEntry = {
type: 'text',
title: 'Dataset name',
description:
"Set the name for your dataset. Changing the dataset will send the data to a different index. You can't use `-` in the name of a dataset and only valid characters for [Elasticsearch index names](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html).\n",
"Set the name for your dataset. Once selected a dataset cannot be changed without creating a new package policy. You can't use `-` in the name of a dataset and only valid characters for [Elasticsearch index names](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html).\n",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I dont think we use the word package policy in our UIs?

Copy link
Contributor

Choose a reason for hiding this comment

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

We call these integration policy on the UI.

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM, should only update the package policy name as you described.

@hop-dev hop-dev enabled auto-merge (squash) January 5, 2023 12:04
Copy link
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

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

One minor nit on wording, otherwise LGTM 🚀

x-pack/plugins/fleet/common/services/policy_template.ts Outdated Show resolved Hide resolved
@hop-dev hop-dev force-pushed the 145529-lock-namespace-and-dataset-input-pkgs branch 3 times, most recently from 4ecbac3 to b25d3ac Compare January 10, 2023 17:33
@hop-dev hop-dev force-pushed the 145529-lock-namespace-and-dataset-input-pkgs branch from 554cee9 to 1e9a41f Compare January 11, 2023 13:13
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #20 / Fleet Endpoints Fleet Endpoints fleet_unenroll_agent /agents/bulk_unenroll should allow to unenroll multiple agents by kuery in batches async

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
fleet 910.8KB 911.2KB +486.0B

Page load bundle

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

id before after diff
fleet 121.7KB 121.7KB +37.0B

History

  • 💔 Build #99274 failed b25d3aca722ab0650f7e4087024ad124142beef9
  • 💔 Build #98757 failed 4ecbac38f38758b97f9af7ce4688db4da8cd1fd5
  • 💔 Build #98677 failed d51b98c8e510bf1533e69c21f3e635e9cb3c05e8
  • 💔 Build #98297 failed c1644b66b20504738cf3c5a280ee7f3bf6c72eb6
  • 💔 Build #98201 failed 6ad91fcbc39ce5e3507b2f49fde51a8816297a8b

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

cc @hop-dev

@hop-dev hop-dev merged commit f1ede73 into elastic:main Jan 11, 2023
@kibanamachine kibanamachine added v8.7.0 backport:skip This commit does not require backporting labels Jan 11, 2023
hop-dev added a commit that referenced this pull request Jan 11, 2023
mistic pushed a commit that referenced this pull request Jan 11, 2023
jennypavlova pushed a commit to jennypavlova/kibana that referenced this pull request Jan 13, 2023
… package policies (elastic#148422)

## Summary

Part of elastic#145529.

Input packages will create component and index templates on package
policy creation. These changes make it so that to change the namespace
or dataset of an input only package the user must create a new package
policy, this is because by changing these the user is sending the data
to a new destination which semantically is a different policy.

❓ Question: what do we publicly call package policies? Here is the new
text I have added:

<img width="674" alt="Screenshot 2023-01-04 at 21 05 15"
src="https://user-images.githubusercontent.com/3315046/210650968-79460ff4-dd52-47bd-beb6-a0ace608bcbb.png">
jennypavlova pushed a commit to jennypavlova/kibana that referenced this pull request Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.7 candidate backport:skip This commit does not require backporting release_note:enhancement Team:Fleet Team label for Observability Data Collection Fleet team v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants