aboutsummaryrefslogtreecommitdiffstats
path: root/docs/design.md
Commit message (Collapse)AuthorAgeFilesLines
* docs: what protects state against what, and two kinds of encryptiontv4 days1-7/+98
| | | | | | | | | | 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.
* docs: enstate compared with sops-nix, agenix, Clan and otherstv4 days1-6/+7
| | | | | | | | | 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.
* docs: source lists from a host's configurationtv4 days1-1/+7
|
* docs: refused submissions are visibletv4 days1-4/+8
|
* docs: a generation the state can't serve doesn't become the boot defaulttv4 days1-1/+1
|
* docs: a submission goes into the incoming directory wholetv5 days1-1/+3
| | | | | | | | 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.
* docs: --pack --dry-run, what keeps a source list from a submissiontv5 days1-0/+10
|
* docs: locations in source lists, and no generatorstv5 days1-2/+29
| | | | | | | | 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.
* docs: programs run in a sandboxtv5 days1-2/+3
|
* docs: submissions for the next generationtv5 days1-3/+16
| | | | | | | | 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.
* docs: services read views; enstate doesn't configure themtv5 days1-5/+11
| | | | | | | 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.
* docs: what is kept goes once its slot is filled anewtv5 days1-4/+7
| | | | | | | 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.
* enstate: the receptor and the provider, a first versiontv5 days1-5/+5
| | | | | | | | | | 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.
* docs: required slots before validators, commands as optionstv6 days1-22/+26
| | | | | | | | | 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.
* docs: design draft 4, programs and sourcestv6 days1-104/+316
| | | | | | | | | | 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.
* docs: design draft 3, migrations on papertv8 days1-166/+252
| | | | | | | | 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.
* init: design draft 2, state objectstv8 days1-0/+341