Skip to content

Commit

Permalink
Adding required privileges to apiKeyBanner when user hits a noPrivile…
Browse files Browse the repository at this point in the history
…ges state
  • Loading branch information
yngrdyn committed Jun 8, 2023
1 parent a552963 commit e4c6b8d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ export function ApiKeyBanner({
'xpack.observability_onboarding.apiKeyBanner.noPermissions.description',
{
defaultMessage:
'Please add the key generated by the admin in the dedicated space in the config below.',
'Required cluster privileges are {requiredClusterPrivileges} and required index privileges are {requiredIndexPrivileges} for indices {indices}, please add all required privileges to the role of the authenticated user.',
values: {
requiredClusterPrivileges: "['monitor', 'manage_own_api_key']",
requiredIndexPrivileges: "['auto_configure', 'create_doc']",
indices: "['logs-*-*', 'metrics-*-*']",
},
}
)}
</p>
Expand Down

0 comments on commit e4c6b8d

Please sign in to comment.