Repository navigation
SecretHub v1.0.0-rc12
Pre-releaseSecretHub v1.0.0-rc12
This prerelease updates Elixir and frontend dependencies and includes NixOS Agent deployment support added since rc11.
Changes
- Phoenix 1.8.8 → 1.8.15, LiveView 1.2.5 → 1.2.12, Phoenix DuskMoon 9.6.2 → 9.16.7.
- PhoenixSocketClient 0.7.0 → 0.8.4, Req 0.6.2 → 0.7.5, Oban 2.23.0 → 2.24.1.
- LiveDashboard 0.8.7 → 0.9.1 and DNSCluster 0.2.0 → 0.3.1; other compatible Hex updates are recorded in
mix.lock. - Tailwind CSS/CLI 4.3.0 → 4.3.3, DuskMoon core 1.17.0 → 1.20.4, DuskMoon elements 1.5.3 → 1.9.1; workspace dependency pins and
bun.lockare updated. - Nix packages derive their version from
mix.exs, prefetch pinned MDEx native libraries, and use the locked Tailwind 4.3.3 toolchain. The frozen Bun cache includes all target platforms and normalizes unused generated command shortcuts for reproducibility. - The
secrethub.nixosModules.agentmodule deploys the Agent as an unprivileged systemd service with private host-key credentials, persistent identity, optional enrollment CA, and startup preflight. Follow the NixOS Agent guide.
For NixOS deployment, configure the HTTPS enrollment URL in coreUrl, allow outbound access to Core's separately advertised mTLS runtime endpoint, rebuild the host, and approve its SSH fingerprint in /admin/pending-agents. Verify the connected Agent and advancing heartbeat in /admin/agents; a running service alone does not prove connectivity.
Validation and known baseline failures
Current local checks passed: all direct Hex/npm dependencies report current; development and production compilation with warnings as errors; frozen Bun install and CSS/JavaScript builds; formatting; 5 release-packaging contracts; 227 Agent, 106 Shared, 266 CLI, and 93 Human-app tests; 24 Core Human integration tests; 9 web runtime/origin regressions; and 4 Nix runtime-identity contract tests.
The dependency update exposed a test cleanup race with DBConnection 2.10.2. The PostgreSQL test connection is now owned by ExUnit's supervisor; the deadline assertions are unchanged and the entire 24-test file passes. The additional local dynamic-PostgreSQL authentication failure was reproduced using the original dependency lock.
The initial local full run reproduced all 48 baseline Core/Web failures. The hosted Test run has exactly the same failure-title set and counts as the baseline: Core 664 tests / 29 failures / 24 invalid / 2 skipped, Web 305 tests / 19 failures / 50 excluded. Hosted Human integration fixtures remain invalid because initdb is unavailable; all 24 of those tests pass locally with PostgreSQL tooling. E2E remains failing: locally 8 tests / 3 failures; the hosted run reached 6 tests / 3 failures before the configured abort. Both show unavailable/sealed Vault state and runtime-transfer failure. The exact cases vary with test order because the E2E suite shares Vault state; the full suite has not been qualified. Hosted Compile, Format, Credo, and Caddy Go checks passed. Dialyzer retains exactly the baseline 143 total / 136 skipped findings, with 7 emitted warnings and 4 unnecessary skips. This prerelease does not claim a green full suite or production acceptance.
Nix Core, Agent, CLI, and Agent module preflight passed on x86_64-linux. The packaged MDEx native library rendered Markdown successfully, and an independent rebuild reproduced the pinned Bun dependency hash. Other Nix architectures were not built locally.
Release publication: PASS (workflow, source 3525de12c647813a486632bd25dd64198eb21b2f). All 14 release jobs succeeded. The public GitHub prerelease contains all eight expected nonempty archives; remote main and the annotated tag resolve to this source commit. The inspected Linux amd64 Agent archive matches the published asset digest and contains the rc12 release with the exact Agent runtime configuration.
All three OCI image indexes have runnable Linux amd64 and arm64 manifests with the expected version, source, and revision labels. Each version tag matches its sha-3525de12c647813a486632bd25dd64198eb21b2f alias. A fresh Hex installation using isolated Mix/Hex/dependency directories downloaded secrethub_cli 1.0.0-rc12 from the public registry; both secrethub version and secrethub --help passed. No production deployment was performed.
The pre-update baseline at 1e5d49c was already failing:
| Check | Baseline result | Failure families |
|---|---|---|
| Core tests | FAIL: 664 tests, 29 failures, 24 invalid, 2 skipped | 25 Vault durable-state failures; 3 supervision child-list assertions; 1 database lock-order assertion. HumanAccess's 24 invalid tests require the missing initdb executable. |
| Web tests | FAIL: 305 tests, 19 failures, 50 excluded | 11 Vault durable-state failures; 3 unseal contract expectations; 2 bootstrap/rate-limiter expectations; 3 secret-management failures. |
| Dedicated E2E | FAIL: 7 tests, 3 failures | Runtime acceptance and secret-transfer timeouts; sealed Vault during certificate issuance. |
| Dialyzer | FAIL: 7 emitted warnings; 143 total, 136 skipped, 4 unnecessary skips | UDS Cache contracts, unused function, authorization-version pattern, PostgreSQL Task type, and Human LeaseMonitor pattern. |
Live Core connectivity and production deployment require operator verification.
Artifacts
- Core:
secrethub_core-v1.0.0-rc12-linux-{amd64,arm64}.tar.gz. - Agent:
secrethub_agent-v1.0.0-rc12-{linux-amd64,linux-arm64,macos-amd64,macos-arm64,freebsd-amd64}.tar.gzandsecrethub_agent-v1.0.0-rc12-windows-amd64.zip. - Docker:
ghcr.io/gsmlg-dev/secrethub/{core,core-standalone,agent}:v1.0.0-rc12, built for Linux amd64 and arm64. - CLI: Hex.pm package
secrethub_cliversion1.0.0-rc12.
mix local.hex --force
mix escript.install hex secrethub_cli 1.0.0-rc12
secrethub versionUpgrade and runtime requirements
Read the runtime contract and operations guide before upgrading. The rc10 deployment environment is insufficient.
Core requires runtime-only DATABASE_URL, SECRET_KEY_BASE, SECRET_HUB_CLUSTER_NODE_ID, AUDIT_HMAC_KEY, AUDIT_HMAC_KEY_ID, and SECRET_HUB_MANAGEMENT_ORIGIN. Preserve historical audit keys in AUDIT_HMAC_VERIFICATION_KEYS where required. Core and Agent require RELEASE_DISTRIBUTION=none. Use documented environment/file inputs for secrets; keep them out of images and build arguments.
Management uses a private HTTP backend behind mandatory Caddy mTLS, with an explicit public HTTPS origin. Optional SECRET_HUB_MANAGEMENT_ALLOWED_ORIGINS entries must also be protected by Caddy mTLS. Enrollment and Agent runtime use separate listeners; choose container networking that reaches the intended private backend. An exposed Docker port alone does not make a loopback-bound backend reachable.
Agent requires an HTTPS Core enrollment URL, a readable existing RSA/ECDSA SSH host key, persistent state, a Unix socket path, and a Client Auth PKI bundle directory. Make the paths available to the service UID and preserve identity across upgrades. Ed25519 host-key enrollment is unsupported. The optional enrollment CA retains HTTPS peer verification.
The default restricted single-operator profile disables dynamic engines, rotation, and Human. Inventory existing dynamic leases and rotation jobs before adopting it. Human Vault has separate explicit opt-in and runtime requirements; see the Human Vault guide.
Ordinary Vault unseal accepts v4 shares. Legacy formats 1–3 require explicit authenticated recovery. Back up existing data and shares; never reset or reinitialize an existing Vault to upgrade. Read the v4 share format and Vault recovery guide.
Migrate the existing database explicitly and run release preflight as the service UID before cutover. The standalone embedded-PostgreSQL image still migrates at startup. Standalone and platforms beyond Linux amd64 remain outside the documented production qualification, even when their build artifacts are available.