-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet][RBAC v2] Update agent_status
route to use calculateRouteAuthz
#147696
[Fleet][RBAC v2] Update agent_status
route to use calculateRouteAuthz
#147696
Conversation
2efe8ee
to
6a48b92
Compare
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.
LGTM
.../plugins/security_solution/server/endpoint/services/fleet/endpoint_fleet_services_factory.ts
Outdated
Show resolved
Hide resolved
actions: { | ||
readPolicyManagement: { | ||
executePackageAction: true, | ||
}, | ||
readTrustedApplications: { | ||
executePackageAction: true, | ||
}, | ||
readEventFilters: { | ||
executePackageAction: true, | ||
}, | ||
readHostIsolationExceptions: { | ||
executePackageAction: true, | ||
}, | ||
readBlocklist: { | ||
executePackageAction: true, | ||
}, |
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.
Do we use this API in all of this areas of Security Solution?
I thought it was only used in Policy Details, but maybe I'm wrong. Let me know
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.
Yeah, you're right. I'll remove the other artifacts' privileges.
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.
done 2140128
@@ -48,7 +48,7 @@ export class EndpointFleetServicesFactory implements EndpointFleetServicesFactor | |||
packages: packageService.asScoped(req), | |||
packagePolicy, | |||
|
|||
asInternal: this.asInternalUser.bind(this), | |||
asScoped: this.asScoped.bind(this), |
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.
please revert. This was by design to provide the ability for the caller to still access an internal
client if needed.
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.
I see. Will revert so that asScoped
has the internal
client.
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.
reverted 4f0ac7a
.../plugins/security_solution/server/endpoint/services/fleet/endpoint_fleet_services_factory.ts
Outdated
Show resolved
Hide resolved
.../plugins/security_solution/server/endpoint/services/fleet/endpoint_fleet_services_factory.ts
Outdated
Show resolved
Hide resolved
180a782
to
4f0ac7a
Compare
Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt) |
Pinging @elastic/fleet (Team:Fleet) |
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.
Reapproving for Fleet codeowners review since it seems like @juliaElastic's review came before a Fleet team ping.
refs elastic/pull/145361 refs elastic/security-team/issues/5539 fixes elastic/security-team/issues/5620
…-ref HEAD~1..HEAD --fix'
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.
🚢 it
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @ashokaditya |
Summary
Follow up PR to update
api/fleet/agent_status
route.refs /pull/145361
refs elastic/security-team/issues/5539
Checklist
For maintainers