Security and privacy¶
What a 1.7.0 instance stores and where, who can read it, the trust boundaries it relies on, its limits, and what you must configure yourself.
This page summarizes the reference documents for an operator who has to answer a security or privacy question. The canonical contract is the security and threat-model reference; the identity and access contract for 1.7.0 is the release guide. Some sections of the security reference still describe the 1.6 token registry and admin console; where they differ, the 1.7.0 identity and installation guides describe the authority-store deployment.
What is stored, and where¶
| Place | What it holds |
|---|---|
| The bucket (S3-compatible object store) | Memory content: SHORT notes, MID banks and rules, consolidation history, retained SHORT trash, space backups, original long memory documents. Also the authority snapshots, exported audit history, operational snapshots, Analytics history and, after an upgrade, the archived 1.6 token registry. |
The Core private volume hivemind_core_data |
The authority store: users, agents, credential records, grants, groups, sessions and the audit not yet exported. The private local-authentication and OIDC stores with their keys (local sign-in factors, sealed OIDC client secrets). The internal Graph transport credential and Graph's binding. |
| The operational volume | Analytics events not yet exported to the bucket, the space catalog, observations and checkpoints. |
| Graph Memory and its Neo4j and Qdrant datastores | The long memory projection: graph, vectors, retained extracted text, ontology and temporal records, derived from the memory content. |
The deployment's .env |
Storage, inference and bootstrap secrets. It is the only secret kept on the host outside the volumes. |
| Your inference providers | Not storage, but a destination: consolidation, compaction, long memory extraction and embeddings send memory content to the chat and embedding providers you configure. |
A few retention facts matter for privacy questions:
- A consumed SHORT note is kept in a recoverable trash for
SHORT_TRASH_RETENTION_DAYS(30 days by default). Its expiry is not secure erasure. - Bucket versioning, backups and snapshots can retain or reintroduce content after it is removed from a space.
- Core never deletes authority or operational snapshots on its own. Local audit is kept 90 days by default; exported audit history is kept in the bucket and must not be removed by a lifecycle rule.
- The OIDC refusal log line carries only a route, a reason code and a random reference, never a token, claim or secret. Plaintext long memory credentials never enter audit payloads.
Who can read it¶
Through Hivemind¶
- A new person, including one created at first sign-in, gets no rights until someone grants them. Access is per space: read, write or manage.
- Every MCP call is authenticated by its bearer and checked against current rights. An MCP transport session carries no authority of its own.
- An agent acts within its credential ceiling and its grants. Grant
readandwritefor routine agents.manageis broader than maintenance: it lets its holder create spaces and delegate further, so grant it only to identities you trust with that. - Each person has one personal space with an opaque ID. Neither a group grant nor project membership overrides personal ownership. Delegating it to an agent requires the owner's own session, and an operator cannot obtain a personal agent secret by replacing it. A deployment operator can, however, add or reset local sign-in on any account, receive its one-use setup access and sign in as that person, personal space included, with no confirmation or notification to them; the action is audited under the operator's identity. Grant deployment operator access accordingly.
- The owner's confirmation protects the publication workflow only: a
publication reaches a shared space only after the owner has confirmed its
exact content, signed in to the Portal. Ordinary notes never go through it.
Hivemind does not track where the text of a note comes from, so an agent
with Read on a personal space and Write on a shared space can copy what it
reads into the shared space with an ordinary
short_note; Hivemind checks only the write on the shared space and asks no one. Treat that combination on one agent as the ability to disclose personal content to everyone who reads the shared space: before you give Write on a shared space to an agent its owner has allowed on their personal space, make sure the owner trusts it with that. See Personal spaces. - Deployment operators administer users, agents, grants and maintenance from the Portal. Destructive and operator actions require a fresh identity confirmation (step-up).
- In the opt-in local mode without authentication (
HIVEMIND_AUTH=off), every local caller shares one profile, and the attribution a caller declares can be spoofed. It is provenance, not authentication.
Outside Hivemind¶
Anyone who can read the bucket, the Core volume, the operational volume, the
Graph datastores, a backup of any of them or the .env file bypasses every
control above. The private authentication stores are kept encrypted, but
generalized application-layer encryption of memory content is not part of
1.7.0, and SQLite storage does not encrypt data. Treat access to storage, or
to its backups, as access to the content, and use encrypted volumes and
bucket encryption wherever encryption at rest is required. Raw _backups/ objects in the bucket can also contain
credentials when an explicit graph_connect override is used; download
masking does not apply to them.
Trust boundaries¶
- One public entry. The WAF is the only public entry point. Graph Memory, Neo4j and Qdrant are internal services and publish no host port.
/mcpis not inspected by the WAF. MCP bodies cannot be inspected by the bundled OWASP CRS rules, so/mcpgets rate and raw byte limits at the edge and all content validation in the application. Treat it as the real attack surface. The WAF inspects/api/*and the Portal.- Plain HTTP inside the Docker network. The WAF reaches the application over plain HTTP, so the container network must be a trusted segment. Anyone able to capture packets there sees bearers and request bodies.
- No egress sandbox. The Compose file does not restrict outbound traffic.
PROXY_URLconcentrates Internet-bound S3 and inference traffic on one proxy and fails closed, but it is not a sandbox. Core also makes outbound identity calls (OIDC providers, client metadata, connector issuers) that your egress policy must allow; see the table below. - Identity providers. MFA is only as strong as the provider's policy and the configured claim rules. A standard SSO connection accepts an open provider session as identity confirmation; it is not proof of fresh authentication or MFA.
- Long memory is derived. It is never the authority for commits, rollback, audit, membership or recovery.
- Project Mesh. When enabled,
/mesh/v1is a separate signed boundary; a signature alone never grants membership or scope. - Fail closed. Corrupt critical state surfaces as unsafe and requires a resync or an operator recovery; Hivemind does not silently downgrade.
Limits¶
- One organization per deployment. 1.7.0 does not offer several organizations or tenants per deployment.
- No automatic offboarding. There is no SCIM provisioning or directory synchronization in 1.7.0. Disabling someone at the identity provider only stops new sign-ins; issued credentials stay valid until revoked or expired. Logging out ends one browser session only.
- No Dynamic Client Registration for MCP clients.
- No back-channel logout.
- No forced bucket protection. Hivemind does not enable server-side encryption, versioning or object lock on the bucket.
- No self-healing process. A process whose lifespan failed keeps refusing requests until it is restarted.
- Identity providers. Written against Keycloak 26.8.1. Other OIDC providers follow the same generic contract; see OIDC.
- Imported 1.6 tokens are an exception to finite lifetimes. A 1.6 token created without an expiry keeps working until it is revoked.
What you must configure yourself¶
Hivemind expects these and cannot enforce them from inside its containers.
| Control | What to do |
|---|---|
| TLS | Set SITE_ADDRESS to your domain so the WAF obtains a certificate, or terminate TLS at an upstream proxy. Never serve plain HTTP publicly. |
| Exposure | Never publish ports for the application (8002), graph-memory, neo4j or qdrant. Restrict the Portal to an operator network if your threat model includes targeted attacks on operators. |
| Bucket encryption | Enable server-side encryption on the bucket (SSE-S3 at minimum). Set S3_SSE=AES256 in .env only where the provider supports the header. |
| Bucket versioning and lifecycle | Enable versioning and an object-lock or lifecycle policy that matches your recovery objectives, without removing exported audit history. |
| Bucket access | Scope the S3 principal to the bucket and prefixes Hivemind uses; restrict read access to _backups/ to operators. |
| Egress | Allow Core to reach only: the object storage, your inference endpoints, internal Graph Memory, and the identity traffic you enable. That identity traffic is each configured OIDC provider's discovery, token, key (JWKS) and user-info endpoints, which Core calls server-side during sign-in; the client metadata (CIMD) URLs listed in your OAuth policy, which Core fetches; Anthropic's identity issuer and its keys when Claude Auto-connect trust is enabled; and, with Project Mesh enabled, your peers' HTTPS origins. Allow Graph Memory only the object storage, inference and internal Neo4j and Qdrant. Allow the WAF to reach your certificate authority when it obtains the TLS certificate itself. Block everything else, including link-local, private-range and cloud metadata addresses such as 169.254.169.254. An allow-list without the identity endpoints breaks sign-in (provider_transport refusals). |
| Secrets | Set a strong, unique ADMIN_BOOTSTRAP_KEY (at least 32 random characters) and a strong NEO4J_PASSWORD. Protect .env, the Core volume and every backup of them as secrets, with encrypted backups. |
| Authentication | Keep HIVEMIND_AUTH=on (the default) and MCP rate limits on. Configure Project Mesh's identity, or set HIVEMIND_MESH_ENABLED=false for a deployment that does not use it. |
| Lifetimes | Review browser session, step-up and OAuth lifetimes against your policy; the defaults and bounds are in the release guide. |
| Offboarding | Write your own leaver procedure: suspend the user, close OAuth connections, revoke imported bearers, review standalone agents, then disable the person at the identity provider. See offboarding. |
| Inference providers | Choose providers whose data handling fits the content your users store: memory content is sent to them. |
| Audit and monitoring | Keep exported audit history off-host, and alert on storage reachability, failed snapshot or export jobs, and unsafe or resync-required states. |
| Backups | Back up and test restores yourself; see Back up and restore. |
The full list, with the reason for each item, is the operator checklist.
Report a vulnerability¶
Do not open a public issue. Follow the coordinated disclosure process in the repository's security policy.