Architecture
and security
For your information security team: how Eggent Enterprise is built, how it is deployed inside the company perimeter, what employees and IT get, and where the protection boundaries are.
01In short
Eggent Enterprise gives every employee an AI agent with an isolated workspace of its own: files, a terminal, memory, history. IT runs all of it from one console. The whole platform installs on the company's own servers.
02What the company gets
For employees
- Their own agent in the browser: chat, project files, terminal, history, scheduled tasks.
- The agent writes and runs code and works with documents, spreadsheets and websites, inside its own sandbox.
- Company skills (design system, stack, deployment rules) are available to the agent from the start.
- Autonomous agents on a schedule or on request: a morning briefing, tender monitoring, answers from a knowledge base.
- Shared folders, messages and document approvals within the company.
For the administrator
The administrator has an agent of their own that does what the console does when asked in plain words: "give the sales team access to this model", "show spending for November".
The agent never enters keys or secrets: only the console does.
For IT and security: the company console
| Section | What it does |
|---|---|
| Company sign-in | OIDC, an employee created on first sign-in, IdP groups → teams, passwords off |
| People and teams | search across thousands of people, blocking, spending limits |
| Models | connect your own model server, who gets which model, the default model |
| Usage | tokens and cost per month by person, team and model |
| Company skills | upload, versions, hand out to everyone, a team or named people |
| Employee accounts | a hook in your system issues personal tokens (GitLab, kubeconfig) and revokes them |
| Shared folders | read or write, for people and teams |
| Audit log | filters, CSV/JSONL export, forwarding to SIEM |
| API keys | for Backstage and other systems: create an employee, issue a sign-in, block |
03Architecture
The server runs three permanent services plus one container per employee.
- Caddy terminates HTTPS with the company certificate and routes requests: the console to the control service, an employee's address to that employee's container.
- The control service is the centre of the system: console, IdP sign-in, model gateway, audit log, skill distribution, starting and stopping containers. Only it knows the model keys, and only it talks to your LLMs, IdP and SIEM.
- Postgres holds employees, teams, policies, the audit log and encrypted secrets. Your own database can replace the bundled one.
- Employee workspaces reach models and write the audit log only through the control service. The agent reaches internal systems (GitLab, Kubernetes) directly with the employee's personal token, if you allow it.
04How it works
Sign-in
- The employee opens the Eggent address. Without a session they are sent to the company IdP.
- Sign-in uses OpenID Connect (Authorization Code + PKCE S256). State and nonce are checked, as are the ID token's signature against JWKS, issuer, audience and expiry.
- If the employee does not exist yet and auto-creation is on, a workspace is created for them. IdP groups become teams.
- The workspace receives a one-time sign-in link and sets its own cookie: HttpOnly, signed with the workspace secret, valid 7 days.
The agent at work
- The employee writes a task in their workspace chat.
- The agent works inside its container: files, commands, company skills.
- Every model call goes to the gateway with the workspace token. The gateway checks whether the model is allowed for the person and their team, applies limits, adds the key and passes the request to your LLM.
- The employee's requests and the agent's actions (command, path, address) go to the audit log on the server as work happens.
Administration
IT works in the console, through its own agent, or from external systems with an API key (for example from Backstage). Changes reach workspaces by themselves: model access and blocking at once, a new skill version within seconds.
05Isolation and agent permissions
- A separate container. Every employee has their own Docker container, their own Docker network (own subnet), their own data folder and a memory limit. Containers cannot reach each other over the network; another workspace is reachable only through the shared entry, like from a browser, and not without its owner's session.
- No privileges on the host. The container runs without privileged mode and without access to Docker. Its web port listens only on the server's 127.0.0.1; from outside, only through Caddy.
- Inside the container the agent is a full Linux user with sudo: it installs packages and runs code. The security boundary is the container itself, not the permissions inside it.
- Shared folders are mounted only for those they were granted to, and only in the granted mode, read or write.
- Company skills are written into the workspace by the control service. The agent cannot change or delete them: a modified copy is restored at the next reconciliation (every 10 minutes).
- No keys in the container. It holds only this workspace's token for the gateway, which cannot open another workspace or bypass the model policy.
- Employees' own models. An employee can connect a personal provider key or a ChatGPT/Codex subscription to their agent (Settings → Models). Those requests go from their workspace straight to the provider, past the gateway: team model policies do not apply, they are not counted in usage or limits, and data goes out under the employee's personal subscription terms. The subscription token is stored in the employee's workspace, not in the control service. The employee's requests and the agent's actions are still written to the audit log as usual. Such connections can be closed with network rules (see 06) or with an installation setting that allows only the company's models.
- The most privileged component is the control service: it starts containers and holds the keys. It listens only on 127.0.0.1 and is published through Caddy; workspaces have no access to its administrative functions.
06Network and outbound connections
Inbound: only 443 (and 80 for the redirect) on Caddy, with the company certificate for the Eggent domain and *.domain; an internal CA is fine. Postgres and the control service listen only on 127.0.0.1.
Outbound, the complete list:
| From | To | Why | Required |
|---|---|---|---|
| Control service | company IdP | sign-in: discovery, JWKS, code exchange | yes, with SSO |
| Control service | your LLMs | model calls | yes |
| Control service | SIEM | audit log forwarding | if configured |
| Control service | account hook | employees' personal tokens | if configured |
| Workspaces | Eggent address (Caddy) | model gateway, audit log | yes |
| Workspaces | GitLab, Kubernetes and other internal systems | agent work with a personal token | your call |
| Workspaces | the internet | web search and reading pages, npm/pip packages, the agent's model directory | no |
07Authentication and access
- SSO. OpenID Connect: Keycloak, ADFS, Entra ID, Okta, Yandex 360 and any compatible provider. SAML connects through Keycloak as a broker. Password sign-in can be turned off for employees.
- Sign-in checks: PKCE (S256), state and nonce, the ID token signature against JWKS (RS/PS/ES), issuer, audience, expiry. An address with email_verified=false is never linked to an existing employee.
- Roles. Company administrator (IT) and employees. The administrator signs in through the same IdP; their password stays as a fallback in case the IdP is down.
- Blocking. A button in the console or an API call closes sign-in, ends all of the person's open sessions and stops their workspace. It takes effect at once.
- Workspace session: an HttpOnly cookie signed with the workspace secret, 7 days. Blocking or a password change invalidates every session issued before it.
- External systems (Backstage, an HR system): company API keys from the console. Stored only as a hash; rights limited to managing employees: create, issue a sign-in link, block, list. Revoked with one click.
- Sign-ins, blocks and console actions are written to the audit log.
08Data and secrets
| What | Where | Protection |
|---|---|---|
| Files, chats, agent memory | the employee's folder on the server disk | visible only to their container; disk encryption by the server's own means |
| Employees, teams, policies, audit log, usage | Postgres (bundled or your own) | reachable only from 127.0.0.1 |
| Model keys, IdP client secret, hook secret, employee secrets | Postgres | AES-256-GCM; the encryption key is in the server's settings file (mode 600) |
| Workspace tokens and API keys | Postgres | hashes only |
| Employee's personal tokens (GitLab etc.) | their container's environment | visible to that employee's agent; issue narrow rights |
| Company skills | server disk | every version is kept |
Data leaves the server only for addresses you configured: your LLMs, SIEM, hook. If the company connects an external model provider, requests and the parts of files the agent works with go to that provider. The Eggent vendor has no access to the data.
Backups: a Postgres dump and an archive of the data folder with standard tools. Keep the encryption key separately: without it the encrypted fields cannot be read.
09Audit log and SIEM
What is recorded
- employees' requests to the agent;
- every agent action: tool, command, file path or address, error, including helper agents and scheduled tasks;
- sign-ins, blocks, actions in the console and through the API, and reads of the log itself;
- refused model access.
Keys, tokens and passwords of known formats are masked in the records.
How it works
Out of the agent's reach. Events leave the workspace for the server as work happens; if the server is unreachable they queue and are sent later. The agent cannot delete what has already been sent.
Storage: Postgres on the server, 180 days by default (configurable).
Viewing: filters by employee, type, date and text; CSV and JSONL export.
SIEM: a webhook (JSON over HTTPS, HMAC-SHA256 signature) or syslog over TCP. Forwarding is continuous with a cursor: anything missed is sent later.
10Installation and updates
Requirements. Linux x86_64, Docker 24+ with Compose v2. A guide for 100 people: 8 vCPU, 32 GB RAM, 300 GB SSD. Usually about a third of workspaces are active at once at 300–500 MB each; idle ones go to sleep and use no memory. You need DNS for the domain and *.domain, a certificate (an internal CA is fine), an OpenAI-compatible model address and an application in your IdP.
Components. Three services, Caddy, the control service and Postgres 17, plus one container per employee, which the control service creates itself.
Installation without internet
- You receive a release archive: images, the installer and SHA-256 checksums.
- The first run of
install.shcreates a settings file with random secrets. - You enter the domains, the model address and the support address in it.
- The second run, with the certificate and the CA root: verifies checksums, loads the images, starts the services, creates the company and the administrator account.
- Then the IdP, models and skills are connected in the console.
Updates take one command, update.sh: checksums are verified, the current images are kept for rollback, database migrations run in order, workspaces are recreated without cutting off agents' running tasks. Rollback is restoring the kept images. The current version is shown at /health.
11Hardening recommendations
What matters when you evaluate the platform, and what we recommend turning on in your installation.
- Give the agent narrow tokens. The agent sees everything in its container, including the employee's personal tokens. A namespace of its own in Kubernetes, a group of its own in GitLab, and the damage of a mistake stays within them.
- Account for prompt injection. Instructions inside someone else's document or a web page can influence what the agent does. Container isolation, narrow tokens, network rules and the audit log limit the damage.
- Harden the container boundary. It is a Docker-level boundary (a shared Linux kernel), and inside it the agent has sudo to install packages and run code. We recommend userns-remap or rootless Docker and a current kernel. We have not yet tested running under gVisor or Kata Containers.
- Restrict the workspaces' network. By default they can reach the internet and the internal network. DOCKER-USER rules are in section 06.
- The audit log leaves with a delay of seconds. Until sent, events sit in the workspace; what has been sent the agent cannot delete.
- Encrypt the path to SIEM. Syslog goes over TCP without TLS; for encrypted delivery use the HTTPS webhook or a local forwarder.
- Block people who leave. There is no SCIM yet: someone removed from the IdP cannot sign in again, but an already open session lives up to 7 days. Blocking in the console or through the API (for example from the HR system) ends it at once.
- Keep backups. An installation is one server today; resilience comes from backups and restore. Running on several nodes is planned.
12What it is made of and how it was tested
- The core is Eggent's open source (MIT license): the agent and the workspace interface, files and history, session checks, audit event recording, secret masking. The source is open on GitHub and available for audit.
- The Enterprise part is the control service: console, SSO, model gateway and policies, audit log and SIEM forwarding, company skills, account issuing, the installer. Delivered as ready images in the release archive.
- Automated tests for every module, against a real Postgres database. They include refusals: a foreign or expired ID token signature, tampered state and nonce, an agent trying to change a company skill, a request to a closed model, secret masking in the audit log.
- End-to-end testing (e2e) on a clean isolated server with an internal CA and a real Keycloak 26. A from-scratch install from the archive, then a 23-step scenario: IdP sign-in with groups, employee auto-creation, skills by team, model policy, the account hook, agent work with a real model, the audit log and its export, SIEM forwarding, an API key, blocking. Then two updates on top of the running installation.
- A demo environment with Backstage, a GitLab-compatible repository and an internal model: we'll show it on a call.
Questions left?
Send us your security team's questions and we'll answer in writing. We'll show the demo environment: IdP sign-in, your own model, the audit log in SIEM.