Security & Identity
Secrets, authentication, access control and gates that hold up under pressure.
- A Gateway Is Only One of Three Boundaries Letting analysts query the warehouse through AI assistants sounds like one problem with one fix: put a gateway in front. Designing a pilot on ClickHouse and dbt showed me it's three problems. The gateway decides who you are and which tools you may call. The database decides what a query can touch. And a shared repo decides what the data means.
- A Secret in Git Is a Secret Forever Deleting a key in the next commit doesn't remove it from history, clones, CI caches or images. Only rotation un-leaks it. And now that AI can read a leaked codebase faster than you can, "nobody will find it" has stopped being a defence. Assume the code will be read, and make it worthless.
- Creation Rules Must Never Gate Authentication The rules for what a new username may look like are not the rules for what an existing one does look like. Reuse the creation type at login and you lock out every account created under older, looser rules. Permanently, and with an error that tells nobody why.
- Gates That Are Red on Day One Get Switched Off An absolute threshold against existing debt is a gate someone will disable by Friday. Ratchets fix that: block only on regression against a stored baseline. But a ratchet's real design work is deciding, in advance, which way every failure mode fails.
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.
uBixGate: One Door for Every Agent's MCP Tools
uBixGate is a small MCP gateway in Go: agents connect to one endpoint, and every tool call is authenticated against your identity provider, checked against a deny-by-default policy, given the upstream's credential from Vault at call time, and written to an audit log. The first beta, v0.1.0-beta.1, is out. Here's what it does, what it deliberately doesn't, and why it's small enough to read in an afternoon.
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.
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.
uBixCore 0.45: Continue with Facebook
uBixCore 0.45 adds Facebook to its sign-in seam. Facebook isn't OpenID Connect, so the provider checks a token at the Graph API instead of verifying one itself, and a second class verifies the requests Meta sends when someone asks for their data to be deleted.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.