Skip to content

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

… routes. (elastic#247986)

## Summary

Adds a license check to the route handlers for all the privileged user
monitoring routes. This feature should only be available in for
`platinum` or `enterprise` licenses. The UI correctly gates on this
license and does not show the UI for initializing the engine for `basic`
licenses but the direct API calls did not perform any license checks.

## To Verify
1. Start ES using `yarn es snapshot --license basic --ssl`
2. Start Kibana using `yarn start --ssl`
3. Try to initialize the privileged user monitoring engine using the API
in Dev Tools. You should receive an error response:
<img width="1147" height="162" alt="Screenshot 2026-01-07 at 1 55 40 PM"
src="https://github.com/user-attachments/assets/b0bc40a5-4b14-4701-b452-68e1a766b01c"
/>

4. Go to license management:
`https://localhost:5601/app/management/stack/license_management` and
start a trial license.
5. Navigate back to Dev Tools and try the same API call. You should now
receive a success response:
<img width="978" height="187" alt="Screenshot 2026-01-06 at 1 36 31 PM"
src="https://github.com/user-attachments/assets/13989216-5ddd-4495-86c4-1c95ed294bcd"
/>

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 661530a)
@kibanamachine kibanamachine merged commit 3851880 into elastic:9.3 Jan 9, 2026
17 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @ymao1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants