<?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.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>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>
