| 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).
|
| |
|
|
|
|
|
|
|
|
| |
State never travels through Nix's paths. Encryption protects only where
its key isn't: against whoever has the disk, a key on it protects
nothing. So, apart: submissions encrypted to the host's ssh key, for
ways that aren't ssh (8.2); entries sealed to the host's TPM by
systemd's credentials, at rest, then opaque to renderers (8.3); and
plain entries, which full-disk encryption protects (8.4). 8.1 says
against what each protects, and when to use which.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
Names starting with a dot are skipped there, so a provider copies a
submission under one and renames it within the incoming directory: a
receptor looking at it meanwhile (enstate.service, a check) never sees
half a submission. Said in the design, the module's incomingDir, the
store; and a test that a dot name is left alone.
|
| | |
|
| |
|
|
|
|
|
|
| |
A location is a source declared once and used by many items, with
variables from each item's fields ($(var:NAME), once the config crate
has them), read only. Making values that don't exist yet is the
source's business, which knows its layout, its recipients, and how each
kind of key is made: enstate doesn't generate.
|
| | |
|
| |
|
|
|
|
|
|
| |
A submission for a generation not yet switched to waits in an incoming
directory, which the check before the switch plans against the new
schema and the switch takes; or it is staged, with the new generation's
receptor, and stored without views or reactions. Either way the switch
brings the views, and a host's first switch its state.
|
| |
|
|
|
|
|
| |
The sketch of the NixOS side: services point at the views' paths, which
the module names, as they like (LoadCredential=, a configuration file);
whether they are restarted when a view changes is up to reactions, since
a configuration may restart them itself.
|
| |
|
|
|
|
|
| |
A kept entry fills a slot of its name and type after a rollback, but
once that slot is filled anew it is older than what is there, and goes:
the rule of migrations.md case 3, for every kept entry. --migrate takes
--dry-run, for the check before a switch.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
The plan checks that required slots are filled before it runs the
validators, so they are given filled slots. The receptor's and the
provider's commands are options (--plan, --apply, --pack, ...), as our
tools' are. An item in a group is as required as its group, and the
manifest has no checksums yet. A plan says of secret views, and of
files that aren't text, which files differ, as diffutils does.
|
| |
|
|
|
|
|
|
|
|
| |
A protocol for validators, renderers, converters and steps (a directory
with an invocation and channels/CHANNEL/SLOT, objections as JSON lines);
every slot holds a file, its type a media type, so format and type
versions go; validators across slots; submissions in the same layout,
with removal and the chain as order proposed; and enstate pack, with
source lists in JSON or TOML by continuum's config crate. Case 2 of
migrations.md now has two types and converters between them.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|