Replace shared agent bearer token with per-device credentials #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem.
TOMSWALLAPI_AGENT_TOKENis a single bearer token shared byevery agent, while DESIGN.md §14 specifies mTLS or Vault-issued per-device
tokens. With the shared token:
complete policy map of the estate, ideal reconnaissance for lateral movement.
corrupting the convergence view.
Proposal. Per-device identity, either:
The config endpoint must derive the device ID from the credential, never from
a client-supplied parameter. Status reports likewise. Keep the shared token
only as a bootstrap/enrollment path, if at all.
Acceptance. Device A's credential cannot fetch device B's config (404/403,
covered by a test), and cannot post status for B.