Data Report · RedactSure Research
Chris Sowa · Founder, RedactSure
Published
Last updated
What Credentials Does Devin Hold in My Infrastructure?
Everything in its store, at the organization, personal, repository or session level, which Devin types into pages and binds into shell commands, plus the git permission and the connection back to Cognition. Ask which level each credential uses, where it is kept, and what the model receives on the page where the value appears.

Every credential an agent can use is a line in a store, and Devin's store has four levels: organization, personal, repository and session. A developer who adds a production deploy key to that list has handed the session a value it can type into a page or bind into a command, and those two deliveries fail in different places. The four levels are different assets, because a value scoped to a session is not the same as one scoped to the organization, and neither matches the repository grant the machine uses to clone code or the connection a run makes back to Cognition. A team that cannot say which of those a task needs hands over all of them, and the exposure is the value a model reads on a rendered page as much as the value sitting in the store. The cost is dull and familiar: a key added at the organization level for one migration stays reachable by every later session, and a key typed into a dashboard field sits on a page the model reads for the rest of the task. The two questions are separate, and a review that answers only the first leaves the second unasked.
Key findings
- For a Devin task to keep a production key out of the model's context, a rendered page would have to show a consistent token in place of the value before any model reads it, so the run works with HOSTING_KEY_03 and the real key resolves only at the approved destination (What Is Least Exposure?).
- A named person would also have to approve every release of the real value, with a record of the screen the model received, because a scope governs what a run may use and says nothing about what it was shown (What Is a Tethered Agent?).
- What the pages leave open is the screen: four scopes and two deliveries are documented, and the pages do not state whether the model sees the value after either (Cognition, Secrets, 2026).
- Its enterprise page answers the connection back to Cognition: "All data transmission is encrypted in transit and at rest" and "By default, Cognition does not train its models on customer data or code," which covers the channel rather than the screen (Cognition, Enterprise, 2026).
- For code access, administrators "Choose whether to grant Devin access to All repositories or Select repositories," and "Devin uses the permissions granted at the organization level," a repository grant and not a per-task one (Cognition, GitHub, 2026).
- OWASP's guidance for CI/CD credentials sets the standard this inventory invites: "Prefer using temporary credentials over static credentials," and "Avoid sharing the same set of credentials across multiple contexts" (OWASP, 2026).
What does a Devin session read, and where does this page's scope stop?
The rendered page is where a browser control acts: dashboards, consoles, settings pages and the forms a sign-up passes through. The terminal, the IDE, the local filesystem, direct API calls and MCP sit outside that boundary. Devin works on both sides of that line, opening pages and filling fields in a browser and running commands in a shell, so the title's answer has two halves and each half has its own control.
The record for this page is a session credential bound to one command. A developer adds a value at the session level, the task runs a deploy step, and Devin binds the value as an environment variable for that command. The value is then in the process for as long as the command runs, and a command that prints its environment writes it into the transcript. A second task that reuses the value repeats the exposure, and the level chosen for the value has nothing to say about either.
The browser half is easier to miss. A task that deploys through a provider's dashboard opens the environment settings page, and that page renders the value in a field the session filled. The model reads the page like any other page it opens, and no setting on the store changes what the page shows. A fresh machine per task, which some agents document, narrows what a run can reach across tasks and leaves the rendered page exactly as it was (Does Each Agent Task Need a Fresh Sandbox?).
That is the split the rest of the page works from. A level decides which sessions may use a value, and a rendered page decides what the model sees. Devin's documentation is specific about the first and quiet about the second, so an inventory that stops at the store answers half the question and leaves the half a reviewer will ask about.
Which four levels does Devin document, and what does each one reach?
Cognition's page names the levels: "scopes are organization, personal, repository and session", and each one decides which sessions reach the value (Cognition, Secrets, 2026). The organization level is the broadest, since a value added there serves the organization's sessions rather than one task. The personal level belongs to the person who added the value. The repository level ties a value to a repository. The session level ties it to the run in progress, and a session value is "scoped purely to the current session and are not saved for any future sessions" (Cognition, Secrets, 2026).
"All secrets are encrypted at rest" is the protection the page states, and it applies to the store rather than to the page a value is typed into (Cognition, Secrets, 2026). For an inventory the level is the first column and the value is the second: a production deploy key at the organization level is reachable by every session in the organization until someone removes it, a key at the repository level sits between that and one task, and a session key ends with the run.
The level is also a sharing decision. One organization-level key used for every task has been given the broadest reach for the convenience of not choosing again. A team can write the level beside each value in its inventory and see at a glance which production credentials are reachable by a task that has no business with them, which is a smaller exercise than reviewing every session after the fact.
The limit is worth stating plainly because scoping advice usually stops short of it. The level governs which sessions may use the value. It does not govern what the model reads when the value is typed into a page or printed by a command, and no level changes that. The narrowest scope still leaves a rendered page showing the value to the model that reads it.
What can a Devin session read in your repository settings?
Code access arrives through a repository integration that describes a choice rather than a value: administrators grant either all repositories or a selected list. The integration page states that "Devin uses the permissions granted at the organization level", so the grant is decided once for the organization (Cognition, GitHub, 2026). It is the widest grant in the inventory after the organization-level credential itself. The page names no personal access token and does not describe which credential the machine holds for git, so the inventory has a permission and no value behind it.
The pages the run can open carry the other half. A session with repository access reads settings pages where tokens and deploy keys are listed, and those pages hold password-equivalent material (What Can an AI Agent See in Your GitHub Settings?). A permission that lets the machine clone a repository also lets the session open the page where that repository's integrations are configured, and the model reads what the page renders.
Cognition's enterprise page points credentials at "Cognition's Secrets Manager under the Settings page", a settings page a session can open and read (Cognition, Enterprise, 2026). For a dedicated deployment it states that "all customer data remains within the customer's tenant", which settles where the store sits and says nothing about what the model reads when a value appears on a page (Cognition, Enterprise, 2026).
A session's work also leaves the machine. The run's pages and commands are processed on Cognition's side, and the enterprise page's encryption and training statements describe that channel rather than the screen. A reviewer checking the inventory should ask three things: where the credential store sits, who administers the organization grant, and which value the machine holds for git.
What do the vendors themselves say?
Three Cognition pages describe the store, the deliveries and the protections around them. The delivery is explicit: "In the browser, Devin types the value directly," so the value is drawn on the page the session works from (Cognition, Secrets, 2026). For commands it "binds secrets as environment variables whenever needed", which puts the value in the process that runs the command (Cognition, Secrets, 2026). The same page lists the four levels and states that values are encrypted at rest.
AWS documents the scoped shape of the same idea: "The resulting session's permissions are the intersection of the role's identity-based policy and the session policies," a ceiling on what a temporary credential can reach (AWS, AssumeRole, 2026). That is a vendor describing a credential bounded by two policies at once, which is the property a session-level value on Devin has at a smaller scale. The same reference puts the session on a clock with a minimum of 900 seconds, a property a static key in a store does not have.
| Dimension | Cognition, per its documentation | What a buyer should verify |
|---|---|---|
| Where values live | Four levels: organization, personal, repository and session | Which level each production value uses, and who can change it |
| Browser delivery | "In the browser, Devin types the value directly" | What the model reads on the page after the typing |
| Shell delivery | Values bound as environment variables for a command | Which commands can print the environment |
| Protection in the store | Encrypted at rest | Who can read the store, and whether it sits in the customer's tenant |
| Code access | All repositories or a selected list, permissions granted at the organization level | Which credential the machine holds for git |
| What the model sees | Not stated on the pages reviewed | The screen as the model received it |
The last row is the one no vendor page fills. Cognition documents a store with four levels, two deliveries, an organization-level git grant and a tenant boundary for dedicated deployments, and none of those descriptions says what the model receives when a value reaches a page. A buyer who asks only the first five questions gets a complete answer about custody. The sixth decides what a leaked transcript contains.
What changes when the credential is bound to a command instead of a page?
A session value bound to one command lives for the length of that command. The binding happens at run time, the value sits in the environment of the process, and the process can print it, pass it to a child process or write it into a log. The level ends with the session, not with the command, so the next step can bind the value again. That is the half of the inventory a browser control does not touch.
The boundary around that half is a permission prompt. A command the developer approves can write anywhere the user account can, which is the developer's access and not the task's (What Is the Least Access a Coding Agent Needs to Finish a Task?). A value bound to a command inherits that reach, and a key read off a console page does not expire the way a role session does (What Can a Browser Agent See in My AWS Console?).
The documented alternative is a credential that expires. AWS describes a role session whose value "can range from 900 seconds (15 minutes) up to the maximum session duration set for the role" (AWS, AssumeRole, 2026), so a task that needs a value for one deploy can be given something that dies with it.
Storage practice covers the other end. "With Secrets Manager, you can configure an automatic rotation schedule for your secrets" (AWS, Secrets Manager, 2026). The same page describes the runtime pattern: "You replace hard-coded credentials with a runtime call to the Secrets Manager service to retrieve credentials dynamically when you need them" (AWS, Secrets Manager, 2026). Detection is the last layer: "Pipeline secret detection runs as part of a project's CI/CD pipeline," and an exposed value should be revoked and replaced as soon as possible (GitLab, 2026). None of these layers changes what a rendered page shows a model; they change how long a value lives and how quickly a leaked one stops working.
What does a governed environment change?
A governed environment acts where a page is rendered, before any model reads it. Values chosen by policy are replaced with consistent tokens for the whole run, so the model works with HOSTING_KEY_03 instead of the key. Real values resolve only at the approved destination, at the moment of an approved action. A named person approves each release, and every screen, action and approval is written to a record that exports to the organization's own monitoring.
For this page's question it changes the half the store cannot reach. The inventory still has four levels and two deliveries, and the shell half stays with the sandbox. The page half changes: the settings page where the value is entered renders the token, the dashboard that later lists it renders the token, and a prompt injection on either page collects a label rather than a key. The substitution is enforced outside the model where it is integrated, so the run's model is never asked to keep the value to itself.
Because the substitution happens before any model reads the page, the same controls work with any model, and the customer chooses the frontier or open-source model without changing what the page shows. Coverage is per application: an application that renders in the governed environment is covered, and a supported workflow is one that runs through those pages rather than through a terminal.
Two limits belong with the claim. The rendered page is the boundary, so a value bound to a command, a file the agent reads from disk and an API call made from a shell are outside it. The record shows what the model received on each page. The category comparison is set out in RedactSure vs Devin: 2026 Comparison & Alternative, and the mechanism that keeps a value out of the model's view while a command still uses it is described in Can a Coding Agent Use a Credential It Cannot Read?.
What the record shows
What the model receives on a rendered page is the half of this inventory no store setting decides. On the pages reviewed, Devin's documentation answers the custody questions: four levels, a session value that ends with the run, two deliveries, an organization-level grant for code, encryption in transit and at rest, and a tenant boundary for dedicated deployments. None of it says what the model receives when a value appears on a page. A team can check its own account with one task: name the level of the production value, run the task, capture the screen the model received at the moment the value appeared, and search that capture for the value. Run the same test on the settings page and on the dashboard the task opens next, and compare the two captures; if the value appears in either, the control is in the store and not on the page.
Methodology and limitations
This page rests on Cognition's secrets, GitHub integration and enterprise pages, two AWS reference pages, GitLab's secret detection documentation, OWASP's CI/CD credential guidance, two press reports on GitGuardian's 2026 study, and existing RedactSure research pages. Vendor pages were read between October 20, 2026 and November 4, 2026, and each Sources line carries the date for its page. Public documentation read in full gives a sound view of where each product applies its control.
No product on this page was tested for it, and "not described in the pages reviewed" means the pages reviewed here. Vendor features change and the page carries its date, so a release after that date is unreviewed until the check above is repeated. RedactSure is deploying now with enterprise and government customers. The example describes a record type, a session credential bound to one command, and not an organization. Determinations about whether a workflow meets a contractual, regulatory or audit requirement belong to counsel, assessors and the organization's own security and compliance officers. Nothing here replaces a run of one workflow on the organization's own screens.
Frequently asked questions
What credentials does Devin hold, and what does a session read?
Every value added to its credential store, at the organization, personal, repository or session level, plus the repository permission behind its GitHub integration. Cognition documents the four levels and the two deliveries: a value typed into a browser page and a value bound as an environment variable for a command, with values encrypted at rest. The store is a list a reviewer can read, so the level chosen for each value is the first thing to check.
Which level should a production credential use?
Session, for anything one task needs: that value ends with the run and is not saved for a future session. Organization and repository levels are for values reused across tasks, and the broader the level the more sessions can reach the value. An organization-level key added for one migration stays reachable until someone removes it, which is a decision worth writing down before the key is added. A session value is not saved for a later run, so the next task starts without it.
Can Devin read a credential after typing it into a page?
The pages reviewed do not say. The browser path types the value into the page the session works from, so the model reads a page that contains it, and whether the model receives the value itself or a masked form is not answered there. A masked form in the field would change that answer, and the page does not describe one. Capture the screen the model received at the moment the field was filled, then search the capture for the value.
Who approves a credential's use on a session?
No per-action approval is documented. A person chooses a level when the value is added, and the session then uses it as the task requires, typing it into a page or binding it to a command. That decision governs which values the run may reach, not each action that releases one. A control that names an approver for each release sits above this layer, and a reviewer should ask for it in writing.
How many credentials sit exposed in code a model can read?
Help Net Security reports "28,649,024 new secrets exposed in public GitHub commits across 2025" (Help Net Security, 2026). The same report counts "24,008 unique secrets exposed in MCP configuration files" (Help Net Security, 2026). The numbers matter here because a value that reaches a repository, a transcript or a config file joins that population. "AI agents need local credentials to connect across systems", the study's author adds (GitGuardian, CIO Dive, 2026). A value that expires with the task is worth less to whoever finds it.
What should a team record before adding a production value?
Five things: the level the value uses and who else can reach it; whether it is typed into a page or bound to a command; what the model receives on the page where it appears; who can read the store, and whether the store sits in the customer's tenant; and what record shows which session used the value. An answer the documentation does not support is unanswered until a test run on one workflow confirms it.
How RedactSure Keeps a Session Credential Off the Page
An agent that types a value into a settings page has read it, and a session-level scope does not take it off the screen.
The environment that enforces this is built by RedactSure, an AI agent controls, governance and data protection company.
Before: the session opens the settings page where the session value is added, types the production key into the field, and the model reads the key there and on the environment page it opens next. Inside the governed environment: the settings page renders HOSTING_KEY_03 in place of the key, the real key is released only to the destination a named person approved, and the record names the page and approver.
RedactSure is deploying now with enterprise and government customers. Cognition's page says Devin types the value directly into the browser field.
Everyone else controls where data can go. RedactSure controls what the AI can see.
See it on your own workflow
An inventory that names four levels still leaves the screen open, and the screen is what a reviewer will ask about. Pick one credential your agent uses and watch, with test values, what the model reads when the value appears. Book a demo