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

[Connection Details] Check if user has permissions to create API key #181288

Open
4 tasks
vadimkibana opened this issue Apr 22, 2024 · 1 comment · May be fixed by #183286
Open
4 tasks

[Connection Details] Check if user has permissions to create API key #181288

vadimkibana opened this issue Apr 22, 2024 · 1 comment · May be fixed by #183286
Assignees
Labels
Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience)

Comments

@vadimkibana
Copy link
Contributor

vadimkibana commented Apr 22, 2024

When showing the "API keys" tab check if user has permissions to generate an API key.

  • Create HTTP endpoint that returns if user can manage own API keys. See how it is done here.
    • Add the new route to x-pack/plugins/security/server/routes/api_keys.
  • Cache the result retrieved from that endpoint.
  • Use the result retrieved from that endpoint to provide the hasPermission option in <ConnectionDetails> component, it will automatically render the "API keys" appropriately.
@vadimkibana vadimkibana added the Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) label Apr 22, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience)
Projects
None yet
3 participants