mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-19 10:33:29 +00:00
security: add scope checks to AI Patrol and agent profile endpoints
- AI Patrol mutation endpoints (acknowledge, dismiss, suppress, snooze, resolve, findings/note, suppressions/*) now require ai:execute scope to prevent low-privilege tokens from blinding patrol by hiding/suppressing findings - Agent profile admin endpoints (/api/admin/profiles/*) now require settings:write scope to prevent low-privilege tokens from modifying fleet-wide agent behavior
This commit is contained in:
parent
1733bea15c
commit
2ebe65bbc5
9 changed files with 244 additions and 28 deletions
|
|
@ -15,4 +15,6 @@ const (
|
|||
ResourceNodes = "nodes"
|
||||
ResourceUsers = "users"
|
||||
ResourceLicense = "license"
|
||||
ResourceAI = "ai"
|
||||
ResourceDiscovery = "discovery"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue