-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[APM] agent keys management improvements #120765
[APM] agent keys management improvements #120765
Conversation
Pinging @elastic/apm-ui (Team:apm) |
...plugins/apm/public/components/app/Settings/agent_keys/create_agent_key/agent_key_callout.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/routes/agent_keys/create_agent_key.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good improvements 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some copy nits suggested
x-pack/plugins/apm/public/components/app/Settings/agent_keys/agent_keys_table.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/public/components/app/Settings/agent_keys/index.tsx
Outdated
Show resolved
Hide resolved
@@ -235,7 +236,7 @@ function AgentKeysContent({ | |||
<p> | |||
{i18n.translate('xpack.apm.settings.agentKeys.emptyPromptBody', { | |||
defaultMessage: | |||
'Create keys to authorize agent requests to the APM Server.', | |||
'Create APM agent keys to authorize APM agent requests to the APM Server.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Create APM agent keys to authorize APM agent requests to the APM Server.', | |
'Create APM agent keys to authorize requests to the APM Server.', |
@bmorelli25 Thoughts on reducing the APM agents mention here? Just reads a little harder
…age_own_api_key privilege
…ndex.tsx Co-authored-by: Casper Hübertz <casper@formgeist.com>
…gent_keys_table.tsx Co-authored-by: Casper Hübertz <casper@formgeist.com>
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Public APIs missing exports
History
To update your PR or re-run it, just comment with: |
* Add userCurrentUser hook * Use EuiFieldText instead of input element * Display error messages in the UI when creating agent keys * Remove default agent key name * Prefix createAgentKeyRoute with /api * Fix issue where you cannot invalidate API keys when you only have manage_own_api_key privilege Co-authored-by: Casper Hübertz <casper@formgeist.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* Add userCurrentUser hook * Use EuiFieldText instead of input element * Display error messages in the UI when creating agent keys * Remove default agent key name * Prefix createAgentKeyRoute with /api * Fix issue where you cannot invalidate API keys when you only have manage_own_api_key privilege Co-authored-by: Casper Hübertz <casper@formgeist.com> Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co> Co-authored-by: Casper Hübertz <casper@formgeist.com>
* Add userCurrentUser hook * Use EuiFieldText instead of input element * Display error messages in the UI when creating agent keys * Remove default agent key name * Prefix createAgentKeyRoute with /api * Fix issue where you cannot invalidate API keys when you only have manage_own_api_key privilege Co-authored-by: Casper Hübertz <casper@formgeist.com>
* Add userCurrentUser hook * Use EuiFieldText instead of input element * Display error messages in the UI when creating agent keys * Remove default agent key name * Prefix createAgentKeyRoute with /api * Fix issue where you cannot invalidate API keys when you only have manage_own_api_key privilege Co-authored-by: Casper Hübertz <casper@formgeist.com>
Summary
Improvements for agent key management:
useCurrentUser
hookEuiFormControlLayout
and useEuiFieldText
instead of input element