Repository navigation
v1.4.0 — works with HashiCorp's own clients; LDAP private CA; token cleanup
Works with HashiCorp's own clients. The vault CLI, External Secrets Operator and anything else built on github.com/hashicorp/vault/api now work against uBixVault — checked end to end with the official client. Also: LDAP directories with a private CA can be verified (certificate), expired tokens are cleaned up in the background, and Kubernetes roles' ttl is finally applied.
Image: ghcr.io/ubixsys/ubixvault:1.4.0 (multi-arch amd64/arm64, cosign-signed + SBOM). Helm chart: deploy/charts/ubixvault (0.1.19, appVersion 1.4.0).
Upgrade notes
- Policy reads changed shape:
GET /v1/sys/policies/acl/<name>returnsdata.policyas a string, as Vault does. If you parse that response yourself, parse the string (it is the policy's JSON text). - JSON policies with unknown keys are now refused (
400) instead of being stored without them. Check any automation that writes JSON policies with keys other thanpath/capabilities. - Kubernetes roles'
ttlnow takes effect. If a role already sets one, logins through it get that lifetime from now on instead of 32 days. - Consider a short
ttlon Kubernetes roles used by apps that log in per request or per process — each token then stops being a valid credential soon after it is used, and the new sweeper removes it.
Added
- Expired tokens are deleted in the background (every 10 minutes, on the active replica, up to 20,000 per pass), along with what each one owned — its cubbyhole and its dynamic-database leases — as revoke-self does. Before, an expired token was only removed if something looked it up, so a client that logs in on every request left every token behind; a dev deployment had accumulated 80,811 of them in five weeks, ~45 rows of real data among them.
- LDAP auth:
certificateonauth/ldap/config— a PEM bundle of the CA certificates that sign the directory's TLS certificate, as in Vault. Directories that issue their own certificates (FreeIPA's Dogtag CA, Active Directory enterprise CAs) can now be verified instead of needinginsecure_tls, which sent the bind password and every user's password to an unverified peer. When set, only those CAs are trusted for the connection. Validated on write: it must contain only certificates (a pasted private key is refused, not stored), and it cannot be combined withinsecure_tls. Returned on config read, like Vault.
Changed
GET /v1/sys/policies/acl/<name>returnsdata.policyas a string, as Vault does (the policy's canonical JSON text, which can be written back unchanged). It was a JSON object, which Vault's own client could not read — itsGetPolicypanicked — and neither can Terraform's Vault provider. If you parse this response yourself, parse the string. The console is updated.- JSON policy documents reject unknown keys (
400). A misspelledpathused to be stored as an empty policy, and restrictions uBixVault does not implement (e.g.allowed_parameters) were silently dropped, so the policy granted more than written. HCL policies were already strict.
Fixed
- Writing a policy the way Vault's clients do stored an empty policy. Vault's clients and Terraform send
{"policy": "<HCL or JSON text>"}; uBixVault took that body as the policy document itself, found no paths, stored a policy with no rules, and answered204. It fails closed (an empty policy grants nothing) but reported success. The{"policy": ...}shape is now accepted; a bare document still works. - Kubernetes auth ignored the role's
ttl. It was stored and shown on read but not applied, so every login got the 32-day default. Logins now get the role'sttlwhen set. If your clients log in per request or per process, set a shortttlon their role (minutes): each login's token then stops being a valid credential almost as soon as it is used. - HashiCorp's own Vault clients now work. Checked end to end with the official Go client (
github.com/hashicorp/vault/api), which thevaultCLI and External Secrets Operator are built on. It failed at the first call before this; now init, unseal, KV v2, listing, policies, token create/lookup/renew/ revoke and userpass login all work:- Every write route accepts both
PUTandPOST, as in Vault. 41 routes accepted only one, so e.g.vault operator init/unsealand the Go client'sPUT auth/kubernetes/login(what ESO sends) got405. GET …?list=trueis a list, as in Vault (the Go client lists this way); only theLISTmethod worked, and listing the top of the KV store failed.- Durations accept a number of seconds (
3600,"3600") as well as"1h", on every TTL/increment field, as in Vault. sys/init,sys/unsealandauth/token/createaccept the fields Vault's client always sends. Fields uBixVault does not implement are accepted only at their zero value and otherwise refused with a clear error — never silently ignored where that would change the result (e.g.pgp_keys, which would otherwise return plaintext shares, ornum_uses). With auto-unseal,recovery_shares/recovery_thresholdconfigure the recovery keys, as in Vault.
- Every write route accepts both
Security assurance (read this)
uBixVault has not yet undergone an independent third-party security audit. Its cryptography and trust path are standard-library Go, written in-house, fuzzed, and property-tested, but that is not a substitute for outside review, which is an active, open milestone, deliberately not a version gate (docs/VERSIONING.md). Weigh that before placing high-blast-radius secrets here.
Full history: CHANGELOG.md.