Repository navigation
Releases
Danaco Nurt 0.1.1
Changed
- The preview of
sqllists the effects ofload_extensionand of the pragmas
temp_store_directoryanddata_store_directoryas irreversible entries.
Added
-
createmakes named pipes and device nodes on Linux and macOS:type: fifo mode: "0660"andtype: device kind: char|block major: <int> minor: <int>
(a device node needsprivilege: elevated). On Windows both fail with
E_OS_ONLY. Both are journaled as created files, andundoremoves them.
infoandlistreport the typesfifoanddevice; a device node has
the fieldsmajorandminor. -
Administration of the firewall, the network and the clock (group
administration,
language brief section 10):firewall.rules,firewall.allow,
firewall.denyandfirewall.removeon nftables, firewalld and ufw (Linux),
pf (macOS) and the Windows Defender Firewall;network.route_add,
network.route_removeandnetwork.dns_set(systemd-resolved,
/etc/resolv.conf,networksetup, the Windows interface DNS);
clock.timezone_set,clock.ntpandclock.set. Each takes
privilege: elevatedand reports onestatechange of the target
firewall:<rule>,route:<destination>,dns:<interface>,clock:timezone
orclock:ntpwith the value before and after;undoruns the inverse
derived from those values (firewall.removeforfirewall.allow, the
previous zone, the previous servers, and so on).clock.setis irreversible.
A change that the system already holds is reported asunchanged. -
windows.cimcalls methods:invoke: "<method>"withwhere(the selected
instances) or without it (a static method of the class) andarguments
(text, int and bool values). A method with a documented opposite
(StartServiceandStopService,EnableandDisable,Pauseand
Resume) is undone by the opposite call; any other call is irreversible. -
Administration commands for accounts, groups, mounts, the kernel, power and
disks:accounts.create,accounts.modify,accounts.remove(keep_home),
accounts.password(the value is a secret and goes to standard input),
groups.create,groups.remove,groups.add_member,
groups.remove_member,mountandunmount(persistentedits
/etc/fstabthrough the journal),sysctl.set(persistentwrites
/etc/sysctl.d/90-nurt.conf),modules.load,modules.unload,
power.restart,power.shutdown(at,delay,message),
power.cancel,disks.partitionanddisks.format. Every command reads
the state it changes, reportsunchangedwhen nothing is to do, records the
state before and after, and acceptsprivilege.undoruns the inverse
command; a password, an immediate restart or shutdown, a cancelled schedule,
a partition change and a format are irreversible, and the preview of a disk
change lists the partitions, file systems, mount points and the size of the
data that is lost. -
Translation of bash into the constructs of the language (language brief,
section 11):if,elif,else,case,[ ],[[ ]]andtestbecome
when;for,whileanduntilbecomeeach,whileandrepeat until;
functions becomedefineand their calls calls;$1,$2,$@,shift
andgetoptsof a script becomeparams;A && B && Cwith changes becomes
steps(in a single call,E_ONE_EFFECTcarries thestepsprogram as its
first candidate, also for PowerShell);test ... || CMDbecomeswhen not.
The translation of the administration programsmkfifo,mknod,useradd,
usermod,userdel,groupadd,groupdel,gpasswd,passwd,mount,
umount,sysctl -w,modprobe,rmmod,ufw,firewall-cmd,nft,
iptables,ip route,resolvectl dns,timedatectl,date -s,
shutdown,reboot,poweroff,parted,mkfs.*andsqlite3writes the
native commands (rulesB41toB44).nurt migratetranslates these
structures, declares theparamsblock first and remembers the functions of
a script. Onlyeval, subshells, groups, the arithmeticfor,select,
interactive input and here-documents other thancat > filestay without a
translation (docs/guides/bash-migration.md).
Changed
sqlhas no refusals. A statement that changes anything opens the database
for writing and journals the file and its-wal,-shmand-journalfiles
first;writeis optional, andwrite: falsekeeps the call read-only.
BEGIN,COMMITandENDmerge with the transaction of the call,
ROLLBACKends it withE_ROLLED_BACK,ATTACHandDETACHare allowed
with every attached file journaled before the first change,VACUUM INTOis
journaled as a created file,VACUUMruns after the other statements,
load_extensionis allowed (its effects are reported as unknown and
irreversible) and the pragmastemp_store_directoryand
data_store_directoryare allowed (reported as effects on the whole Nurt
process, whichundodoes not reset). The file ofATTACHandVACUUM INTO
is resolved like every path argument (E_PATH_RELATIVEwithoutbase),
file:URIs are read to their path, the call turns the defensive mode of
SQLite off when it writes, a preview lists the files ofATTACHand
VACUUM INTO, the other database files appear as changes of the report, and
the kind of each statement is read from its own text.- Control constructs (language brief, sections 1 to 6 and 8):
whenwith
otherwise whenandotherwise; the loopseach,repeat untiland
whilewithbreak,continue,parallel,atomic: false,limitand
the configuration keysloop.max_iterationsandloop.max_time;steps
for several changes in one call; functions withdefineand the key
function.max_depth; script parameters withparams, the command
nurt run <file> name: valuewith--help, and the memberparamsof the
request. Each construct is one journal entry, all or nothing, previewed
without a change and checked before any effect; the report lists its
parts. A parameter of typeboolwritten without a value istrue. - Syntax tree version 1.1 (
nurt-ast/1andnurt-bound/1): the statements
when,each,repeat,while,break,continue,steps,define
andparamsand the pipeline headcall. Documents of version 1.0 are read
unchanged. The grammar is inspec/grammar.md. - Changes of the API of
nurt-syntax:lex::Checkpointis no longerCopy
(it keeps the open blocks of the lexer);MutationTxgains the methods
allow_incremental,savepoint,release_savepointand
rollback_to_savepoint, with defaults that keep the old behaviour;Request
gains the memberparams;Reportgainspartsandparts_total. MutationTx::allow_incremental: a transaction of the journal may preserve
further targets after its first change, so that a construct is one entry.
Added
- Privilege elevation: the call parameters
privilege(account,elevated,
auto) andas_user, written on a stage, given in the request or on the
command line (--privilege,--as-user); the elevation backendsself,
sudo,doasandrun0(the backendbrokeris reported as
not_installeduntil the servicenurt-elevation); the configuration
section[privilege]; elevated entries in the journal of the account, with
the same numbering, whose copies the account can access, written by the
elevated process with the rights of the account on Linux and macOS;
undo Nandredo Nof an elevated entry through the same backend, while
undoandredowithout a number that would restore one end with
E_PRIVILEGEand the next stepundo N privilege: elevated; and undo of
elevated changes and of changes to packages and services by inverse
operations.
Changed
sudo,doasandrun0in bash lines are translated intoprivilege: elevatedoras_userinstead of being rejected;sudo -iandsuend with
E_AMBIGUOUS.E_PRIVILEGEmeans that no elevation backend ran the operation or that the
system denied the elevation; it carriesbackendandnext_steps.
Security
- The Git library
gixand its sub-crates are updated to the 0.91 generation,
which no longer depends onheapless0.8 (nine advisories about unsound code,
RUSTSEC-2026-0574 to RUSTSEC-2026-0582). - The unused
netstat2dependency and the AVIF encoder of theimagecrate
(ravif,rav1e) are removed, which removes the unmaintainedpastemacro
crate (RUSTSEC-2024-0436). Reading of AVIF files was never enabled. - OpenPGP signatures of commits and tags are made and checked by GnuPG instead
of thepgpcrate, which removesrsa0.9 (RUSTSEC-2023-0071) and
crypto-bigint0.5 (RUSTSEC-2026-0387) from the dependency graph. The
program named bygpg.openpgp.programorgpg.program(gpgby default)
runs through the program service;git.signing.key_fileis imported into a
temporary GnuPG home directory. A missing or failing program refuses the
signature withE_GIT_SIGN(problemsprogram_unavailableand
program_failed); verification without the program reports the status
unsupported. SSH signatures are unchanged and still made in the process. - The text extraction of
pdf-extract0.12.1 is a crate of the workspace
(crates/nurt-pdf-extract, MIT license) built onlopdf0.47, which no
longer needs the unmaintainedttf-parsercrate (RUSTSEC-2026-0192). - The
chronofeature is off forcroner,lopdf,rmcp(updated to 3.12)
and, through it,schemars.chronostays in the dependency graph only
throughmacos-unifiedlogsandrussh-util(RUSTSEC-2026-0543), for which
deny.tomlrecords the reason. - The lock files of the fuzz targets are regenerated.
Added
- The command
nextand the fieldcontinuationof every shortened response:
a response that leaves lines, records or the end...