[Fleet] Add license gate around agents automatic upgrades feature#224393
Merged
criamico merged 5 commits intoelastic:mainfrom Jun 18, 2025
Merged
[Fleet] Add license gate around agents automatic upgrades feature#224393criamico merged 5 commits intoelastic:mainfrom
criamico merged 5 commits intoelastic:mainfrom
Conversation
Contributor
|
Pinging @elastic/fleet (Team:Fleet) |
| const { docLinks } = useStartServices(); | ||
| const granularPrivilegesCallout = useDismissableTour('GRANULAR_PRIVILEGES'); | ||
| const { enableAutomaticAgentUpgrades } = ExperimentalFeaturesService.get(); | ||
| const canEnableAutomaticAgentUpgrades = |
Contributor
There was a problem hiding this comment.
should we extract canEnableAutomaticAgentUpgrades as a function to reuse, similar to
|
|
||
| if (!licenseService.isEnterprise()) { | ||
| throw new FleetUnauthorizedError( | ||
| 'Agents auto upgrades feature requires at least Enterprise license' |
Contributor
There was a problem hiding this comment.
Suggested change
| 'Agents auto upgrades feature requires at least Enterprise license' | |
| 'Auto-upgrade agents feature requires at least Enterprise license' |
Contributor
|
Tested locally, looks good. |
Member
Author
|
@elasticmachine merge upstream |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
cc @criamico |
juliaElastic
pushed a commit
to juliaElastic/kibana
that referenced
this pull request
Jul 29, 2025
…astic#224393) Add license gate around agents automatic upgrades feature: - Hide UI elements if license is less than Enterprise - hide Manage auto upgrade button in Agent policy details - Add license gate around API to update target versions in agent policy update - Add license gate around auto upgrade task With a basic license, try to access the agent auto upgrades feature and verify that is not available - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add license gate around agents automatic upgrades feature:
Testing
With a basic license, try to access the agent auto upgrades feature and verify that is not available
Checklist