| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
A sops-nix configuration (a secret, restartUnits, a template) and an
agenix one as enstate's slots, views and source lists, the sops and age
files as sources while moving; a secret's owner as systemd's business
(LoadCredential=); delivering with a small script and nixos-rebuild,
deploy-rs, Colmena, wire, Clan (its vars as the source, by clan vars
get) and
krops; changing a secret without deploying; and what doesn't move yet
(early state, closures for images, users' secrets).
|
| |
|
|
|
|
|
|
|
| |
sops-nix, agenix, ragenix, agenix-rekey, vaultix, the nix-secrets
pattern, and Clan's vars: how they work, a table against enstate, what
enstate does differently on purpose, and what it could learn (encryption
at rest, encrypted submissions, generators, outdated values, when state
is needed). From what was known of them on 2026-12-01; what isn't
certain says so. Linked from design.md, section 1, and the README.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
A submission the switch refuses is moved to STATE/refused/NAME with
NAME.json next to it: when, and why ("refused" if nothing more). The
check's message names the waiting submission's path. --status lists
what waits in the incoming directory, planned against the running
generation (one the check refused stays waiting, and refuses switches
while it does), and what was refused, with the reasons (and --json as
data); it exits with 1 if something needs attention: a refused
submission, a waiting one the running generation would refuse, an
unfilled required slot, so that a deployment running it notices.
--forget NAME removes a waiting or refused submission. After hrm's
review.
|
| |
|
|
|
|
|
|
|
|
|
| |
Reads every source and writes nothing: every problem, not just the
first, by address, with kind, location and variables, and the source,
as text or JSON (--json): an item the schema has no slot for, a record
in a type without records, a required slot without an item, a location
that doesn't exist, a source that can't be read (with what it said), a
record that isn't JSON. Exit status 1 if there are problems. --pack
itself refuses with the same list; --out isn't for a dry run, --json
only for one. The completion offers accordingly.
|
| |
|
|
|
|
|
|
|
|
|
| |
By bubblewrap: everything read-only but OUT (and IN bound again after a
fresh /tmp), a new /dev and /proc, namespaces of their own (no network),
no capabilities, a new session, gone with the receptor. The setting
sandbox is bwrap (found in the receptor's PATH, as the programs'
environment is empty), or none; the module sets its bubblewrap. The
tests run their programs in it where bubblewrap can make one (not in
Nix's build sandbox), and a test checks that a program can't write
outside OUT, nor into IN, and has no network nor environment.
|
| |
|
|
|
|
| |
A command until one is given, then the options it takes (each once, but
--config and --unset), and for PATH a submission (a directory) or a
source list (a file). The package installs it.
|
| |
|
|
|
|
|
|
|
|
|
| |
--migrate first takes the submissions in STATE/incoming, in the order of
their names: planned against the schema, stored if accepted (their views
follow with the rest), removed, and moved to STATE/refused if refused,
which refuses the migration. A dry run (the check before a switch) does
so on a copy of the snapshots, changing nothing. --stage leaves a
marker, STATE/migrate-due, for the next switch to migrate even if the
schema doesn't change; --migrate removes it. Scratch directories are
cleaned up without following the symbolic links in them.
|
| |
|
|
|
|
|
|
|
|
| |
Plans against --schema, stores the snapshot under it, and puts no views
in place and runs no reactions: the running generation goes on as it
is, keeping what it has no slot for, and the switch (--migrate) brings
the new views. The way to fill a required slot a generation adds before
switching to it, and to bring a host's first state: with the new
system's enstate, schema and configuration. Tests, and a subtest of the
VM test that does so.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The module makes the schema from options (/etc/enstate/schema.json),
every slot its own view unless it says otherwise, and names the views'
paths (read-only `path` options) for the services that read them. It
configures none of them: a service whose LoadCredential= reads a view is
ordered after the unit that puts the views in place, by itself. That
unit runs --migrate at boot and when the schema changes; the check
before a switch is --migrate --dry-run against the new schema. The
test: a consumer with a LoadCredential= of its own; apply from a source
list, rotate, switch across a rename and back, a switch refused, a
reboot.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
What a generation sees of a snapshot accepted under another schema:
same name and type, renamedFrom, a rename in the stored schema read
backwards, and entries kept, with their types, in the snapshot's kept/.
Plans start from what is seen, and store it under the running schema;
a generation change rewrites no snapshot. --migrate (and --dry-run)
says what each channel sees, refuses for required slots nothing fills,
puts the views in place and runs their reactions; --materialize and
--status go by what is seen, too. A view made from an unfilled
required slot isn't there. The rollback cases of migrations.md that
need no converters or steps are tests.
|
| |
|
|
|
|
|
|
|
|
| |
One program on a library: --plan and --apply of submissions (complete and
partial, items required and optional, groups, removal, the chain as
order), validators of types and across slots, views put in place by
replacing a link, their reactions by systemctl; --status, --materialize;
and --pack, a submission from a source list in JSON or TOML, by the
config crate's sources. Programs by the protocol of design.md 5.2;
tests with shell scripts as validators and renderers.
|
| |
|
|
|
|
|
|
| |
Partial submissions with required and optional items and groups, plan
before apply, formats by media type, a protocol for renderers, host
names by a resolver, refuse as the only policy; and the rule that a
generation change never rewrites the snapshot, which the cases in
migrations.md need.
|
| |
|