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] Fix add Fleet server scenarios with subfeatures enabled #182015

Merged
merged 5 commits into from Apr 30, 2024

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Apr 29, 2024

Summary

Resolve #180661
Resolve #181757

Fix a few bug to note show invalid action when user try to add a fleet server without all the needed permissions, sees UI changes for details.

UI Changes

Add Fleet server flyout

If the user do not have manage_service_account he could not generate service token and cannot enroll a fleet server.

Screenshot 2024-04-29 at 12 21 32 PM

If a user cannot create policies it will not be able to click on generate fleet server policy

Screenshot 2024-04-29 at 3 33 34 PM

Integration policy table

Disable add agent if user cannot add Fleet server (no agents: all, settings: all(

Screenshot 2024-04-29 at 1 08 17 PM

Tests

Manual Try to add fleet server with and without manage_service_account

@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 docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@nchaulet nchaulet self-assigned this Apr 29, 2024
@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 Apr 29, 2024
@nchaulet nchaulet force-pushed the fix-add-fleet-server-subfeatures branch from 7a460c6 to 105ac55 Compare April 29, 2024 19:36
@nchaulet nchaulet marked this pull request as ready for review April 29, 2024 19:38
@nchaulet nchaulet requested a review from a team as a code owner April 29, 2024 19:38
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@@ -159,7 +173,7 @@ export const registerRoutes = (router: FleetAuthzRouter) => {
.post({
path: APP_API_ROUTES.GENERATE_SERVICE_TOKEN_PATTERN_DEPRECATED,
fleetAuthz: {
fleet: { all: true },
fleet: { allAgents: true },
Copy link
Member Author

Choose a reason for hiding this comment

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

Todo: add to e2e tests

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

@juliaElastic
Copy link
Contributor

/ci

@nchaulet nchaulet enabled auto-merge (squash) April 30, 2024 20:11
Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

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

Code LGTM

@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
fleet 1.3MB 1.3MB +546.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 159.9KB 159.9KB +22.0B

History

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

cc @nchaulet

@nchaulet nchaulet merged commit 4c25cb9 into elastic:main Apr 30, 2024
20 checks passed
@kibanamachine kibanamachine added v8.15.0 backport:skip This commit does not require backporting labels Apr 30, 2024
@nchaulet nchaulet deleted the fix-add-fleet-server-subfeatures branch April 30, 2024 21:25
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.15.0
Projects
None yet
7 participants