Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 1 min read

One node = one port = one token: a trust plane small enough to audit

Every "agent fleet" eventually grows a control plane that nobody can audit: a service registry, a policy engine, a job runner, three databases, and a token that works everywhere. gnp-trust is the opposite: one node, one

Every "agent fleet" eventually grows a control plane that nobody can audit: a service registry, a policy engine,
a job runner, three databases, and a token that works everywhere. gnp-trust is the opposite: one node, one
port, one token, three files.

  • gnp_node.py β€” the daemon: token-gated API, action tiers (view / interact / admin), leases with fencing tokens, a secret deny-list
  • gnp_mtls.py β€” mTLS PKI helper: generates CA, node and client certs (localhost SANs; you add IPs yourself)
  • gnp_hc_job.py β€” idempotent job runner: task_id de-dup, retries, before/after screenshot hashes as evidence

The design decisions worth arguing about:

  • a token is scoped to one node; there is no fleet-wide key to leak
  • action tiers are enforced by the daemon, not by the client asking nicely
  • leases carry fencing tokens, so a stalled worker cannot wake up and act on stale state
  • jobs are idempotent by task_id, which is what makes retries safe

What it is not: a scheduler, a message bus, or a compliance control. It is the smallest thing that lets you say
"this machine will only do these three kinds of thing, for this token, until this lease expires".

Repo: https://github.com/gamai-io/gnp-trust

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.