starting new job...
→ running command: cd "/etc/byggsteg/job-clone//bewaking/trunk" && git reset --hard && git pull
HEAD is now at 93c77af chore: Pin the Arch source checksum for v0.4.3
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 93c77af9a5720059905ec03cdcdc982e78170d3e
Author: Josep Bigorra <jjbigorra@gmail.com>
Date: Sat Oct 24 14:30:00 2026 +0200
chore: Pin the Arch source checksum for v0.4.3
M packaging/arch/PKGBUILD
→ 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 870051369 (replay with VERITAS_SEED=870051369)
found unit tests: (password-spec.scm cli-spec.scm crypto-spec.scm web-spec.scm bewaking-spec.scm)
running unit tests from file: password-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 870051369 (replay with VERITAS_SEED=870051369)
+----------------------------------------------+
[📑 suite] Password strength
[🧪 test] strong-password?
[⚙️ assert] a long passphrase is strong
✅ got: #t
[⚙️ assert] a short mixed password is not strong
✅ got: #f
[⚙️ assert] min-score lowers the bar
✅ got: #t
[⚙️ assert] a common word is not strong
✅ got: #f
[🧪 test] password-strength
[⚙️ assert] common passwords get a specific warning
✅ got: #t
[⚙️ assert] sequential runs are flagged in the feedback
✅ got: #t
+----------------------------------------------+
[📑 suite] Password entropy
[🧪 test] password-entropy
[⚙️ assert] eight lowercase letters are ~37.6 bits
✅ got: #t
[⚙️ assert] an empty password has zero entropy
✅ got: 0
[⚙️ assert] adding a character class increases the entropy
✅ got: #t
+----------------------------------------------+
[📑 suite] Password generation
[🧪 test] generate-strong-password
[⚙️ 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)
[⚙️ assert] length is respected
✅ got: 32
+----------------------------------------------+
[📑 suite] Password character classes
[🧪 test] password-character-classes
[⚙️ assert] lowercase letters only
✅ got: (lowercase)
[⚙️ assert] digits only
✅ got: (digit)
[⚙️ assert] uppercase letters only
✅ got: (uppercase)
[⚙️ assert] an empty password has no classes
✅ got: ()
[⚙️ assert] all four classes are detected
✅ got: (lowercase uppercase digit symbol)
ℹ️ info - ran 4 tasks in: 0 seconds, 3976 microseconds
running unit tests from file: cli-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 870051369 (replay with VERITAS_SEED=870051369)
+----------------------------------------------+
[📑 suite] CLI rotation metadata
[🧪 test] token inspect audits the header without keys
[⚙️ assert] inspect rejects a non-envelope token
✅ got: #t
[⚙️ assert] inspect reports version, key id and expiry
✅ got: #t
[⚙️ assert] inspect reports an expired envelope
✅ got: #t
[🧪 test] expiry is sealed into tokens and enforced
[⚙️ assert] an expired token exits with 1
✅ got: #t
[⚙️ assert] --ttl-seconds and --expires-at conflict
✅ got: #t
[⚙️ assert] --allow-expired opens it anyway
✅ got: #t
[⚙️ assert] --max-age-seconds accepts fresh data
✅ 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
+----------------------------------------------+
[📑 suite] CLI object commands
[🧪 test] object round-trip
[⚙️ assert] object encrypt then decrypt round-trips a datum
✅ got: #t
[🧪 test] object expiry policy
[⚙️ assert] an object sealed with a past expiry is refused
✅ got: #t
+----------------------------------------------+
[📑 suite] CLI password commands
[🧪 test] password strength
[⚙️ assert] a common password is reported weak
✅ got: #t
[⚙️ assert] strength exits successfully
✅ got: 0
[🧪 test] password generate
[⚙️ assert] symbols are excluded on request
✅ got: (lowercase uppercase digit)
[⚙️ assert] the requested length is honoured
✅ got: 32
[⚙️ assert] generation exits successfully
✅ got: 0
+----------------------------------------------+
[📑 suite] CLI key derivation and dropped formats
[🧪 test] envelopes of dropped formats are refused
[⚙️ assert] a BWK1 token cannot be decrypted or inspected
✅ got: #t
[⚙️ assert] an empty token is refused
✅ got: #t
[⚙️ assert] a BWK2 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] 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] 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
+----------------------------------------------+
[📑 suite] CLI dispatch
[🧪 test] help and exit codes
[⚙️ assert] version exits successfully
✅ got: 0
[⚙️ assert] help documents the rotation metadata options
✅ got: #t
[⚙️ assert] a token subcommand is required
✅ got: 1
[⚙️ assert] help exits successfully
✅ got: 0
[⚙️ assert] help lists the token generate command
✅ got: #t
[⚙️ assert] an unknown command exits with 1
✅ got: 1
[⚙️ assert] help lists the token inspect command
✅ got: #t
[⚙️ assert] help documents the keyring option
✅ got: #t
[⚙️ assert] help prints the usage banner
✅ got: #t
[⚙️ assert] decrypting without keys fails
✅ got: 1
ℹ️ info - ran 6 tasks in: 0 seconds, 10128 microseconds
running unit tests from file: crypto-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 870051369 (replay with VERITAS_SEED=870051369)
+----------------------------------------------+
[📑 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] zero passes is refused
✅ got: #t
[⚙️ assert] less than 8 KiB per lane is refused
✅ got: #t
[⚙️ assert] zero lanes is refused
✅ got: #t
[⚙️ assert] this libgcrypt provides Argon2
✅ got: #t
[⚙️ assert] a non-bytevector secret is refused
✅ got: #t
[⚙️ assert] a non-integer memory cost is refused
✅ got: #t
[🧪 test] every parameter changes the derived bytes
[⚙️ assert] a different passphrase gives a different tag
✅ got: #f
[⚙️ assert] a different salt gives a different tag
✅ got: #f
[⚙️ assert] a different pass count gives a different tag
✅ got: #f
+----------------------------------------------+
[📑 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 pass count changes the material
✅ got: #t
[⚙️ assert] changing the passphrase changes the material
✅ got: #t
[⚙️ assert] the full key-and-IV length can be derived
✅ got: 48
+----------------------------------------------+
[📑 suite] Authenticated payload hygiene
[🧪 test] the recorded derivation cost is bounded before it is spent
[⚙️ assert] a cost inside the bounds is derived, then fails the tag: the bound is not a blanket refusal
✅ got: #t
[⚙️ 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 lane count above the cap is refused
✅ got: #t
[🧪 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 salt and the nonce are used, not decorative
[⚙️ assert] editing a nonce digit breaks the tag
✅ got: #t
[⚙️ assert] editing a salt digit breaks the tag
✅ got: #t
[⚙️ assert] editing an Argon2id parameter digit is refused
✅ got: #t
[🧪 test] every payload uses a fresh salt and nonce
[⚙️ assert] the recorded nonces differ as well
✅ got: #f
[🧪 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
+----------------------------------------------+
[📑 suite] Key-derivation specifications
[🧪 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] an out-of-range Argon2id memory cost is refused
✅ got: #t
[⚙️ assert] a PBKDF2 cost the OpenSSL format cannot record is refused
✅ got: #t
[⚙️ assert] a string is not a KDF specification
✅ 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
+----------------------------------------------+
[📑 suite] Base64 encoding
[🧪 test] decoding is tolerant of line breaks
[⚙️ assert] a trailing newline is ignored
✅ got: hello
[⚙️ assert] encoding then decoding is lossless
✅ got: hello world
[🧪 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] 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)
[🧪 test] RFC 4648 test vectors
[⚙️ assert] five bytes of input
✅ got: Zm9vYmE=
[⚙️ assert] three bytes of input
✅ got: Zm9v
[⚙️ assert] empty
✅ got:
[⚙️ assert] six bytes of input
✅ got: Zm9vYmFy
[⚙️ assert] one byte of input
✅ got: Zg==
[⚙️ assert] two bytes of input
✅ got: Zm8=
[⚙️ assert] four bytes of input
✅ got: Zm9vYg==
+----------------------------------------------+
[📑 suite] HMAC-SHA256 (RFC 4231)
[🧪 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
[🧪 test] RFC 4231 test case 1
[⚙️ assert] a 20-byte key of 0x0b over "Hi There"
✅ got: b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7
+----------------------------------------------+
[📑 suite] PBKDF2-HMAC-SHA256
[🧪 test] published password/salt vectors
[⚙️ assert] 4096 iterations
✅ got: c5e478d59288c841aa530db6845c4c8d962893a001ce4e11a4963873aa98134a
[⚙️ assert] two iterations
✅ got: ae4d0c95af6b46d32d0adff928f06dd02a303f8ef3c251dfd6e2d85a95474c43
[⚙️ 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] Randomness
[🧪 test] random-bytes returns genuinely fresh bytes
[⚙️ assert] a draw is not all zeroes
✅ got: #t
[⚙️ assert] the requested length is honoured
✅ got: 32
[⚙️ assert] the default length is the OpenSSL salt length
✅ got: 8
[⚙️ assert] two calls do not return the same bytes
✅ got: #t
[⚙️ assert] a draw is not a constant
✅ got: #f
+----------------------------------------------+
[📑 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] Base16 encoding
[🧪 test] decoding accepts both cases
[⚙️ assert] lowercase hex decodes
✅ got: hello
[⚙️ assert] encoding then decoding is lossless
✅ got: hello
[⚙️ assert] uppercase hex decodes too
✅ got: hello
[🧪 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] malformed input is rejected
[⚙️ assert] non-hexadecimal characters raise
✅ success catching error: misc-error: (#f bewaking: malformed hexadecimal input. () #f)
[⚙️ 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)
+----------------------------------------------+
[📑 suite] OpenSSL-compatible sealing
[🧪 test] round-trips
[⚙️ assert] a longer payload round-trips
✅ got: a secret that openssl sealed
[⚙️ assert] the empty string round-trips
✅ got:
[⚙️ assert] one padded block follows the 16-byte Salted__ header
✅ got: 32
[🧪 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] 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] failures are reported rather than ignored
[⚙️ assert] the wrong key raises for OpenSSL-produced data too
✅ got: #t
[⚙️ assert] input that is not Base64 raises
✅ got: #t
[⚙️ assert] a truncated body raises rather than returning garbage
✅ got: #t
[⚙️ assert] the wrong key raises
✅ got: #t
[⚙️ assert] Base64 without a Salted__ header raises
✅ got: #t
[🧪 test] a fixed-salt vector matches OpenSSL byte for byte
[⚙️ assert] and it decrypts back
✅ got: bewaking
[⚙️ assert] the ciphertext of a known salt and key
✅ got: U2FsdGVkX18AAQIDBAUGByAGpafcjamTQUX3eOyvQUE=
+----------------------------------------------+
[📑 suite] Sealed payloads (key derivation is recorded)
[🧪 test] an Argon2id payload round-trips and resists the wrong key
[⚙️ assert] another key does not
✅ got: #t
[⚙️ assert] the same key opens it
✅ 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] 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] openssl-decrypt refuses what the OpenSSL CLI could not read
✅ got: #t
[⚙️ assert] kdf-decrypt opens payloads produced by OpenSSL
✅ got: #t
[🧪 test] sizes and headers are validated
[⚙️ assert] a 16-byte PBKDF2 salt is refused
✅ got: #t
[⚙️ assert] an 8-byte Argon2id salt is refused
✅ got: #t
[⚙️ assert] a payload with no known header is refused
✅ got: #t
[🧪 test] an Argon2id payload records its derivation and parameters
[⚙️ assert] the lane count is recorded
✅ got: 1
[⚙️ assert] the memory cost is recorded, in KiB
✅ got: 8192
[⚙️ assert] the header names the derivation
✅ got: Argon2id
[⚙️ assert] the pass count is recorded
✅ got: 1
+----------------------------------------------+
[📑 suite] Authenticated payloads (AES-256-GCM)
[🧪 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] a payload sealed without it does not open with it
✅ got: #t
[⚙️ assert] associated data is optional: empty means none
✅ 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
[🧪 test] hexadecimal that stands for bytes decodes to bytes
[⚙️ assert] base16->bytes returns a bytevector
✅ got: #t
[⚙️ assert] and keeps the raw octets, which base16-decode cannot
✅ got: 255
[🧪 test] the payload records which derivation to use
[⚙️ assert] the pass count is recorded
✅ got: 1
[⚙️ assert] PBKDF2 is identified by its own id
✅ got: 1
[⚙️ assert] the lane count is recorded
✅ got: 1
[⚙️ assert] the memory cost is recorded, in KiB
✅ got: 8192
[⚙️ assert] Argon2id is identified by a different id
✅ got: 2
[🧪 test] the tag refuses every alteration
[⚙️ assert] a truncated payload is refused
✅ got: #t
[⚙️ assert] different associated data is refused
✅ got: #t
[⚙️ assert] a flipped ciphertext digit is refused
✅ got: #t
[⚙️ assert] the wrong key is refused
✅ got: #t
[⚙️ assert] an unknown key-derivation id is refused, not guessed at
✅ got: #t
[⚙️ assert] a flipped tag digit is refused
✅ got: #t
ℹ️ info - ran 13 tasks in: 0 seconds, 21245 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 870051369 (replay with VERITAS_SEED=870051369)
+----------------------------------------------+
[📑 suite] Web chapter: keys, rotation and revocation
[🧪 test] keys stay secret and distinct, which is the whole requirement
[⚙️ assert] nor does the signing key
✅ got: #f
[⚙️ assert] the encryption key does not appear in the token
✅ got: #f
[⚙️ assert] swapping the two keys does not open the session
✅ 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] 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
[⚙️ assert] an old token still opens: nothing to migrate
✅ got: #t
+----------------------------------------------+
[📑 suite] Web chapter: protecting a route
[🧪 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 browser route refuses a route the user may not use
✅ got: 302
[⚙️ assert] the API route answers 401 rather than 403-by-omission
✅ got: 401
[⚙️ assert] the permission the user does have is enough
✅ got: #t
[⚙️ assert] the helper returns #f, not a partially authorized payload
✅ got: #f
[🧪 test] every failure mode is a refusal, never an admission
[⚙️ assert] a tampered 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 cookie that is not a real envelope is refused
✅ got: 302
[⚙️ assert] an empty cookie is refused
✅ got: 302
[⚙️ assert] arbitrary text is refused
✅ got: 302
[⚙️ assert] a request with no cookie is redirected to /login
✅ got: 302
[⚙️ assert] and it admits the *second* user, not the first
✅ got: u-2
[🧪 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] an expired session is refused, and sign-out clears the cookie
[⚙️ assert] sign-out redirects to the login page
✅ got: 302
[⚙️ assert] the deletion cookie expires immediately
✅ got: 0
[⚙️ assert] and the helper returns #f for it
✅ got: #f
[⚙️ assert] a token whose payload lifetime has passed is refused
✅ got: 302
[⚙️ assert] sign-out deletes the cookie, the only cleanup there is
✅ got:
[🧪 test] the signed-in user is admitted
[⚙️ assert] the thunk's 'email' came back as 'owner-email'
✅ got: joe@example.com
[⚙️ assert] the browser route runs the handler
✅ got: 200
[⚙️ assert] the handler sees the owner id from the payload
✅ got: u-1
[⚙️ assert] and 'name' came back as 'owner-name'
✅ got: Joe
[⚙️ assert] and its own payload expiry
✅ got: #t
[⚙️ assert] permissions travel inside the token
✅ got: (read-only access-files)
[⚙️ assert] the payload carries its own token id
✅ got: #t
[🧪 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 API route admits the header token
✅ got: 200
[⚙️ assert] the granted permissions are what the token says
✅ got: (read-only access-files)
+----------------------------------------------+
[📑 suite] Web chapter: sealed objects as stateless state
[🧪 test] an expired link is refused by the server, not by the client
[⚙️ assert] before the expiry the link opens
✅ got: ((user . u-1) (action . reset-password))
[⚙️ assert] after the expiry the server refuses it
✅ got: #f
[⚙️ assert] and the header says so, for the log
✅ got: #t
[🧪 test] the link answers only to the key that sealed it
[⚙️ assert] a link sealed elsewhere does not open here
✅ got: #f
[🧪 test] a password-reset link round-trips with no table row
[⚙️ 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 hour-long lifetime is recorded in the header
✅ got: #t
[⚙️ 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
+----------------------------------------------+
[📑 suite] Web chapter: auditing what is safe to log
[🧪 test] the envelope header is readable with no keys at all
[⚙️ assert] a fresh session is not expired
✅ got: #f
[⚙️ assert] the version is reported for the log
✅ got: BWK3
[⚙️ assert] the key id is reported, which is what rotation is keyed on
✅ got: default
[⚙️ assert] the audit output carries no key material
✅ got: #f
[⚙️ 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] an unparseable cookie yields no metadata
✅ got: #f
[⚙️ assert] a malformed BWK3 value yields no metadata
✅ got: #f
[⚙️ assert] a missing cookie yields no metadata
✅ got: #f
[🧪 test] an expiry is reported as a time, and its absence as nothing
[⚙️ assert] the audit reports no envelope expiry by default
✅ got: #f
[⚙️ assert] a token sealed with a TTL records its expiry
✅ got: #t
[⚙️ assert] and the audit helper agrees it is live
✅ got: #f
+----------------------------------------------+
[📑 suite] Web chapter: sign-in seals a session into a cookie
[🧪 test] a verified user gets a sealed session cookie
[⚙️ 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] (b) Secure keeps it off plain HTTP
✅ got: #t
[⚙️ assert] (d) the cookie's lifetime matches #:token-validity-seconds
✅ got: 604800
[⚙️ assert] (c) path "/" applies the cookie to the whole site
✅ got: /
[⚙️ assert] sign-in redirects, as the README's controller does
✅ got: 302
[⚙️ assert] (a) HttpOnly puts the cookie out of reach of JavaScript
✅ got: #t
[🧪 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] a wrong password is a plain 401
✅ got: 401
[⚙️ assert] no session is created for a failed sign-in
✅ got: #f
[⚙️ assert] the failure is reported, not swallowed
✅ got: invalid credentials
ℹ️ info - ran 5 tasks in: 0 seconds, 10871 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.1792837655.-.01609c4b748e8e290cd578084da8967861d74d9d31b00feb73fdd389ca60f3c38ee78fd36e71b3d71ddc6c8f3840d08c37d21980bd5cbcccc3faf5b6c1b1431cead3063c0f1d328eb586c56b738d8a198428e7eabd2b28d2004357059d4510dbbeb72b92ba53af63586c180b58651a551281406984652de14c25ab44564e0051d80e82274b644ac97ed034867d2003bc16f5ef53a702d93b38edbe0d06b105c42dd1d73762e4c73c43b59fc9fcd750c1d3decddd60c7cd13fb24500d2d8ec68f9e4b8635a4f37022149f0e25373c77c0bacf365147c7ea6d27856c61ddd60b1fdd8828208b07f6727e4a2439c1f5fc3a53e7593043e6c3466bff13dfa296433cdcc5d39ee7f366b48ef5b2f4c1548fdc2fcdd98a47beae1bd8dd62efff775b55a9df9688760ee53dfe45ae20292b794fbb423759fd74f936d4e9f0665cfb6c6ddbb498d283ce89f9165c3d33e7f74f8079a2ae61693bde386d6763f8617f747322cf765faa1bf62a6354927b18f4e27f5fb5983ab81141c6435a4d4fedb3f86e2b2b9ffa2e4978ed116d344f8e3c610de999885736919bd88ba7abd2fcb5c71073951f5c39219c59e1b9ef2e07a6ea5d9e9a07cf1123b7fb8ce9ef106f7df4da88f2dbe48b353a6a06aef93cd0005b81f6c42a29fb103d41535bf78f2b1ed628e375d211986eb9aa54d63b3811bdcbca07e1b815940e37f7de5b9d998425601d317e2b4fe77a9304f5733fa1871886d151c80a978aa63c683966b2af4f4b97f62ca8e66ce9ef979fddf33987ae9751adc4d3009980cc3b4ab559af6bbd53aed311b004ec7f44c882cd901a09e078e83fec2f48c03b30d6c9f50ea67d9e299663e38b77fa149c8464bc04480d27fe9279d692e83a53b587a5ea3ba7c7c46f21819d10db7e674b5ebfbfef1208ec7b816cdabd095e90c8956b3b6f0f246c4611c2f863efe9a71f7ce471199551c5a016f3b4c172dc7562c8c21a23b2b73a937c24bbc7f8c5459478ec5c8eebb4ea18fe5934cd0e645b5c03c6473d072834c4d14f5a7a913e672bad7314628706aea80270bdfb2ad61e604b29c39e6ed793d5855bf9fecb868aa519d478554f04f41bfa3f0aabd411ba2b90383dd90648bed5592d84bd0aa5bb03bf0111affa0e66ec2246dd6e3bc18420000f308163c408b5d54cc6ed7bd3333c7b69318935f4554b909af20b7528ee462c6783aa3bf4011044d70d9b22d23a53166272ef6e25fa701453d14a6439d242a9dbcc92cb52f81431223d2c42cb33bd0bd4902fab9f5739e489660a1b2ae2f2951d2b
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.1792837655.-.01213155a5f479384b5a65acc24de69c020ae04d7ca7f089e9ab9d623af5b2695bbb34794adbae2aacec95923fa801e82d00bfb6e8f9bbc466ce6f4a4cb136ca5c51935b6af028106c20f0d8b4275f8fa259b153c1b872f54679e91ca34234f757c628e576c19884e7a4d1ca947c00083e5df02ed4ddd29e2a65415589890a3d7bcffe958498121d619e6762ba95ce3338759577a57bafaa0a756ecc143afeefc01c78e32745f1b30fae67efb2de348aa7145b59af45e5a7749affb778e283c60b4ec5402ecb930076e22df73fb1ddb7358f8ea5659a01983c95aecf1099e33b65091ac3ab97e77e4fe2f67aeabd20bdfe99471ddf220c29c94a18817a28acabac6bd285f36568896cfa73a76f61c48a0e7fab0db9f8f49c9f103212f1ef0bb9953a9bc366461ac9c8c5f9560bac88f48b5f491097ae67afa983d1ae6bcafcc7d92cd825c268cbab1893370fd0c3a95cb5696a6aec6eb816e8e347515d88c8cb681e30bf5f567da05e8117bdda35f445829a657c3a7fef18bd232c4b91d87ea36fd6cdef61222d8b218e8cd51e65261eb27d5da23f866c485c4affca19fef58d428f796935abc319476da08c9d048a6b047931faedbf7304d3a7bb7c2ec6d197c53d8c1a7d5c631881a44df0474c52797e7eef3e26523e88026222f6e619519cc104572ca28dbeae69a53b4875c95b580a80c877f946bd2b2e4194d881c7172e154d094ecea303b912568afa1d2d0526a9681866ba7be8007b360797d88c6807a9501b1f5958440a170bc0e8dce79303899b17c3204a94be0fb34b0ed077237bc785de71dbe92b5cb4fa77bc49d6b4a927e41800e0ef7c7f9b89fd720559779c0779510119c122fb5d696bab2b0b5c4e278acc6663e6591c3b5a2df04057918f4d259cdcbc71b690b622d12db2e5be3c84f22b7b75051f9f53b45ce3dd427958c710c116e3c719d21457479a83ce43a8d8508bdc7f8cf9f8cfe8e0d30e51575e68ae674338b62e3383230759b6b448d29c4b8526146b56000c020e5fca8dd492b04fa294e86ba9a879d918f05542b3d8da1721946ccc1d8b8ce5f71f9bd0ceefea62eb66ab04f21b2ebd897c1679408a75991ac651e075f3945cd2c96fa7846a139ce8e0d17c5117724c43d2c1e06a20bf48a4f3f8dababf217f825f552386c5e080c42e3442905d606ccb0bbfbdebc8cacc3a03690354f71cde886388fd74622f525b133e70d0a4b5814aaffcd55a776f7c4e7f5b075645f652adf65c071192e7d4b73c74cc0a722a835644a78b2cb22ed736bcc09dbaa79b
decoded: ((token-type . bewaking-token) (token-id . 8c8560f1-93d5-41cd-9084-072f1576acc7) (token-created-at . 1792837655) (token-expires-at . 1793442455) (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 870051369 (replay with VERITAS_SEED=870051369)
+----------------------------------------------+
[📑 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 far-future token 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 token whose expiry is in the future is not expired
✅ got: #f
+----------------------------------------------+
[📑 suite] Envelope metadata (key id, created-at, expiry)
[🧪 test] a malformed envelope is rejected
[⚙️ assert] a truncated body is refused
✅ got: #t
[⚙️ assert] a body that is not hexadecimal is refused
✅ got: #t
[⚙️ assert] sealing a non-string plaintext 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 missing body is refused
✅ got: #t
[⚙️ assert] a non-numeric created-at is refused
✅ got: #t
[🧪 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] keyring validity windows enforce rotation
[⚙️ assert] no keyring is needed to read metadata
✅ got: #t
[⚙️ assert] a key before not-before cannot seal data
✅ got: #t
[⚙️ assert] a key inside its window seals and opens
✅ got: #t
[⚙️ assert] a key past not-after cannot open data
✅ 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] metadata is reported without any key
[⚙️ assert] there is no expiry unless one was requested
✅ got: #f
[⚙️ assert] a malformed BWK3 envelope reports no metadata
✅ got: #f
[⚙️ assert] metadata is only read from envelopes
✅ got: #f
[⚙️ assert] the format version is reported
✅ got: BWK3
[⚙️ assert] created-at is a Unix timestamp
✅ got: #t
[⚙️ assert] the key id is reported
✅ got: default
[⚙️ assert] an envelope of a dropped format reports no metadata
✅ got: #f
[🧪 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
[🧪 test] the metadata is authenticated
[⚙️ assert] editing the key id breaks the 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
[⚙️ 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 body breaks the tag
✅ got: #t
[🧪 test] expiry is enforced when opening
[⚙️ assert] enforce-expiry? #f still opens it
✅ got: ttl payload
[⚙️ assert] max-age-seconds enforces a rotation policy
✅ got: #t
[⚙️ assert] an expired envelope is refused
✅ got: #t
+----------------------------------------------+
[📑 suite] Permissions
[🧪 test] has-needed-permissions?
✅ got: #f
✅ got: #t
✅ got: #t
✅ got: #t
✅ got: #f
✅ got: #f
✅ got: #f
✅ got: #t
+----------------------------------------------+
[📑 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] Lossless Token Decryption
[🧪 test] lossless-token
[⚙️ assert] works properly with correct details
✅ got: #t
+----------------------------------------------+
[📑 suite] Garbling and Ungarbling
[🧪 test] garble-ungarble
✅ got: dlrow
✅ got: iubx2lx2acvupklkr1hjjqo1dah841tnt1445b462ycufnpbl19wva0fzpufy0oupbpjwcxnmno295qficaz9hir85upxo5mx2rjmg6ormt6dbpn5il72cems5vgzu5l
✅ got: dlrow olleh
✅ got: w
✅ got: hello world
✅ got: row
✅ got: ow
✅ got: lrow
+----------------------------------------------+
[📑 suite] Sealed envelope (versioned, authenticated)
[🧪 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] 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] 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] and it does not name a configured key id either
✅ 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] 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)
[⚙️ assert] an expired genuine envelope is still told apart, since it authenticated first
✅ got: #f
[⚙️ assert] the refusal is a refusal, not an accidental success
✅ got: #t
[⚙️ assert] nor does it carry any key material
✅ got: #f
[🧪 test] no reader is left for the earlier formats
[⚙️ assert] a BWK2 envelope is not recognised
✅ got: #f
[⚙️ 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 BWK1 envelope is not recognised
✅ got: #f
[⚙️ assert] a BWK1 object is refused likewise
✅ got: #f
[⚙️ assert] a BWK2 token is refused even with the keys that sealed it
✅ 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
[🧪 test] data that is not a BWK3 envelope is refused
[⚙️ assert] a truncated envelope is refused when it is opened
✅ got: #t
[⚙️ assert] an unsupported version raises rather than being guessed at
✅ got: #t
[⚙️ assert] arbitrary text is not an envelope
✅ got: #f
[⚙️ assert] recognition is a version-tag check, not a structure check
✅ got: #t
[⚙️ assert] a bare Base16 object is refused
✅ got: #f
[⚙️ assert] a BWK3 envelope carrying an extra MAC field is refused
✅ got: #t
[⚙️ assert] an unknown envelope version is not recognised
✅ got: #f
[⚙️ assert] a pre-versioning bare Base16 token is refused
✅ got: #f
[🧪 test] tokens and objects are envelopes and reject tampering
[⚙️ assert] a tampered token is rejected
✅ got: #t
[⚙️ assert] generated tokens are enveloped
✅ got: #t
[⚙️ assert] a tampered object is rejected
✅ got: #t
[⚙️ assert] sealed objects are enveloped
✅ got: #t;;; note: source file ./src/bewaking/password.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-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
;;; note: source file ./src/bewaking/cli.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-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/397y8x0mk0blvzc4wq74zszyqf43c6i2-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/397y8x0mk0blvzc4wq74zszyqf43c6i2-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
[🧪 test] seal-envelope and open-envelope
[⚙️ assert] passing a MAC key to open-envelope is refused, not ignored
✅ got: #t
[⚙️ assert] BWK3 is the only version produced and read
✅ got: (BWK3)
[⚙️ assert] the envelope starts with the version tag
✅ got: #t
[⚙️ assert] the plaintext round-trips
✅ got: top secret payload
[⚙️ assert] a wrong signing key fails the cipher check
✅ got: #t
[⚙️ assert] a tampered envelope fails the integrity check
✅ got: #t
[⚙️ assert] the module exposes the current format version
✅ got: BWK3
[⚙️ assert] the result is a versioned envelope
✅ got: #t
[🧪 test] knowing the format is not knowing the plaintext
[⚙️ assert] the plaintext, its Base16 and its Base64 do not appear in the envelope
✅ got: #t
[⚙️ 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)
[🧪 test] editing a genuine envelope never yields a plaintext
[⚙️ assert] and every mutation of a real sealed object too
✅ got: #t
[⚙️ assert] every single-digit mutation of a real envelope is refused
✅ got: #t
[🧪 test] the requested key id is embedded in generated tokens
[⚙️ assert] the token carries the key id
✅ got: #t
[🧪 test] key rotation with a keyring
[⚙️ assert] a keyring seals and opens by key id
✅ got: #t
+----------------------------------------------+
[📑 suite] generate-token
[🧪 test] works properly with correct details
✅ got: #t
+----------------------------------------------+
[📑 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] remaining seconds is positive for a live token
✅ got: #t
[⚙️ assert] remaining seconds is negative for an expired token
✅ got: #t
[⚙️ assert] a freshly generated token is not expired
✅ got: #f
+----------------------------------------------+
[📑 suite] Generic object encryption
[🧪 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)
[🧪 test] encrypt-object and decrypt-object
[⚙️ assert] round-trips a number payload
✅ got: 1234
[⚙️ assert] round-trips a list payload
✅ got: (1 2 3)
[⚙️ assert] round-trips a plain string payload
✅ got: just a string
[⚙️ assert] fails gracefully with a wrong signing key
✅ got: #f
ℹ️ info - ran 10 tasks in: 0 seconds, 14543 microseconds
finished running tests
--------------------------------------------------------------
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
API documentation saved to doc/api
index.texi: warning: must specify a title with a title command or @top
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'
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.