You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(flake): mkProjectServices — process-compose + services-flake helper for local dev services #795
Source: ADR docs/rfcs/ADR-nix-devenv-strategy.md (#794), local-services axis. The ADR adoptsprocess-compose + services-flake as the org default for local dev services; this issue implements the shared helper.
Context
Dropping cachix/devenv (the org direction — see #794, exo-fleet#76) removes the one capability plain pkgs.mkShell lacks: devenv up-style orchestration of local services (MinIO, Postgres, …) for development. The ADR picks the nix-native replacement — process-compose (daemon-free single-binary process runner) + juspay/services-flake (NixOS-like service modules) — because it keeps service versions in the same nixpkgs lock/SSoT, is GC-rooted with the flake, needs no container daemon, and carries no IFD cold-eval cost.
Goal
Provide a shared mkProjectServices helper (alongside mkProjectShell in flake.nix) that a consuming repo can wire into its flake to expose nix run .#services (or a just up verb) booting a declared set of local services from a plain pkgs.mkShell, with no container runtime required.
Scope
Add mkProjectServices to the flake and export it via self.lib (as mkProjectShell is).
A minimal validating PoC: daemon-free MinIO + Postgres brought up from a plain mkShell, versions from the pinned nixpkgs, GC-rooted, teardown clean.
Wire an optional services/up verb into the assets/workspace/ scaffold + justfile, off by default (repos opt in).
Resolve the flake-parts question: services-flake is idiomatically flake-parts, but the toolchain flake is flake-utils/eachSystem. Decide adopt-flake-parts vs manual process-compose wiring; record the cost.
Non-goals
No repo is forced to adopt services. This is opt-in tooling.
Heads-up for the acceptance criteria: the PoC boots SeaweedFS + Postgres, not MinIO + Postgres as originally written.
While implementing, nix build refused the pinned pkgs.minio: nixpkgs marks MinIO with knownVulnerabilities on both the stable (nixos-26.05) and unstable channels — six unfixed CVEs (unauthenticated object write via unsigned-trailer uploads ×2, JWT algorithm confusion in OIDC, LDAP login brute-force, SSE metadata injection, S3 Select DoS) plus the blanket note:
minio has been abandoned by upstream and security issues won't be fixed. Users should migrate to alternatives such as Garage, SeaweedFS, or Ceph.
Building it would require a permittedInsecurePackages exception, which is the wrong default for the org's blessed services PoC. services-flake ships a first-class seaweedfs module (maintained, S3-compatible gateway with health probes), so the PoC uses that; MinIO remains reachable via mkProjectServices for repos that consciously opt into the insecure-package exception (documented in docs/NIX.md).
cc @gerchowl — flagging since you may be working with S3 buckets elsewhere: anything provisioning MinIO (devenv services.minio, exo-fleet, etc.) is on an upstream-abandoned server with unfixed CVEs; SeaweedFS/Garage are the nixpkgs-recommended migration targets.
Activity
docs: record org nix dev-environment strategy ADR
docs: record org nix dev-environment strategy ADR (#796)
chore: drop the sidecar / multi-container capability entirely (#800)
c-vigo commentedon Jul 3, 2026
PoC S3 service: SeaweedFS instead of MinIO
Heads-up for the acceptance criteria: the PoC boots SeaweedFS + Postgres, not MinIO + Postgres as originally written.
While implementing,
nix buildrefused the pinnedpkgs.minio: nixpkgs marks MinIO withknownVulnerabilitieson both the stable (nixos-26.05) and unstable channels — six unfixed CVEs (unauthenticated object write via unsigned-trailer uploads ×2, JWT algorithm confusion in OIDC, LDAP login brute-force, SSE metadata injection, S3 Select DoS) plus the blanket note:Building it would require a
permittedInsecurePackagesexception, which is the wrong default for the org's blessed services PoC.services-flakeships a first-class seaweedfs module (maintained, S3-compatible gateway with health probes), so the PoC uses that; MinIO remains reachable viamkProjectServicesfor repos that consciously opt into the insecure-package exception (documented indocs/NIX.md).cc @gerchowl — flagging since you may be working with S3 buckets elsewhere: anything provisioning MinIO (devenv
services.minio, exo-fleet, etc.) is on an upstream-abandoned server with unfixed CVEs; SeaweedFS/Garage are the nixpkgs-recommended migration targets.Refs #794
test(flake): add failing gates for mkProjectServices export and servi…
feat(flake): add mkProjectServices helper and SeaweedFS+Postgres PoC
test(scaffold): assert opt-in services wiring and devc-* verb rename
feat(scaffold): opt-in services wiring and devc-* devcontainer verb r…
docs(nix): document mkProjectServices, flake-parts decision, and timi…
feat(flake): mkProjectServices — daemonless local dev services (proce…
c-vigo commentedon Jul 3, 2026
Closed in #807
refactor(scaffold): rename check/devcontainer-upgrade to devc-check/d…
chore(test): drop stale compose .yml assertion; align ADR services-ve…
docs(changelog): record the #806 audit outcomes; restore prek entry h…
chore(scaffold): justfile audit — complete devc-* namespacing, reacha…
chore: release 0.4.0 (#195)
chore: release 0.4.0 (#813)