starting new job...
→ running command: cd "/etc/byggsteg/job-clone//bewaking/trunk" && git reset --hard && git pull
HEAD is now at e20e8ca feat: Modernize Maak automation
From https://codeberg.org/jjba23/bewaking
e20e8ca..c61153e trunk -> origin/trunk
* [new tag] v0.4.4 -> v0.4.4
* [new tag] v0.4.6 -> v0.4.6
* [new tag] v0.4.5 -> v0.4.5
Updating e20e8ca..c61153e
Fast-forward
default.nix | 2 +-
maak.scm | 16 ++++++++--------
packaging/opensuse/bewaking.spec | 2 +-
3 files changed, 10 insertions(+), 10 deletions(-)
→ running command: cd /etc/byggsteg/job-clone/bewaking/trunk && uname -a
Linux wolk-jjba 7.1.5-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
→ running command: cd /etc/byggsteg/job-clone/bewaking/trunk && git log --name-status HEAD^..HEAD
commit c61153e4821211437b66a6bc72d484b28aba2944
Author: Josep Bigorra <jjbigorra@gmail.com>
Date: Sat Oct 24 16:33:49 2026 +0200
chore: Release v0.4.6
Modernize maak.scm to the Maak v0.12.2 DSL: run and typed helpers instead of
$ shell strings, plus git, archive, container, nix, net and Guix wrappers,
capture, task-error, ~, and #:env/#:sudo?/#:expand? decorators. Bump the
version by 0.0.1.
M default.nix
M maak.scm
M packaging/opensuse/bewaking.spec
→ running command: cd /etc/byggsteg/job-clone/bewaking/trunk && maak test
scanning directories for unit tests...
scanning present working directory for unit tests...
shuffled the files with seed 55271819 (replay with VERITAS_SEED=55271819)
found unit tests: (password-spec.scm bewaking-spec.scm web-spec.scm crypto-spec.scm cli-spec.scm)
running unit tests from file: password-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 55271819 (replay with VERITAS_SEED=55271819)
+----------------------------------------------+
[📑 suite] Password character classes
[🧪 test] password-character-classes
[⚙️ assert] uppercase letters only
✅ got: (uppercase)
[⚙️ assert] digits only
✅ got: (digit)
[⚙️ assert] lowercase letters only
✅ got: (lowercase)
[⚙️ assert] all four classes are detected
✅ got: (lowercase uppercase digit symbol)
[⚙️ assert] an empty password has no classes
✅ got: ()
+----------------------------------------------+
[📑 suite] Password generation
[🧪 test] generate-strong-password
[⚙️ assert] length is respected
✅ got: 32
[⚙️ assert] symbols can be excluded
✅ got: (lowercase uppercase digit)
[⚙️ assert] too-short a request raises an error
✅ success catching error: misc-error: (#f ~A (generate-strong-password: length must be at least 4 to cover every character class.) #f)
[⚙️ assert] default generated passwords use every class
✅ got: (lowercase uppercase digit symbol)
+----------------------------------------------+
[📑 suite] Password strength
[🧪 test] strong-password?
[⚙️ assert] min-score lowers the bar
✅ got: #t
[⚙️ assert] a long passphrase is strong
✅ got: #t
[⚙️ assert] a common word is not strong
✅ got: #f
[⚙️ assert] a short mixed password is not strong
✅ got: #f
[🧪 test] password-strength
[⚙️ assert] sequential runs are flagged in the feedback
✅ got: #t
[⚙️ assert] common passwords get a specific warning
✅ got: #t
+----------------------------------------------+
[📑 suite] Password entropy
[🧪 test] password-entropy
[⚙️ assert] adding a character class increases the entropy
✅ got: #t
[⚙️ assert] eight lowercase letters are ~37.6 bits
✅ got: #t
[⚙️ assert] an empty password has zero entropy
✅ got: 0
ℹ️ info - ran 4 tasks in: 0 seconds, 37074 microseconds
running unit tests from file: bewaking-spec.scm, entrypoint: spec
owner-details: ((id . "444959d3-7a8e-455e-b608-31e35145a2fa") (email . "someone@jointhefreeworld.org") (name . "Legolas son of Thandruil") (permissions byggsteg:modify-permissions byggsteg:job-create byggsteg:job-delete byggsteg:profile-create byggsteg:profile-delete byggsteg:user-create byggsteg:user-delete))
generate-token: BWK3.default.1792852865.-.01c8e08cdf922b8a6166c725e93abe86eb7f6f33d3a9968257b0e14750c0b59273d15aa0bba3fcec86a628e66d85e6c3325a8a53f8af86bb9b51aad70e11392a3a54b990d8ffb09c0593ff11b687390966b2d7fbd0d5b9323c145aa534faa3c90c07e7e42e07d4169cfe08d5d1a33b5f0f6fb9629424e99d37043a4b023c0c8d54f2ef221c39e14881073af7a06462bbf67af191f1d3283321e78bc43a13445b6ebe2dae772ecd505ae2b82437b4edda9461323115cebfe0e6cb1c5be575285d0d146ba1f8abfbfce746e0fba25fd3c21a6be90ff0726e3e7a80d9b7525aa95c2bc07bc3ccad83e79859b8b8fb89b1b0b414711f497ebdd29fae09ac3a903574dd080f2a9308e10eb6937e7bfcee2eb27c363fae4f41d6af7c7dec8a4258076bdf89c45f9c07bc56b9ddb396c79c4525506de18e28cdb52c26d5f4f6ef8e8d9694fcd66bc948e1846379ae284759f9e6f81900ff7b6ba6dd89545fc8d3388946c2298d77228ba5e5c5ec70fe626a403526e3c6af3902a65b2e0b6b7ca70fc3313176ced76f7243e420acd9565f763c011d84d25cf9c685292ad89bd215a4f185b47110fec30ae2599edf2d39d309a7dc32a70a156f784c7bed82e92bb2f3f04fdc9a8508fac0539c8676b20d92bda560f16f62324bab4581eb15508e026867bdc4ae57228ac61954f80797df02ac108d0884c67f60d6be3a58bc69e9b6c0dfb0b4323c87fec88e2317af342e7f1fb249e28b3e921b5cd0a7c5867ee50d59d3f984f7418552bab700dfed0ba504099f5779d72d2fa3f24d805b57f226cb09f5b57124392d7cc76904f096195650e5362aae2be3132b697edd5ca7370c417ab071544446e8d6dc24e4bed2eded250f990e7004f660fb5600636b5a92c8f8d6f8ddeea4e4cefceff53559979aa948d8fdf2bf081503558c605d41ca8b279d9a78fba14533b4a4bdfa7ca71622384f6538726abdf12220bdb51fda012169dbee5324ac41dc8dbabe81efa4fa1c961ae7c21534c1dffdee60956079b88a474bebb32e8340a00cb2f3a11834677e1aa4a9deb01258257b81c6057b86bace945781351c12fb815ce164a666d877fb89c4fba737c2ee99fb7b3331b892e2355bf7041102edd5292f7f79ad4dbbbb65a9d3f684e55d1a513f409cd55073b1a239c285d7ba0ab21506ee9554c1c2a6870311f428acd6debc11bd6df22c4dd8c38d66cbc753325167c6a8a9ed08b979a5dfd1002793d85b2347433ef2d256b2af25234cafe868e767c1fe447727b39663d3c30108aa46a1ec93552c2d6bda
error decrypting token: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting token: misc-error: (#f ~A (open-envelope: not a bewaking envelope (expected BWK3).) #f)
owner-details: ((id . "444959d3-7a8e-455e-b608-31e35145a2fa") (email . "someone@jointhefreeworld.org") (name . "Legolas son of Thandruil") (permissions byggsteg:modify-permissions byggsteg:job-create byggsteg:job-delete byggsteg:profile-create byggsteg:profile-delete byggsteg:user-create byggsteg:user-delete))
generate-token: BWK3.default.1792852865.-.01073de90691edefee03c5ab627e96ed0842ad93b1095b843311b2837ee5db3a83cd9310135f4f5e3df8a40a7366878a3816064057b3a089b9bc745b037f16de346d171b33d560374faa0bbe7240b5b4666d1c4d3888af6572f0c80c17d9a5f190a7839a6cfd15fb0faf34aed1e78ebf5d45e6909e47c20b8c0944db1ac91ad93787a2e0781e1f249fc622aed896a487111d345d213d056a2a9940096395d39d4ced702ef71df6f7a60668a32ea7ebbcaf62258b1677fbfb417a6f6caa88abe287dadf79092ab2e9f004bff0cfce383a73ebc78ab388c18edbef0ce97e0aeed78dd5a3a7ca229a144b8cf726f3782bf01d03000805fd52ba12f38be1505ae2febc0aab742031d226b901981764b9699cab1065e4e7597ee5cdd120064aba0c0c3feb98a4380ccf300680960b50e47cdb6d4a73267f82a3c853224b1a4cd9822532d9e26f8b5041a5d5604d390e06e289cf61539f479f7009af91ca137a131aebf73259747b53c1f1b1ac7219213247404f5dc0bc1ce389d28b401d49c1a5e7e6f0529527068c46f057c87872718a9a05d2e9881bd25d1baafe2030c628c373248c072e8a8a2d857f7f9f977cf44198c16aa98cd5b256f13a957c8400165efe6c4b023cb5f6060989299eaa5354302e637754f2de80addb28f512032df99e6ec2e5f20721ed39ea70832a2f56b4449c77ce5bb1429e641335ef875d16b62c369bd5b2ecab6363abc316c19ea8bd2c00ba23756abc757c7a4455dea638f97dbd75d0441d88d2926a7d865856607418e42338fbed4746a7a4a03e4786dd8f935a23c5024729dd8193636f74e2f92a2fbea7968028ced4534e2f47eeb327553a2561794d69ff8a1952dc8d7e741b7e7033ba57a6dc70e9cb4a4f8d1143a9256da366551f3dc0c1396ddc1d39230fd74e30c5815afde17d4bbe7207426a18aac97ff49d4388bbe4c74c38a4c79d7df66126800b99bc00b58c9aba36cb059f36b0b1cada856756cc19d716bd0e0301c185fd8e232de47a764625399981607672b117e7794da56914684c83372e078dd87a6977ea3a306ea32bdf8e45df2a11dd4a1aa01da4c6608beba09b7a80bca211039ecafbba2d414800e8691f76dbc91cb1e7887d57469d12fa8236c455f3f6d2bf35620010f15d618ad933376e2dd84ecdcbd9bd0fcfcbb95986db68a2906b70127ac7493f19588702336febb2b0d8afe80ab7f89f8062e7fdcfe5282cfe4672fcfd7a4b1de3fca22c06ecce6b1f2e2c9d0d2d49c127473a1fac35c5be4bb8a16474fa3b9afaa73fd418ef55
decoded: ((token-type . bewaking-token) (token-id . bd4e3e79-1719-4f2c-848c-372ab4a49ad5) (token-created-at . 1792852865) (token-expires-at . 1793457665) (owner-id . 444959d3-7a8e-455e-b608-31e35145a2fa) (owner-email . someone@jointhefreeworld.org) (owner-name . Legolas son of Thandruil) (owner-permissions byggsteg:modify-permissions byggsteg:job-create byggsteg:job-delete byggsteg:profile-create byggsteg:profile-delete byggsteg:user-create byggsteg:user-delete))
error decrypting object: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting token: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting object: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting token: misc-error: (#f ~A (open-envelope: not a bewaking envelope (expected BWK3).) #f)error decrypting object: misc-error: (#f ~A (open-envelope: not a bewaking envelope (expected BWK3).) #f)error decrypting token: misc-error: (#f ~A (open-envelope: not a bewaking envelope (expected BWK3).) #f)error decrypting object: misc-error: (#f ~A (open-envelope: not a bewaking envelope (expected BWK3).) #f)error decrypting object: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting object: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting token: misc-error: (#f ~A (open-envelope: the sealed data expired at 1000 (key 'default').) #f)error decrypting object: misc-error: (#f ~A (open-envelope: the sealed data expired at 1000 (key 'default').) #f)
ℹ️ info - shuffled with seed 55271819 (replay with VERITAS_SEED=55271819)
+----------------------------------------------+
[📑 suite] Decryption
[🧪 test] decrypt-token
[⚙️ assert] works properly with valid token
✅ got: #t
[⚙️ assert] fails gracefully when signing key is not valid
✅ got: #f
[⚙️ assert] fails gracefully when token is not valid
✅ got: #f
+----------------------------------------------+
[📑 suite] Generic object encryption
[🧪 test] encrypt-object and decrypt-object
[⚙️ assert] round-trips a plain string payload
✅ got: just a string
[⚙️ assert] round-trips a list payload
✅ got: (1 2 3)
[⚙️ assert] fails gracefully with a wrong signing key
✅ got: #f
[⚙️ assert] round-trips a number payload
✅ got: 1234
[🧪 test] decrypted data is data, never code
[⚙️ assert] Guile refuses the #. read-eval syntax
✅ got: #t
[⚙️ assert] a sealed payload that looks like code stays a string
✅ got: #.(+ 1 2)
+----------------------------------------------+
[📑 suite] Garbling and Ungarbling
[🧪 test] garble-ungarble
✅ got: w
✅ got: ow
✅ got: dlrow
✅ got: 391aec86pbz9yg6k325b8xzkcs0ohq0bty3hmnm7qafhch2z8nu9aoklt2ixso7v46h9ohtnbv2bl838ip2qdpecnv71bts9lvc85r2r0is0vtzjpdo6u4fsf567t2en
✅ got: row
✅ got: lrow
✅ got: hello world
✅ got: dlrow olleh
+----------------------------------------------+
[📑 suite] Permissions
[🧪 test] has-needed-permissions?
✅ got: #f
✅ got: #t
✅ got: #f
✅ got: #t
✅ got: #f
✅ got: #t
✅ got: #t
✅ got: #f
+----------------------------------------------+
[📑 suite] Token validity helpers
[🧪 test] token-remaining-seconds and token-valid?
[⚙️ assert] a missing expiry raises an error
✅ success catching error: misc-error: (#f token-remaining-seconds: Token is invalid. Missing or malformed 'token-expires-at' () #f)
[⚙️ assert] a freshly generated token is not expired
✅ got: #f
[⚙️ assert] remaining seconds is negative for an expired token
✅ got: #t
[⚙️ assert] remaining seconds is positive for a live token
✅ got: #t
+----------------------------------------------+
[📑 suite] Token expiry
[🧪 test] is-token-expired?
[⚙️ assert] a far-future token is not expired
✅ got: #f
[⚙️ assert] a token whose expiry is in the past is expired
✅ got: #t
[⚙️ assert] a missing token-expires-at raises an error
✅ success catching error: misc-error: (#f is-token-expired?: Token is invalid. Missing or malformed 'token-expires-at' () #f)
[⚙️ assert] a malformed token-expires-at raises an error
✅ success catching error: misc-error: (#f is-token-expired?: Token is invalid. Missing or malformed 'token-expires-at' () #f)
[⚙️ assert] a token whose expiry is in the future is not expired
✅ got: #f
+----------------------------------------------+
[📑 suite] generate-token
[🧪 test] works properly with correct details
✅ got: #t
+----------------------------------------------+
[📑 suite] Sealed envelope (versioned, authenticated)
[🧪 test] editing a genuine envelope never yields a plaintext
[⚙️ assert] every single-digit mutation of a real envelope is refused
✅ got: #t
[⚙️ assert] and every mutation of a real sealed object too
✅ got: #t
[🧪 test] tokens and objects are envelopes and reject tampering
[⚙️ assert] sealed objects are enveloped
✅ got: #t
[⚙️ assert] a tampered object is rejected
✅ got: #t
[⚙️ assert] generated tokens are enveloped
✅ got: #t
[⚙️ assert] a tampered token is rejected
✅ got: #t
[🧪 test] knowing the format is not knowing the plaintext
[⚙️ assert] the format is not hidden, only the content is
✅ got: #t
[⚙️ assert] the public metadata is exactly what is authenticated
✅ got: (version key-id created-at expires-at)
[⚙️ assert] the plaintext, its Base16 and its Base64 do not appear in the envelope
✅ got: #t
[🧪 test] no reader is left for the earlier formats
[⚙️ assert] a BWK2 token is refused even with the keys that sealed it
✅ got: #f
[⚙️ assert] a BWK1 object is refused likewise
✅ got: #f
[⚙️ assert] a BWK2 envelope with no expiry is not recognised
✅ got: #f
[⚙️ assert] a BWK2 envelope is not recognised
✅ got: #f
[⚙️ assert] an unreadable envelope is never reported as live
✅ got: #f
[⚙️ assert] no metadata is read out of a BWK2 envelope
✅ got: #f
[⚙️ assert] no metadata is read out of a BWK1 envelope
✅ got: #f
[⚙️ assert] a BWK1 envelope is not recognised
✅ got: #f
[🧪 test] the same plaintext never seals to the same value
[⚙️ assert] a fresh salt and nonce make each envelope unique
✅ got: #t
[⚙️ assert] equal objects seal to different strings
✅ got: #f
[🧪 test] seal-envelope and open-envelope
[⚙️ assert] the envelope starts with the version tag
✅ got: #t
[⚙️ assert] a tampered envelope fails the integrity check
✅ got: #t
[⚙️ assert] BWK3 is the only version produced and read
✅ got: (BWK3)
[⚙️ assert] a wrong signing key fails the cipher check
✅ got: #t
[⚙️ assert] the result is a versioned envelope
✅ got: #t
[⚙️ assert] passing a MAC key to open-envelope is refused, not ignored
✅ got: #t
[⚙️ assert] the module exposes the current format version
✅ got: BWK3
[⚙️ assert] the plaintext round-trips
✅ got: top secret payload
[🧪 test] key rotation with a keyring
[⚙️ assert] a keyring seals and opens by key id
✅ got: #t
[🧪 test] the requested key id is embedded in generated tokens
[⚙️ assert] the token carries the key id
✅ got: #t
[🧪 test] a refusal never says which key id the keyring configures
[⚙️ assert] an expired genuine envelope is still told apart, since it authenticated first
✅ got: #f
[⚙️ assert] a retired key fails identically
✅ got: (misc-error #f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)
[⚙️ assert] a key that is not active yet fails identically
✅ got: (misc-error #f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)
[⚙️ assert] the refusal does not name the key id it could not resolve
✅ got: #f
[⚙️ assert] a keyring with no matching entry fails identically
✅ got: (misc-error #f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)
[⚙️ assert] the refusal is a refusal, not an accidental success
✅ got: #t
[⚙️ assert] and it does not name a configured key id either
✅ got: #f
[⚙️ assert] nor does it carry any key material
✅ got: #f
[⚙️ assert] an unknown key id and a tampered body fail identically
✅ got: (misc-error #f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)
[🧪 test] data that is not a BWK3 envelope is refused
[⚙️ assert] arbitrary text is not an envelope
✅ got: #f
[⚙️ assert] a bare Base16 object is refused
✅ got: #f
[⚙️ assert] a BWK3 envelope carrying an extra MAC field is refused
✅ got: #t
[⚙️ assert] a truncated envelope is refused when it is opened
✅ got: #t
[⚙️ assert] a pre-versioning bare Base16 token is refused
✅ got: #f
[⚙️ assert] recognition is a version-tag check, not a structure check
✅ got: #t
[⚙️ assert] an unknown envelope version is not recognised
✅ got: #f
[⚙️ assert] an unsupported version raises rather than being guessed at
✅ got: #t
+----------------------------------------------+
[📑 suite] Lossless Token Decryption
[🧪 test] lossless-token
[⚙️ assert] works properly with correct details
✅ got: #t
+----------------------------------------------+
[📑 suite] Envelope metadata (key id, created-at, expiry)
[🧪 test] keyring validity windows enforce rotation
[⚙️ assert] a key inside its window seals and opens
✅ got: #t
[⚙️ assert] a key past not-after cannot open data
✅ got: #t
[⚙️ assert] no keyring is needed to read metadata
✅ got: #t
[⚙️ assert] a key before not-before cannot seal data
✅ got: #t
[🧪 test] ttl-seconds records an absolute expiry
[⚙️ assert] expires-at is created-at plus the ttl
✅ got: 4600
[⚙️ assert] the envelope is expired after its expiry
✅ got: #t
[⚙️ assert] created-at is the requested timestamp
✅ got: 1000
[⚙️ assert] the envelope is live before its expiry
✅ got: #f
[🧪 test] expiry is enforced when opening
[⚙️ assert] max-age-seconds enforces a rotation policy
✅ got: #t
[⚙️ assert] an expired envelope is refused
✅ got: #t
[⚙️ assert] enforce-expiry? #f still opens it
✅ got: ttl payload
[🧪 test] a malformed envelope is rejected
[⚙️ assert] a body that is not hexadecimal is refused
✅ got: #t
[⚙️ assert] sealing without a signing key is refused
✅ got: #t
[⚙️ assert] sealing a non-string plaintext is refused
✅ got: #t
[⚙️ assert] a truncated body is refused
✅ got: #t
[⚙️ assert] a non-numeric created-at is refused
✅ got: #t
[⚙️ assert] a missing body is refused
✅ got: #t
[⚙️ assert] an empty key id is refused
✅ got: #t
[🧪 test] invalid sealing options are rejected
[⚙️ assert] a non-integer ttl-seconds is rejected
✅ got: #t
[⚙️ assert] a key id containing a dot is rejected
✅ got: #t
[⚙️ assert] expires-at and ttl-seconds are mutually exclusive
✅ got: #t
[🧪 test] the metadata is authenticated
[⚙️ assert] removing the expiry marker breaks the tag
✅ got: #t
[⚙️ assert] editing the body breaks the tag
✅ got: #t
[⚙️ assert] editing the key id breaks the tag
✅ got: #t
[⚙️ assert] editing created-at in a BWK3 envelope breaks its tag
✅ got: #t
[⚙️ assert] backdating created-at breaks the tag
✅ got: #t
[⚙️ assert] relabelling the version is refused
✅ got: #t
[⚙️ assert] extending the expiry in the envelope breaks the tag
✅ got: #t
[🧪 test] metadata is reported without any key
[⚙️ assert] the format version is reported
✅ got: BWK3
[⚙️ assert] created-at is a Unix timestamp
✅ got: #t
[⚙️ assert] metadata is only read from envelopes
✅ got: #f
[⚙️ assert] there is no expiry unless one was requested
✅ got: #f
[⚙️ assert] a malformed BWK3 envelope reports no metadata
✅ got: #f
[⚙️ assert] an envelope of a dropped format reports no metadata
✅ got: #f
[⚙️ assert] the key id is reported
✅ got: default
[🧪 test] expired tokens and objects are refused
[⚙️ assert] a token sealed with a past expiry is refused
✅ got: #t
[⚙️ assert] an object sealed with a past expiry is refused
✅ got: #t
[⚙️ assert] expiry auditing ignores non-envelopes
✅ got: #f
ℹ️ info - ran 10 tasks in: 0 seconds, 87073 microseconds
running unit tests from file: web-spec.scm, entrypoint: spec
error decrypting token: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting token: misc-error: (#f ~A (bewaking: malformed BWK3 envelope (created-at)) #f)error decrypting token: misc-error: (#f ~A (open-envelope: not a bewaking envelope (expected BWK3).) #f)error decrypting token: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting object: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting token: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)error decrypting token: misc-error: (#f ~A (bewaking: the sealed data could not be opened: unknown, retired or wrong key, or the data was altered.) #f)
ℹ️ info - shuffled with seed 55271819 (replay with VERITAS_SEED=55271819)
+----------------------------------------------+
[📑 suite] Web chapter: keys, rotation and revocation
[🧪 test] keys stay secret and distinct, which is the whole requirement
[⚙️ assert] swapping the two keys does not open the session
✅ got: #f
[⚙️ assert] nor does the signing key
✅ got: #f
[⚙️ assert] the encryption key does not appear in the token
✅ got: #f
[🧪 test] retiring a key logs every session sealed with it out at once
[⚙️ assert] the current key keeps working
✅ got: #t
[⚙️ assert] the retired key id stops opening sessions
✅ got: #f
[🧪 test] rotation needs no downtime and no forced logout
[⚙️ assert] an old token still opens: nothing to migrate
✅ got: #t
[⚙️ assert] and so does a new one
✅ got: #t
[⚙️ assert] new logins are sealed with the current key
✅ got: #t
[⚙️ assert] the key id is embedded in the envelope
✅ got: #t
+----------------------------------------------+
[📑 suite] Web chapter: sign-in seals a session into a cookie
[🧪 test] a verified user gets a sealed session cookie
[⚙️ assert] (a) HttpOnly puts the cookie out of reach of JavaScript
✅ got: #t
[⚙️ assert] sign-in redirects, as the README's controller does
✅ got: 302
[⚙️ assert] the cookie value is a BWK3 envelope
✅ got: #t
[⚙️ assert] the redirect target is the dashboard
✅ got: /dashboard
[⚙️ assert] the cookie is named as documented
✅ got: x-bewaking-session
[⚙️ assert] (c) path "/" applies the cookie to the whole site
✅ got: /
[⚙️ assert] (b) Secure keeps it off plain HTTP
✅ got: #t
[⚙️ assert] (d) the cookie's lifetime matches #:token-validity-seconds
✅ got: 604800
[🧪 test] the cookie lifetime can be aligned with the token's
[⚙️ assert] the payload lifetime is separate from the cookie's
✅ got: #f
[⚙️ assert] the envelope is sealed now
✅ got: #t
[⚙️ assert] the requested lifetime is recorded in the cookie
✅ got: 86400
[🧪 test] bad credentials get no cookie at all
[⚙️ assert] the failure is reported, not swallowed
✅ got: invalid credentials
[⚙️ assert] a wrong password is a plain 401
✅ got: 401
[⚙️ assert] no session is created for a failed sign-in
✅ got: #f
+----------------------------------------------+
[📑 suite] Web chapter: auditing what is safe to log
[🧪 test] an expiry is reported as a time, and its absence as nothing
[⚙️ assert] and the audit helper agrees it is live
✅ got: #f
[⚙️ assert] the audit reports no envelope expiry by default
✅ got: #f
[⚙️ assert] a token sealed with a TTL records its expiry
✅ got: #t
[🧪 test] the envelope header is readable with no keys at all
[⚙️ assert] the audit output carries no key material
✅ got: #f
[⚙️ assert] a fresh session is not expired
✅ got: #f
[⚙️ assert] the key id is reported, which is what rotation is keyed on
✅ got: default
[⚙️ assert] the version is reported for the log
✅ got: BWK3
[⚙️ assert] not the encryption key and not the signing key either
✅ got: #f
[⚙️ assert] the creation time is reported
✅ got: #t
[🧪 test] auditing garbage is #f, not an exception
[⚙️ assert] a malformed BWK3 value yields no metadata
✅ got: #f
[⚙️ assert] an unparseable cookie yields no metadata
✅ got: #f
[⚙️ assert] a missing cookie yields no metadata
✅ got: #f
+----------------------------------------------+
[📑 suite] Web chapter: sealed objects as stateless state
[🧪 test] a cursor or half-finished form can be sealed the same way
[⚙️ assert] a client cannot page anywhere it was not sent
✅ got: #t
[⚙️ assert] a sealed cursor round-trips
✅ got: page-3
[🧪 test] a password-reset link round-trips with no table row
[⚙️ assert] the link is a sealed envelope
✅ got: #t
[⚙️ assert] the hour-long lifetime is recorded in the header
✅ got: #t
[⚙️ assert] the user id is not readable in the link
✅ got: #f
[⚙️ assert] the state comes back as an ordinary alist
✅ got: ((user . u-1) (action . reset-password))
[🧪 test] an expired link is refused by the server, not by the client
[⚙️ assert] and the header says so, for the log
✅ got: #t
[⚙️ assert] before the expiry the link opens
✅ got: ((user . u-1) (action . reset-password))
[⚙️ assert] after the expiry the server refuses it
✅ got: #f
[🧪 test] an edited link is worth nothing
[⚙️ assert] and garbage is not a link either
✅ got: #f
[⚙️ assert] the link was edited in the mail client
✅ got: #f
[🧪 test] the link answers only to the key that sealed it
[⚙️ assert] a link sealed elsewhere does not open here
✅ got: #f
+----------------------------------------------+
[📑 suite] Web chapter: protecting a route
[🧪 test] the payload is the identity, not the request
[⚙️ assert] a client-supplied user id is a hint, never the identity
✅ got: #f
[⚙️ assert] the owner id comes from the sealed payload
✅ got: u-1
[🧪 test] a permission that was never granted is refused on the server
[⚙️ assert] a route needing nothing is open to a valid session
✅ got: #t
[⚙️ assert] the permission the user does have is enough
✅ got: #t
[⚙️ assert] the API route answers 401 rather than 403-by-omission
✅ got: 401
[⚙️ assert] the browser route refuses a route the user may not use
✅ got: 302
[⚙️ assert] the helper returns #f, not a partially authorized payload
✅ got: #f
[🧪 test] the signed-in user is admitted
[⚙️ assert] the browser route runs the handler
✅ got: 200
[⚙️ assert] and its own payload expiry
✅ got: #t
[⚙️ assert] permissions travel inside the token
✅ got: (read-only access-files)
[⚙️ assert] and 'name' came back as 'owner-name'
✅ got: Joe
[⚙️ assert] the payload carries its own token id
✅ got: #t
[⚙️ assert] the handler sees the owner id from the payload
✅ got: u-1
[⚙️ assert] the thunk's 'email' came back as 'owner-email'
✅ got: joe@example.com
[🧪 test] the same session works as an API bearer token
[⚙️ assert] the token identifies the caller without a database round-trip
✅ got: u-1
[⚙️ assert] the granted permissions are what the token says
✅ got: (read-only access-files)
[⚙️ assert] the API route admits the header token
✅ got: 200
[🧪 test] every failure mode is a refusal, never an admission
[⚙️ assert] a request with no cookie is redirected to /login
✅ got: 302
[⚙️ assert] a cookie that is not a real envelope is refused
✅ got: 302
[⚙️ assert] an empty cookie is refused
✅ got: 302
[⚙️ assert] a second user's genuine session is admitted, as that user
✅ got: 200
[⚙️ assert] a keyring that cannot resolve the key id is refused
✅ got: 302
[⚙️ assert] a tampered cookie is refused
✅ got: 302
[⚙️ assert] and it admits the *second* user, not the first
✅ got: u-2
[⚙️ assert] arbitrary text is refused
✅ got: 302
[🧪 test] an expired session is refused, and sign-out clears the cookie
[⚙️ assert] and the helper returns #f for it
✅ got: #f
[⚙️ assert] the deletion cookie expires immediately
✅ got: 0
[⚙️ assert] sign-out redirects to the login page
✅ got: 302
[⚙️ assert] a token whose payload lifetime has passed is refused
✅ got: 302
[⚙️ assert] sign-out deletes the cookie, the only cleanup there is
✅ got:
ℹ️ info - ran 5 tasks in: 0 seconds, 58713 microseconds
running unit tests from file: crypto-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 55271819 (replay with VERITAS_SEED=55271819)
+----------------------------------------------+
[📑 suite] Base64 encoding
[🧪 test] malformed input is rejected
[⚙️ assert] a truncated group raises
✅ success catching error: misc-error: (#f bewaking: malformed base64 input (bad length or padding). () #f)
[⚙️ assert] non-alphabet characters raise
✅ success catching error: misc-error: (#f bewaking: malformed base64 input. () #f)
[⚙️ assert] data after padding raises
✅ success catching error: misc-error: (#f bewaking: malformed base64 input (data after padding). () #f)
[⚙️ assert] an impossible amount of padding raises
✅ success catching error: misc-error: (#f bewaking: malformed base64 input (bad length or padding). () #f)
[🧪 test] RFC 4648 test vectors
[⚙️ assert] empty
✅ got:
[⚙️ assert] one byte of input
✅ got: Zg==
[⚙️ assert] six bytes of input
✅ got: Zm9vYmFy
[⚙️ assert] five bytes of input
✅ got: Zm9vYmE=
[⚙️ assert] two bytes of input
✅ got: Zm8=
[⚙️ assert] four bytes of input
✅ got: Zm9vYg==
[⚙️ assert] three bytes of input
✅ got: Zm9v
[🧪 test] decoding is tolerant of line breaks
[⚙️ assert] encoding then decoding is lossless
✅ got: hello world
[⚙️ assert] a trailing newline is ignored
✅ got: hello
+----------------------------------------------+
[📑 suite] Argon2id key derivation (RFC 9106)
[🧪 test] the RFC 9106 Argon2id vector is reproduced
[⚙️ assert] password 32x01, salt 16x02, secret 8x03, data 12x04, m=32, t=3, p=4
✅ got: 0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659
[🧪 test] invalid parameters are rejected
[⚙️ assert] a non-bytevector secret is refused
✅ got: #t
[⚙️ assert] this libgcrypt provides Argon2
✅ got: #t
[⚙️ assert] a non-integer memory cost is refused
✅ got: #t
[⚙️ assert] zero lanes is refused
✅ got: #t
[⚙️ assert] zero passes is refused
✅ got: #t
[⚙️ assert] less than 8 KiB per lane is refused
✅ got: #t
[🧪 test] every parameter changes the derived bytes
[⚙️ assert] a different salt gives a different tag
✅ got: #f
[⚙️ assert] a different pass count gives a different tag
✅ got: #f
[⚙️ assert] a different passphrase gives a different tag
✅ got: #f
+----------------------------------------------+
[📑 suite] Authenticated payloads (AES-256-GCM)
[🧪 test] hexadecimal that stands for bytes decodes to bytes
[⚙️ assert] and keeps the raw octets, which base16-decode cannot
✅ got: 255
[⚙️ assert] base16->bytes returns a bytevector
✅ got: #t
[🧪 test] the payload records which derivation to use
[⚙️ assert] PBKDF2 is identified by its own id
✅ got: 1
[⚙️ assert] the memory cost is recorded, in KiB
✅ got: 8192
[⚙️ assert] the lane count is recorded
✅ got: 1
[⚙️ assert] the pass count is recorded
✅ got: 1
[⚙️ assert] Argon2id is identified by a different id
✅ got: 2
[🧪 test] fresh salt and nonce still round-trip
[⚙️ assert] a payload sealed with random salt and nonce opens
✅ got: #t
[⚙️ assert] and so does an Argon2id one
✅ got: #t
[⚙️ assert] a payload sealed without it does not open with it
✅ got: #t
[⚙️ assert] associated data is optional: empty means none
✅ got: #t
[🧪 test] the tag refuses every alteration
[⚙️ assert] the wrong key is refused
✅ got: #t
[⚙️ assert] a flipped tag digit is refused
✅ got: #t
[⚙️ assert] a flipped ciphertext digit is refused
✅ got: #t
[⚙️ assert] an unknown key-derivation id is refused, not guessed at
✅ got: #t
[⚙️ assert] different associated data is refused
✅ got: #t
[⚙️ assert] a truncated payload is refused
✅ got: #t
[🧪 test] the payload is byte for byte the reference implementation's
[⚙️ assert] Argon2id with its parameters recorded, likewise
✅ got: 020000200000000001000000010707070707070707070707070707070709090909090909090909090996b424d50c29974261cc56650752a5237f7528271202d70046f0bc49c8c0bfefb86150c0b946a554a1590bec6d5f03409bbff197af7d782651
[⚙️ assert] PBKDF2-HMAC-SHA256, as Python's cryptography seals it
✅ got: 010707070707070707070707070707070709090909090909090909090915d0ed647041883a00a39c1a98153992e43396ca2ef78f30cf603552820a8ed81e320d38a87aee14ad4a7f41b2df7b369d6614500294e59e58
+----------------------------------------------+
[📑 suite] Authenticated payload hygiene
[🧪 test] the associated data is authenticated but not stored
[⚙️ assert] the associated data does not appear in the payload
✅ got: #f
[⚙️ assert] one extra associated-data byte breaks the tag
✅ got: #t
[🧪 test] an empty plaintext is still authenticated
[⚙️ assert] even an empty payload carries a salt, a nonce and a tag
✅ got: #t
[⚙️ assert] the empty plaintext round-trips
✅ got: #t
[🧪 test] the salt and the nonce are used, not decorative
[⚙️ assert] editing a salt digit breaks the tag
✅ got: #t
[⚙️ assert] editing an Argon2id parameter digit is refused
✅ got: #t
[⚙️ assert] editing a nonce digit breaks the tag
✅ got: #t
[🧪 test] every payload uses a fresh salt and nonce
[⚙️ assert] the recorded nonces differ as well
✅ got: #f
[🧪 test] the recorded derivation cost is bounded before it is spent
[⚙️ assert] a lane count above the cap is refused
✅ got: #t
[⚙️ assert] a zero pass count is refused
✅ got: #t
[⚙️ assert] a cost inside the bounds is derived, then fails the tag: the bound is not a blanket refusal
✅ got: #t
[⚙️ assert] less than 8 KiB per lane is refused
✅ got: #t
[⚙️ assert] a memory cost above the cap is refused, not allocated
✅ got: #t
+----------------------------------------------+
[📑 suite] PBKDF2-HMAC-SHA256
[🧪 test] published password/salt vectors
[⚙️ assert] two iterations
✅ got: ae4d0c95af6b46d32d0adff928f06dd02a303f8ef3c251dfd6e2d85a95474c43
[⚙️ assert] 4096 iterations
✅ got: c5e478d59288c841aa530db6845c4c8d962893a001ce4e11a4963873aa98134a
[⚙️ assert] one iteration
✅ got: 120fb6cffcf8b32c43e7225256c4f837a86548c92ccc35480805987cb70be17b
[🧪 test] the key and IV material OpenSSL derives
[⚙️ assert] 48 bytes over 10000 iterations, as `openssl kdf' reports
✅ got: cb14e1e1f7ac2fe57f2fcaa462d4ad903867450d9778d2ccf939d8ad3cb99982e0edbd06820c0a636f6fd53d4be339fd
+----------------------------------------------+
[📑 suite] Sealed payloads (key derivation is recorded)
[🧪 test] tampering with the recorded parameters is not honoured
[⚙️ assert] a changed pass count no longer decrypts
✅ got: #t
[🧪 test] both readers keep their contracts
[⚙️ assert] kdf-decrypt opens payloads produced by OpenSSL
✅ got: #t
[⚙️ assert] openssl-decrypt refuses what the OpenSSL CLI could not read
✅ got: #t
[🧪 test] an Argon2id payload records its derivation and parameters
[⚙️ assert] the lane count is recorded
✅ got: 1
[⚙️ assert] the pass count is recorded
✅ got: 1
[⚙️ assert] the header names the derivation
✅ got: Argon2id
[⚙️ assert] the memory cost is recorded, in KiB
✅ got: 8192
[🧪 test] the default KDF keeps the OpenSSL layout byte for byte
[⚙️ assert] a fixed-salt PBKDF2 payload equals OpenSSL's own output
✅ got: #t
[🧪 test] sizes and headers are validated
[⚙️ assert] a payload with no known header is refused
✅ got: #t
[⚙️ assert] an 8-byte Argon2id salt is refused
✅ got: #t
[⚙️ assert] a 16-byte PBKDF2 salt is refused
✅ got: #t
[🧪 test] an Argon2id payload round-trips and resists the wrong key
[⚙️ assert] the same key opens it
✅ got: #t
[⚙️ assert] another key does not
✅ got: #t
+----------------------------------------------+
[📑 suite] Base16 encoding
[🧪 test] malformed input is rejected
[⚙️ assert] an odd number of digits raises
✅ success catching error: misc-error: (#f bewaking: malformed hexadecimal input (odd number of digits). () #f)
[⚙️ assert] embedded whitespace raises
✅ success catching error: misc-error: (#f bewaking: malformed hexadecimal input (odd number of digits). () #f)
[⚙️ assert] non-hexadecimal characters raise
✅ success catching error: misc-error: (#f bewaking: malformed hexadecimal input. () #f)
[🧪 test] decoding accepts both cases
[⚙️ assert] encoding then decoding is lossless
✅ got: hello
[⚙️ assert] lowercase hex decodes
✅ got: hello
[⚙️ assert] uppercase hex decodes too
✅ got: hello
[🧪 test] known encodings
[⚙️ assert] a word encodes byte per byte
✅ got: 626577616b696e67
[⚙️ assert] the empty string encodes to nothing
✅ got:
[⚙️ assert] lowercase hex digits are produced
✅ got: 68656c6c6f
+----------------------------------------------+
[📑 suite] Key-derivation specifications
[🧪 test] the default is PBKDF2 with its fixed cost
[⚙️ assert] its iteration count is the OpenSSL one
✅ got: 10000
[⚙️ assert] the module default names PBKDF2
✅ got: pbkdf2
[🧪 test] Argon2id defaults are filled in and reported
[⚙️ assert] the defaults are 64 MiB, 3 passes, 1 lane
✅ got: ((kdf . argon2id) (memory-kib . 65536) (iterations . 3) (parallelism . 1))
[⚙️ assert] given parameters are kept and the rest defaulted
✅ got: ((kdf . argon2id) (memory-kib . 262144) (iterations . 4) (parallelism . 1))
[🧪 test] unsupported specifications are refused
[⚙️ assert] an unknown KDF name is refused
✅ got: #t
[⚙️ assert] a string is not a KDF specification
✅ got: #t
[⚙️ assert] an out-of-range Argon2id memory cost is refused
✅ got: #t
[⚙️ assert] a PBKDF2 cost the OpenSSL format cannot record is refused
✅ got: #t
+----------------------------------------------+
[📑 suite] Randomness
[🧪 test] random-bytes returns genuinely fresh bytes
[⚙️ assert] a draw is not a constant
✅ got: #f
[⚙️ assert] the default length is the OpenSSL salt length
✅ got: 8
[⚙️ assert] two calls do not return the same bytes
✅ got: #t
[⚙️ assert] the requested length is honoured
✅ got: 32
[⚙️ assert] a draw is not all zeroes
✅ got: #t
+----------------------------------------------+
[📑 suite] Encodings of raw bytes
[🧪 test] Base16 round-trips arbitrary bytevectors
[⚙️ assert] the empty bytevector round-trips
✅ got: #t
[⚙️ assert] bytes that are not valid UTF-8 survive the round trip
✅ got: #t
[🧪 test] Base64 round-trips arbitrary bytevectors
[⚙️ assert] bytes that are not valid UTF-8 survive the round trip
✅ got: 3
+----------------------------------------------+
[📑 suite] OpenSSL-compatible sealing
[🧪 test] round-trips
[⚙️ assert] the empty string round-trips
✅ got:
[⚙️ assert] a longer payload round-trips
✅ got: a secret that openssl sealed
[⚙️ assert] one padded block follows the 16-byte Salted__ header
✅ got: 32
[🧪 test] a fixed-salt vector matches OpenSSL byte for byte
[⚙️ assert] the ciphertext of a known salt and key
✅ got: U2FsdGVkX18AAQIDBAUGByAGpafcjamTQUX3eOyvQUE=
[⚙️ assert] and it decrypts back
✅ got: bewaking
[🧪 test] failures are reported rather than ignored
[⚙️ assert] a truncated body raises rather than returning garbage
✅ got: #t
[⚙️ assert] input that is not Base64 raises
✅ got: #t
[⚙️ assert] the wrong key raises
✅ got: #t
[⚙️ assert] Base64 without a Salted__ header raises
✅ got: #t;;; note: source file ./test/veritas/unit/password-spec.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/password-spec.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling ./test/veritas/unit/password-spec.scm
;;; note: source file ./src/bewaking/password.scm
;;; newer than compiled /gnu/store/scdaqkbpq5s7wzkjhh6xadzvg6zqbspv-profile/lib/guile/3.0/site-ccache/bewaking/password.go
;;; note: source file ./src/bewaking/password.scm
;;; newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/bewaking/password.go
;;; note: source file ./src/bewaking/password.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/password.scm.go
;;; compiling ./src/bewaking/password.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/password.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/password-spec.scm.go
;;; note: source file ./test/veritas/unit/bewaking-spec.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/bewaking-spec.scm.go
;;; compiling ./test/veritas/unit/bewaking-spec.scm
;;; note: source file ./src/bewaking/bewaking.scm
;;; newer than compiled /gnu/store/scdaqkbpq5s7wzkjhh6xadzvg6zqbspv-profile/lib/guile/3.0/site-ccache/bewaking/bewaking.go
;;; note: source file ./src/bewaking/bewaking.scm
;;; newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/bewaking/bewaking.go
;;; note: source file ./src/bewaking/bewaking.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/bewaking.scm.go
;;; compiling ./src/bewaking/bewaking.scm
;;; note: source file ./src/bewaking/crypto.scm
;;; newer than compiled /gnu/store/scdaqkbpq5s7wzkjhh6xadzvg6zqbspv-profile/lib/guile/3.0/site-ccache/bewaking/crypto.go
;;; note: source file ./src/bewaking/crypto.scm
;;; newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/bewaking/crypto.go
;;; note: source file ./src/bewaking/crypto.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/crypto.scm.go
;;; compiling ./src/bewaking/crypto.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/crypto.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/bewaking.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/bewaking-spec.scm.go
;;; note: source file ./test/veritas/unit/web-spec.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/web-spec.scm.go
;;; compiling ./test/veritas/unit/web-spec.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/web-spec.scm.go
;;; note: source file ./test/veritas/unit/crypto-spec.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/crypto-spec.scm.go
;;; compiling ./test/veritas/unit/crypto-spec.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/crypto-spec.scm.go
;;; note: source file ./test/veritas/unit/cli-spec.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/cli-spec.scm.go
;;; compiling ./test/veritas/unit/cli-spec.scm
;;; note: source file ./src/bewaking/cli.scm
;;; newer than compiled /gnu/store/scdaqkbpq5s7wzkjhh6xadzvg6zqbspv-profile/lib/guile/3.0/site-ccache/bewaking/cli.go
[⚙️ assert] the wrong key raises for OpenSSL-produced data too
✅ got: #t
[🧪 test] the salt must be 8 bytes
[⚙️ assert] a short salt raises
✅ success catching error: misc-error: (#f bewaking: a PBKDF2 salt must be 8 bytes long. () #f)
[🧪 test] data produced by OpenSSL itself can be opened
[⚙️ assert] an openssl-encrypted string, random salt and all
✅ got: a secret that openssl sealed
+----------------------------------------------+
[📑 suite] HMAC-SHA256 (RFC 4231)
[🧪 test] the digest is 32 bytes and key-sensitive
[⚙️ assert] 64 hexadecimal digits, i.e. 32 bytes
✅ got: 64
[⚙️ assert] changing the key changes the MAC
✅ got: #f
[🧪 test] RFC 4231 test case 1
[⚙️ assert] a 20-byte key of 0x0b over "Hi There"
✅ got: b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7
[🧪 test] RFC 4231 test case 2
[⚙️ assert] the key "Jefe" over its test message
✅ got: 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843
+----------------------------------------------+
[📑 suite] Derived key material
[🧪 test] an unknown derivation is refused
[⚙️ assert] no other function can be named
✅ got: #t
[🧪 test] PBKDF2 key material is the PBKDF2 derivation's
[⚙️ assert] derive-key-material agrees with the primitive it names
✅ got: 25ff9d4852ea4ea0ff9caf7aa33ed9e25f8d8a4eb2915445e0ff398292d67473
[⚙️ assert] the requested length is produced
✅ got: 32
[🧪 test] Argon2id key material honours its parameters
[⚙️ assert] changing the passphrase changes the material
✅ got: #t
[⚙️ assert] changing the pass count changes the material
✅ got: #t
[⚙️ assert] the full key-and-IV length can be derived
✅ got: 48
ℹ️ info - ran 13 tasks in: 1 seconds, -911209 microseconds
running unit tests from file: cli-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 55271819 (replay with VERITAS_SEED=55271819)
+----------------------------------------------+
[📑 suite] CLI key derivation and dropped formats
[🧪 test] the key derivation is chosen when sealing and read back when opening
[⚙️ assert] an Argon2id token round-trips through the CLI
✅ got: #t
[⚙️ assert] a KDF parameter without --kdf is refused
✅ got: #t
[🧪 test] tampering and missing arguments are refused
[⚙️ assert] an edited token exits with 1
✅ got: #t
[⚙️ assert] generating without an owner id exits with 1
✅ got: #t
[⚙️ assert] sealing an object without keys exits with 1
✅ got: #t
[🧪 test] a refusal does not reveal which key ids the keyring configures
[⚙️ assert] an unknown key id and an edited body give the same message and exit code
✅ got: #t
[🧪 test] envelopes of dropped formats are refused
[⚙️ assert] a BWK2 token cannot be decrypted or inspected
✅ got: #t
[⚙️ assert] an empty token is refused
✅ got: #t
[⚙️ assert] a BWK1 token cannot be decrypted or inspected
✅ got: #t
+----------------------------------------------+
[📑 suite] CLI dispatch;;; note: source file ./src/bewaking/cli.scm
;;; newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/bewaking/cli.go
;;; note: source file ./src/bewaking/cli.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/cli.scm.go
;;; compiling ./src/bewaking/cli.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/cli.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/test/veritas/unit/cli-spec.scm.go
[🧪 test] help and exit codes
[⚙️ assert] version exits successfully
✅ got: 0
[⚙️ assert] help documents the keyring option
✅ got: #t
[⚙️ assert] help exits successfully
✅ got: 0
[⚙️ assert] decrypting without keys fails
✅ got: 1
[⚙️ assert] help prints the usage banner
✅ got: #t
[⚙️ assert] help lists the token inspect command
✅ got: #t
[⚙️ assert] a token subcommand is required
✅ got: 1
[⚙️ assert] an unknown command exits with 1
✅ got: 1
[⚙️ assert] help lists the token generate command
✅ got: #t
[⚙️ assert] help documents the rotation metadata options
✅ got: #t
+----------------------------------------------+
[📑 suite] CLI rotation metadata
[🧪 test] token inspect audits the header without keys
[⚙️ assert] inspect reports version, key id and expiry
✅ got: #t
[⚙️ assert] inspect reports an expired envelope
✅ got: #t
[⚙️ assert] inspect rejects a non-envelope token
✅ got: #t
[🧪 test] expiry is sealed into tokens and enforced
[⚙️ assert] --ttl-seconds and --expires-at conflict
✅ got: #t
[⚙️ assert] an expired token exits with 1
✅ got: #t
[⚙️ assert] --allow-expired opens it anyway
✅ got: #t
[⚙️ assert] --max-age-seconds accepts fresh data
✅ got: #t
+----------------------------------------------+
[📑 suite] CLI password commands
[🧪 test] password strength
[⚙️ assert] strength exits successfully
✅ got: 0
[⚙️ assert] a common password is reported weak
✅ got: #t
[🧪 test] password generate
[⚙️ assert] the requested length is honoured
✅ got: 32
[⚙️ assert] symbols are excluded on request
✅ got: (lowercase uppercase digit)
[⚙️ assert] generation exits successfully
✅ got: 0
+----------------------------------------------+
[📑 suite] CLI object commands
[🧪 test] object expiry policy
[⚙️ assert] an object sealed with a past expiry is refused
✅ got: #t
[🧪 test] object round-trip
[⚙️ assert] object encrypt then decrypt round-trips a datum
✅ got: #t
+----------------------------------------------+
[📑 suite] CLI token commands
[🧪 test] token round-trip
[⚙️ assert] generate then decrypt preserves the payload
✅ got: #t
[🧪 test] key id and keyring rotation
[⚙️ assert] a keyring round-trips and rejects the wrong key
✅ got: #t
[🧪 test] wrong keys are rejected
[⚙️ assert] a wrong signing key exits with 1
✅ got: #t
ℹ️ info - ran 6 tasks in: 0 seconds, 57043 microseconds
finished running tests
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /etc/byggsteg/job-clone/bewaking/trunk/maak.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/maak.scm.go
--------------------------------------------------------------
Maak 0.12.2: the infinitely extensible command runner
Loading tasks from Maak file: /etc/byggsteg/job-clone/bewaking/trunk/maak.scm
Executing Maak tasks: test
--------------------------------------------------------------
=> Running Maak task: test
Run the project's tests.
Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- guile -L ./src -L ./test -c '((@ (veritas runner) run-tests))'
Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- guile -L ./src -L ./test -c '((@ (veritas runner) run-tests))'
→ running command: cd /etc/byggsteg/job-clone/bewaking/trunk && sudo maak deploy
--------------------------------------------------------------
Maak 0.12.2: the infinitely extensible command runner
Loading tasks from Maak file: /etc/byggsteg/job-clone/bewaking/trunk/maak.scm
Executing Maak tasks: deploy
--------------------------------------------------------------
=> Running Maak task: deploy
Generate documentation for the project and publish to the web directory.
API documentation saved to doc/api
;;; note: source file /etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/bewaking.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/bewaking.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/bewaking.scm
;;; note: source file /etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/crypto.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/crypto.scm.go
;;; compiling /etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/crypto.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/crypto.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/bewaking.scm.go
;;; note: source file /etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/cli.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/cli.scm.go
;;; compiling /etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/cli.scm
;;; note: source file /etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/password.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/password.scm.go
;;; compiling /etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/password.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/password.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/cli.scm.go
index.texi: warning: must specify a title with a title command or @top
Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- documenta api ./src/bewaking
Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- documenta api ./src/bewaking
Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- texi2any -v --html --css-ref=https://jointhefreeworld.org/static/css/jointhefreeworld.css ./doc/api/index.texi
Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- texi2any -v --html --css-ref=https://jointhefreeworld.org/static/css/jointhefreeworld.css ./doc/api/index.texi
renamed './index' -> './doc/api-dist'
removed '/srv/http/jointhefreeworld.org/api-docs/bewaking/API.html'
removed '/srv/http/jointhefreeworld.org/api-docs/bewaking/bewaking_005fbewaking.html'
removed '/srv/http/jointhefreeworld.org/api-docs/bewaking/bewaking_005fcli.html'
removed '/srv/http/jointhefreeworld.org/api-docs/bewaking/bewaking_005fcrypto.html'
removed '/srv/http/jointhefreeworld.org/api-docs/bewaking/bewaking_005fpassword.html'
removed directory '/srv/http/jointhefreeworld.org/api-docs/bewaking'
mkdir: created directory '/srv/http/jointhefreeworld.org/api-docs/bewaking'
renamed 'doc/api-dist/API.html' -> '/srv/http/jointhefreeworld.org/api-docs/bewaking/API.html'
renamed 'doc/api-dist/bewaking_005fbewaking.html' -> '/srv/http/jointhefreeworld.org/api-docs/bewaking/bewaking_005fbewaking.html'
renamed 'doc/api-dist/bewaking_005fcli.html' -> '/srv/http/jointhefreeworld.org/api-docs/bewaking/bewaking_005fcli.html'
renamed 'doc/api-dist/bewaking_005fcrypto.html' -> '/srv/http/jointhefreeworld.org/api-docs/bewaking/bewaking_005fcrypto.html'
renamed 'doc/api-dist/bewaking_005fpassword.html' -> '/srv/http/jointhefreeworld.org/api-docs/bewaking/bewaking_005fpassword.html'
Executing: mv -v doc/api-dist/* /srv/http/jointhefreeworld.org/api-docs/bewaking
removed 'doc/api/index.texi'
removed directory 'doc/api'
removed directory 'doc/api-dist'
removed directory 'doc'