starting new job...
→ running command: cd "/etc/byggsteg/job-clone//bewaking/trunk" && git reset --hard && git pull
HEAD is now at 7213ef0 ci: Byggsteg Woodpecker integration
Already up to date.
→ 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 7213ef0cd9626a515db22350c6bbdcf1357e4e52
Author: Josep Bigorra <jjbigorra@gmail.com>
Date: Thu Oct 15 12:37:20 2026 +0200
ci: Byggsteg Woodpecker integration
M .woodpecker/byggsteg.yaml
→ 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 522432693 (replay with VERITAS_SEED=522432693)
found unit tests: (cli-spec.scm web-spec.scm bewaking-spec.scm crypto-spec.scm password-spec.scm)
running unit tests from file: cli-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 522432693 (replay with VERITAS_SEED=522432693)
+----------------------------------------------+
[📑 suite] CLI token commands
[🧪 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
[🧪 test] token round-trip
[⚙️ assert] generate then decrypt preserves the payload
✅ got: #t
+----------------------------------------------+
[📑 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] 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
[🧪 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] tampering and missing arguments are refused
[⚙️ assert] generating without an owner id exits with 1
✅ got: #t
[⚙️ assert] sealing an object without keys exits with 1
✅ got: #t
[⚙️ assert] an edited token exits with 1
✅ got: #t
+----------------------------------------------+
[📑 suite] CLI dispatch
[🧪 test] help and exit codes
[⚙️ assert] decrypting without keys fails
✅ got: 1
[⚙️ assert] help exits successfully
✅ got: 0
[⚙️ assert] help documents the rotation metadata options
✅ got: #t
[⚙️ assert] help lists the token inspect command
✅ got: #t
[⚙️ assert] help lists the token generate command
✅ got: #t
[⚙️ assert] help prints the usage banner
✅ got: #t
[⚙️ assert] help documents the keyring option
✅ got: #t
[⚙️ assert] version exits successfully
✅ got: 0
[⚙️ assert] an unknown command exits with 1
✅ got: 1
[⚙️ assert] a token subcommand is required
✅ got: 1
+----------------------------------------------+
[📑 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 rotation metadata
[🧪 test] token inspect audits the header without keys
[⚙️ assert] inspect rejects a non-envelope token
✅ got: #t
[⚙️ assert] inspect reports an expired envelope
✅ got: #t
[⚙️ assert] inspect reports version, key id and expiry
✅ got: #t
[🧪 test] expiry is sealed into tokens and enforced
[⚙️ assert] --allow-expired opens it anyway
✅ got: #t
[⚙️ assert] --ttl-seconds and --expires-at conflict
✅ got: #t
[⚙️ assert] --max-age-seconds accepts fresh data
✅ got: #t
[⚙️ assert] an expired token exits with 1
✅ 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] generation exits successfully
✅ got: 0
[⚙️ assert] symbols are excluded on request
✅ got: (lowercase uppercase digit)
[⚙️ assert] the requested length is honoured
✅ got: 32
ℹ️ info - ran 6 tasks in: 0 seconds, 11638 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 522432693 (replay with VERITAS_SEED=522432693)
+----------------------------------------------+
[📑 suite] Web chapter: protecting a route
[🧪 test] the payload is the identity, not the request
[⚙️ assert] the owner id comes from the sealed payload
✅ got: u-1
[⚙️ assert] a client-supplied user id is a hint, never the identity
✅ got: #f
[🧪 test] a permission that was never granted is refused on the server
[⚙️ 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] a route needing nothing is open to a valid session
✅ got: #t
[⚙️ assert] the helper returns #f, not a partially authorized payload
✅ got: #f
[🧪 test] an expired session is refused, and sign-out clears the cookie
[⚙️ assert] a token whose payload lifetime has passed is refused
✅ got: 302
[⚙️ assert] sign-out redirects to the login page
✅ got: 302
[⚙️ assert] sign-out deletes the cookie, the only cleanup there is
✅ got:
[⚙️ assert] the deletion cookie expires immediately
✅ got: 0
[⚙️ assert] and the helper returns #f for it
✅ got: #f
[🧪 test] the signed-in user is admitted
[⚙️ 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
[⚙️ assert] and its own payload expiry
✅ got: #t
[⚙️ assert] the payload carries its own token id
✅ got: #t
[⚙️ assert] the browser route runs the handler
✅ got: 200
[⚙️ assert] and 'name' came back as 'owner-name'
✅ got: Joe
[⚙️ assert] permissions travel inside the token
✅ got: (read-only access-files)
[🧪 test] every failure mode is a refusal, never an admission
[⚙️ assert] a cookie that is not a real envelope 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] a keyring that cannot resolve the key id 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 request with no cookie is redirected to /login
✅ got: 302
[⚙️ assert] arbitrary text is refused
✅ got: 302
[🧪 test] the same session works as an API bearer token
[⚙️ assert] the API route admits the header token
✅ got: 200
[⚙️ 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)
+----------------------------------------------+
[📑 suite] Web chapter: auditing what is safe to log
[🧪 test] an expiry is reported as a time, and its absence as nothing
[⚙️ assert] a token sealed with a TTL records its expiry
✅ got: #t
[⚙️ assert] and the audit helper agrees it is live
✅ got: #f
[⚙️ assert] the audit reports no envelope expiry by default
✅ got: #f
[🧪 test] auditing garbage is #f, not an exception
[⚙️ assert] an unparseable cookie yields no metadata
✅ got: #f
[⚙️ assert] a missing cookie yields no metadata
✅ got: #f
[⚙️ assert] a malformed BWK3 value yields no metadata
✅ got: #f
[🧪 test] the envelope header is readable with no keys at all
[⚙️ assert] a fresh session is not expired
✅ got: #f
[⚙️ assert] not the encryption key and not the signing key either
✅ got: #f
[⚙️ assert] the key id is reported, which is what rotation is keyed on
✅ got: default
[⚙️ assert] the creation time is reported
✅ got: #t
[⚙️ assert] the version is reported for the log
✅ got: BWK3
[⚙️ assert] the audit output carries no key material
✅ got: #f
+----------------------------------------------+
[📑 suite] Web chapter: sign-in seals a session into a cookie
[🧪 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 requested lifetime is recorded in the cookie
✅ got: 86400
[⚙️ assert] the envelope is sealed now
✅ got: #t
[🧪 test] bad credentials get no cookie at all
[⚙️ assert] a wrong password is a plain 401
✅ got: 401
[⚙️ assert] the failure is reported, not swallowed
✅ got: invalid credentials
[⚙️ assert] no session is created for a failed sign-in
✅ got: #f
[🧪 test] a verified user gets a sealed session cookie
[⚙️ assert] (a) HttpOnly puts the cookie out of reach of JavaScript
✅ got: #t
[⚙️ assert] the cookie value is a BWK3 envelope
✅ got: #t
[⚙️ assert] the cookie is named as documented
✅ got: x-bewaking-session
[⚙️ assert] (c) path "/" applies the cookie to the whole site
✅ got: /
[⚙️ assert] the redirect target is the dashboard
✅ got: /dashboard
[⚙️ assert] sign-in redirects, as the README's controller does
✅ got: 302
[⚙️ assert] (b) Secure keeps it off plain HTTP
✅ got: #t
[⚙️ assert] (d) the cookie's lifetime matches #:token-validity-seconds
✅ got: 604800
+----------------------------------------------+
[📑 suite] Web chapter: sealed objects as stateless state
[🧪 test] an expired link is refused by the server, not by the client
[⚙️ assert] after the expiry the server refuses it
✅ got: #f
[⚙️ 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))
[🧪 test] a password-reset link round-trips with no table row
[⚙️ assert] the hour-long lifetime is recorded in the header
✅ got: #t
[⚙️ assert] the link is a sealed envelope
✅ got: #t
[⚙️ assert] the state comes back as an ordinary alist
✅ got: ((user . u-1) (action . reset-password))
[⚙️ assert] the user id is not readable in the link
✅ got: #f
[🧪 test] an edited link is worth nothing
[⚙️ assert] the link was edited in the mail client
✅ got: #f
[⚙️ assert] and garbage is not a link either
✅ got: #f
[🧪 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] the link answers only to the key that sealed it
[⚙️ assert] a link sealed elsewhere does not open here
✅ got: #f
+----------------------------------------------+
[📑 suite] Web chapter: keys, rotation and revocation
[🧪 test] keys stay secret and distinct, which is the whole requirement
[⚙️ assert] the encryption key does not appear in the token
✅ got: #f
[⚙️ assert] nor does the signing key
✅ got: #f
[⚙️ assert] swapping the two keys does not open the session
✅ got: #f
[🧪 test] rotation needs no downtime and no forced logout
[⚙️ assert] the key id is embedded in the envelope
✅ got: #t
[⚙️ assert] new logins are sealed with the current key
✅ got: #t
[⚙️ assert] and so does a new one
✅ got: #t
[⚙️ assert] an old token still opens: nothing to migrate
✅ got: #t
[🧪 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
ℹ️ info - ran 5 tasks in: 0 seconds, 13038 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.1792060659.-.01a196d9cb524f347d4e7d35cb4495105f3c951e4083e020c831b59c6bfa9814daf72f6bc60d8aa12da09dfa9238f8560370db52ee03930190d97a6debe4e5e42851cd53a7765bb1a494f07a2a6ad81b5a9ea2743036f81f8da286a769deff3764ed3f12568107100d37ea532762567ca5726ab2404f73c6b7e61ca2d74b0875e827a1535ba303f4dc7a9d09f60f8a58a08965ea6f90dcf20600981d056c59a558b1676ca531cae82b0a2eb949b639cd93262e2c6050479fedcd0a34a9cd628e5ae7b561cc44c73684d774f4d71341e9a79c5df625981c9e6bf403f4201026f5de5d29daae5fd22dbe0a4cde3f9c21c80f24ad02d9ca8066f550185337c87463bd280c55a2fcfcfafe4bf4581eca2231414cabc0b97de192b068e4e9d82698149cd1c4ce4cdbcedf4aa841be4ab7602e4d131ae62cb0043cff0b4828bd47b1e085b397dbba38f9933b8979d8a2eaec722ee81cab14248e907cc73ce1a975dcb8c9477aca76adebcfab26f7c44e79cdcde4d79e152c84ac1438824e76a8b446eb3c32832a53cdef15c7cf42654fcaf33171e94278d7fc85f280015a46d2ee020cb64c493a35657f9beb627372298c9a87bd85d90180f014deca6172c977bb83af27240be6788d5326bb49fec2376edc6760b66a5c1809ed22e461219a0c918dc5311f8177f4d1c1ac355729dd9d3b7fceed123da0960f51b61da864460fd01330211c419657f17cf4a8bf68e12ecb9aba06d6bebcd09ba03f8380c49403b824f3b25b392876791ce5cc0267beafccb1cc1357359c180fe88586f865e5e6bc81527c4309f2f8a8eb3ab22b5945ce80df1a5981f7a6010d25ee4cea8b0f219d26b49c315cc086fe4d9f1f9db72da0dcdaeff9de14826df58f44b87f5e7e4503b11caebcdc08343890640f5c7d793198dd275a33ecc4ab7387fd61d4373b4faaba9ba509c823a38b48b30d0d714a5dccc55b7278b40dd441df196c2feb4b294ce6016cf94e1c6687ef30f3775d8105f545ac7c709bd2f4811cc1033182483505fff1d4d5d90531f0c6b1b2d901b2e6ef81ecfe2f9304bf0a33e448f018b890e9ffeb178717b8b47bf739015844fd59fee989fccdcf4ec5e42321fde61df455e331f1a9d7ca87ef68cb77a4b663b5db736e711b739552207afe6c240f12a68de1e477570e592ad0e12c26d16283a4e1e26bf949248a5068c1de61b84d6193355f8508bb82f713673d6109e35bbe430c23604efd0fda0b34af88c3889d76c76be1376ac2f731f8842a6db52739f17d7e5efd78527a3e1bfe7ba1825d
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.1792060659.-.01f0a43a5b503e87715f73e629b47284fbc0c11ed0e6bbb8d2bca10b3681c431a78adab1ee8d9b2275cf9ae5464be33a2eacc9c319324882de9ca4dfc631c73da58e04f697a01b2a385d7b984506f83de409739557224b7540a9418577ffdf838e7b35fc0106297e37ef82752e7ccf900b404b287c5936e150a197e073b1e479abd6a4c4f12b6781c68af20c569afd1a5983f7cae0ec602da4d61a13bb77ecc1b5bf725f2371fedeffcab5d9167ae361baaec8e0fc0fe4884065d4f4f4d5ff0f3132e38f6a25a9247eddeaa59114756d58a17b5bf03f4f719dd23ba7c258618a179082a02bc97ec9c4e6a41aba32d1c0630238663fb10a8f8dd9f4ea026f6f2332b533b0d17b2baec5bbd944cef5a9721ba3f74d69b22b8122d49ba69775f087906a38e25277ce662f803c70df91e2ab242e19f242d0856d913fe1008af8c892900a778e35f62db4acc9fc9b5b97cf81674ed52d1efddcdf6dbdfac8b950f5a686d402fc54e7f938eebb91868ff220e7102f82e10597d169a43fd2c9a47a99c7d09a953209643347dfeb4371f30ee634a0260fa9be5900672ec3020c49bc89e95c5c78a7f431f77cd1e93c7ae82c05c91753471b519e1adbf9fd152b1ac3c69d4e3b32477c81c5f041aafec3686801793633cddd087bb61341af74965872155cbde529cc40bc5422bcf547ec73df30cc5c90cbe1c6d9b1df7948984eac3dbce33e597047c6f715cf4d47d3af96e0f416e063e441e5cc9135274600226bfa8369bbf0ab85c6f5bf0a572a340a412240899dd247772ac58a393b95516a487cf12d557e25d0eda3a9fd25a0f4c96d0ddafe6349907ad9e1c2082a5f18c8ade2adc884bea4902bab04d48e5028928624f18b982b8a29ea1587ab33d876114bc48b7283e4525af8913d2e3bf7b43dac4177ff0323cde777f9f117b6f569940c2fcffca38543ca49cf881c9883d3edf304e115be288a980d35c273ead1e3be4a2302e19abd9889bb33943b0cde9e98c9cfbeb728942c62b417044e983f766aed9cdd61bb6de7ec5b527b864c2e862004eaa547d7fb9e1c4bd62fa56bf8cd34ea694afeeaacf755dcb07090e6882a825e9b59b060e6d641c9358ab98dfe36728f900b468aedff3bb97a71a2b1e956bc567be6b55abbadea695a99b361afa9ffbe61b7ca69ab7d4ee189ea9ed0913183c2ee891648b737879b0b27679abf2eda04cef5299aa2eefdc47d1d49300b1501977675aca6fa2232a264c5704688110d553a4463f759168e70426ee7f52d08f2788c092368fc9b322360ea492a
decoded: ((token-type . bewaking-token) (token-id . b63b7ea2-b872-44d7-8220-f3a9ae51e6e4) (token-created-at . 1792060659) (token-expires-at . 1792665459) (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 522432693 (replay with VERITAS_SEED=522432693)
+----------------------------------------------+
[📑 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] key rotation with a keyring
[⚙️ assert] a keyring seals and opens by key id
✅ got: #t
[🧪 test] no reader is left for the earlier formats
[⚙️ assert] an unreadable envelope is never reported as live
✅ got: #f
[⚙️ assert] a BWK2 envelope with no expiry is not recognised
✅ got: #f
[⚙️ assert] a BWK2 envelope is not recognised
✅ got: #f
[⚙️ assert] a BWK1 object is refused likewise
✅ got: #f
[⚙️ assert] no metadata is read out of a BWK1 envelope
✅ got: #f
[⚙️ assert] a BWK2 token is refused even with the keys that sealed it
✅ got: #f
[⚙️ assert] a BWK1 envelope is not recognised
✅ got: #f
[⚙️ assert] no metadata is read out of a BWK2 envelope
✅ got: #f
[🧪 test] the requested key id is embedded in generated tokens
[⚙️ assert] the token carries the key id
✅ got: #t
[🧪 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] the plaintext round-trips
✅ got: top secret payload
[⚙️ assert] the module exposes the current format version
✅ got: BWK3
[⚙️ assert] a wrong signing key fails the cipher check
✅ got: #t
[⚙️ assert] BWK3 is the only version produced and read
✅ got: (BWK3)
[⚙️ assert] passing a MAC key to open-envelope is refused, not ignored
✅ got: #t
[⚙️ assert] the result is a versioned envelope
✅ got: #t
[🧪 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] knowing the format is not knowing the plaintext
[⚙️ assert] the format is not hidden, only the content is
✅ got: #t
[⚙️ assert] the plaintext, its Base16 and its Base64 do not appear in the envelope
✅ got: #t
[⚙️ assert] the public metadata is exactly what is authenticated
✅ got: (version key-id created-at expires-at)
[🧪 test] tokens and objects are envelopes and reject tampering
[⚙️ assert] a tampered token is rejected
✅ got: #t
[⚙️ assert] sealed objects are enveloped
✅ got: #t
[⚙️ assert] a tampered object is rejected
✅ got: #t
[⚙️ assert] generated tokens are enveloped
✅ got: #t
[🧪 test] a refusal never says which key id the keyring configures
[⚙️ assert] the refusal does not name the key id it could not resolve
✅ got: #f
[⚙️ assert] nor does it carry any key material
✅ 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] and it does not name a configured key id either
✅ got: #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] 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] the refusal is a refusal, not an accidental success
✅ got: #t
[⚙️ assert] an expired genuine envelope is still told apart, since it authenticated first
✅ 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] a truncated envelope is refused when it is opened
✅ got: #t
[⚙️ assert] a bare Base16 object is refused
✅ got: #f
[⚙️ assert] arbitrary text is not an envelope
✅ got: #f
[⚙️ assert] an unsupported version raises rather than being guessed at
✅ got: #t
[⚙️ assert] an unknown envelope version is not recognised
✅ got: #f
[⚙️ 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] a BWK3 envelope carrying an extra MAC field is refused
✅ got: #t
+----------------------------------------------+
[📑 suite] Decryption
[🧪 test] decrypt-token
[⚙️ assert] fails gracefully when token is not valid
✅ got: #f
[⚙️ assert] fails gracefully when signing key is not valid
✅ got: #f
[⚙️ assert] works properly with valid token
✅ got: #t
+----------------------------------------------+
[📑 suite] Envelope metadata (key id, created-at, expiry)
[🧪 test] expired tokens and objects are refused
[⚙️ assert] an object sealed with a past expiry is refused
✅ got: #t
[⚙️ assert] a token sealed with a past expiry is refused
✅ got: #t
[⚙️ assert] expiry auditing ignores non-envelopes
✅ got: #f
[🧪 test] metadata is reported without any key
[⚙️ assert] an envelope of a dropped format reports no metadata
✅ got: #f
[⚙️ assert] metadata is only read from envelopes
✅ got: #f
[⚙️ assert] the key id is reported
✅ got: default
[⚙️ assert] there is no expiry unless one was requested
✅ got: #f
[⚙️ assert] a malformed BWK3 envelope reports no metadata
✅ got: #f
[⚙️ assert] the format version is reported
✅ got: BWK3
[⚙️ assert] created-at is a Unix timestamp
✅ got: #t
[🧪 test] the metadata is authenticated
[⚙️ assert] backdating created-at breaks the tag
✅ got: #t
[⚙️ assert] extending the expiry in the envelope breaks the tag
✅ got: #t
[⚙️ assert] removing the expiry marker breaks the tag
✅ got: #t
[⚙️ assert] editing created-at in a BWK3 envelope breaks its tag
✅ got: #t
[⚙️ assert] editing the key id breaks the tag
✅ got: #t
[⚙️ assert] relabelling the version is refused
✅ got: #t
[⚙️ assert] editing the body breaks the tag
✅ got: #t
[🧪 test] expiry is enforced when opening
[⚙️ assert] enforce-expiry? #f still opens it
✅ got: ttl payload
[⚙️ assert] an expired envelope is refused
✅ got: #t
[⚙️ assert] max-age-seconds enforces a rotation policy
✅ got: #t
[🧪 test] invalid sealing options are rejected
[⚙️ assert] expires-at and ttl-seconds are mutually exclusive
✅ got: #t
[⚙️ assert] a non-integer ttl-seconds is rejected
✅ got: #t
[⚙️ assert] a key id containing a dot is rejected
✅ got: #t
[🧪 test] a malformed envelope is rejected
[⚙️ assert] a truncated body is refused
✅ got: #t
[⚙️ assert] an empty key id is refused
✅ got: #t
[⚙️ assert] sealing without a signing key is refused
✅ got: #t
[⚙️ assert] a non-numeric created-at is refused
✅ got: #t
[⚙️ assert] sealing a non-string plaintext is refused
✅ got: #t
[⚙️ assert] a missing body is refused
✅ got: #t
[⚙️ assert] a body that is not hexadecimal is refused
✅ got: #t
[🧪 test] keyring validity windows enforce rotation
[⚙️ assert] a key inside its window seals and opens
✅ got: #t
[⚙️ assert] a key before not-before cannot seal data
✅ got: #t
[⚙️ assert] a key past not-after cannot open data
✅ got: #t
[⚙️ assert] no keyring is needed to read metadata
✅ got: #t
[🧪 test] ttl-seconds records an absolute expiry
[⚙️ assert] the envelope is live before its expiry
✅ got: #f
[⚙️ assert] created-at is the requested timestamp
✅ got: 1000
[⚙️ assert] the envelope is expired after its expiry
✅ got: #t
[⚙️ assert] expires-at is created-at plus the ttl
✅ got: 4600
+----------------------------------------------+
[📑 suite] Garbling and Ungarbling
[🧪 test] garble-ungarble
✅ got: dlrow olleh
✅ got: w
✅ got: row
✅ got: ow
✅ got: lrow
✅ got: b72j9ft22b515x7jdzhht1g2oxkfbywc985rrgzdkcakwh8cur7fhje08gjjyzoguh1hbt9yz7qy79zewh1vxg46kxbk3y31dx26bigeil8mnm3khosklmhj554acr8i
✅ got: hello world
✅ got: dlrow
+----------------------------------------------+
[📑 suite] generate-token
[🧪 test] works properly with correct details
✅ got: #t
+----------------------------------------------+
[📑 suite] Permissions
[🧪 test] has-needed-permissions?
✅ got: #t
✅ got: #f
✅ got: #t
✅ got: #t
✅ got: #f
✅ got: #f
✅ got: #t
✅ got: #f
+----------------------------------------------+
[📑 suite] Lossless Token Decryption
[🧪 test] lossless-token
[⚙️ assert] works properly with correct details
✅ got: #t
+----------------------------------------------+
[📑 suite] Token validity helpers
[🧪 test] token-remaining-seconds and token-valid?
[⚙️ assert] a freshly generated token is not expired
✅ got: #f
[⚙️ assert] remaining seconds is positive for a live token
✅ got: #t
[⚙️ 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] remaining seconds is negative for an expired token
✅ got: #t
+----------------------------------------------+
[📑 suite] Generic object encryption
[🧪 test] encrypt-object and decrypt-object
[⚙️ assert] fails gracefully with a wrong signing key
✅ got: #f
[⚙️ assert] round-trips a list payload
✅ got: (1 2 3)
[⚙️ assert] round-trips a plain string payload
✅ got: just a string
[⚙️ 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] Token expiry
[🧪 test] is-token-expired?
[⚙️ 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 token whose expiry is in the past is expired
✅ got: #t
[⚙️ assert] a token whose expiry is in the future is not expired
✅ got: #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 far-future token is not expired
✅ got: #f
ℹ️ info - ran 10 tasks in: 0 seconds, 23078 microseconds
running unit tests from file: crypto-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 522432693 (replay with VERITAS_SEED=522432693)
+----------------------------------------------+
[📑 suite] Randomness
[🧪 test] random-bytes returns genuinely fresh bytes
[⚙️ assert] a draw is not all zeroes
✅ got: #t
[⚙️ assert] the default length is the OpenSSL salt length
✅ got: 8
[⚙️ assert] a draw is not a constant
✅ got: #f
[⚙️ assert] two calls do not return the same bytes
✅ got: #t
[⚙️ assert] the requested length is honoured
✅ got: 32
+----------------------------------------------+
[📑 suite] Authenticated payload hygiene
[🧪 test] an empty plaintext is still authenticated
[⚙️ assert] the empty plaintext round-trips
✅ got: #t
[⚙️ assert] even an empty payload carries a salt, a nonce and a tag
✅ got: #t
[🧪 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] the salt and the nonce are used, not decorative
[⚙️ assert] editing an Argon2id parameter digit is refused
✅ got: #t
[⚙️ assert] editing a salt digit breaks the tag
✅ got: #t
[⚙️ assert] editing a nonce digit breaks the tag
✅ got: #t
[🧪 test] the recorded derivation cost is bounded before it is spent
[⚙️ assert] a memory cost above the cap is refused, not allocated
✅ got: #t
[⚙️ assert] less than 8 KiB per lane 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] a lane count above the cap is refused
✅ got: #t
[🧪 test] every payload uses a fresh salt and nonce
[⚙️ assert] the recorded nonces differ as well
✅ got: #f
+----------------------------------------------+
[📑 suite] Derived key material
[🧪 test] Argon2id key material honours its parameters
[⚙️ assert] changing the passphrase changes the material
✅ got: #t
[⚙️ assert] the full key-and-IV length can be derived
✅ got: 48
[⚙️ assert] changing the pass count changes the material
✅ got: #t
[🧪 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] the requested length is produced
✅ got: 32
[⚙️ assert] derive-key-material agrees with the primitive it names
✅ got: 25ff9d4852ea4ea0ff9caf7aa33ed9e25f8d8a4eb2915445e0ff398292d67473
+----------------------------------------------+
[📑 suite] HMAC-SHA256 (RFC 4231)
[🧪 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
[🧪 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
+----------------------------------------------+
[📑 suite] OpenSSL-compatible sealing
[🧪 test] round-trips
[⚙️ assert] the empty string round-trips
✅ got:
[⚙️ assert] one padded block follows the 16-byte Salted__ header
✅ got: 32
[⚙️ assert] a longer payload round-trips
✅ got: a secret that openssl sealed
[🧪 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] 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
[🧪 test] failures are reported rather than ignored
[⚙️ assert] input that is not Base64 raises
✅ got: #t
[⚙️ assert] the wrong key raises
✅ got: #t
[⚙️ assert] the wrong key raises for OpenSSL-produced data too
✅ got: #t
[⚙️ assert] Base64 without a Salted__ header raises
✅ got: #t
[⚙️ assert] a truncated body raises rather than returning garbage
✅ got: #t
+----------------------------------------------+
[📑 suite] Base64 encoding
[🧪 test] RFC 4648 test vectors
[⚙️ assert] empty
✅ got:
[⚙️ assert] three bytes of input
✅ got: Zm9v
[⚙️ assert] two bytes of input
✅ got: Zm8=
[⚙️ assert] one byte of input
✅ got: Zg==
[⚙️ assert] six bytes of input
✅ got: Zm9vYmFy
[⚙️ assert] four bytes of input
✅ got: Zm9vYg==
[⚙️ assert] five bytes of input
✅ got: Zm9vYmE=
[🧪 test] malformed input is rejected
[⚙️ 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)
[⚙️ assert] non-alphabet characters raise
✅ success catching error: misc-error: (#f bewaking: malformed base64 input. () #f)
[⚙️ assert] a truncated group raises
✅ success catching error: misc-error: (#f bewaking: malformed base64 input (bad length or padding). () #f)
[🧪 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] Base16 encoding
[🧪 test] known encodings
[⚙️ assert] lowercase hex digits are produced
✅ got: 68656c6c6f
[⚙️ assert] the empty string encodes to nothing
✅ got:
[⚙️ assert] a word encodes byte per byte
✅ got: 626577616b696e67
[🧪 test] decoding accepts both cases
[⚙️ assert] uppercase hex decodes too
✅ got: hello
[⚙️ assert] encoding then decoding is lossless
✅ got: hello
[⚙️ assert] lowercase hex decodes
✅ got: hello
[🧪 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] non-hexadecimal characters raise
✅ success catching error: misc-error: (#f bewaking: malformed hexadecimal input. () #f)
[⚙️ assert] embedded whitespace raises
✅ success catching error: misc-error: (#f bewaking: malformed hexadecimal input (odd number of digits). () #f)
+----------------------------------------------+
[📑 suite] PBKDF2-HMAC-SHA256
[🧪 test] the key and IV material OpenSSL derives
[⚙️ assert] 48 bytes over 10000 iterations, as `openssl kdf' reports
✅ got: cb14e1e1f7ac2fe57f2fcaa462d4ad903867450d9778d2ccf939d8ad3cb99982e0edbd06820c0a636f6fd53d4be339fd
[🧪 test] published password/salt vectors
[⚙️ assert] 4096 iterations
✅ got: c5e478d59288c841aa530db6845c4c8d962893a001ce4e11a4963873aa98134a
[⚙️ assert] one iteration
✅ got: 120fb6cffcf8b32c43e7225256c4f837a86548c92ccc35480805987cb70be17b
[⚙️ assert] two iterations
✅ got: ae4d0c95af6b46d32d0adff928f06dd02a303f8ef3c251dfd6e2d85a95474c43
+----------------------------------------------+
[📑 suite] Argon2id key derivation (RFC 9106)
[🧪 test] invalid parameters are rejected
[⚙️ assert] less than 8 KiB per lane is refused
✅ got: #t
[⚙️ assert] zero passes is refused
✅ got: #t
[⚙️ assert] a non-bytevector secret is refused
✅ got: #t
[⚙️ assert] a non-integer memory cost is refused
✅ got: #t
[⚙️ assert] this libgcrypt provides Argon2
✅ got: #t
[⚙️ assert] zero lanes is refused
✅ got: #t
[🧪 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] every parameter changes the derived bytes
[⚙️ assert] a different pass count gives a different tag
✅ got: #f
[⚙️ assert] a different salt gives a different tag
✅ got: #f
[⚙️ assert] a different passphrase gives a different tag
✅ got: #f
+----------------------------------------------+
[📑 suite] Sealed payloads (key derivation is recorded)
[🧪 test] both readers keep their contracts
[⚙️ assert] openssl-decrypt refuses what the OpenSSL CLI could not read
✅ got: #t
[⚙️ assert] kdf-decrypt opens payloads produced by OpenSSL
✅ got: #t
[🧪 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] an Argon2id payload records its derivation and parameters
[⚙️ assert] the header names the derivation
✅ got: Argon2id
[⚙️ 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
[🧪 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
[🧪 test] sizes and headers are validated
[⚙️ assert] an 8-byte Argon2id salt is refused
✅ got: #t
[⚙️ assert] a payload with no known header is refused
✅ got: #t
[⚙️ assert] a 16-byte PBKDF2 salt is refused
✅ got: #t
[🧪 test] tampering with the recorded parameters is not honoured
[⚙️ assert] a changed pass count no longer decrypts
✅ got: #t
+----------------------------------------------+
[📑 suite] Authenticated payloads (AES-256-GCM)
[🧪 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
[🧪 test] fresh salt and nonce still round-trip
[⚙️ assert] and so does an Argon2id one
✅ got: #t
[⚙️ assert] a payload sealed with random salt and nonce opens
✅ got: #t
[⚙️ assert] associated data is optional: empty means none
✅ got: #t
[⚙️ assert] a payload sealed without it does not open with it
✅ got: #t
[🧪 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] Argon2id is identified by a different id
✅ got: 2
[⚙️ assert] the pass count is recorded
✅ got: 1
[⚙️ assert] the memory cost is recorded, in KiB
✅ got: 8192
[⚙️ assert] PBKDF2 is identified by its own id
✅ got: 1
[⚙️ assert] the lane count is recorded
✅ got: 1
[🧪 test] the tag refuses every alteration
[⚙️ assert] a truncated payload is refused
✅ got: #t
[⚙️ assert] an unknown key-derivation id is refused, not guessed at
✅ got: #t
[⚙️ assert] a flipped ciphertext digit is refused
✅ got: #t
[⚙️ assert] the wrong key is refused
✅ got: #t
[⚙️ assert] different associated data is refused
✅ got: #t
[⚙️ assert] a flipped tag digit is refused
✅ got: #t
+----------------------------------------------+
[📑 suite] Key-derivation specifications
[🧪 test] unsupported specifications are refused
[⚙️ assert] a PBKDF2 cost the OpenSSL format cannot record 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] an unknown KDF name is refused
✅ got: #t
[🧪 test] the default is PBKDF2 with its fixed cost
[⚙️ assert] the module default names PBKDF2
✅ got: pbkdf2
[⚙️ assert] its iteration count is the OpenSSL one
✅ got: 10000
[🧪 test] Argon2id defaults are filled in and reported
[⚙️ assert] given parameters are kept and the rest defaulted
✅ got: ((kdf . argon2id) (memory-kib . 262144) (iterations . 4) (parallelism . 1))
[⚙️ assert] the defaults are 64 MiB, 3 passes, 1 lane
✅ got: ((kdf . argon2id) (memory-kib . 65536) (iterations . 3) (parallelism . 1))
+----------------------------------------------+
[📑 suite] Encodings of raw bytes
[🧪 test] Base16 round-trips arbitrary bytevectors
[⚙️ assert] bytes that are not valid UTF-8 survive the round trip
✅ got: #t
[⚙️ assert] the empty bytevector round-trips
✅ got: #t
[🧪 test] Base64 round-trips arbitrary bytevectors
[⚙️ assert] bytes that are not valid UTF-8 survive the round trip
✅ got: 3
ℹ️ info - ran 13 tasks in: 0 seconds, 22976 microseconds
running unit tests from file: password-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 522432693 (replay with VERITAS_SEED=522432693)
+----------------------------------------------+
[📑 suite] Password strength
[🧪 test] password-strength
[⚙️ assert] sequential runs are flagged in the feedback
✅ got: #t
[⚙️ assert] common passwords get a specific warning
✅ got: #t
[🧪 test] strong-password?
[⚙️ assert] a common word is not strong
✅ got: #f
[⚙️ assert] min-score lowers the bar
✅ got: #t
[⚙️ assert] a short mixed password is not strong
✅ got: #f
[⚙️ assert] a long passphrase is strong
✅ got: #t
+----------------------------------------------+
[📑 suite] Password character classes
[🧪 test] password-character-classes
[⚙️ assert] all four classes are detected
✅ got: (lowercase uppercase digit symbol)
[⚙️ assert] uppercase letters only
✅ got: (uppercase)
[⚙️ assert] digits only
✅ got: (digit)
[⚙️ assert] lowercase letters only
✅ got: (lowercase)
[⚙️ assert] an empty password has no classes
✅ got: ()
+----------------------------------------------+
[📑 suite] Password entropy
[🧪 test] password-entropy
[⚙️ assert] eight lowercase letters are ~37.6 bits
✅ got: #t
[⚙️ assert] adding a character class increases the entropy
✅ got: #t
[⚙️ assert] an empty password has zero entropy
✅ got: 0
+----------------------------------------------+
[📑 suite] Password generation
[🧪 test] generate-strong-password
[⚙️ 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] symbols can be excluded
✅ got: (lowercase uppercase digit)
[⚙️ assert] default generated passwords use every class
✅ got: (lowercase uppercase digit symbol)
[⚙️ assert] length is respected
✅ got: 32
ℹ️ info - ran 4 tasks in: 0 seconds, 14596 microseconds
finished running tests
;;; note: source file ./src/bewaking/cli.scm
;;; newer than compiled /gnu/store/1xfphns7yvbizg1xwfnqigbnl3mrvfx7-profile/lib/guile/3.0/site-ccache/bewaking/cli.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/cli.scm.go
;;; note: source file ./src/bewaking/bewaking.scm
;;; newer than compiled /gnu/store/1xfphns7yvbizg1xwfnqigbnl3mrvfx7-profile/lib/guile/3.0/site-ccache/bewaking/bewaking.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/bewaking.scm.go
;;; note: source file ./src/bewaking/crypto.scm
;;; newer than compiled /gnu/store/1xfphns7yvbizg1xwfnqigbnl3mrvfx7-profile/lib/guile/3.0/site-ccache/bewaking/crypto.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/crypto.scm.go
;;; note: source file ./src/bewaking/password.scm
;;; newer than compiled /gnu/store/1xfphns7yvbizg1xwfnqigbnl3mrvfx7-profile/lib/guile/3.0/site-ccache/bewaking/password.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/bewaking/trunk/src/bewaking/password.scm.go
--------------------------------------------------------------
Maak: 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 project's tests.
→ running command: cd /etc/byggsteg/job-clone/bewaking/trunk && sudo maak deploy
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
API documentation saved to doc/api
index.texi: warning: must specify a title with a title command or @top
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
renamed './index' -> './doc/api-dist'
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
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'
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
mkdir: created directory '/srv/http/jointhefreeworld.org/api-docs/bewaking'
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
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'
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
removed 'doc/api/index.texi'
removed directory 'doc/api'
removed directory 'doc/api-dist'
removed directory 'doc'
--------------------------------------------------------------
Maak: 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 web directory.