Tangigo
ProductPricingDocsEngineering notesSecuritySupport
LoginStart free

Engineering notes · Security

Credentials an agent can use but never read

An agent that can read a secret can leak it. Tangigo stores credentials write-only, resolves them per call, injects HTTP credentials outside the agent process and gives build jobs a token that expires with them.

Tangigo engineering · · 3 min read

An AI agent is a program whose next action is decided by text it read. Some of that text comes from places you do not control: a web page, an issue comment, a file in a dependency. If the agent can read a credential, a well-crafted piece of text can ask it to print one. The safest secret, then, is one the agent never holds.

That principle shaped how Tangigo stores and uses credentials. There are three tiers, and they never mix: the platform's own secrets, your organization's credentials, and the short-lived tokens a build job runs on.

Your credentials: metadata and a sealed handle

When you add a credential, two things are created. One is a registry entry that anyone in your organization with access can read: the provider, the auth type, the scope, the environment, the data class, the rotation schedule and its status. The other is the secret itself, which goes into a secret store and is referenced from the entry by an opaque handle.

The secret is write-only. You provide it once on create and again on rotate. No read path returns it, and a test checks that it appears in no version snapshot or change note. Every registry kind, not only credential bindings, refuses fields whose names mark them as secrets, so a token pasted into the wrong form is rejected rather than stored in the clear.

The handle is cryptographically bound to your organization and to the binding it belongs to. A handle copied into another binding, or another organization, resolves to nothing. Stored secrets are encrypted under a key per organization, and deleting an organization destroys its key.

Resolved per call, not per session

A credential is resolved at the moment a tool call needs it. The resolution checks that the binding is active, in scope, on the right environment, wanted by the skill the tool belongs to, and usable by the agent asking. It is audited and rate-limited per binding. A binding can be no wider than the tool it is injected into.

For HTTP tools, the agent never sees the credential at all. The agent's process sends only a binding id; the platform's gateway resolves the secret and injects it into the outbound request. An agent that has been talked into printing its credentials has nothing to print.

For MCP servers the credential is resolved in the orchestrator, because that is where the connection opens. That is a wider exposure than HTTP injection, and we say so in our documentation rather than pretending the two are the same. Delegated OAuth grants can be stored but are not injected yet; we would rather refuse than half-support them.

Build jobs: one token that expires

A story build runs in an isolated job, and the job's environment carries exactly one credential: a token minted for that execution. It names the story, the module and the repository the job may touch, and it expires with the job. There is no internal service token, no model API key and no personal access token in that environment, and the deploy pipeline checks the job's environment against an allow-list and fails the deploy if anything else appears.

Everything else is brokered at the moment of use, into memory only. The repository credential is brokered for that one repository; through the GitHub App it is an installation token valid for one hour. The model keys are issued per provider the squad uses. The git credential never reaches disk: git asks for it through a helper, and the remote holds only a username. The squad's own file tools refuse to read or write the git directory, and anything shaped like a token is redacted from the progress feed and error text.

What we do not claim

This design narrows what an agent can leak. It does not make a compromised model provider or a malicious repository harmless, and it does not replace your own review of what a build changes. Our security page lists the controls that exist today and names the ones that do not. If you find a gap, the address to write to is on that page.

Ship AI-built software you can actually sign off.

Start on the free tier with your own repository. Bring your standards; the squad works inside them.

Start freeTalk to sales