Skip to content

Commit

Permalink
Fix apm agentcfg api key privileges (#4083)
Browse files Browse the repository at this point in the history
Align with feature-roles.asciidoc

(cherry picked from commit b83fce4)
  • Loading branch information
carsonip authored and mergify[bot] committed Oct 1, 2024
1 parent 74039fe commit 1d61ba0
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docs/en/observability/apm/access-api-keys.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ In the role descriptors box, assign the appropriate privileges to the new API ke
----
{
"apm_writer": {
"cluster": ["monitor"],
"index": [
{
"names": ["apm-*"],
"privileges": ["create_index", "create_doc"]
"names": ["traces-apm*","logs-apm*", "metrics-apm*"],
"privileges": ["auto_configure", "create_doc"]
}
]
},
Expand All @@ -48,7 +49,8 @@ In the role descriptors box, assign the appropriate privileges to the new API ke
"index": [
{
"names": [".apm-agent-configuration"],
"privileges": ["read"]
"privileges": ["read"],
"allow_restricted_indices": true
}
]
}
Expand Down Expand Up @@ -130,10 +132,11 @@ POST /_security/api_key
"name": "apm_host001", <1>
"role_descriptors": {
"apm_writer": { <2>
"cluster": ["monitor"],
"index": [
{
"names": ["apm-*"],
"privileges": ["create_index", "create_doc"]
"names": ["traces-apm*","logs-apm*", "metrics-apm*"],
"privileges": ["auto_configure", "create_doc"]
}
]
},
Expand All @@ -149,7 +152,8 @@ POST /_security/api_key
"index": [
{
"names": [".apm-agent-configuration"],
"privileges": ["read"]
"privileges": ["read"],
"allow_restricted_indices": true
}
]
}
Expand All @@ -169,4 +173,4 @@ See the {es} API key documentation for more information:

* {ref}/security-api-create-api-key.html[Create API key]
* {ref}/security-api-get-api-key.html[Get API key information]
* {ref}/security-api-invalidate-api-key.html[Invalidate API key]
* {ref}/security-api-invalidate-api-key.html[Invalidate API key]

0 comments on commit 1d61ba0

Please sign in to comment.