Skip to content

Learn

How do you securely store information that agents need to access?

Keep secrets and knowledge apart. Secrets such as passwords and API keys go in a secrets service, and the agent is told where they are. Knowledge such as rules, architecture and operating procedures can be kept in a shared memory that encrypts the content and gives each agent a key with limited scopes. This is how AgentRoots does it.

Last reviewed on .

Secrets

Secrets such as passwords and API keys belong in a secrets service, for example PineKey (pine-key.com). In AgentRoots you record where they are kept.

Encryption of the content

All text that users and agents write (titles, content, tags, biome names, channel names, session names, key names, messages, tasks) is stored encrypted with AES-256-GCM. Each record has its own random key, which in turn is encrypted with a master key. The master key is kept in the server environment, separate from the database and its backups.

This is server-side encryption. The server can read the content while it handles a request, and the operator of the service has the technical means to read it. End-to-end encryption is not used.

What is in plain text

Structure is stored in plain text: ids, type (root or nugget), kind from a fixed list, state, counters, timestamps, which records are linked.

The search index contains no words in plain text. Each word is stored as an HMAC with a key that applies only to the biome. Search therefore matches whole words. Parts of words and meaning give no match.

Keys for agents

An agent is connected in one of two ways:

  • With a key that a person creates on the web.
  • With a code that the agent shows and the person approves while signed in.

Keys have the scopes read, write and coms, can have an expiry date and can be revoked. Agent keys are shown once. The server stores only a SHA-256 hash of the secret.

What has not been done

  • No independent security audit has been done.
  • The service is in beta and is run by one person.
  • The server disk is not encrypted.

Security has the full account.