← All series
Series · 17 parts

uBixVault

Building a HashiCorp Vault-style secrets manager from scratch in Go, from the first design notes to Vault compatibility.

  1. 01 uBix Vault: Building a Secrets Manager From Scratch A new project, still in early development: a from-scratch, HashiCorp Vault-style secrets manager in Go. Here's what it is, why I'm building it when Vault and OpenBao already exist, and the design decisions I've committed to so far.
  2. 02 uBix Vault Hits Beta: From Design Notes to a Working Secrets Manager A few weeks ago I posted the design notes for a from-scratch, Vault-style secrets manager in Go. It's now a working beta (v0.2.0-beta.1) with encryption at rest, Shamir seal/unseal, dynamic database credentials, auto-unseal, backups, and more. Here's what got built, and the engineering bits worth writing down.
  3. 03 uBix Vault Beta 3: Running It on My Own Cluster, With a Console The last post was about uBix Vault becoming a working beta. This one is about making it real: a Helm chart, multi-arch images, an admin console, metrics, rate limiting, and deploying it onto my own Kubernetes cluster. Two betas of operational work, and the lockout bug I almost shipped.
  4. 04 uBix Vault Beta 7: A Full Auth Suite, and Its Own CA The last uBix Vault post ended with a service running on my own cluster. Four betas later it can authenticate almost anything (AppRole, Kubernetes, username/password, and now JWT/OIDC), and it can be its own certificate authority. All of it still stdlib-only, still essentially one dependency.
  5. 05 uBix Vault Beta 8: Transit, or Signing Without a Library Beta 7 gave uBix Vault a way to authenticate anything. Beta 8 turns its Transit engine into full crypto-as-a-service (sign, verify, HMAC, data keys, rewrap) plus single-use response wrapping. All of it standard-library, still essentially one dependency.
  6. 06 uBix Vault Beta 9: Making It Durable The feature list has been done for a while. Beta 9 is about the thing that actually gates running a secrets manager for real: durable storage. uBix Vault can now live in a database instead of on one node's disk, with live unseal-share rotation and scheduled backups. Still one dependency.
  7. 07 uBix Vault Beta 11: The Last Gate I Can Build Myself Beta 11 adds cloud-KMS and HSM auto-unseal without a single provider SDK in the vault. With it, every engineering gate on the road to 1.0 has landed. What's left is the one gate I can't build myself: an outside security review.
  8. 08 uBix Vault Beta 12: Identity, and a Second Dependency Beta 12 is the first batch of work after the engineering was 'done': closing the last gaps with HashiCorp Vault's free tier. It adds a full identity layer, LDAP login, and more. It also spends the project's second-ever dependency, on purpose, and I want to explain why.
  9. 09 uBix Vault 1.0: Stable, and Honest About What That Means uBix Vault is 1.0. That is a promise about the interface, not a claim that the crypto has been audited. I want to be exact about the difference, because for a secrets manager the difference is the whole point.
  10. 10 uBix Vault 1.1: Resource Quotas, the First Enterprise-Parity Feature 1.0 matched HashiCorp Vault's free tier. 1.1 is the first step toward the *Enterprise* feature set: resource quotas (rate-limit quotas and lease-count quotas), in-house, over the Vault-compatible API. Additive, backward-compatible, and built design-first.
  11. 11 uBix Vault 1.2: High Availability, Because Nodes Get Drained 1.2 runs uBix Vault as several replicas: one active, the rest standing by, all behind one Service. A node drain or a rolling upgrade now hands over in about half a second without a failed request. And a replica that loses the lock without noticing can't write a thing.
  12. 12 uBix Vault 1.3: The Token That Could Mint Root, and Signing In Properly 1.3 fixes a critical hole in token creation (a token allowed only to create tokens could create a root one), caps how long any token can keep itself alive, and lets the web console sign in with a username and password or LDAP. If anything in your policies grants auth/token/create, upgrade.
  13. 13 uBix Vault 1.4: Vault-Compatible, Checked With Vault's Own Client uBix Vault has always said it speaks a Vault-compatible API. In 1.4 I finally tested that claim with HashiCorp's own Go client, the one the vault CLI and External Secrets Operator are built on. It failed on the very first call. Now it doesn't, and along the way the testing turned up policies stored empty, LDAP forced into insecure TLS, and 80,000 forgotten tokens.
  14. 14 uBix Vault 1.5: The Whole Lifecycle in the Browser, and Tokens That Know Their Parents 1.5 lets the web console initialize and unseal a vault, tested in a real browser on every commit. It also finishes the token work 1.3 started: revoking a token now revokes the tokens it handed out, and every auth role can cap how long its tokens live.
  15. 15 uBix Vault 1.6: Why I Rolled My Own Secrets Manager (and Why You Might Try It) I needed a secrets manager built to carry real production traffic and lighter to run than Vault, so I built one that speaks Vault's API. 1.6 adds Raft storage that keeps its own replicated data. It's EXPERIMENTAL, and here's what I did to try to break it.
  16. 16 uBix Vault 1.7: Hand Out Role Administration Without Handing Out Root Before 1.7, anyone who could write an auth role in uBix Vault could make themselves root. 1.7 closes that: root comes only from the key holders, policies gain Vault's parameter limits, and a token can ask what it's allowed to do.
  17. 17 uBix Vault 1.8: A Console You Can Run a Vault From uBix Vault's console was one long page of panels: enough to unseal and poke at a secret. 1.8 makes it an application: a dashboard, a key/value browser that hides values until you ask, users and roles for every auth method, and buttons that follow your token's permissions. Still no third-party code.