-
Notifications
You must be signed in to change notification settings - Fork 719
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
Introduce a restricted role for APM agent configuration #3155
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,9 @@ const ( | |
ApmUserRoleV7 = "eck_apm_user_role_v7" | ||
// ApmUserRoleV75 is the name of the role used by APMServer instances to connect to Elasticsearch from version 7.5 | ||
ApmUserRoleV75 = "eck_apm_user_role_v75" | ||
|
||
// ApmAgentUserRole is the name of the role used by APMServer instances to connect to Kibana | ||
ApmAgentUserRole = "eck_apm_agent_user_role" | ||
) | ||
|
||
var ( | ||
|
@@ -58,6 +61,17 @@ var ( | |
}, | ||
}, | ||
}, | ||
ApmAgentUserRole: esclient.Role{ | ||
Cluster: []string{}, | ||
Indices: []esclient.IndexRole{}, | ||
Applications: []esclient.ApplicationRole{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lgtm 👍 It might not be available until 8.0 (so still quite a long way out) but better than never. |
||
{ | ||
Application: "kibana-.kibana", | ||
Resources: []string{"space:default"}, | ||
Privileges: []string{"feature_apm.read"}, | ||
}, | ||
}, | ||
}, | ||
} | ||
) | ||
|
||
|
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.
Late nit: should read "minimum required version..."
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.
Thanks for the feedback, I'll fix this as part of #3154