Files
Pulse/internal/api
rcourtman 9bd857636b Require action permission for host work outside Assistant reads
Four ways remained for a signed-in user who cannot run actions, such as
a viewer, to start work on a monitored host or plan an action:

- POST /api/infra-updates/check needed only monitoring:write, which
  session callers skip. It queues the Docker update scan on an agent,
  whose registry lookups can run the host's credential helper. It now
  needs the action-execute capability, as the Actions execute route does.
- The Assistant's pulse_control plans an action on the shared lifecycle,
  but every session caller could use it once the control level allowed
  control tools. POST /api/actions/plan needs the action-plan
  capability; the chat route now binds the same capability and the
  Assistant offers and runs pulse_control only with it.
- POST /api/ai/findings/{id}/reinvestigate starts a Patrol investigation
  that runs commands on hosts and can plan a fix. It now needs both the
  plan and execute capabilities.
- The attention restart offer and its plan route checked the actor
  against the authorizer, which under the default authorizer admits
  every org member. A viewer was offered the restart and could plan it.
  They now also apply the request rule the Actions routes use.

Under the default authorizer these refuse non-admin sessions and
non-admin proxy roles; an RBAC grant decides otherwise. API tokens keep
their existing scope rules, including relay-mobile planning.
2026-11-14 09:07:00 +00:00
..
2026-10-11 22:20:25 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-08-31 19:47:01 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-04-26 17:26:16 +01:00
2026-01-22 00:30:15 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-09-01 01:02:17 +01:00

Internal API Package

This directory contains the API server implementation for Pulse.

Important Note About frontend-modern/

The frontend-modern/ subdirectory that appears here is:

  • AUTO-GENERATED during builds
  • NOT the source code - just a build artifact
  • IN .gitignore - never committed
  • REQUIRED BY GO - The embed directive needs it here

Frontend Development Location

👉 Edit frontend files at: ${PULSE_REPOS_DIR}/pulse/frontend-modern/src/

Why This Structure?

Go's //go:embed directive has limitations:

  1. Cannot use ../ paths to access parent directories
  2. Cannot follow symbolic links
  3. Must embed files within the Go module

This is a known Go limitation and our structure works around it.