<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Serge Zhuravel</title>
    <description>The latest articles on DEV Community by Serge Zhuravel (@sergezh).</description>
    <link>https://dev.to/sergezh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3925765%2Fdc3f364f-c056-4f44-a9dc-53d13823d5a0.png</url>
      <title>DEV Community: Serge Zhuravel</title>
      <link>https://dev.to/sergezh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sergezh"/>
    <language>en</language>
    <item>
      <title>Where to Store MCP Server API Keys in Claude Code Without Committing Them</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:15:00 +0000</pubDate>
      <link>https://dev.to/ennote/where-to-store-mcp-server-api-keys-in-claude-code-without-committing-them-52c6</link>
      <guid>https://dev.to/ennote/where-to-store-mcp-server-api-keys-in-claude-code-without-committing-them-52c6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; do not put the key itself in &lt;code&gt;.mcp.json&lt;/code&gt;. If the server supports OAuth, sign in with &lt;code&gt;/mcp&lt;/code&gt; and the file holds only a URL. Otherwise commit a &lt;code&gt;.mcp.json&lt;/code&gt; that contains &lt;code&gt;${VAR}&lt;/code&gt; references, and supply the values through your environment or a secret manager. The commands &lt;code&gt;claude mcp add --env&lt;/code&gt;, &lt;code&gt;--header&lt;/code&gt; and &lt;code&gt;add-json&lt;/code&gt; write whatever you type to disk, and &lt;code&gt;claude mcp get&lt;/code&gt; prints it back, so a literal key passed to them is a literal key in a file.&lt;/p&gt;

&lt;p&gt;This guide is based on the Claude Code documentation, opened on October 22, 2026, and on a test of version 2.1.307 on Linux that used &lt;code&gt;claude mcp&lt;/code&gt; commands with fake keys. No model session was run, because the CLI was not logged in; servers were exercised through the health check that &lt;code&gt;claude mcp list&lt;/code&gt; runs, so everything below is about configuration and what the CLI writes or prints. Observed results come from one run each and may differ on your version. The changelog records several changes to how &lt;code&gt;claude mcp&lt;/code&gt; displays credentials since September, so check yours with &lt;code&gt;claude --version&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where does Claude Code keep MCP server settings?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; in one of three places, chosen by scope. Only the project scope is shared through git.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Stored in&lt;/th&gt;
&lt;th&gt;Shared with the team&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;local (default)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;~/.claude.json&lt;/code&gt;, under the entry for your project path&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;project&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.mcp.json&lt;/code&gt; in the project root&lt;/td&gt;
&lt;td&gt;Yes, if you commit it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;user&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;~/.claude.json&lt;/code&gt;, top level&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The docs recommend local scope for "servers with credentials you don't want in version control". Two details trip people up. MCP's local scope lives in &lt;code&gt;~/.claude.json&lt;/code&gt;, not in &lt;code&gt;.claude/settings.local.json&lt;/code&gt;. And precedence is by whole entry: local beats project beats user, and "fields are not merged across scopes". A local server with the same name as a project one replaces it entirely, including its &lt;code&gt;env&lt;/code&gt; and &lt;code&gt;headers&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On managed machines there is also &lt;code&gt;managed-mcp.json&lt;/code&gt; (for example &lt;code&gt;/etc/claude-code/&lt;/code&gt; on Linux). The docs warn that any user on the machine can read it, so it should not hold keys in &lt;code&gt;env&lt;/code&gt; blocks.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do &lt;code&gt;claude mcp add&lt;/code&gt; and &lt;code&gt;claude mcp get&lt;/code&gt; do with a key?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; &lt;code&gt;add&lt;/code&gt; writes the literal value to the scope's file, and &lt;code&gt;get&lt;/code&gt; and &lt;code&gt;list&lt;/code&gt; print literal values. Only &lt;code&gt;${VAR}&lt;/code&gt; references stay masked.&lt;/p&gt;

&lt;p&gt;Observed on version 2.1.307, with values like &lt;code&gt;sk-test-FAKE-123&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;claude mcp add name --transport stdio -e API_KEY=... -- command&lt;/code&gt;, the same command with &lt;code&gt;--header "Authorization: Bearer ..."&lt;/code&gt; for a remote server, and &lt;code&gt;claude mcp add-json&lt;/code&gt; stored the value in plaintext. With &lt;code&gt;--scope project&lt;/code&gt;, it went into &lt;code&gt;.mcp.json&lt;/code&gt;, which was created with mode 644, so it is readable by other users and ready for &lt;code&gt;git add&lt;/code&gt;. &lt;code&gt;~/.claude.json&lt;/code&gt;, which holds user and local scope, was mode 600.&lt;/li&gt;
&lt;li&gt;After &lt;code&gt;add --header&lt;/code&gt;, the command's own output showed &lt;code&gt;"Authorization": "[REDACTED]"&lt;/code&gt;. The file still held the full value.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;claude mcp get&lt;/code&gt; printed header values, &lt;code&gt;env&lt;/code&gt; values, &lt;code&gt;args&lt;/code&gt; and URL query strings as stored. This included a project server that was still waiting for approval. &lt;code&gt;claude mcp list&lt;/code&gt; printed the command line and URL, including &lt;code&gt;--api-key ...&lt;/code&gt; and &lt;code&gt;?key=...&lt;/code&gt; parts.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;${VAR}&lt;/code&gt; reference was shown by name, not value, and the docs say the same.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The changelog for version 2.1.161 says credential headers and URL secrets are redacted in these commands, and later releases changed what is displayed. That did not match what was observed for &lt;code&gt;get&lt;/code&gt; with these fake values, so the redaction may depend on the shape of the value. Treat &lt;code&gt;get&lt;/code&gt; and &lt;code&gt;list&lt;/code&gt; output as sensitive when an entry holds literals, and do not paste it into issues or chats.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which method should you use?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; pick the first row that your server supports.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Use when&lt;/th&gt;
&lt;th&gt;What lands in the file&lt;/th&gt;
&lt;th&gt;Main caveat&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OAuth (&lt;code&gt;/mcp&lt;/code&gt; or &lt;code&gt;claude mcp login &amp;lt;name&amp;gt;&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;The remote server supports OAuth&lt;/td&gt;
&lt;td&gt;Type and URL only&lt;/td&gt;
&lt;td&gt;The docs say tokens are "stored securely" but do not say where&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;${VAR}&lt;/code&gt; reference&lt;/td&gt;
&lt;td&gt;Any stdio server, or a remote server with a static token&lt;/td&gt;
&lt;td&gt;The variable name&lt;/td&gt;
&lt;td&gt;Values must come from your environment; unset variables are not an error&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;headersHelper&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Remote server that needs short-lived or computed headers&lt;/td&gt;
&lt;td&gt;The path of a script&lt;/td&gt;
&lt;td&gt;Runs for up to 10 seconds; project-scope helpers lose credential-looking variables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrapper command&lt;/td&gt;
&lt;td&gt;The stdio server needs secrets from a manager&lt;/td&gt;
&lt;td&gt;The wrapper's command line&lt;/td&gt;
&lt;td&gt;Not covered by Claude Code docs; verify it in your setup&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Also, if a configured &lt;code&gt;Authorization&lt;/code&gt; header is rejected, there is no OAuth fallback. The docs say the connection is reported as failed instead of falling back, and &lt;code&gt;claude mcp list&lt;/code&gt; printed: "OAuth fallback is disabled when headers.Authorization is set."&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you write a &lt;code&gt;.mcp.json&lt;/code&gt; that holds no keys?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; reference variables by name in &lt;code&gt;command&lt;/code&gt;, &lt;code&gt;args&lt;/code&gt;, &lt;code&gt;env&lt;/code&gt;, &lt;code&gt;url&lt;/code&gt; and &lt;code&gt;headers&lt;/code&gt;. Claude Code expands &lt;code&gt;${VAR}&lt;/code&gt; and &lt;code&gt;${VAR:-default}&lt;/code&gt; in those fields.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"example-local"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"stdio"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"example-mcp-server"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"EXAMPLE_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"${EXAMPLE_API_KEY}"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"example-remote"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp.example.com/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer ${EXAMPLE_MCP_TOKEN}"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;example-mcp-server&lt;/code&gt; and &lt;code&gt;mcp.example.com&lt;/code&gt; are placeholders. Edit the file by hand or add it with &lt;code&gt;claude mcp add-json --scope project&lt;/code&gt;, which stored &lt;code&gt;${...}&lt;/code&gt; references unchanged in testing. Do not use &lt;code&gt;add -e KEY=...&lt;/code&gt; for this, because it takes the literal.&lt;/p&gt;

&lt;p&gt;Export the variables in the shell that starts Claude Code, or load them from a secret manager (see the last section). Three behaviors matter before you rely on this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An unset variable is not an error.&lt;/strong&gt; Per the docs, the config still loads and Claude Code "uses the unexpanded &lt;code&gt;${VAR}&lt;/code&gt; text as-is". In testing, the stdio server received the string &lt;code&gt;${UNSET_VAR_XYZ}&lt;/code&gt; as its key. The only hint is a "Missing environment variables" line in &lt;code&gt;claude mcp list&lt;/code&gt; and a warning in &lt;code&gt;/mcp&lt;/code&gt;; &lt;code&gt;claude mcp get&lt;/code&gt; output looked the same whether the variable was set or not. A typo in a variable name therefore tends to show up as a rejected request, such as a 401, and not as a startup failure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Credential-named variables read as empty in remote &lt;code&gt;url&lt;/code&gt; and &lt;code&gt;headers&lt;/code&gt;.&lt;/strong&gt; The docs: "A covered name reads as empty whether or not you have set the variable". Named examples are &lt;code&gt;ANTHROPIC_API_KEY&lt;/code&gt;, &lt;code&gt;ANTHROPIC_AUTH_TOKEN&lt;/code&gt;, &lt;code&gt;AWS_BEARER_TOKEN_BEDROCK&lt;/code&gt;, &lt;code&gt;HTTPS_PROXY&lt;/code&gt; and &lt;code&gt;NPM_TOKEN&lt;/code&gt;; the full list is not published. In testing, &lt;code&gt;Bearer ${ANTHROPIC_AUTH_TOKEN}&lt;/code&gt; arrived as &lt;code&gt;Bearer&lt;/code&gt; with nothing after it, and a header built from &lt;code&gt;NPM_TOKEN&lt;/code&gt; was empty, while a variable named &lt;code&gt;MY_TOKEN_Z&lt;/code&gt; expanded normally. The docs' fix is to copy the value into a variable with your own name and reference that. This rule applies to remote URLs and headers. A stdio &lt;code&gt;env&lt;/code&gt; value with an ordinary variable name expanded normally in the same test, and a covered name in stdio &lt;code&gt;env&lt;/code&gt; was not tried.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A local entry replaces a project one.&lt;/strong&gt; If you once ran &lt;code&gt;claude mcp add&lt;/code&gt; with a literal key at local scope under the same server name, that entry wins over the committed file, and the literal stays in &lt;code&gt;~/.claude.json&lt;/code&gt;. Per the docs, Claude Code warns in &lt;code&gt;claude mcp list&lt;/code&gt; and &lt;code&gt;/mcp&lt;/code&gt; only when the two entries point to different endpoints. Check &lt;code&gt;~/.claude.json&lt;/code&gt; for a local entry with the same name as a committed server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which environment does a stdio MCP server inherit?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; by default, all of it. A stdio server started by Claude Code saw every fake secret exported in the parent shell during testing: &lt;code&gt;ANTHROPIC_API_KEY&lt;/code&gt;, &lt;code&gt;AWS_SECRET_ACCESS_KEY&lt;/code&gt;, &lt;code&gt;GITHUB_TOKEN&lt;/code&gt;, &lt;code&gt;DB_PASSWORD&lt;/code&gt; and &lt;code&gt;NPM_TOKEN&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two settings narrow this, and both are documented in the &lt;a href="https://code.claude.com/docs/en/env-vars" rel="noopener noreferrer"&gt;environment variables reference&lt;/a&gt; rather than on the MCP page:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;CLAUDE_CODE_MCP_ALLOWLIST_ENV=1&lt;/code&gt; starts stdio servers with "only a safe baseline environment plus the server's configured &lt;code&gt;env&lt;/code&gt;". In testing, none of the fake secrets exported in the shell arrived, while the entry's own &lt;code&gt;env&lt;/code&gt; (including expanded &lt;code&gt;${VAR}&lt;/code&gt; values) did. As a result, a variable you want the server to have must now be listed in its &lt;code&gt;env&lt;/code&gt; block.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1&lt;/code&gt; removes variables that look like credentials from what Bash commands, hooks and stdio MCP servers receive. Detection uses the variable name and the value shape, so a secret whose name and value both look ordinary passes through, and the docs say GitHub tokens and proxy settings are kept. On Linux the option needs bubblewrap, so its effect on an MCP server was not observed here. Our guide to &lt;a href="https://ennote.io/blog/keep-env-secrets-away-from-claude-code" rel="noopener noreferrer"&gt;keeping .env secrets away from Claude Code&lt;/a&gt; covers it in more detail.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;env&lt;/code&gt; block in &lt;code&gt;settings.json&lt;/code&gt; is also plain text. The settings reference says its values "reach every subprocess Claude Code starts", so it is not a place for keys either.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should you use &lt;code&gt;headersHelper&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; for a remote server whose token must be fetched or refreshed, because the script runs on every connection and nothing is cached.&lt;/p&gt;

&lt;p&gt;Add &lt;code&gt;"headersHelper": "/path/to/script"&lt;/code&gt; to the server entry. The script prints a JSON object of string pairs to stdout. These headers override static headers with the same name. Observed behavior and documented limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The helper has 10 seconds. A helper that slept for 15 seconds made &lt;code&gt;claude mcp list&lt;/code&gt; take about 10.8 seconds and no helper header was sent.&lt;/li&gt;
&lt;li&gt;For project and local servers, the helper does not run until the workspace trust dialog has been accepted. Without that, &lt;code&gt;claude mcp list&lt;/code&gt; reported "headersHelper not run". A user-scope helper ran from &lt;code&gt;~/.claude&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Helpers from project scope run without credential-looking variables (names containing TOKEN, SECRET, PASSWORD, KEY or AUTH per the docs). The script must read its secret from a file or a credential store, not from the environment. In testing, a project helper did not see a custom variable called &lt;code&gt;MY_TOKEN_Z&lt;/code&gt;; a local-scope helper did.&lt;/li&gt;
&lt;li&gt;An &lt;code&gt;Authorization&lt;/code&gt; header from the helper turns off the OAuth fallback, like a static one.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What changes when a team shares the repository?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; committed servers need approval, but not in every mode, and a committed file is only as safe as what is inside it.&lt;/p&gt;

&lt;p&gt;In an interactive session, Claude Code asks before using project servers; &lt;code&gt;claude mcp reset-project-choices&lt;/code&gt; resets the answers. The docs state the limit: "Claude Code can't show that prompt: it loads project-scoped servers without asking." That covers &lt;code&gt;claude -p&lt;/code&gt;, the Agent SDK and some cloud sessions. To opt out there, use &lt;code&gt;disabledMcpjsonServers&lt;/code&gt;, &lt;code&gt;--setting-sources&lt;/code&gt; or &lt;code&gt;--strict-mcp-config&lt;/code&gt;. Approvals committed in &lt;code&gt;.claude/settings.json&lt;/code&gt; are ignored in a folder that is not yet trusted, so a cloned repository cannot approve its own servers.&lt;/p&gt;

&lt;p&gt;For an organization, &lt;code&gt;allowedMcpServers&lt;/code&gt; and &lt;code&gt;deniedMcpServers&lt;/code&gt; (deny wins) and &lt;code&gt;allowManagedMcpServersOnly&lt;/code&gt; control which servers may run, and a permission rule such as &lt;code&gt;mcp__&amp;lt;server&amp;gt;__*&lt;/code&gt; can deny a server's tools. These limit what runs. They do not protect a key that is already written in a file.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you check which keys are still on disk?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; search the places where literals end up, then confirm that references expand.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the repository: &lt;code&gt;git grep -n -E 'sk-|Bearer [A-Za-z0-9]|key=|api-key' -- .mcp.json .claude&lt;/code&gt;. This searches tracked files in the working tree only, not history, and the pattern is an example: adjust it to your providers' key prefixes.&lt;/li&gt;
&lt;li&gt;In your home config: open &lt;code&gt;~/.claude.json&lt;/code&gt; and look at &lt;code&gt;mcpServers&lt;/code&gt; and &lt;code&gt;projects.&amp;lt;your path&amp;gt;.mcpServers&lt;/code&gt; for literal values in &lt;code&gt;env&lt;/code&gt;, &lt;code&gt;headers&lt;/code&gt;, &lt;code&gt;args&lt;/code&gt; and &lt;code&gt;url&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;claude mcp list&lt;/code&gt;. A line "Missing environment variables" under the config diagnostics means a reference has no value in this shell.&lt;/li&gt;
&lt;li&gt;For a remote server, a 401 right after you changed a variable name is the symptom of an unset or blanked reference. Compare with the credential-name rule above.&lt;/li&gt;
&lt;li&gt;After each Claude Code upgrade, repeat steps 2 and 3, since display rules have been changing.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What if a key is already committed?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; revoke it at the provider first. Deleting the line from &lt;code&gt;.mcp.json&lt;/code&gt; does not change the commit history, and anyone who fetched the repository still has the key.&lt;/p&gt;

&lt;p&gt;After revoking, issue a new key, put it behind a &lt;code&gt;${VAR}&lt;/code&gt; reference, and then clean the file and, if you choose, the history. The order of actions and the provider consoles are in our guide to &lt;a href="https://ennote.io/blog/leaked-openai-or-anthropic-api-key-what-to-do-in-the-first-hour" rel="noopener noreferrer"&gt;what to do when an OpenAI or Anthropic key leaks&lt;/a&gt;. If a key was only printed by &lt;code&gt;claude mcp get&lt;/code&gt; in a terminal or a shared screen, treat it as exposed to whoever saw it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where should the values come from?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; from a secret manager that puts them in the environment of the process that needs them, so no dotfile holds them.&lt;/p&gt;

&lt;p&gt;The MCP authorization specification says a stdio server "SHOULD NOT follow this specification, and instead retrieve credentials from the environment". Environment variables are the expected channel, and &lt;code&gt;${VAR}&lt;/code&gt; references are how Claude Code hands them over. What remains is how the variables get into your shell without a plaintext &lt;code&gt;.env&lt;/code&gt; or a shell profile line.&lt;/p&gt;

&lt;p&gt;One option is a CLI that runs a command with secrets injected. Ennote, the company behind this blog, makes one, and its CLI documents &lt;code&gt;ennote secret get &amp;lt;secret-name&amp;gt; -- &amp;lt;command&amp;gt;&lt;/code&gt;, which injects a secret's keys as environment variables of the child process, and &lt;code&gt;ENNOTE_TOKEN&lt;/code&gt; for machine identities in headless use. Wrapping a stdio server in it would look like &lt;code&gt;claude mcp add example-local --transport stdio -- ennote secret get example-keys -- npx -y example-mcp-server&lt;/code&gt;. That combination was not run for this article. Two things to check if you try it: with &lt;code&gt;CLAUDE_CODE_MCP_ALLOWLIST_ENV=1&lt;/code&gt; the wrapper itself needs its own credentials in the entry's &lt;code&gt;env&lt;/code&gt;, which brings back a secret in a file, and the environment scrub may remove a variable named like a token. The Ennote docs do not mention MCP, so confirm both in your setup.&lt;/p&gt;

&lt;p&gt;For remote servers the same idea applies one level up: start Claude Code from a shell where the secret manager has already exported the variables your &lt;code&gt;${VAR}&lt;/code&gt; references expect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code docs, opened October 22, 2026: &lt;a href="https://code.claude.com/docs/en/mcp" rel="noopener noreferrer"&gt;MCP&lt;/a&gt;, &lt;a href="https://code.claude.com/docs/en/env-vars" rel="noopener noreferrer"&gt;Environment variables&lt;/a&gt;, &lt;a href="https://code.claude.com/docs/en/settings-reference" rel="noopener noreferrer"&gt;Settings reference&lt;/a&gt;, &lt;a href="https://code.claude.com/docs/en/managed-mcp" rel="noopener noreferrer"&gt;Managed MCP&lt;/a&gt;, &lt;a href="https://code.claude.com/docs/en/changelog" rel="noopener noreferrer"&gt;Changelog&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Model Context Protocol, &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization" rel="noopener noreferrer"&gt;authorization specification, 2025-11-25&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Ennote: &lt;a href="https://docs.ennote.io/cli/overview" rel="noopener noreferrer"&gt;CLI overview&lt;/a&gt;, &lt;a href="https://docs.ennote.io/cli/quickstart" rel="noopener noreferrer"&gt;CLI quickstart&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Observed behavior: Claude Code CLI 2.1.307, Linux, fake values, one run per case, no model session&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Keep keys out of dotfiles.&lt;/strong&gt; Ennote is a secret manager for passwords, API keys and environment variables, with role-based access and an audit log. &lt;a href="https://app.ennote.io/?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=mcp-server-api-keys-claude-code&amp;amp;utm_content=footer" rel="noopener noreferrer"&gt;Start for free&lt;/a&gt; on the Developer plan.&lt;/p&gt;

</description>
      <category>secretmanagement</category>
      <category>devsecops</category>
      <category>cybersecurity</category>
    </item>
    <item>
      <title>Leaked OpenAI or Anthropic API Key? What to Do in the First Hour</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Wed, 25 Nov 2026 19:00:48 +0000</pubDate>
      <link>https://dev.to/ennote/leaked-openai-or-anthropic-api-key-what-to-do-in-the-first-hour-g35</link>
      <guid>https://dev.to/ennote/leaked-openai-or-anthropic-api-key-what-to-do-in-the-first-hour-g35</guid>
      <description>&lt;h1&gt;
  
  
  Leaked OpenAI or Anthropic API Key? What to Do in the First Hour
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; revoke the key in the provider's console first. Removing it from a commit, a .env file or a third-party tool leaves it valid for anyone who already copied it. Then issue a new key for each app that needs one, check usage for the leak window, set a spend limit that blocks requests, and only after that clean up git history and other copies.&lt;/p&gt;

&lt;p&gt;This guide covers what to do with a leaked API key from OpenAI, Anthropic or Google Gemini. Every console path and quote below was checked against the cited source on October 20, 2026. The trigger for writing it was the OpenCode Console breach, disclosed on October 17, 2026: provider keys that users had saved in the tool may have been exposed, and several users reported drained balances.&lt;/p&gt;

&lt;p&gt;A note on words. &lt;strong&gt;Revoke&lt;/strong&gt; here means making the key unusable at the provider: OpenAI and Anthropic call this deleting the key, Google calls it disabling or deleting. &lt;strong&gt;Remove&lt;/strong&gt; means deleting your copy of the key from a file, a repository or a tool. Only revoking stops abuse.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you do first when an API key leaks?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; revoke the old key at the provider, then replace it, then measure the damage, then cap spending, then clean up. Any other order leaves the key usable while you investigate.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Revoke the key at the provider.&lt;/strong&gt; Use the provider's console, because the tool or repository where the key leaked has no say over whether it still works.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create replacement keys, one per app or environment.&lt;/strong&gt; If one shared key powered five services, issue five keys so the next incident can be contained to one of them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy the new keys&lt;/strong&gt; and confirm each service works.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review usage for the leak window&lt;/strong&gt; and save what you find: requests, models, cost per key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set a hard spend limit&lt;/strong&gt;, if you do not have one. Alerts only notify you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contact provider support&lt;/strong&gt; if you see charges you did not make.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remove the key from every place it was copied to&lt;/strong&gt;: git history, CI variables, chat logs, third-party tools.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP Secrets Management Cheat Sheet&lt;/a&gt; also starts with revocation, then rotation, then removing copies:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Keys that were exposed should undergo immediate revocation."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;How fast leaked keys get used is well documented for cloud credentials. In a 2023 honeypot by &lt;a href="https://unit42.paloaltonetworks.com/malicious-operations-of-exposed-iam-keys-cryptojacking/" rel="noopener noreferrer"&gt;Palo Alto Networks Unit 42&lt;/a&gt;, an attacker found and used AWS keys pushed to GitHub within five minutes. Those were AWS keys, and while preparing this guide we found no comparable primary measurement for OpenAI or Anthropic keys in public sources. Assume the clock starts at the moment of exposure.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you revoke a leaked OpenAI API key?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; delete the key on the API keys page of the OpenAI platform (platform.openai.com/api-keys). For project keys, open organization settings, select the project and go to API Keys. Then review usage and contact OpenAI support.&lt;/p&gt;

&lt;p&gt;Under the heading "Revoke an exposed API key", &lt;a href="https://help.openai.com/en/articles/8304786-how-can-i-keep-my-openai-accounts-secure" rel="noopener noreferrer"&gt;OpenAI's help center&lt;/a&gt; lists three steps:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"1. Delete the affected key through the API key dashboard. 2. Review your API usage for unexpected activity and keep the details. 3. Contact OpenAI Support."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;During an incident, three details matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Find the right key.&lt;/strong&gt; OpenAI projects have two kinds of keys: user keys and service account keys. Service account keys belong to the project, so removing a person from the organization does not revoke them. Check both lists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check whether OpenAI already disabled it.&lt;/strong&gt; According to OpenAI, "when OpenAI detects an API key on the public internet, or leaked inside an app in an app store, the API key is disabled immediately." That covers public leaks. A key stolen from a vendor's database does not show up in public scanning, so revoke it yourself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restrict new long-lived keys.&lt;/strong&gt; In the API key governance settings, admins can allow only service account keys, only user-owned project keys, or disable new key creation. These settings apply only to new keys, so existing keys still have to be revoked one by one.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do you revoke a leaked Anthropic API key?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; go to platform.claude.com/settings/keys, open the menu next to the key and select "Delete API key". To switch a key off through automation, the Admin API can set its status to inactive.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://support.claude.com/en/articles/9767949-api-key-best-practices-keep-your-keys-safe-and-secure" rel="noopener noreferrer"&gt;Anthropic help center&lt;/a&gt; describes the console path:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"If you suspect that your API key may be compromised, we recommend revoking the key immediately ... going to the API keys page (platform.claude.com/settings/keys), clicking the menu (i.e. the three horizontal dots) next to the key in question, and selecting 'Delete API key.'"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When you do not know which key leaked, two Anthropic features help:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Workspaces.&lt;/strong&gt; Keys can be scoped to a single workspace. Archiving a workspace archives every API key created for it within seconds. Anthropic warns that this cannot be undone, so treat it as an emergency switch for a whole team or product.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service accounts.&lt;/strong&gt; Anthropic documents that a service account key keeps working even after the user who created it is removed. If the leak came from someone's laptop, offboarding that person does not cover these keys. Check the service accounts list separately.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the OpenCode Console breach, Anthropic also acted on its side. Lydia Hallie from Anthropic wrote on October 17: "We've been working with OpenCode on yesterday's breach and have revoked Claude API keys we believe were affected" (&lt;a href="https://x.com/lydiahallie/status/2111563956666110287" rel="noopener noreferrer"&gt;post on X&lt;/a&gt;). She advised anyone who had saved a key in OpenCode to create a new one.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you handle a leaked Gemini API key?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; generate a new key, deploy it, then disable the leaked key in the Google Cloud console and audit usage. Google orders the steps this way to avoid downtime. If the key is being abused right now, disable it first.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://ai.google.dev/gemini-api/docs/api-key" rel="noopener noreferrer"&gt;Gemini API documentation&lt;/a&gt; gives this checklist:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"1. Generate a new key ... 2. Update your application ... 3. Disable or delete the compromised key: Disable the leaked key in the Cloud console once the new key is verified. Do not delete the old key until the new key is fully active to avoid application downtime. 4. Audit usage."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Gemini keys differ from OpenAI and Anthropic keys in three ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub does not block them on push.&lt;/strong&gt; In GitHub's list of supported secret patterns, google_gemini_api_key has user alerts only, with no partner reporting and no push protection. Standard Gemini keys share the format of other Google API keys, and GitHub's google_api_key pattern is reported to Google, but it has no push protection either. A Gemini key can reach a public repository without being stopped at push time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Old Google Cloud API keys can be Gemini keys.&lt;/strong&gt; &lt;a href="https://trufflesecurity.com/blog/google-api-keys-werent-secrets-but-then-gemini-changed-the-rules" rel="noopener noreferrer"&gt;Truffle Security reported in February 2026&lt;/a&gt; that enabling the Gemini API on a Google Cloud project can give existing API keys in that project access to Gemini endpoints. A Maps or Firebase key embedded in a web page years ago could then call Gemini. Google now rejects unrestricted standard keys on the Gemini API, but a restricted key whose allowed APIs include Gemini still works, so check the restrictions on old keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google blocks known leaked keys.&lt;/strong&gt; Requests with such a key fail with "Your API key was reported as leaked. Please use another API key." Since May 28, 2026, new keys created in Google AI Studio are authorization keys, which Google describes as having "fast-acting leaked key enforcement."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Restrict every key you keep: in AI Studio, add a restriction to the Gemini API only. In the Cloud console, restrictions are under APIs &amp;amp; Services, Credentials.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Know where every copy of a key lives.&lt;/strong&gt; A key that sits in a dozen .env files, chat threads and CI variables can take hours to rotate. &lt;a href="https://app.ennote.io/?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=leaked-ai-api-key-what-to-do&amp;amp;utm_content=inline" rel="noopener noreferrer"&gt;Ennote&lt;/a&gt; keeps passwords, environment variables and API keys in one place with role-based access, so replacing a key means updating it in one place. Every access to a secret in Ennote is written to an audit log, with retention depending on the plan. The Developer plan is free.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Should you revoke now or create the new key first?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; if there are signs of abuse, or the key was public, revoke now and accept a short outage. If the exposure is contained, for example a key that appeared in a private log, create and deploy the replacement first, then revoke within minutes.&lt;/p&gt;

&lt;p&gt;OpenAI and Anthropic say revoke immediately. Google says replace first, then disable. The right order depends on the situation:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Order&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Key is in a public repo, a client-side bundle or a breached third-party tool&lt;/td&gt;
&lt;td&gt;Revoke first, then replace&lt;/td&gt;
&lt;td&gt;Every minute of exposure can be billed to you&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Usage graph shows requests you did not make&lt;/td&gt;
&lt;td&gt;Revoke first, then replace&lt;/td&gt;
&lt;td&gt;Abuse is already happening&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Key appeared in a private log or internal chat, no unusual usage&lt;/td&gt;
&lt;td&gt;Replace first, revoke right after deploy&lt;/td&gt;
&lt;td&gt;Low exposure; downtime costs more&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Key is shared by many services and you do not know all of them&lt;/td&gt;
&lt;td&gt;Revoke first&lt;/td&gt;
&lt;td&gt;Waiting until you find every consumer can take hours&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last row needs preparation. If you cannot list every service that uses a key, that list is the first thing to fix after the incident. Anthropic recommends separate keys per environment and use case, so that you can "quickly disable just that use case."&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you find out what the leaked key cost you?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; open the provider's usage page for the period since the key leaked, filter by key or project where possible, and export what you see before you talk to support.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Where to look&lt;/th&gt;
&lt;th&gt;Useful detail&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;platform.openai.com/usage&lt;/td&gt;
&lt;td&gt;Keys created before December 20, 2023 may show usage as "Untracked" unless tracking was enabled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;platform.claude.com/usage, /cost and /logs&lt;/td&gt;
&lt;td&gt;The Usage and Cost Admin API filters by API key, workspace and model; it is not available for individual accounts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google&lt;/td&gt;
&lt;td&gt;Cloud Billing reports for the project&lt;/td&gt;
&lt;td&gt;Google notes that actual costs can take more than 24 hours to appear&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What to save for support: the key name or ID (never the key itself), when it was created, when it leaked, when you revoked it, and the requests or costs you do not recognize.&lt;/p&gt;

&lt;p&gt;Report unrecognized charges to the provider's support with that evidence. Any refund is the provider's decision. After the OpenCode Console breach, users publicly reported unauthorized charges from under 200 to about 1,700 dollars per account (&lt;a href="https://dealroom.co/news/163473-opencode-breach-drains-users-ai-keys-as-platforms-holding-customer-crede/" rel="noopener noreferrer"&gt;Dealroom&lt;/a&gt;, &lt;a href="https://news.ycombinator.com/item?id=50141661" rel="noopener noreferrer"&gt;Hacker News&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you cap spending before the next leak?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; set a hard limit. On OpenAI that is "Enforce a hard limit" in organization or project limits. On Anthropic it is a spend limit on the Billing page. On Google Cloud it is a spend cap budget, which is separate from a regular budget.&lt;/p&gt;

&lt;p&gt;An alert is easy to mistake for a cap. &lt;a href="https://developers.openai.com/api/docs/guides/spend-limits" rel="noopener noreferrer"&gt;OpenAI's documentation&lt;/a&gt; says it directly: "Spend alerts do not enforce a cap." Google's regular budgets are alerts-only too.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Setting that blocks requests&lt;/th&gt;
&lt;th&gt;What happens at the limit&lt;/th&gt;
&lt;th&gt;Caveat&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;Settings, Organization, Limits: Edit spend limit, Enforce a hard limit; also per project&lt;/td&gt;
&lt;td&gt;HTTP 429 organization_spend_limit_exceeded or project_spend_limit_exceeded&lt;/td&gt;
&lt;td&gt;"Enforcement is not instantaneous," so spend can slightly exceed the limit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;platform.claude.com/settings/billing, Spend limits&lt;/td&gt;
&lt;td&gt;HTTP 400 invalid_request_error, "You have reached your specified API usage limits"&lt;/td&gt;
&lt;td&gt;You cannot set a spend limit on the default workspace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Cloud&lt;/td&gt;
&lt;td&gt;Spend cap budget for the Gemini API or Vertex AI&lt;/td&gt;
&lt;td&gt;New usage for that service in that project is paused&lt;/td&gt;
&lt;td&gt;One project and one service per cap; enforcement is not instantaneous and overage stays your responsibility&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You still have to revoke the leaked key. The limit caps what the next leak can cost before anyone notices it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does the provider revoke a leaked key automatically?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; sometimes. OpenAI and Anthropic disable keys they detect in public places, including through GitHub's secret scanning partner program. Gemini keys are not blocked on push. A key stolen from a private system, such as a vendor's database, is not found by public scanning, so you revoke it yourself.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where the key leaked&lt;/th&gt;
&lt;th&gt;OpenAI&lt;/th&gt;
&lt;th&gt;Anthropic&lt;/th&gt;
&lt;th&gt;Google Gemini&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Public GitHub repo&lt;/td&gt;
&lt;td&gt;Partner pattern; OpenAI disables publicly exposed keys&lt;/td&gt;
&lt;td&gt;Partner pattern; Anthropic deactivates the key and emails the user&lt;/td&gt;
&lt;td&gt;No Gemini-specific partner pattern; standard keys match the Google API key pattern, which is reported to Google&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Push to GitHub&lt;/td&gt;
&lt;td&gt;Push protection blocks openai_api_key&lt;/td&gt;
&lt;td&gt;Push protection blocks Anthropic keys, including the newer service and user key types since October 13, 2026&lt;/td&gt;
&lt;td&gt;No push protection for Gemini or Google API keys&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Breached third-party tool or private server&lt;/td&gt;
&lt;td&gt;You revoke&lt;/td&gt;
&lt;td&gt;You revoke (Anthropic revoked affected keys after the OpenCode breach)&lt;/td&gt;
&lt;td&gt;You revoke&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the public-repo case, Anthropic's help center is explicit:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"To prevent potential abuse, Anthropic automatically deactivates the exposed API key."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Automatic revocation is a safety net with gaps. The provider makes the call. &lt;a href="https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning-for-partners" rel="noopener noreferrer"&gt;GitHub's partner program documentation&lt;/a&gt; says partners decide "whether they should revoke the secret, issue a new secret, or contact you directly". In September 2026, &lt;a href="https://trufflesecurity.com/blog/github-repos-exposed-543699-credentials-nobody-revoked-them" rel="noopener noreferrer"&gt;Truffle Security reported&lt;/a&gt; that 543,699 credentials exposed in public GitHub repos were still live when tested in July 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is deleting the commit enough?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; no. Revoke the key first. A rewritten history still leaves the key in clones, forks, cached commit views and pull requests.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository" rel="noopener noreferrer"&gt;GitHub's guide to removing sensitive data&lt;/a&gt; starts with revocation:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"if the sensitive data you need to remove is a secret ... then as a first step you need to revoke and/or rotate that secret. Once the secret is revoked or rotated, it can no longer be used for access, and that may be sufficient to solve your problem."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;After rewriting history, commits can still be reached "in any clones or forks of your repository," directly via SHA-1 in cached views on GitHub, and through pull requests that reference them. If you still want the history clean, GitHub recommends git-filter-repo with the sensitive data removal option:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Requires git-filter-repo 2.47 or later. Rewrites history: coordinate with your team first.&lt;/span&gt;

git filter-repo --sensitive-data-removal --replace-text expressions.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;expressions.txt lists the strings to replace, one per line. After a force push, everyone with a local clone has to re-clone or rebase, or the key comes back with their next push.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why are third-party AI tools a leak path?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; any tool that stores your provider key becomes another place it can leak from. Removing the key from that tool deletes the tool's copy; the key stays valid until you revoke it at the provider.&lt;/p&gt;

&lt;p&gt;The OpenCode Console stored workspace keys so team members could use models without seeing the keys. OpenCode's email to affected users was &lt;a href="https://news.ycombinator.com/item?id=50133412" rel="noopener noreferrer"&gt;quoted on Hacker News&lt;/a&gt;. It says attackers accessed "a legacy system that we were in the process of decommissioning". It also says that "third party provider keys (eg OpenAI, Anthropic) saved in your workspace may have been exposed." OpenCode asked users to "revoke and replace those keys through the relevant provider's dashboard."&lt;/p&gt;

&lt;p&gt;The same applies to any tool that asks for your provider key:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Revoke at the source&lt;/strong&gt; when the tool reports an incident, even if you already removed the key from its settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give each tool its own key.&lt;/strong&gt; A key used only by one tool can be revoked without touching your production services, and its usage graph shows exactly what that tool did.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Anthropic lists third-party tools among the most frequent causes of key leaks, and OpenAI's help center advises caution "with third-party libraries, frameworks, and tools that request access to your API key."&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you stop the next key from leaking?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; one key per app and environment, no keys in client-side code or committed files, short-lived credentials where the provider supports them, and a single store for secrets with access control and an audit log.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One key per app, per environment, per tool.&lt;/strong&gt; Revocation then breaks one thing, and usage per key tells you where abuse came from.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No keys in browsers or mobile apps.&lt;/strong&gt; A VITE_ or NEXT_PUBLIC_ variable ends up in the JavaScript bundle. Call the provider from your server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No keys in committed files.&lt;/strong&gt; Keep .env out of git. Push protection for users is on by default and blocks pushes of supported secrets to public repositories. Push protection for a repository, which also covers private repositories, requires GitHub Secret Protection and stays off until an admin enables it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shorter lifetimes.&lt;/strong&gt; OpenAI supports expiring project keys and workload identity federation instead of long-lived keys. Anthropic suggests rotating keys every 90 days.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard spend limits&lt;/strong&gt; on every organization and project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One place where secrets live.&lt;/strong&gt; Keys copied between laptops, chats and CI variables are hard to rotate because nobody knows every copy. A secret manager with role-based access, version history and an audit log turns rotation into one change in one place.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Before you close the incident, check four things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The old key is deleted or disabled in the provider console.&lt;/li&gt;
&lt;li&gt;Every service runs on its own new key.&lt;/li&gt;
&lt;li&gt;A hard spend limit is set.&lt;/li&gt;
&lt;li&gt;No copy of the old key is left in git, CI variables, chats or tools.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the habits that cause these leaks in the first place, see &lt;a href="https://ennote.io/blog/5-risky-ways-your-team-shares-secrets-and-how-to-stop-them" rel="noopener noreferrer"&gt;5 risky ways your team shares secrets&lt;/a&gt;. For long-lived tokens in pipelines, see &lt;a href="https://ennote.io/blog/personal-access-tokens-headless-ci-cd-and-the-30-day-hard-limit" rel="noopener noreferrer"&gt;Personal access tokens, headless CI/CD and the 30-day hard limit&lt;/a&gt;. To hand a new key to a contractor, use a &lt;a href="https://ennote.io/blog/onetime-share-zero-knowledge-secret-sharing" rel="noopener noreferrer"&gt;one-time link&lt;/a&gt; instead of a chat message.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;OpenAI Help Center: &lt;a href="https://help.openai.com/en/articles/8304786-how-can-i-keep-my-openai-accounts-secure" rel="noopener noreferrer"&gt;Keeping your OpenAI account secure&lt;/a&gt;, &lt;a href="https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety" rel="noopener noreferrer"&gt;Best practices for API key safety&lt;/a&gt;, &lt;a href="https://help.openai.com/en/articles/9186755-managing-your-work-in-the-api-platform-with-projects" rel="noopener noreferrer"&gt;Managing projects&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;OpenAI API docs: &lt;a href="https://developers.openai.com/api/docs/guides/spend-limits" rel="noopener noreferrer"&gt;Spend limits&lt;/a&gt;, &lt;a href="https://developers.openai.com/api/docs/guides/production-best-practices" rel="noopener noreferrer"&gt;Production best practices&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Anthropic: &lt;a href="https://support.claude.com/en/articles/9767949-api-key-best-practices-keep-your-keys-safe-and-secure" rel="noopener noreferrer"&gt;API key best practices&lt;/a&gt;, &lt;a href="https://platform.claude.com/docs/en/api/rate-limits" rel="noopener noreferrer"&gt;Rate limits and spend limits&lt;/a&gt;, &lt;a href="https://platform.claude.com/docs/en/manage-claude/workspaces" rel="noopener noreferrer"&gt;Workspaces&lt;/a&gt;, &lt;a href="https://platform.claude.com/docs/en/manage-claude/usage-cost-api" rel="noopener noreferrer"&gt;Usage and Cost API&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Google: &lt;a href="https://ai.google.dev/gemini-api/docs/api-key" rel="noopener noreferrer"&gt;Using Gemini API keys&lt;/a&gt;, &lt;a href="https://ai.google.dev/gemini-api/docs/troubleshooting" rel="noopener noreferrer"&gt;Gemini API troubleshooting&lt;/a&gt;, &lt;a href="https://docs.cloud.google.com/billing/docs/how-to/budgets-spend-caps" rel="noopener noreferrer"&gt;Spend cap budgets&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://docs.github.com/en/code-security/reference/secret-security/supported-secret-scanning-patterns" rel="noopener noreferrer"&gt;Supported secret scanning patterns&lt;/a&gt;, &lt;a href="https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning-for-partners" rel="noopener noreferrer"&gt;Secret scanning for partners&lt;/a&gt;, &lt;a href="https://docs.github.com/en/code-security/concepts/secret-security/push-protection" rel="noopener noreferrer"&gt;Push protection&lt;/a&gt;, &lt;a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository" rel="noopener noreferrer"&gt;Removing sensitive data from a repository&lt;/a&gt;, &lt;a href="https://github.blog/changelog/2026-10-13-secret-scanning-blocks-anthropic-keys-by-default-adds-salesforce/" rel="noopener noreferrer"&gt;Changelog, October 13, 2026&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP Secrets Management Cheat Sheet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Truffle Security: &lt;a href="https://trufflesecurity.com/blog/google-api-keys-werent-secrets-but-then-gemini-changed-the-rules" rel="noopener noreferrer"&gt;Google API keys weren't secrets. But then Gemini changed the rules&lt;/a&gt;, &lt;a href="https://trufflesecurity.com/blog/github-repos-exposed-543699-credentials-nobody-revoked-them" rel="noopener noreferrer"&gt;GitHub repos exposed 543,699 credentials. Nobody revoked them&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Palo Alto Networks Unit 42: &lt;a href="https://unit42.paloaltonetworks.com/malicious-operations-of-exposed-iam-keys-cryptojacking/" rel="noopener noreferrer"&gt;CloudKeys in the Air&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;OpenCode incident: &lt;a href="https://x.com/opencode/status/2111516673953935833" rel="noopener noreferrer"&gt;OpenCode on X&lt;/a&gt;, &lt;a href="https://thehackernews.com/2026/10/opencode-console-breach-may-have.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;, &lt;a href="https://news.ycombinator.com/item?id=50133412" rel="noopener noreferrer"&gt;OpenCode's email quoted on Hacker News&lt;/a&gt;, &lt;a href="https://dealroom.co/news/163473-opencode-breach-drains-users-ai-keys-as-platforms-holding-customer-crede/" rel="noopener noreferrer"&gt;Dealroom&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Put your API keys where you can rotate them.&lt;/strong&gt; Ennote stores passwords, API keys and environment variables with role-based access, version history and an audit log of every access, and syncs them to Kubernetes. &lt;a href="https://app.ennote.io/?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=leaked-ai-api-key-what-to-do&amp;amp;utm_content=footer" rel="noopener noreferrer"&gt;Start for free&lt;/a&gt; on the Developer plan.&lt;/p&gt;

</description>
      <category>openai</category>
      <category>claude</category>
      <category>gemini</category>
      <category>cybersecurity</category>
    </item>
    <item>
      <title>Passwords in .claude/settings.local.json: Find, Rotate, Prevent</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:43:00 +0000</pubDate>
      <link>https://dev.to/ennote/passwords-in-claudesettingslocaljson-find-rotate-prevent-43j7</link>
      <guid>https://dev.to/ennote/passwords-in-claudesettingslocaljson-find-rotate-prevent-43j7</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; when you click "Yes, and don't ask again" on a Claude Code command, the approval is saved as a rule in &lt;code&gt;.claude/settings.local.json&lt;/code&gt;. If the command contained a password, the rule can contain it too. The file is meant to stay on your machine, but in early November 2026 Apiiro reported more than 100,000 public copies on GitHub, some holding passwords and tokens. To check your own exposure, search every repository and clone for the file. Treat each credential found as leaked and rotate it first; then untrack the file, add a repository-level ignore rule, and scrub history if needed.&lt;/p&gt;

&lt;p&gt;This guide is for engineers and security owners whose teams use Claude Code. It covers the audit and the fix for this one file and links to our other guides for general cleanup.&lt;/p&gt;

&lt;h2&gt;
  
  
  What was reported, and what is confirmed?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; the numbers come from Apiiro, a security vendor, and we could read them only in press coverage because Apiiro's own post returned an access error when we tried it. Treat them as a credible signal; they are not audited facts.&lt;/p&gt;

&lt;p&gt;According to Apiiro, as reported by &lt;a href="https://thehackernews.com/2026/11/claude-codes-dont-ask-again-file.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;, &lt;a href="https://www.itnews.com.au/news/dont-ask-again-in-anthropics-claude-code-leaks-developer-secrets-630203" rel="noopener noreferrer"&gt;iTnews&lt;/a&gt; and &lt;a href="https://gbhackers.com/anthropic-claude-codes-dont-ask-again-feature-exposes-2539-secrets-on-github" rel="noopener noreferrer"&gt;GBHackers&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  104,185 copies of &lt;code&gt;.claude/settings.local.json&lt;/code&gt; in 103,617 public repositories.&lt;/li&gt;
&lt;li&gt;  1,122 of those files held at least one secret, 1,379 distinct secrets in all. The reported types include 379 database passwords, 43 SSH logins, 42 GitHub, GitLab or npm tokens and 23 AWS keys.&lt;/li&gt;
&lt;li&gt;  Counting older file versions, the shared &lt;code&gt;settings.json&lt;/code&gt;, history and saved transcripts, the total rises to 2,539 secrets in 1,994 repositories.&lt;/li&gt;
&lt;li&gt;  Gitleaks flagged 564 files and TruffleHog 643; 215 files were flagged by neither, according to &lt;a href="https://dev.to/gabrielanhaia/claude-codes-dont-ask-again-saved-secrets-in-1122-public-files-215-beat-both-scanners-2pi4"&gt;a write-up on DEV&lt;/a&gt; that also notes both scanners ran without verification.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read these with the caveats &lt;a href="https://itwire.com/business-it-news/security/claude-code-approval-files-found-exposing-company-secrets-on-github-says-apirro-researchers" rel="noopener noreferrer"&gt;iTWire&lt;/a&gt; raises. An AI reviewer was part of Apiiro's process, Apiiro did not test whether the credentials still work, and an exposed credential is not a proven breach.&lt;/p&gt;

&lt;p&gt;Anthropic's side is on record in a &lt;a href="https://news.ycombinator.com/item?id=50407882" rel="noopener noreferrer"&gt;Hacker News thread&lt;/a&gt;. Boris Cherny of Anthropic wrote on November 7: "We automatically gitignore it when Claude creates the file, so in this case the files were manually created and checked in." In another comment he said the team is thinking through what to improve.&lt;/p&gt;

&lt;p&gt;You do not have to settle that dispute to act. The next sections show why a protection that works on one laptop does not cover a repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does a password end up in settings.local.json?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; you approve a command that has the password typed into it, and Claude Code saves that command as an allow rule.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://code.claude.com/docs/en/settings" rel="noopener noreferrer"&gt;settings documentation&lt;/a&gt; says the file is created "the first time you give a standing approval on a permission prompt, such as 'Yes, and don't ask again' for a Bash command." The &lt;a href="https://code.claude.com/docs/en/permissions" rel="noopener noreferrer"&gt;permissions documentation&lt;/a&gt; adds that a rule without &lt;code&gt;*&lt;/code&gt; "matches one exact command". An exact command that begins with &lt;code&gt;PGPASSWORD=...&lt;/code&gt; is therefore a rule that contains the password. The docs describe the exact-match behavior. That credentials are stored verbatim is shown by Apiiro's findings and by a &lt;a href="https://github.com/anthropics/claude-code/issues/5544" rel="noopener noreferrer"&gt;bug report from August 2025&lt;/a&gt;. It was closed automatically for inactivity without a maintainer reply.&lt;/p&gt;

&lt;p&gt;A rule in the file looks like this (fake values):&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "permissions": {
    "allow": [
      "Bash(PGPASSWORD=FAKEpass123 psql -h db.example.com -U app -c "select 1")"
    ]
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Two facts about protection matter here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;The ignore rule is local to a machine.&lt;/strong&gt; The docs say Claude Code adds &lt;code&gt;**/.claude/settings.local.json&lt;/code&gt; to your global git excludes file the first time it writes the file in a repository that does not already ignore it. That is &lt;code&gt;core.excludesFile&lt;/code&gt;, or &lt;code&gt;~/.config/git/ignore&lt;/code&gt; by default. A teammate's clone, a CI checkout and a second laptop do not have that entry. If someone creates the file by hand, the docs say to add it to &lt;code&gt;.gitignore&lt;/code&gt; yourself.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Ignore rules do not apply to files git already tracks.&lt;/strong&gt; The &lt;a href="https://git-scm.com/docs/gitignore" rel="noopener noreferrer"&gt;gitignore documentation&lt;/a&gt; says so directly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We reproduced the git side with git 2.47.3 on a scratch repository. With the global exclude set, &lt;code&gt;git check-ignore -v&lt;/code&gt; reported the file as ignored. After &lt;code&gt;git add -f&lt;/code&gt; the file was tracked and &lt;code&gt;git check-ignore&lt;/code&gt; returned exit code 1, meaning not ignored. A fresh clone with no global exclude listed the file in &lt;code&gt;git ls-files&lt;/code&gt;. We did not run Claude Code itself for this test, so it shows how git behaves and says nothing about how often Claude Code produces the situation.&lt;/p&gt;

&lt;p&gt;Two details affect the audit. Before v2.1.211, per the docs, the file lived in the directory where Claude Code started, and newer versions still read an old file left there. So look for the file in subdirectories, not only at the repository root. The VS Code approval card can also save a rule to the project's shared &lt;code&gt;.claude/settings.json&lt;/code&gt;, which is meant to be committed; Apiiro reported that 298 of 76,011 public copies of that file held a secret (figure via DEV).&lt;/p&gt;

&lt;h2&gt;
  
  
  Why did scanners miss some of them?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; many scanners look for known key formats, and a database password after &lt;code&gt;PGPASSWORD=&lt;/code&gt; has no recognizable prefix.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/gitleaks/gitleaks" rel="noopener noreferrer"&gt;Gitleaks README&lt;/a&gt; describes rules built from a regular expression, optional keywords and an optional entropy threshold. A rule written for AWS or GitHub key formats will not match &lt;code&gt;sshpass -p 'Fake!pw9'&lt;/code&gt;. The &lt;a href="https://github.com/trufflesecurity/trufflehog" rel="noopener noreferrer"&gt;TruffleHog README&lt;/a&gt; describes verification of findings and the &lt;code&gt;--results=verified&lt;/code&gt; filter. If you filter to verified results only, a password with no verifier to check it is hidden. That second point is our inference from the README, not a documented behavior for this case.&lt;/p&gt;

&lt;p&gt;Neither tool is a failure here. They are tuned to avoid noise, and this file hides secrets inside command strings. For a comparison of the two on a seeded repository, see our &lt;a href="https://ennote.io/blog/gitleaks-vs-trufflehog-vs-betterleaks" rel="noopener noreferrer"&gt;Gitleaks vs TruffleHog vs Betterleaks test&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you find the files in your organization?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; search three places - the hosting platform's code search, every local clone, and history - because each one misses something.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Code search on GitHub.&lt;/strong&gt; The &lt;a href="https://docs.github.com/en/search-github/github-code-search/about-github-code-search" rel="noopener noreferrer"&gt;code search documentation&lt;/a&gt; says it covers the default branch only, requires you to be logged in, and excludes files over 350 KiB. The &lt;a href="https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax" rel="noopener noreferrer"&gt;syntax page&lt;/a&gt; documents the &lt;code&gt;org:&lt;/code&gt; and &lt;code&gt;path:&lt;/code&gt; qualifiers, so these queries are the place to start (not run here, because they need a GitHub login):&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;org:YOURORG path:.claude/settings.local.json
org:YOURORG path:.claude/settings.json "Bash("
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;With the GitHub CLI, the &lt;a href="https://cli.github.com/manual/gh_search_code" rel="noopener noreferrer"&gt;manual&lt;/a&gt; lists &lt;code&gt;--owner&lt;/code&gt;, &lt;code&gt;--filename&lt;/code&gt;, &lt;code&gt;--limit&lt;/code&gt; and &lt;code&gt;--json&lt;/code&gt;; it warns that results might not match github.com:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gh search code --owner YOURORG --filename settings.local.json -L 1000 --json repository,path,url
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;No hit is not proof of a clean organization. Code search skips other branches, large files and history, and we did not verify how it treats forks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Local clones.&lt;/strong&gt; In each clone, list tracked copies in any directory:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git ls-files '*.claude/settings.local.json' '*.claude/settings.json'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;3. History.&lt;/strong&gt; A file deleted last month is still in history:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git log --all --full-history --oneline -- '*.claude/settings.local.json'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;One pitfall from our test: the pathspec &lt;code&gt;'**/.claude/settings.local.json'&lt;/code&gt; did not match the file at the repository root, so the log missed the commit that added it. A pattern starting with &lt;code&gt;*.claude/...&lt;/code&gt;, or &lt;code&gt;':(glob)**/.claude/settings.local.json'&lt;/code&gt;, matched both the root file and one in a subdirectory.&lt;/p&gt;

&lt;p&gt;To see whether a path is ignored even though it is tracked, add &lt;code&gt;--no-index&lt;/code&gt;: &lt;code&gt;git check-ignore -v --no-index .claude/settings.local.json&lt;/code&gt; prints the source file and line of the matching rule.&lt;/p&gt;

&lt;p&gt;Then triage. Open each file and read the &lt;code&gt;allow&lt;/code&gt; entries. Anything with an inline assignment such as &lt;code&gt;PGPASSWORD=&lt;/code&gt;, a &lt;code&gt;-p&lt;/code&gt; password flag, a bearer token or a URL with credentials is a finding. Rules that only name a command, such as &lt;code&gt;Bash(npm test *)&lt;/code&gt;, are not.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do you do first when you find one?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; rotate the credential, then clean up. Apiiro's advice, as reported by iTnews, is the same order: rotate every credential the file ever held before cleaning up.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Rotate.&lt;/strong&gt; Change the password or revoke the token at its source and update whatever uses it. Removing the file does not revoke anything: the value may live on in history, forks and clones. Our &lt;a href="https://ennote.io/blog/leaked-openai-or-anthropic-api-key-what-to-do-in-the-first-hour" rel="noopener noreferrer"&gt;first-hour guide for leaked API keys&lt;/a&gt; covers the order of actions for keys; the same logic applies to a database or SSH password.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Check use.&lt;/strong&gt; Look at the service's own logs for logins from unfamiliar places in the window since the commit. For a private repository the exposure is narrower, but everyone with access to the repository can read it.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Stop tracking.&lt;/strong&gt; The &lt;a href="https://git-scm.com/docs/git-rm" rel="noopener noreferrer"&gt;git rm documentation&lt;/a&gt; describes &lt;code&gt;--cached&lt;/code&gt; as removing paths only from the index and leaving working tree files alone:&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git rm --cached .claude/settings.local.json
echo '.claude/settings.local.json' &amp;gt;&amp;gt; .gitignore
git add .gitignore
git commit -m "Stop tracking Claude Code local settings"
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Scrub history, if you must.&lt;/strong&gt; In our test, after &lt;code&gt;git rm --cached&lt;/code&gt; the password was still reachable: &lt;code&gt;git log --all -S'PGPASSWORD='&lt;/code&gt; found the original commit and &lt;code&gt;git show &amp;lt;commit&amp;gt;:.claude/settings.local.json&lt;/code&gt; printed it. Rewriting history is destructive: back up first, coordinate with teammates, and expect a force-push. It is covered step by step in &lt;a href="https://ennote.io/blog/remove-secret-from-git-history" rel="noopener noreferrer"&gt;Remove a secret from git history and verify the result&lt;/a&gt;. Treat it as hygiene; a rewrite does not undo a leak that has already been copied.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If Claude Code opens a project where the file is tracked, the docs say it treats the file as repository-supplied and holds its rules until you trust the folder. That is a useful brake, but it does not replace removing the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you stop it from happening again?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; use four layers - a repository ignore rule, approvals that do not contain secrets, an organization-level policy, and a scanner that looks inside the file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ignore rule in the repository.&lt;/strong&gt; Add &lt;code&gt;.claude/settings.local.json&lt;/code&gt; to the repository's &lt;code&gt;.gitignore&lt;/code&gt; and commit that change. Unlike the global exclude, it travels with every clone. Add the same line to your project template so that new repositories start with it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Approvals without secrets.&lt;/strong&gt; Approve command patterns instead of literal commands. The permissions docs show the prompt "Yes, and don't ask again for: npm test *" for prefix commands. A command with a literal password cannot sensibly be generalized, so decline the standing approval and keep the credential out of the command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PGPASSWORD="$DB_PASSWORD" psql -h db.example.com -U app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Here the rule text contains only the variable name. One related caveat: the docs say a rule does not match past an assignment of a variable it does not recognize as safe, so expect a prompt for such commands. Review what has already been saved with &lt;code&gt;/permissions&lt;/code&gt;, which, per the docs, lists every rule and the file it comes from.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Organization policy.&lt;/strong&gt; Claude Code reads managed settings from a system path, such as &lt;code&gt;/etc/claude-code/managed-settings.json&lt;/code&gt; on Linux. The docs say permission lists merge across scopes "unless your organization sets &lt;code&gt;allowManagedPermissionRulesOnly&lt;/code&gt;". The &lt;a href="https://code.claude.com/docs/en/managed-settings" rel="noopener noreferrer"&gt;managed settings page&lt;/a&gt; says this key makes Claude Code "ignore permission rules from user, project, and local files". Test it on one machine before rolling it out. We found no managed setting that scrubs secrets from saved rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A scanner rule for this file.&lt;/strong&gt; A custom Gitleaks rule can target the file by path. The rule syntax below follows the Gitleaks README; we did not run it in Gitleaks. We tested the regular expression alone in Python against a fake settings file, using only constructs that Go's regex engine also supports:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[extend]
useDefault = true

[[rules]]
id = "claude-settings-inline-credential"
description = "Credential typed into a Claude Code permission rule"
path = '''\.claude/settings(\.local)?\.json$'''
regex = '''(?i)(PGPASSWORD=[^\s"'$\]\S*|sshpass\s+-p\s*\S+|\s-p[^\s]{3,}|bearer\s+[A-Za-z0-9._~+/-]{16,}|://[^/\s:@]+:[^/\s@]+@)'''
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;On eleven fake rules the expression matched the five that held a literal password, token or URL credential, missed the env-var reference &lt;code&gt;PGPASSWORD="$DB_PASSWORD"&lt;/code&gt; as intended, and produced one false positive on &lt;code&gt;npm run -prefix app build&lt;/code&gt;. Expect noise and tune it. The simplest alternative is a path-only rule that fails any commit containing the file, since the file should never be committed. Pre-commit hooks can be skipped, as the Gitleaks README notes for &lt;code&gt;SKIP=gitleaks&lt;/code&gt;, so run the same check in CI. GitHub's &lt;a href="https://docs.github.com/en/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/custom-patterns/defining-custom-patterns-for-secret-scanning" rel="noopener noreferrer"&gt;custom patterns&lt;/a&gt; can do the content part on push; we did not verify whether they can be limited to a path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where should the password live instead?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; in a secrets manager that injects it at run time, so the value does not have to appear in a command, a file or a settings rule.&lt;/p&gt;

&lt;p&gt;Settings files, shell history and chat logs are all places where a typed password gets copied. The Ennote CLI is documented to "fetch, inject, and manage enterprise secrets without writing plaintext .env files to disk", with the pattern &lt;code&gt;ennote secret get &amp;lt;secret-name&amp;gt; -- &amp;lt;command&amp;gt;&lt;/code&gt;; the quickstart's example is &lt;code&gt;ennote secret get stripe-keys -- npm run dev&lt;/code&gt;. A database command can then take its password from the manager instead of from the command line. Our guide to &lt;a href="https://ennote.io/blog/keep-env-secrets-away-from-claude-code" rel="noopener noreferrer"&gt;keeping .env secrets away from Claude Code&lt;/a&gt; covers deny rules, the sandbox and environment scrubbing, and the guide to &lt;a href="https://ennote.io/blog/mcp-server-api-keys-claude-code" rel="noopener noreferrer"&gt;MCP server API keys&lt;/a&gt; covers where to keep keys that MCP servers need, in &lt;code&gt;.mcp.json&lt;/code&gt; and elsewhere.&lt;/p&gt;

&lt;p&gt;One caution that applies to any tool of this kind: a secret handed to a process has to live somewhere in that process, commonly its environment, and a command the agent launches may inherit it. This is general behavior that the Ennote docs do not state, so check how your tool passes values and give the agent test credentials where you can.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is still unknown?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Real impact.&lt;/strong&gt; Nobody has shown how many of the reported credentials were live, and one company was reported to have confirmed a live key.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Cause in each repository.&lt;/strong&gt; Anthropic says the files were created by hand and committed. Apiiro found Claude co-authored commits touching the file in 539 of 1,105 traced repositories, which shows Claude-era commits and leaves open why the file was tracked. We take no side; the protection gap is the same.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Future behavior.&lt;/strong&gt; Anthropic said it is looking at improvements. Re-read the settings documentation before relying on any behavior described here, since it may change.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Reports on the Apiiro research, opened November 9, 2026: &lt;a href="https://thehackernews.com/2026/11/claude-codes-dont-ask-again-file.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;, &lt;a href="https://www.itnews.com.au/news/dont-ask-again-in-anthropics-claude-code-leaks-developer-secrets-630203" rel="noopener noreferrer"&gt;iTnews&lt;/a&gt;, &lt;a href="https://itwire.com/business-it-news/security/claude-code-approval-files-found-exposing-company-secrets-on-github-says-apirro-researchers" rel="noopener noreferrer"&gt;iTWire&lt;/a&gt;, &lt;a href="https://gbhackers.com/anthropic-claude-codes-dont-ask-again-feature-exposes-2539-secrets-on-github" rel="noopener noreferrer"&gt;GBHackers&lt;/a&gt;, &lt;a href="https://dev.to/gabrielanhaia/claude-codes-dont-ask-again-saved-secrets-in-1122-public-files-215-beat-both-scanners-2pi4"&gt;DEV&lt;/a&gt;. The original Apiiro post was not readable.&lt;/li&gt;
&lt;li&gt;  Anthropic: &lt;a href="https://news.ycombinator.com/item?id=50407882" rel="noopener noreferrer"&gt;Hacker News discussion&lt;/a&gt;, &lt;a href="https://github.com/anthropics/claude-code/issues/5544" rel="noopener noreferrer"&gt;issue 5544&lt;/a&gt;, Claude Code docs: &lt;a href="https://code.claude.com/docs/en/settings" rel="noopener noreferrer"&gt;Settings&lt;/a&gt;, &lt;a href="https://code.claude.com/docs/en/permissions" rel="noopener noreferrer"&gt;Permissions&lt;/a&gt;, &lt;a href="https://code.claude.com/docs/en/managed-settings" rel="noopener noreferrer"&gt;Managed settings&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  GitHub: &lt;a href="https://docs.github.com/en/search-github/github-code-search/about-github-code-search" rel="noopener noreferrer"&gt;About code search&lt;/a&gt;, &lt;a href="https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax" rel="noopener noreferrer"&gt;Code search syntax&lt;/a&gt;, &lt;a href="https://cli.github.com/manual/gh_search_code" rel="noopener noreferrer"&gt;gh search code&lt;/a&gt;, &lt;a href="https://docs.github.com/en/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/custom-patterns/defining-custom-patterns-for-secret-scanning" rel="noopener noreferrer"&gt;Custom patterns&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  Git: &lt;a href="https://git-scm.com/docs/gitignore" rel="noopener noreferrer"&gt;gitignore&lt;/a&gt;, &lt;a href="https://git-scm.com/docs/git-rm" rel="noopener noreferrer"&gt;git rm&lt;/a&gt;, &lt;a href="https://git-scm.com/docs/git-check-ignore" rel="noopener noreferrer"&gt;git check-ignore&lt;/a&gt;, &lt;a href="https://git-scm.com/docs/git-log" rel="noopener noreferrer"&gt;git log&lt;/a&gt;. Scanners: &lt;a href="https://github.com/gitleaks/gitleaks" rel="noopener noreferrer"&gt;Gitleaks&lt;/a&gt;, &lt;a href="https://github.com/trufflesecurity/trufflehog" rel="noopener noreferrer"&gt;TruffleHog&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  Ennote: &lt;a href="https://docs.ennote.io/cli/overview" rel="noopener noreferrer"&gt;CLI overview&lt;/a&gt;, &lt;a href="https://docs.ennote.io/cli/quickstart" rel="noopener noreferrer"&gt;CLI quickstart&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Keep passwords out of your commands and repositories.&lt;/strong&gt; Ennote is a secret manager for passwords, API keys and environment variables, with role-based access, an audit log and sync to Kubernetes. &lt;a href="https://app.ennote.io/?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=claude-code-settings-local-json-secrets&amp;amp;utm_content=footer" rel="noopener noreferrer"&gt;Start for free&lt;/a&gt; on the Developer plan; limits on users and secrets apply.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>secretmanagement</category>
      <category>devsecops</category>
      <category>cybersecurity</category>
    </item>
    <item>
      <title>External Secrets Operator CVE-2026-109546: Can Someone Who Creates an ExternalSecret Get a Service Account Token?</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Thu, 12 Nov 2026 13:40:00 +0000</pubDate>
      <link>https://dev.to/ennote/external-secrets-operator-cve-2026-109546-can-someone-who-creates-an-externalsecret-get-a-service-1n8o</link>
      <guid>https://dev.to/ennote/external-secrets-operator-cve-2026-109546-can-someone-who-creates-an-externalsecret-get-a-service-1n8o</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; before version 2.13.0, yes, in some configurations. Advisory GHSA-v6x5-m838-gqph (CVE-2026-109546) says that a user who can only create &lt;code&gt;ExternalSecret&lt;/code&gt; resources could escalate privileges. That user could make External Secrets Operator (ESO) create a Secret that Kubernetes fills with a long-lived token for a service account, and so impersonate any service account in that namespace. Versions 2.4.0 through 2.12.0 are listed as affected, and 2.13.0 contains the fix. Upgrade first, then check who may create ExternalSecrets. The advisory rates the issue moderate (CVSS 4.9, high attack complexity, low privileges required), because the attacker needs permissions that are already close to powerful.&lt;/p&gt;

&lt;p&gt;This article is based on the advisories, release notes, source code and documentation, all opened on October 27, 2026. We did not have a cluster, did not reproduce the issue and did not test any command below. Snippets marked "untested" are our own drafts. Check them in a non-production cluster first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the advisory say?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; it describes a privilege escalation from "can create ExternalSecrets" to "can act as any service account in the namespace", fixed in 2.13.0.&lt;/p&gt;

&lt;p&gt;Facts from the advisory, published on October 16, 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Severity: Moderate, CVSS 4.9 (&lt;code&gt;CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;  Affected: &lt;code&gt;&amp;gt;= 2.4.0, &amp;lt;= 2.12.0&lt;/code&gt;. Patched: &lt;code&gt;2.13.0&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  Impact, in the advisory's words: the user can cause the operator to create a Secret that Kubernetes will "automatically populate with a long-lived token for the specified service account". The user does not need direct permission to create Secrets of that type or to call &lt;code&gt;TokenRequest&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  Cause: it is a follow-up to CVE-2026-42876 (GHSA-fq7h-9x26-6j22, published May 5, 2026, fixed in 2.4.1). That earlier fix validated input before a Secret was created or updated. According to the new advisory, the guard could be bypassed with a target that behaves like &lt;code&gt;Annotations&lt;/code&gt; without matching that exact string, such as &lt;code&gt;metadata.annotations&lt;/code&gt; or a mixed-case &lt;code&gt;Metadata.Annotations&lt;/code&gt;. The fix rejects path-style targets for Secrets.&lt;/li&gt;
&lt;li&gt;  Workarounds listed: add admission control that blocks templates targeting undesired types, remove service account token generation through &lt;code&gt;kube-controller-manager&lt;/code&gt; flags, and restrict user RBAC in production clusters and sensitive namespaces.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The advisory contains no proof of concept, and neither does this article.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does an operator that syncs secrets end up minting tokens?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; the operator only writes a Secret of a special type; a Kubernetes controller fills in the token.&lt;/p&gt;

&lt;p&gt;Kubernetes documents &lt;code&gt;kubernetes.io/service-account-token&lt;/code&gt; as a legacy Secret type that "provides long-lived ServiceAccount credentials". The Secret must carry the annotation &lt;code&gt;kubernetes.io/service-account.name&lt;/code&gt; with the name of an existing service account. After it is created, "a Kubernetes controller fills in" the &lt;code&gt;token&lt;/code&gt; key and related annotations. That controller is the token controller inside &lt;code&gt;kube-controller-manager&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;ESO lets an ExternalSecret shape the Secret it produces through &lt;code&gt;spec.target.template&lt;/code&gt;, which can set the Secret's type, metadata and data. This is intended and useful. It also means that whoever writes an ExternalSecret influences what kind of Secret the operator creates with its own, broader permissions. So ESO's validation refuses the dangerous combination: in the code at v2.13.0, a template of type &lt;code&gt;kubernetes.io/service-account-token&lt;/code&gt; is rejected when it carries the service-account annotation, and the type &lt;code&gt;bootstrap.kubernetes.io/token&lt;/code&gt; is always rejected. The advisory is about inputs that slipped past this check in versions up to 2.12.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where does the code differ between 2.12.0 and 2.13.0?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; 2.13.0 adds a check on the final Secret and tightens which template targets are allowed. We could not map the advisory to one exact input.&lt;/p&gt;

&lt;p&gt;The 2.13.0 release notes list three relevant changes by one author: "fix: validate manifest Secret candidates" (#7066), "fix: Restrict v1beta1 Secret template targets" (#7067, which concerns the v1beta1 validator) and a test for the reconcile step (#7068). The release notes do not mention the CVE.&lt;/p&gt;

&lt;p&gt;The pull request descriptions frame the gap in two ways. #7066 says that an ExternalSecret targeting a core/v1 Secret through &lt;code&gt;manifest&lt;/code&gt; "can be used to bypass the protections used by the normal Secret reconciliation path". #7067 says the v1beta1 validator "previously allowed templateFrom targets outside the well-known Secret data, annotation, and label destinations". The advisory talks about path-style annotation targets. These are probably related, but we have not confirmed that they describe the same input, so treat the mapping as our inference.&lt;/p&gt;

&lt;p&gt;There is one more oddity. The validator in v2.11.0 and v2.12.0 already contains an allowlist (targets &lt;code&gt;Data&lt;/code&gt;, &lt;code&gt;Annotations&lt;/code&gt; or &lt;code&gt;Labels&lt;/code&gt;), yet the advisory lists them as affected. Do not rely on your own reading of the code to decide that you are safe. Follow the advisory's range.&lt;/p&gt;

&lt;p&gt;The code comment says the controller calls the same rules "so the same set is enforced when no webhook sits in front of it". That suggests the check exists both in the admission webhook and in the controller. If you run ESO with the webhook disabled or with &lt;code&gt;failurePolicy: Ignore&lt;/code&gt;, only the controller-side checks apply. The chart default is &lt;code&gt;webhook.create: true&lt;/code&gt; with &lt;code&gt;failurePolicy: Fail&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Are you affected?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; you are if you run ESO 2.4.0 to 2.12.0 and anyone who is not a cluster admin can create or update ExternalSecrets.&lt;/p&gt;

&lt;p&gt;Work through these in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Version.&lt;/strong&gt; Check the image tag of the controller deployment. Anything from 2.4.0 to 2.12.0 is in the advisory's range. Versions before 2.4.1 are listed as affected by the earlier CVE-2026-42876, so upgrade them too.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Who can write ExternalSecrets?&lt;/strong&gt; In many clusters, developers get &lt;code&gt;create&lt;/code&gt; on &lt;code&gt;externalsecrets&lt;/code&gt; in their team namespace. Those are exactly the users the advisory is about. &lt;code&gt;kubectl auth can-i create externalsecrets.external-secrets.io -n &amp;lt;namespace&amp;gt; --as=&amp;lt;user&amp;gt;&lt;/code&gt; answers it for one user, but it needs impersonation rights. Also look at &lt;code&gt;ClusterExternalSecret&lt;/code&gt;, which creates ExternalSecrets in many namespaces.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Existing objects.&lt;/strong&gt; An audit sketch (untested, needs &lt;code&gt;jq&lt;/code&gt;):&lt;/p&gt;
&lt;h1&gt;
  
  
  ExternalSecrets with unusual templates (read-only)
&lt;/h1&gt;

&lt;p&gt;kubectl get externalsecrets -A -o json | jq -r '&lt;br&gt;
  .items[] | select(&lt;br&gt;
    (.spec.target.template.type // "" | test("service-account-token|bootstrap"; "i"))&lt;br&gt;
    or (.spec.target.template.metadata.annotations // {} | keys | any(test("service-account"; "i")))&lt;br&gt;
    or ([.spec.target.template.templateFrom[]?.target // ""]&lt;br&gt;
        | any(test("^(|data|annotations|labels)$"; "i") | not))&lt;br&gt;
    or (.spec.target.manifest != null)&lt;br&gt;
  ) | "(.metadata.namespace)/(.metadata.name)"'&lt;/p&gt;
&lt;h1&gt;
  
  
  Service account token Secrets owned by an ExternalSecret
&lt;/h1&gt;

&lt;p&gt;kubectl get secrets -A -o json | jq -r '&lt;br&gt;
  .items[]&lt;br&gt;
  | select(.type == "kubernetes.io/service-account-token")&lt;br&gt;
  | select(any(.metadata.ownerReferences[]?; .kind == "ExternalSecret"))&lt;br&gt;
  | "(.metadata.namespace)/(.metadata.name)"'&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The second query assumes the default &lt;code&gt;creationPolicy&lt;/code&gt;, under which the operator sets an owner reference. We did not verify that, so a Secret created under another policy may not appear. A hit in either list is a reason to look, not proof of abuse; legitimate uses of &lt;code&gt;manifest&lt;/code&gt; exist. If the cluster has audit logging, search it for create and update events on &lt;code&gt;externalsecrets&lt;/code&gt; whose template type contains &lt;code&gt;service-account&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you do?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; upgrade, narrow who can write ExternalSecrets, consider a native agent, and add an admission rule for template types.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Upgrade to 2.13.0 or later.&lt;/strong&gt; The latest release when we checked was 2.14.0 (October 23, 2026). Its notes list some security-related hardening, for example "Sanitize Controller Status and Event Errors", but nothing about this advisory. So 2.14.0 is a normal upgrade target, not a second fix. Read the notes for your jump, because version 2.13.0 also bumped the Go toolchain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Restrict RBAC.&lt;/strong&gt; Treat &lt;code&gt;create&lt;/code&gt; and &lt;code&gt;update&lt;/code&gt; on &lt;code&gt;externalsecrets&lt;/code&gt; as a sensitive permission. ESO's security guide says: "It is crucial to properly restrict access to ESO resources such as ExternalSecret and SecretStore where necessary". The chart supports &lt;code&gt;scopedRBAC&lt;/code&gt; and &lt;code&gt;scopedNamespace&lt;/code&gt; to limit what the controller reconciles. For &lt;code&gt;ClusterSecretStore&lt;/code&gt;, the docs show &lt;code&gt;conditions&lt;/code&gt; with a &lt;code&gt;namespaceSelector&lt;/code&gt;, so only labelled namespaces may reference it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Add admission control.&lt;/strong&gt; This is a workaround from the advisory, and ESO's docs do not ship a ready policy for template types. As an example, a native &lt;code&gt;ValidatingAdmissionPolicy&lt;/code&gt; could deny templates that produce the two risky types. This is our draft and untested:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
  name: eso-deny-sa-token-template
spec:
  failurePolicy: Fail
  matchConstraints:
    resourceRules:
    - apiGroups: ["external-secrets.io"]
      apiVersions: ["*"]
      operations: ["CREATE", "UPDATE"]
      resources: ["externalsecrets"]
  validations:
  - expression: &amp;gt;-
      !has(object.spec.target) || !has(object.spec.target.template) ||
      !has(object.spec.target.template.type) ||
      !(object.spec.target.template.type in
        ["kubernetes.io/service-account-token", "bootstrap.kubernetes.io/token"])
    message: "ExternalSecret templates must not create service account token or bootstrap token Secrets"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;It also needs a &lt;code&gt;ValidatingAdmissionPolicyBinding&lt;/code&gt; with &lt;code&gt;validationActions: [Deny]&lt;/code&gt;. It does not cover &lt;code&gt;spec.target.manifest&lt;/code&gt;, a type set through other fields, or &lt;code&gt;ClusterExternalSecret&lt;/code&gt;, where the spec is nested under &lt;code&gt;spec.externalSecretSpec&lt;/code&gt;. Use it as a starting point and extend it, or write the equivalent in Kyverno or Gatekeeper.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Consider disabling legacy token generation.&lt;/strong&gt; The Kubernetes docs say the token controller needs &lt;code&gt;--service-account-private-key-file&lt;/code&gt;, and the reference describes that flag as "Enables legacy secret-based tokens when set". &lt;code&gt;--controllers=*,-serviceaccount-token-controller&lt;/code&gt; is a documented way to disable that controller. We could not verify the side effects. Workloads or CI jobs that still use legacy token Secrets would break, and managed Kubernetes services may not expose these flags.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Evaluate native sync agents over custom operators.&lt;/strong&gt; This CVE highlights the inherent risk of using Custom Resource Definitions (CRDs) like &lt;code&gt;ExternalSecret&lt;/code&gt; as an intermediary layer for secret management. If a user can write to the CRD, they can manipulate the operator's broader permissions. As an architectural alternative, &lt;a href="https://ennote.io/agent/" rel="noopener noreferrer"&gt;Ennote's Kubernetes Smart Agent&lt;/a&gt; eliminates the need for External Secrets Operator entirely. It uses an outbound gRPC stream to push secrets directly into native Kubernetes Secrets in under one second without requiring &lt;code&gt;ExternalSecret&lt;/code&gt; custom resources, sidecars, or inbound firewall rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Rotate if you find a suspicious token.&lt;/strong&gt; Delete the Secret and any ExternalSecret that produced it, then review what the token could reach. The Kubernetes docs say the token controller removes the token Secrets of a deleted ServiceAccount. We did not verify whether deleting a legacy token Secret alone revokes the token, so also consider recreating the affected ServiceAccount. For the general order of actions after a credential has leaked, see our guide on &lt;a href="https://ennote.io/blog/leaked-openai-or-anthropic-api-key-what-to-do-in-the-first-hour" rel="noopener noreferrer"&gt;what to do when an API key leaks&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does not help?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; &lt;code&gt;rbac.serviceAccountTokenCreate: false&lt;/code&gt; is not a mitigation for this advisory, as far as we can tell.&lt;/p&gt;

&lt;p&gt;ESO's security guide mentions that the controller role includes a blanket &lt;code&gt;serviceaccounts/token: create&lt;/code&gt; permission and that you can turn it off with &lt;code&gt;rbac.serviceAccountTokenCreate: false&lt;/code&gt;. The chart comment describes it as the &lt;code&gt;serviceaccounts/token&lt;/code&gt; create permission, needed for ServiceAccounts referenced in SecretStore specs (&lt;code&gt;serviceAccountRef&lt;/code&gt;). The token in this advisory is a different thing: a legacy Secret populated by &lt;code&gt;kube-controller-manager&lt;/code&gt;. Reading the chart and the Kubernetes docs, the setting does not touch that path. This is our reasoning, and ESO's docs do not say either way. Turn it off for least privilege, but not as a fix for this advisory.&lt;/p&gt;

&lt;p&gt;According to the advisory, the first fix could be bypassed with an alternative spelling of the target, so validation now also runs on the final Secret. The practical lesson is defense in depth: the cluster, not only the operator, should refuse to hand a user a long-lived credential they should not hold.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Advisories, opened October 27, 2026: &lt;a href="https://github.com/external-secrets/external-secrets/security/advisories/GHSA-v6x5-m838-gqph" rel="noopener noreferrer"&gt;GHSA-v6x5-m838-gqph&lt;/a&gt;, &lt;a href="https://github.com/external-secrets/external-secrets/security/advisories/GHSA-fq7h-9x26-6j22" rel="noopener noreferrer"&gt;GHSA-fq7h-9x26-6j22&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  ESO releases: &lt;a href="https://github.com/external-secrets/external-secrets/releases/tag/v2.13.0" rel="noopener noreferrer"&gt;v2.13.0&lt;/a&gt;, &lt;a href="https://github.com/external-secrets/external-secrets/releases/tag/v2.14.0" rel="noopener noreferrer"&gt;v2.14.0&lt;/a&gt;; pull requests &lt;a href="https://github.com/external-secrets/external-secrets/pull/7066" rel="noopener noreferrer"&gt;#7066&lt;/a&gt; and &lt;a href="https://github.com/external-secrets/external-secrets/pull/7067" rel="noopener noreferrer"&gt;#7067&lt;/a&gt;; validator and controller code at tags v2.12.0 and v2.13.0&lt;/li&gt;
&lt;li&gt;  ESO docs: &lt;a href="https://external-secrets.io/latest/guides/security-best-practices/" rel="noopener noreferrer"&gt;Security best practices&lt;/a&gt;, &lt;a href="https://external-secrets.io/latest/guides/templating/" rel="noopener noreferrer"&gt;Templating&lt;/a&gt;; Helm chart &lt;code&gt;values.yaml&lt;/code&gt; at v2.13.0&lt;/li&gt;
&lt;li&gt;  Kubernetes docs: &lt;a href="https://kubernetes.io/docs/concepts/configuration/secret/" rel="noopener noreferrer"&gt;Secrets&lt;/a&gt;, &lt;a href="https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/" rel="noopener noreferrer"&gt;Managing service accounts&lt;/a&gt;, &lt;a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/" rel="noopener noreferrer"&gt;kube-controller-manager&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  Not done: no cluster, no reproduction, no test of the snippets above&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Keep long-lived credentials out of cluster-wide reach.&lt;/strong&gt; Ennote is a secret manager for passwords, API keys, and environment variables, with role-based access, an audit log, and native Kubernetes synchronization. By replacing custom operators with our Smart Agent, you remove the RBAC complexity that leads to privilege escalation. &lt;a href="https://app.ennote.io/?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=external-secrets-operator-cve-2026-109546&amp;amp;utm_content=footer" rel="noopener noreferrer"&gt;Start for free&lt;/a&gt; on the Developer plan.&lt;/p&gt;

</description>
      <category>externalsecretsoperator</category>
      <category>devsecops</category>
      <category>cve2026109546</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>mSecure Password Manager Incident: What Is Confirmed and What to Reset First</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Wed, 11 Nov 2026 03:38:44 +0000</pubDate>
      <link>https://dev.to/ennote/msecure-password-manager-incident-what-is-confirmed-and-what-to-reset-first-29l</link>
      <guid>https://dev.to/ennote/msecure-password-manager-incident-what-is-confirmed-and-what-to-reset-first-29l</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; on November 3, 2026, mSeven Software, the maker of mSecure, emailed current and former customers about "suspicious activity" and told them to secure everything stored in the app. Customers also report support replies saying an encrypted database was taken from mSecure Cloud, with no evidence so far that its contents were accessed. The cause, dates and number of affected users have not been published. If you used mSecure, do not wait for those details: replace the credentials that were inside your vault, starting with email and financial accounts, and do it on each service's own site.&lt;/p&gt;

&lt;p&gt;This is a developing story. Everything below reflects reporting available on November 5, 2026. mSecure was not tested, and the reportedly stolen data was not seen. Check the sources at the end for updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  What mSeven has confirmed
&lt;/h2&gt;

&lt;p&gt;Coverage quotes the notice (&lt;a href="https://www.bleepingcomputer.com/news/security/msecure-password-manager-hack-prompts-password-reset-warnings/" rel="noopener noreferrer"&gt;BleepingComputer&lt;/a&gt;, &lt;a href="https://www.malwarebytes.com/blog/data-breaches/2026/11/msecure-tells-users-to-change-passwords-but-wont-say-why" rel="noopener noreferrer"&gt;Malwarebytes&lt;/a&gt;). The email went out on November 3. In it, mSeven says it "recently learned of suspicious activity associated with the mSecure password management application." The company says it launched an investigation, took steps to mitigate the issue and engaged external cybersecurity experts.&lt;/p&gt;

&lt;p&gt;The notice tells customers to immediately protect all confidential information stored in mSecure. The steps it lists "may include changing passwords, resetting or re-enrolling two-factor authentication methods, or removing existing passkeys."&lt;/p&gt;

&lt;h2&gt;
  
  
  What is reported but not officially published
&lt;/h2&gt;

&lt;p&gt;Customers shared support replies attributed to mSeven. As relayed by BleepingComputer and &lt;a href="https://esecurityplanet.com/threats/news-msecure-security-incident-password-warning" rel="noopener noreferrer"&gt;eSecurityPlanet&lt;/a&gt;, they say:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  an unauthorized actor obtained an encrypted database from mSecure Cloud, holding information on current and former users;&lt;/li&gt;
&lt;li&gt;  the issue concerns users who were syncing with mSecure Cloud;&lt;/li&gt;
&lt;li&gt;  mSeven has "no evidence" the attacker accessed the confidential information inside the database;&lt;/li&gt;
&lt;li&gt;  mSeven has no evidence the app itself is currently unsafe to use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These come from screenshots and customer posts, not from a public statement by the company. BleepingComputer said it had not received an answer from mSeven when it published. Treat the details as likely but unconfirmed, and note that "no evidence of access" is not the same as "no access."&lt;/p&gt;

&lt;h2&gt;
  
  
  What nobody has said
&lt;/h2&gt;

&lt;p&gt;Neither the notice nor the reporting reviewed here says:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  how the attacker got in, or when;&lt;/li&gt;
&lt;li&gt;  which systems were involved;&lt;/li&gt;
&lt;li&gt;  how many users are affected;&lt;/li&gt;
&lt;li&gt;  whether the database reportedly taken includes the vaults themselves, and whether the attacker can read their contents;&lt;/li&gt;
&lt;li&gt;  whether people who never used mSecure Cloud are affected.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;mSeven describes mSecure as using AES-256 encryption and a zero-knowledge design in which the company cannot access decrypted vault contents, as &lt;a href="https://www.bleepingcomputer.com/news/security/msecure-password-manager-hack-prompts-password-reset-warnings/" rel="noopener noreferrer"&gt;BleepingComputer&lt;/a&gt; notes. The notice does not say whether those protections were affected, and nothing published settles it. Malwarebytes adds that mSecure's own documentation warns that "someone may already have made a backup of its contents" (that is Malwarebytes's wording), though it does not link that line to this incident.&lt;/p&gt;

&lt;p&gt;One more piece of context: &lt;a href="https://www.heise.de/en/news/mSecure-password-manager-Secure-your-credentials-after-an-IT-incident-11509870.html" rel="noopener noreferrer"&gt;heise&lt;/a&gt; reports more than 500,000 installs on Google Play and estimates roughly 250,000 users overall. That is the author's estimate, not a company figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a reset can make sense even if the vault is encrypted
&lt;/h2&gt;

&lt;p&gt;An encrypted copy of a vault is not readable on its own. But an attacker who holds a copy can guess the master password offline. The vendor cannot rate-limit those guesses, and you cannot see them. Strong, unique master passwords make that expensive. Weak ones do not. BleepingComputer points to the 2022 LastPass breach, where stolen encrypted vaults were later tied to cryptocurrency thefts and weak master passwords are believed to have been cracked. That is a different company and a different incident. It shows the mechanism, not what happened at mSeven.&lt;/p&gt;

&lt;p&gt;Two consequences follow from this mechanism, and neither depends on facts mSeven has yet to publish:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Changing your master password protects the vault from now on, not a copy already taken.&lt;/strong&gt; A copy stays locked with the old password. What protects you is replacing the credentials that were inside it.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Deleting the app alone does not undo anything.&lt;/strong&gt; The data that matters is on the vendor side and in any copy, not on your phone. Keep your vault until its entries are replaced.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to do, in order
&lt;/h2&gt;

&lt;p&gt;The notice lists what to change but not an order. The priority order below is this article's own, informed by guidance from Malwarebytes and eSecurityPlanet, who both name email, financial, work and recovery accounts first. Where something is their opinion rather than mSeven's, it says so.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Work out what was in the vault
&lt;/h3&gt;

&lt;p&gt;Open the vault and list the entries, or export them to a file you will delete afterwards. Mark each one as email, financial, work, recovery or other. You need this list because the order matters more than speed.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Replace credentials by what an attacker could do with them
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Primary email and recovery accounts.&lt;/strong&gt; Anyone who controls your email can reset most other passwords. Change the password, review recovery email and phone numbers, and check active sessions.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Financial accounts.&lt;/strong&gt; Banks, payment services, anything that can move money.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Work accounts.&lt;/strong&gt; Cloud consoles, code hosting, VPN, single sign-on. If company credentials were in your vault, tell your IT or security team now (see the team section below).&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Everything else,&lt;/strong&gt; in the order you value it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Make every change on the service's official site or app, as Malwarebytes and eSecurityPlanet both advise, and never through links in emails or messages. Use a unique password for each account. Expect phishing: reset-warning emails are a convenient lure, including ones that appear to come from mSecure.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Handle two-factor secrets without locking yourself out
&lt;/h3&gt;

&lt;p&gt;If you kept authenticator seeds (TOTP secrets) in mSecure, treat them as potentially exposed along with the passwords. Malwarebytes suggests re-enrolling authenticators through each service's security settings. eSecurityPlanet adds that you should keep a working recovery method available. In practice that means saved recovery codes or a second device (this article's suggestion, not theirs), so check this before you remove an old method.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Handle passkeys carefully
&lt;/h3&gt;

&lt;p&gt;For each passkey stored in mSecure, first set up another working sign-in method, then remove the old registration at the service, then create a new passkey with a different provider. Do not revoke first.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Decide where the new credentials go
&lt;/h3&gt;

&lt;p&gt;Malwarebytes suggests considering a different password manager, at least temporarily, for the replacement credentials. That is its precaution, not a finding about mSecure. mSeven says it has no evidence the app is unsafe to use, so this is your call. If you stay, use a new, long, unique master password.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Watch for misuse
&lt;/h3&gt;

&lt;p&gt;After changing a password, check the service's login history or security log for sign-ins you do not recognize, and turn on alerts where the service offers them. Do not assume a quiet inbox means nothing happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  For teams and companies
&lt;/h2&gt;

&lt;p&gt;If staff stored work credentials in a personal mSecure vault, the exposure is yours even though the account is not:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Ask people to say whether they used mSecure for anything work-related, without blame, so you get honest answers.&lt;/li&gt;
&lt;li&gt; Rotate shared and service credentials first: API keys, cloud and database passwords, deployment tokens. The sequence of create, deploy, verify, revoke is covered in &lt;a href="//../../../blog/rotate-environment-variables-after-platform-breach"&gt;how to rotate environment variables after a platform breach&lt;/a&gt;, and the first hour for a leaked key is in &lt;a href="//../../../blog/leaked-ai-api-key-what-to-do"&gt;what to do after a leaked AI API key&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt; Check access logs at the affected providers for activity from unfamiliar locations or tools.&lt;/li&gt;
&lt;li&gt; Ask mSeven in writing which data is affected and what has been contained. eSecurityPlanet recommends this for businesses.&lt;/li&gt;
&lt;li&gt; Decide where shared credentials should live. Personal consumer vaults mix work and private secrets and give you no audit trail or revocation. A team secret manager with role-based access and an audit log answers "who could read this?" in an incident. It is still a service you have to trust, so ask the same questions of it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Switching from legacy vaults to Ennote Security
&lt;/h3&gt;

&lt;p&gt;Consumer password managers rely on downloading encrypted files (blobs) to a user's device. If the central cloud is breached, attackers can take those encrypted files and brute-force them offline at their leisure. This architecture is increasingly risky for enterprise infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ennote&lt;/strong&gt; eliminates this risk by utilizing a strict &lt;strong&gt;Zero-Persistence&lt;/strong&gt; architecture. Instead of syncing encrypted files that rest on a developer's hard drive or CI/CD runner, Ennote streams secrets directly into the application's volatile runtime memory via a secure gRPC connection. When the process stops, the secret evaporates.&lt;/p&gt;

&lt;p&gt;Furthermore, Ennote integrates natively with Kubernetes via the &lt;strong&gt;Ennote Smart Agent&lt;/strong&gt;. Instead of exposing inbound ports or relying on polling, the agent pushes secrets directly to native Kubernetes Secrets and can automatically trigger zero-downtime rolling updates across your pods the moment a credential is rotated.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to watch for next
&lt;/h2&gt;

&lt;p&gt;The questions that would change the advice are the ones in the unknowns list: whether vault contents were taken and whether they can be read, and how many users are affected. A fuller statement or an independent analysis could narrow the scope. Until then the order above stays sensible, because it is cheap and does not depend on any answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Notice and reporting: &lt;a href="https://www.bleepingcomputer.com/news/security/msecure-password-manager-hack-prompts-password-reset-warnings/" rel="noopener noreferrer"&gt;BleepingComputer, November 4, 2026&lt;/a&gt;, &lt;a href="https://www.malwarebytes.com/blog/data-breaches/2026/11/msecure-tells-users-to-change-passwords-but-wont-say-why" rel="noopener noreferrer"&gt;Malwarebytes, November 4, 2026&lt;/a&gt;, &lt;a href="https://www.heise.de/en/news/mSecure-password-manager-Secure-your-credentials-after-an-IT-incident-11509870.html" rel="noopener noreferrer"&gt;heise, November 3, 2026&lt;/a&gt;, &lt;a href="https://esecurityplanet.com/threats/news-msecure-security-incident-password-warning" rel="noopener noreferrer"&gt;eSecurityPlanet, November 5, 2026&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  Not done: The original customer email was not read directly, only outlets quoting it; mSecure was not tested; TechRadar's article could not be retrieved in full and is not relied on. Claims seen only on social media or blogs, including a claim about key derivation settings and a link to cryptocurrency thefts, were left out because no primary source supports them for mSecure.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Keep work secrets out of personal vaults.&lt;/strong&gt; Ennote is a secret manager for passwords, API keys and environment variables, with role-based access, an audit log and Kubernetes sync. &lt;a href="https://app.ennote.io/?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=msecure-breach-what-to-do&amp;amp;utm_content=footer" rel="noopener noreferrer"&gt;Start for free&lt;/a&gt; on the Developer plan.&lt;/p&gt;

</description>
      <category>msecurehack</category>
      <category>devsecops</category>
      <category>cybersecurity</category>
      <category>passwordmanager</category>
    </item>
    <item>
      <title>Introducing the Ennote CLI: Next-Generation, Zero-Persistence Secret Management</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Wed, 24 Jun 2026 17:50:12 +0000</pubDate>
      <link>https://dev.to/ennote/introducing-the-ennote-cli-next-generation-zero-persistence-secret-management-2lcb</link>
      <guid>https://dev.to/ennote/introducing-the-ennote-cli-next-generation-zero-persistence-secret-management-2lcb</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh4eza1fajix9g5a3dmp1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh4eza1fajix9g5a3dmp1.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;(This is a technical deep dive into the Ennote CLI's architecture. You can read the original full-length post on &lt;a href="https://ennote.io/blog/ennote-cli-next-generation-zero-persistence-secret-management" rel="noopener noreferrer"&gt;our engineering blog&lt;/a&gt;.)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For years, developers and security teams have been locked in a tug-of-war over how to handle application secrets. The traditional workflow - copying and pasting sensitive API keys into plaintext &lt;code&gt;.env&lt;/code&gt; files - has always been a massive security liability. Hardcoded secrets leak into version control, linger on developer laptops indefinitely, and create a sprawling attack surface.&lt;/p&gt;

&lt;p&gt;Today, we are thrilled to announce the &lt;strong&gt;Ennote Security CLI&lt;/strong&gt;: an identity-driven, zero-persistence secret manager built from the ground up for modern developers and CI/CD environments.&lt;/p&gt;

&lt;p&gt;The Ennote CLI bridges the gap between human identity (SSO) and your infrastructure, allowing you to fetch, inject, and manage enterprise secrets without ever writing a plaintext &lt;code&gt;.env&lt;/code&gt; file to disk.&lt;/p&gt;

&lt;p&gt;Here is a look at what makes the Ennote CLI the most secure way to manage your environment variables.&lt;/p&gt;
&lt;h3&gt;
  
  
  🚀 The Magic of Process Injection (Zero-Persistence)
&lt;/h3&gt;

&lt;p&gt;The core philosophy of the Ennote CLI is &lt;strong&gt;Zero-Persistence&lt;/strong&gt;. Secrets belong in memory, not on your hard drive.&lt;/p&gt;

&lt;p&gt;Instead of piping variables or writing out configuration files, the CLI securely injects your secrets directly into the memory space of a child process.&lt;/p&gt;

&lt;p&gt;For example, to run your local Node server with your production Stripe keys, you simply run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ennote secret get &lt;span class="s2"&gt;"stripe-keys"&lt;/span&gt; &lt;span class="nt"&gt;--&lt;/span&gt; npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;What happens under the hood?&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The CLI authenticates your identity.&lt;/li&gt;
&lt;li&gt;It fetches the &lt;code&gt;stripe-keys&lt;/code&gt; payload via a secure, TLS 1.3 encrypted gRPC tunnel.&lt;/li&gt;
&lt;li&gt;It resolves your &lt;code&gt;$PATH&lt;/code&gt; and executes &lt;code&gt;npm run dev&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The secrets are injected directly into the execution environment (&lt;code&gt;cmd.Env&lt;/code&gt;) of that specific process tree.&lt;/li&gt;
&lt;li&gt;When the process terminates, the secrets vanish. Nothing is ever written to disk.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Architectural Security &amp;amp; Post-Quantum Cryptography
&lt;/h3&gt;

&lt;p&gt;Enterprise security isn't just a feature; it's our foundational principle. The Ennote CLI operates on a strict Zero-Persistence threat model, heavily fortified against modern attack vectors:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hardware-Backed Cryptography:&lt;/strong&gt; We implement Ephemeral Elliptic-Curve Diffie-Hellman (X25519) combined with Post-Quantum CRYSTALS-Kyber (Kyber-1024) encapsulation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RAM-Only Decapsulation:&lt;/strong&gt; Secrets are decapsulated strictly in volatile memory. Plaintext Data Encryption Keys (DEKs) are explicitly destroyed using compiler-safe memory wiping routines &lt;em&gt;before&lt;/em&gt; functions exit to defeat memory scraping.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OS-Native Keyrings:&lt;/strong&gt; Authentication tokens are never stored in plaintext config files. We utilize the native OS Keyring (macOS Keychain, Windows Credential Manager, Linux Secret Service).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strict Transport Security:&lt;/strong&gt; All remote gRPC connections require TLS 1.3, complete with hardcoded downgrade prevention.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Seamless Developer Experience &amp;amp; CI/CD Ready
&lt;/h3&gt;

&lt;p&gt;Security shouldn't come at the cost of developer velocity.&lt;/p&gt;

&lt;p&gt;For local development, getting started is as easy as running &lt;code&gt;ennote auth login&lt;/code&gt;. This opens your system browser, authenticates you via your organization's SSO (Google, Microsoft, GitHub), and securely stores a session token in your OS keyring.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What about automated pipelines?&lt;/strong&gt; The Ennote CLI is fully equipped for headless CI/CD environments (GitHub Actions, GitLab CI, Jenkins). Simply provision a Machine Identity Token and inject it via the environment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Example: GitHub Actions&lt;/span&gt;
&lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run Database Migrations&lt;/span&gt;
    &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;ENNOTE_TOKEN&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.ENNOTE_MACHINE_TOKEN }}&lt;/span&gt;
      &lt;span class="na"&gt;ENNOTE_ORGANIZATION_ID&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;org_123&lt;/span&gt;
      &lt;span class="na"&gt;ENNOTE_WORKSPACE_ID&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;wrk_prod&lt;/span&gt;
      &lt;span class="na"&gt;ENNOTE_DO_NOT_TRACK&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
    &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
      &lt;span class="s"&gt;ennote secret get "db-credentials" -- npm run migrate&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;(Note: Ennote automatically handles complex JSON serialization, injecting primitives directly as strings to ensure compatibility with standard application parsers).&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Verifiable Provenance &amp;amp; Supply Chain Security
&lt;/h3&gt;

&lt;p&gt;You shouldn't have to blindly trust the binaries you install. Every Ennote CLI release is entirely automated and cryptographically verifiable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SBOMs:&lt;/strong&gt; We attach a standard SPDX/CycloneDX SBOM (&lt;code&gt;.sbom.json&lt;/code&gt;) to every compiled artifact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyless Signatures:&lt;/strong&gt; All release checksums are signed using Sigstore Cosign via GitHub OIDC tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Human Intervention:&lt;/strong&gt; No human developer possesses the cryptographic keys to publish or sign a release.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Get Started Today
&lt;/h3&gt;

&lt;p&gt;The Ennote CLI is available today with pre-compiled binaries for all major operating systems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;macOS &amp;amp; Linux (Homebrew):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;ennote-io/tap/ennote
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Windows (Scoop):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scoop bucket add ennote-io &lt;span class="o"&gt;[&lt;/span&gt;https://github.com/ennote-io/scoop-bucket]&lt;span class="o"&gt;(&lt;/span&gt;https://github.com/ennote-io/scoop-bucket&lt;span class="o"&gt;)&lt;/span&gt;
scoop &lt;span class="nb"&gt;install &lt;/span&gt;ennote
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Universal Shell Script (CI/CD):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sSfL&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;https://get.ennote.io/get-cli.sh]&lt;span class="o"&gt;(&lt;/span&gt;https://get.ennote.io/get-cli.sh&lt;span class="o"&gt;)&lt;/span&gt; | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Say goodbye to leaked &lt;code&gt;.env&lt;/code&gt; files and hello to identity-driven secret management.&lt;/p&gt;

&lt;p&gt;Ready to dive deeper? Check out the &lt;a href="https://github.com/ennote-io/ennote-cli" rel="noopener noreferrer"&gt;official GitHub repository&lt;/a&gt; and read through our comprehensive &lt;a href="https://docs.ennote.io/cli/overview" rel="noopener noreferrer"&gt;CLI Reference Documentation&lt;/a&gt; to start securing your workflow today.&lt;/p&gt;




&lt;h3&gt;
  
  
  Ready to Upgrade Your Secret Management?
&lt;/h3&gt;

&lt;p&gt;Stop compromising between security and developer velocity. &lt;strong&gt;&lt;a href="https://app.ennote.io" rel="noopener noreferrer"&gt;Get started with Ennote today&lt;/a&gt;&lt;/strong&gt; to see our Zero-Persistence architecture in action, or &lt;strong&gt;book a demo&lt;/strong&gt; with our engineering team to learn how we can secure your infrastructure.&lt;/p&gt;

</description>
      <category>cicd</category>
      <category>devops</category>
      <category>infrastructure</category>
      <category>automation</category>
    </item>
    <item>
      <title>The Identity-Driven Cryptography Behind Ennote's Zero-Persistence Vault</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Tue, 23 Jun 2026 05:39:44 +0000</pubDate>
      <link>https://dev.to/ennote/the-identity-driven-cryptography-behind-ennotes-zero-persistence-vault-49a</link>
      <guid>https://dev.to/ennote/the-identity-driven-cryptography-behind-ennotes-zero-persistence-vault-49a</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0m999kbmvpz0ytxou2is.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0m999kbmvpz0ytxou2is.png" alt="Ennote Security" width="800" height="420"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;(This is a technical deep dive into the cryptography behind Ennote's enterprise architecture. You can read the original full-length post on &lt;a href="https://ennote.io/blog/the-identity-driven-cryptography-behind-ennote-s-zero-persistence-vault" rel="noopener noreferrer"&gt;our engineering blog&lt;/a&gt;.)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When evaluating an enterprise secrets manager, the fundamental security question is not just how data is encrypted, but where and for how long the plaintext keys exist. As "The Identity-Driven Secret Manager", Ennote answers this by bridging the gap between infrastructure and identity.&lt;/p&gt;

&lt;p&gt;Whether you are a developer logging into our clean, lightning-fast Web UI, a script utilizing our CLI, or a native Kubernetes agent, the cryptographic process is exactly the same. We deliver secure team sharing, enforced SSO, and a sub-1-second sync to infrastructure with zero code changes required and absolute Zero Persistence. To achieve this without compromising security, Ennote employs a verifiable Transient Envelope Encryption model. We do not claim "magic"; we rely on transparent, peer-reviewed cryptographic primitives. Here is exactly how Ennote works, what we use, and why.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Zero Persistence vs. Zero Trust (Why We Reject Buzzwords)
&lt;/h3&gt;

&lt;p&gt;Many platforms market themselves as "Zero Trust" (implying strict End-to-End Encryption where the server infrastructure knows absolutely nothing and cannot mediate access). We do not make this claim, because true Zero Trust fundamentally breaks enterprise secret management workflows.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Flaw of Zero Trust in Secret Sharing:&lt;/strong&gt; In a mathematically strict Zero Trust (E2EE) model, there is no centralized authority. If Developer A creates a database password and the company later hires Developer B, the server cannot grant Developer B access. Developer A must manually come online, decrypt the payload locally, and re-encrypt it specifically with Developer B's public key. This approach destroys automated onboarding, makes central Role-Based Access Control (RBAC) impossible, and turns machine-to-machine syncing into a highly fragile, operational nightmare.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Ennote Reality - Zero Persistence:&lt;/strong&gt; Enterprise organizations require centralized governance. We built Ennote to provide seamless onboarding via built-in SSO (Google/Microsoft), full Role-Based Access Control (RBAC), and immutable Audit Logs to track every user action, creating a complete chain of custody for your data. To enable this secure team sharing, the Ennote internal KMS does mediate the cryptographic handshake to securely route access. However, plaintext keys exist only in volatile memory (RAM) for the duration of a cryptographic operation (milliseconds). At no point are plaintext DEKs written to disk, logs, databases, or persistent storage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We reject the "Zero Trust" buzzword because we prioritize workable, highly-governed enterprise security. We guarantee Zero Persistence.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The Foundation: Hybrid Cryptography &amp;amp; Envelope Encryption
&lt;/h3&gt;

&lt;p&gt;To achieve this Zero Persistence safely, we utilize Hybrid Cryptography via Envelope Encryption - the practice of locking a fast symmetric key inside of a highly secure asymmetric key.&lt;/p&gt;

&lt;p&gt;In cryptography, there are two primary methods for securing data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Symmetric Cryptography:&lt;/strong&gt; Uses a single, shared key to both encrypt and decrypt data. It is highly efficient and capable of encrypting large payloads at lightning speed. However, it suffers from a distribution flaw: securely transmitting that single key over a network to the recipient creates a massive vulnerability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Asymmetric Cryptography (Public-Key):&lt;/strong&gt; Uses a mathematically linked pair of keys - a Public Key (to encrypt) and a Private Key (kept secretly by the owner to decrypt). This solves the distribution problem entirely, but asymmetric math is computationally heavy and far too slow to encrypt large payloads efficiently.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Hybrid Approach:&lt;/strong&gt; Ennote combines both methods. We use the blazing speed of symmetric cryptography to encrypt your actual secrets, and the highly secure, identity-verified nature of asymmetric cryptography to protect and distribute the symmetric key itself.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Root of Trust &amp;amp; Organization-Level Governance
&lt;/h3&gt;

&lt;p&gt;Ennote’s architecture begins with absolute hardware security. The master seeds for our Internal KMS are protected by Cloud HSMs (AWS KMS / Google Cloud KMS) featuring FIPS 140-2 Level 3 validation. This establishes an unhackable root of trust.&lt;/p&gt;

&lt;p&gt;From this root, Ennote generates Post-Quantum asymmetric keys using CRYSTALS-Kyber (Kyber-1024), a NIST Post-Quantum standard that protects Data Encryption Keys (DEKs) against "harvest-now-decrypt-later" attacks.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Crucially, these Kyber keys are established at the Organization level.&lt;/li&gt;
&lt;li&gt;Access to individual resources within your organization is not managed by blindly decrypting the entire vault. Instead, Ennote utilizes Full Role-Based Access Control (RBAC) and immutable Audit Logs to provide granular access control to each individual resource.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. The Lifecycle of a Secret: High-Speed Payload Protection
&lt;/h3&gt;

&lt;p&gt;When an engineer (via Web UI/CLI) or automated agent creates a secret, the platform executes the following flow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Local Generation:&lt;/strong&gt; The client generates a random 256-bit Data Encryption Key (DEK) locally in volatile memory (RAM).&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Symmetric Payload Encryption:&lt;/strong&gt; The data payload is encrypted with this DEK using Client-Side AES-256-GCM, ensuring authenticated encryption.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Asymmetric Encapsulation:&lt;/strong&gt; The DEK is then encapsulated (enveloped) using the Organization-level KMS Public Key (Kyber) into a secure Key Capsule.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Blind Storage:&lt;/strong&gt; We store the encrypted payload alongside the encapsulated DEK. The DEK is completely unreadable to the storage layer, and payloads remain entirely opaque to Ennote.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  5. Identity Verification: Why We Use X25519 Over RSA
&lt;/h3&gt;

&lt;p&gt;To securely transmit secrets to your developers or the lightweight Ennote Kubernetes Smart Agent, we must mathematically verify identity. Every client generates an ephemeral Curve25519 (ECC X25519) key pair for Elliptic-Curve Diffie-Hellman (ECDH) key agreement. Private keys never leave the device.&lt;/p&gt;

&lt;p&gt;Why not use legacy RSA? Legacy RSA requires massive 2048-bit or 4096-bit keys that are computationally expensive and slow to generate on the fly. X25519 (Elliptic Curve Cryptography) delivers equivalent or greater security with a fraction of the key size (256 bits). Because X25519 keys are incredibly fast to generate and require minimal bandwidth, they perfectly enable the Ennote Agent to maintain its outbound-only gRPC stream for real-time, sub-1-second updates without exhausting cluster resources.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Ultimate Enterprise Control: BYOK &amp;amp; Transient Re-Wrapping
&lt;/h3&gt;

&lt;p&gt;For enterprise customers who require absolute cryptographic sovereignty, Ennote offers Bring Your Own Key (BYOK) Support. It is strictly within this BYOK workflow that our transient "re-wrapping" operation occurs.&lt;/p&gt;

&lt;p&gt;When an organization enables BYOK, they connect their own Google or AWS KMS (which natively supports asymmetric encryption) to envelope the Ennote Internal KMS keys.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;During an access request under BYOK, the DEK is briefly decapsulated inside the secure KMS enclave in volatile memory (RAM).&lt;/li&gt;
&lt;li&gt;The server immediately performs ECDH with the Client's Public Key, wraps the DEK using the customer's BYOK control logic and derived session key, and instantly flushes memory.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because the customer owns the ultimate Key Encryption Key via their AWS/GCP KMS, they have complete control over the encryption of the DEK. If a breach is suspected, the customer can instantly revoke access at their own cloud provider level, instantly severing Ennote's ability to re-wrap the DEKs and rendering the vault cryptographically sealed.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. The Zero-Persistence Guarantee &amp;amp; Confidential Computing
&lt;/h3&gt;

&lt;p&gt;Through this precise combination of Client-Side AES-256-GCM, Organization-level Kyber-1024 encapsulation, ephemeral X25519 identity verification, and optional BYOK transient re-wrapping, Ennote achieves true Zero-Persistence.&lt;/p&gt;

&lt;p&gt;Plaintext keys exist only in volatile memory (RAM) for the duration of a cryptographic operation - measured in milliseconds. At no point are plaintext DEKs written to disk, logs, databases, or persistent storage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Confidential Computing Protection:&lt;/strong&gt; To entirely eliminate the risk of volatile memory extraction during the transient re-wrapping phase, our KMS enclaves utilize Confidential Computing. This hardware-based isolation encrypts the data while it is in-use within RAM, completely preventing memory dumps or hypervisor-level inspection by any party - including malicious actors, host OS administrators, or our own cloud infrastructure providers. Physical theft of our disks yields absolutely no data.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Native Kubernetes Integration &amp;amp; Auto-Rollout
&lt;/h3&gt;

&lt;p&gt;Ennote is designed to replace unencrypted YAMLs and eliminate the need for developers to learn new SDKs. This is powered by our proprietary Kubernetes Smart Agent, deployed directly via Helm.&lt;/p&gt;

&lt;p&gt;The lightweight agent establishes an outbound-only gRPC stream - requiring no inbound ports or open firewall rules - to sync secrets directly to Native Kubernetes Secrets in under 1 second. Applications consume these secrets securely via standard &lt;code&gt;envFrom&lt;/code&gt; variables with zero code changes required. Furthermore, by adding the restart annotation, Ennote enables Auto-Rollout: when secrets are updated in the Ennote dashboard, the agent automatically rotates the pods depending on those secrets, ensuring immediate and seamless consistency across your entire cluster.&lt;/p&gt;




&lt;h3&gt;
  
  
  9. Executive Q&amp;amp;A
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Q: If you are faster than HashiCorp Vault, and you aren't strict Zero Trust, what security checks are you skipping?&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;A:&lt;/strong&gt; None. We are faster because we engineered the bottleneck out of the architecture. Instead of relying on heavy, centralized decryption pipelines, we distribute the workload using highly efficient X25519 Elliptic Curve cryptography and Client-Side AES-256. Ennote doesn't skip security; we modernized the cryptography to match the sub-second speed of modern Kubernetes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q: Can a malicious insider at Ennote dump the RAM and steal our keys during the transient re-wrapping?&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;A:&lt;/strong&gt; No. Ennote engineers have zero access to customer data keys, and all administrative actions require MFA and are heavily logged. Furthermore, the re-wrapping occurs inside a secure KMS enclave protected by Confidential Computing. Because the memory itself is hardware-encrypted while in use, RAM dumping is mathematically impossible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q: If you don't use strict "Zero Trust," how do I guarantee sovereignty over my data?&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;A:&lt;/strong&gt; By deploying our BYOK integration. This connects your own AWS or GCP KMS directly to our enclave, giving you the ultimate hardware kill-switch. You maintain total cryptographic sovereignty; Ennote merely facilitates the sub-second routing and seamless RBAC.&lt;/p&gt;




&lt;h3&gt;
  
  
  Ready to Upgrade Your Secret Management?
&lt;/h3&gt;

&lt;p&gt;Stop compromising between security and developer velocity. &lt;strong&gt;&lt;a href="https://app.ennote.io" rel="noopener noreferrer"&gt;Get started with Ennote today&lt;/a&gt;&lt;/strong&gt; to see our Zero-Persistence architecture in action, or &lt;strong&gt;&lt;a href="https://ennote.io/contact" rel="noopener noreferrer"&gt;book a demo&lt;/a&gt;&lt;/strong&gt; with our engineering team to learn how we can secure your infrastructure.&lt;/p&gt;

</description>
      <category>devsecops</category>
      <category>devops</category>
      <category>kubernetes</category>
      <category>security</category>
    </item>
    <item>
      <title>Product Update: Post-Quantum Cryptography meets &lt;1s Kubernetes Syncs</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Wed, 27 May 2026 06:00:53 +0000</pubDate>
      <link>https://dev.to/ennote/product-update-post-quantum-cryptography-meets-1s-kubernetes-syncs-5bpf</link>
      <guid>https://dev.to/ennote/product-update-post-quantum-cryptography-meets-1s-kubernetes-syncs-5bpf</guid>
      <description>&lt;p&gt;Engineering teams are actively seeking alternatives to the operational complexity of legacy enterprise vaults and the limitations of consumer-grade tools. We built the upgrade. Engineered to eliminate unencrypted YAMLs and legacy password managers, Ennote Security delivers a true zero-persistence architecture. Whether you are migrating from HashiCorp Vault, replacing 1Password, or securing native Kubernetes workloads, here is how &lt;strong&gt;The Identity-Driven Secret Manager&lt;/strong&gt; bridges the gap between identity and infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fht5gx9cfcmc4kxjaucs3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fht5gx9cfcmc4kxjaucs3.png" alt="Kubernetes Smart Agent Overview" width="800" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Kubernetes Smart Agent: &amp;lt;1s Synchronization without the Overhead
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Bypass the operational overhead of HashiCorp Vault and proprietary SDKs.&lt;/strong&gt; Our lightweight, Helm-deployed agent establishes an outbound-only gRPC stream for real-time updates directly to native Kubernetes resources. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero Network Friction:&lt;/strong&gt; No inbound ports, webhooks, or open firewall rules required.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Code Changes:&lt;/strong&gt; Applications consume secrets via standard &lt;code&gt;envFrom&lt;/code&gt; variables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-Rollout:&lt;/strong&gt; By adding the restart annotation, the agent automatically rotates pods the millisecond secrets change in your Ennote dashboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://ennote.io/agent?utm_source=social&amp;amp;utm_medium=post&amp;amp;utm_campaign=product_update_may_2026" rel="noopener noreferrer"&gt;View Agent Documentation ↗&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fst7s8npiswk3sba7k9r6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fst7s8npiswk3sba7k9r6.png" alt="Zero Persistence Cryptography Architecture" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Transparent, Zero-Persistence Cryptography
&lt;/h2&gt;

&lt;p&gt;When evaluating an enterprise secrets manager, &lt;strong&gt;the fundamental security question is not just how data is encrypted, but where and for how long the plaintext keys exist&lt;/strong&gt;. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Volatile Memory Only:&lt;/strong&gt; Plaintext keys exist only in RAM for the milliseconds a cryptographic operation occurs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Absolute Zero Persistence:&lt;/strong&gt; At no point are plaintext DEKs written to disk, logs, or persistent storage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post-Quantum Ready:&lt;/strong&gt; All data is encrypted via Client-Side AES-256-GCM, enveloped by NIST-standard CRYSTALS-Kyber (Kyber-1024) to protect against "harvest-now-decrypt-later" attacks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://ennote.io/blog/the-identity-driven-cryptography-behind-ennote-s-zero-persistence-vault?utm_source=social&amp;amp;utm_medium=post&amp;amp;utm_campaign=product_update_may_2026" rel="noopener noreferrer"&gt;Read the Engineering Deep-Dive ↗&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmz3bqd2dk52i5u95z3k.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmz3bqd2dk52i5u95z3k.jpeg" alt="AWS KMS BYOK Integration" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Enterprise Sovereign Control: AWS KMS Integration (BYOK)
&lt;/h2&gt;

&lt;p&gt;Take sovereign control over your organization's cryptography. Expanding on our existing Google Cloud KMS capabilities, Ennote’s Bring Your Own Key (BYOK) architecture now allows you to &lt;strong&gt;connect your own AWS KMS&lt;/strong&gt; to envelope our Internal KMS keys. By wrapping our internal infrastructure with your key, you maintain absolute cryptographic authority, allowing you to instantly revoke access to your data if a breach is suspected.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ennote.io/security?utm_source=social&amp;amp;utm_medium=post&amp;amp;utm_campaign=product_update_may_2026" rel="noopener noreferrer"&gt;Learn about BYOK Architecture ↗&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffvwqezdn87i4v75wvnsz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffvwqezdn87i4v75wvnsz.png" alt="Ennote Identity-Driven Interface" width="799" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A Lightning-Fast, Identity-Driven Interface
&lt;/h2&gt;

&lt;p&gt;We’ve completely refreshed the Ennote Web UI, specifically designed for engineering workflows. &lt;strong&gt;Natively integrated with your SSO and RBAC&lt;/strong&gt;, it’s easier than ever to manage team passwords, API keys, and access controls with a complete chain of custody alongside your infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://app.ennote.io?utm_source=social&amp;amp;utm_medium=post&amp;amp;utm_campaign=product_update_may_2026" rel="noopener noreferrer"&gt;Sign In to See What's New ↗&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;a href="https://app.ennote.io?utm_source=social&amp;amp;utm_medium=post&amp;amp;utm_campaign=product_update_may_2026" rel="noopener noreferrer"&gt;Start Using&lt;/a&gt; | &lt;a href="https://www.linkedin.com/groups/17605037/" rel="noopener noreferrer"&gt;Join Community Group&lt;/a&gt; | &lt;a href="https://ennote.io/contact/?utm_source=social&amp;amp;utm_medium=post&amp;amp;utm_campaign=product_update_may_2026" rel="noopener noreferrer"&gt;Talk to an Architect&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>kubernetes</category>
      <category>aws</category>
    </item>
    <item>
      <title>Why Strict "Zero Trust" Breaks Secret Management (And How We Built a Zero-Persistence Vault Instead)</title>
      <dc:creator>Serge Zhuravel</dc:creator>
      <pubDate>Mon, 11 May 2026 20:13:43 +0000</pubDate>
      <link>https://dev.to/ennote/why-strict-zero-trust-breaks-secret-management-and-how-we-built-a-zero-persistence-vault-instead-4lcg</link>
      <guid>https://dev.to/ennote/why-strict-zero-trust-breaks-secret-management-and-how-we-built-a-zero-persistence-vault-instead-4lcg</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a technical deep dive into the cryptography behind &lt;a href="https://ennote.io" rel="noopener noreferrer"&gt;Ennote's&lt;/a&gt; enterprise architecture. You can read the original full-length post on our &lt;a href="https://ennote.io/blog/the-identity-driven-cryptography-behind-ennote-s-zero-persistence-vault" rel="noopener noreferrer"&gt;engineering blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;When evaluating an enterprise secrets manager, the fundamental security question isn't just &lt;em&gt;how&lt;/em&gt; data is encrypted, but &lt;em&gt;where&lt;/em&gt; and &lt;em&gt;for how long&lt;/em&gt; the plaintext keys exist. &lt;/p&gt;

&lt;p&gt;Many platforms market themselves as strict "Zero Trust" (implying End-to-End Encryption where the server knows absolutely nothing). We don't make this claim. Why? &lt;strong&gt;Because mathematically strict E2EE fundamentally breaks enterprise secret management workflows.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you use strict E2EE, there is no centralized authority. If Developer A creates a database password and the company later hires Developer B, the server cannot grant Developer B access. Developer A must manually come online, decrypt the payload locally, and re-encrypt it with Developer B's public key. &lt;/p&gt;

&lt;p&gt;This destroys automated onboarding, makes central Role-Based Access Control (RBAC) impossible, and turns machine-to-machine Kubernetes syncing into a fragile nightmare. &lt;/p&gt;

&lt;p&gt;We needed a different approach. We prioritized workable, highly governed enterprise security by guaranteeing &lt;strong&gt;Zero Persistence&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here is the cryptographic stack we built to achieve it.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Hybrid Cryptography &amp;amp; Transient Envelope Encryption
&lt;/h3&gt;

&lt;p&gt;To get the best of both worlds - centralized RBAC and absolute data security - we use &lt;strong&gt;Hybrid Cryptography&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;We use the blazing speed of symmetric cryptography to encrypt the actual secrets, and the highly secure, identity-verified nature of asymmetric cryptography to protect and distribute the symmetric key itself.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Local Generation:&lt;/strong&gt; The client generates a random 256-bit Data Encryption Key (DEK) locally in volatile memory (RAM).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Symmetric Payload Encryption:&lt;/strong&gt; The payload is encrypted with this DEK using &lt;strong&gt;Client-Side AES-256-GCM&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Asymmetric Encapsulation:&lt;/strong&gt; The DEK is then encapsulated using our Organization-level KMS Public Key.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At no point are plaintext DEKs written to disk, logs, databases, or persistent storage. They exist only in volatile memory for the duration of a cryptographic operation (measured in milliseconds). &lt;/p&gt;

&lt;h3&gt;
  
  
  2. The Root of Trust: Post-Quantum Kyber
&lt;/h3&gt;

&lt;p&gt;Our architecture begins with absolute hardware security. The master seeds for our internal KMS are protected by Cloud HSMs (FIPS 140-2 Level 3 validation). &lt;/p&gt;

&lt;p&gt;From this root, Ennote generates Post-Quantum asymmetric keys using &lt;strong&gt;CRYSTALS-Kyber (Kyber-1024)&lt;/strong&gt;, a NIST Post-Quantum standard that protects against "harvest-now-decrypt-later" attacks. Crucially, these Kyber keys are established at the Organization level, not the individual resource level, allowing us to enforce centralized RBAC.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Identity Verification: Why We Dropped RSA for X25519
&lt;/h3&gt;

&lt;p&gt;To securely transmit secrets to your developers or our Kubernetes Smart Agent, we have to mathematically verify identity. &lt;/p&gt;

&lt;p&gt;We could have used legacy RSA, but RSA requires massive 2048-bit or 4096-bit keys that are computationally expensive to generate on the fly. Instead, every client generates an ephemeral &lt;strong&gt;Curve25519 (ECC X25519)&lt;/strong&gt; key pair for Elliptic-Curve Diffie-Hellman (ECDH) key agreement. &lt;/p&gt;

&lt;p&gt;X25519 delivers equivalent or greater security with a fraction of the key size (256 bits). Because they are incredibly fast to generate and require minimal bandwidth, they allow our Kubernetes Agent to maintain an outbound-only gRPC stream for real-time, sub-1-second updates without exhausting cluster CPU.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Enterprise Sovereignty: BYOK &amp;amp; Confidential Computing
&lt;/h3&gt;

&lt;p&gt;For teams that need an absolute "kill switch," we built a BYOK (Bring Your Own Key) integration with GCP and AWS KMS. &lt;/p&gt;

&lt;p&gt;During an access request under BYOK, the DEK is briefly decapsulated inside a secure KMS enclave. To eliminate the risk of volatile memory extraction during this transient "re-wrapping" phase, our enclaves utilize &lt;strong&gt;Confidential Computing&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;This hardware-based isolation encrypts the data &lt;em&gt;while it is in-use within RAM&lt;/em&gt;, completely preventing memory dumps or hypervisor-level inspection by any party - including malicious actors, host OS admins, or even our cloud infrastructure providers. &lt;/p&gt;

&lt;h3&gt;
  
  
  The Result: Sub-Second K8s Sync
&lt;/h3&gt;

&lt;p&gt;We engineered the heavy, centralized decryption bottlenecks out of the architecture. By combining Client-Side AES-256, Kyber-1024 encapsulation, ephemeral X25519 identity verification, and Confidential Computing, we achieved true Zero-Persistence. &lt;/p&gt;

&lt;p&gt;This allows our lightweight Kubernetes Agent to sync secrets directly to Native K8s Secrets in under 1 second via an outbound-only gRPC stream - requiring zero code changes and zero unencrypted YAMLs.&lt;/p&gt;




&lt;h3&gt;
  
  
  Over to you! 👇
&lt;/h3&gt;

&lt;p&gt;Building security tools always involves balancing usability, speed, and strict cryptography. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;How is your team currently handling secret delivery in Kubernetes?&lt;/strong&gt; &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Are you still relying on polling loops, or have you moved to event-driven architectures?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s chat in the comments! If you want to see this architecture in action, check out &lt;a href="https://ennote.io" rel="noopener noreferrer"&gt;Ennote Security&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>security</category>
      <category>kubernetes</category>
      <category>devsecops</category>
      <category>cryptography</category>
    </item>
  </channel>
</rss>
