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] Add actionable error message when generating logstash API keys #192765

Merged

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Sep 12, 2024

Summary

Resolve #190120

That PR add a better error message when generating an API key without logstash without the required permissions

UI Changes

@kilfoyle does the copy for that toast notification make sense to you
Screenshot 2024-09-12 at 3 12 33 PM

@nchaulet nchaulet added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team labels Sep 12, 2024
@nchaulet nchaulet self-assigned this Sep 12, 2024
@nchaulet nchaulet requested a review from a team as a code owner September 12, 2024 19:16
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

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

Copy link
Contributor

@kilfoyle kilfoyle left a comment

Choose a reason for hiding this comment

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

LGTM for the text. 👍
Just one small suggestion for the toast title.

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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 1.8MB 1.8MB +790.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 169.8KB 170.1KB +345.0B

History

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

cc @nchaulet

@nchaulet nchaulet changed the title [Fleet] Add actionable error message when generation logstash API keys [Fleet] Add actionable error message when generating logstash API keys Sep 12, 2024
@nchaulet nchaulet merged commit d07ba0f into elastic:main Sep 13, 2024
23 checks passed
@kibanamachine kibanamachine added v9.0.0 backport:skip This commit does not require backporting labels Sep 13, 2024
@nchaulet nchaulet deleted the feature-logstash-api-key-error-message branch September 13, 2024 13:15
@nchaulet nchaulet added v8.16.0 backport:version Backport to applied version labels and removed backport:skip This commit does not require backporting labels Sep 13, 2024
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.16 The branch "8.16" does not exist

Manual backport

To create the backport manually run:

node scripts/backport --pr 192765

Questions ?

Please refer to the Backport tool documentation

@nchaulet
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

@nchaulet nchaulet added backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development and removed v8.16.0 backport:version Backport to applied version labels labels Sep 13, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 13, 2024
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15
8.x

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

Questions ?

Please refer to the Backport tool documentation

@nchaulet nchaulet added backport:skip This commit does not require backporting and removed backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development labels Sep 13, 2024
kibanamachine added a commit that referenced this pull request Sep 13, 2024
…PI keys (#192765) (#192929)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Fleet] Add actionable error message when generating logstash API
keys (#192765)](#192765)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Nicolas
Chaulet","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-13T12:03:31Z","message":"[Fleet]
Add actionable error message when generating logstash API keys
(#192765)","sha":"d07ba0fa49dbb07e831f0096f91ca56573713741","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","backport:prev-major"],"title":"[Fleet]
Add actionable error message when generating logstash API
keys","number":192765,"url":"https://github.com/elastic/kibana/pull/192765","mergeCommit":{"message":"[Fleet]
Add actionable error message when generating logstash API keys
(#192765)","sha":"d07ba0fa49dbb07e831f0096f91ca56573713741"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192765","number":192765,"mergeCommit":{"message":"[Fleet]
Add actionable error message when generating logstash API keys
(#192765)","sha":"d07ba0fa49dbb07e831f0096f91ca56573713741"}},{"url":"https://github.com/elastic/kibana/pull/192923","number":192923,"branch":"8.x","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Nicolas Chaulet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet]: No appropriate information to create API key while adding Logstash output for user role Fleet: All.
7 participants