trutz-py3-lib (2.0.24~5.gbp0ff05f) UNRELEASED; urgency=medium

  ** SNAPSHOT build @0ff05f8263d35795a16c76d44372a16c808e2085 **

  ** SNAPSHOT build @c793e7b51fd4656fa626223d701621a7032eba13 **

  * ci: drop hetzner2 delivery, hetzner3 is the only package source [skip ci]
  * ci: stop uploading 32-bit packages to Hetzner1
  * ci: automatische Versionsnummer wie in den anderen Paketen (update-changelog)

  * Update changelog for 2.0.24~1.gbpc793e7 release [skip ci]

  * Quellpaket veröffentlichen und Code für die Veröffentlichung vorbereiten

  * Update changelog for 2.0.24~2.gbp58f886 release [skip ci]

  * ci: source tarball of format 3.0 (native) is tar.xz

  * Update changelog for 2.0.24~3.gbpd20168 release [skip ci]

  * ci: deliver the source package with the binary package (PUBLISH_SOURCE)
  * Update changelog for 2.0.24~4.gbpb14a04 release [skip ci]
  * ci: changelog entries name the company, never a person

 -- Comidio GmbH <info@comidio.de>  Sun, 22 Nov 2026 23:39:44 +0000

trutz-py3-lib (2.0.23) testing; urgency=medium

  * users: Postfach-Benutzer werden ohne Login-Shell angelegt
    (useradd --shell /usr/sbin/nologin). Security-Review 29.10.2026.

 -- Comidio GmbH <info@comidio.de>  Fri, 30 Oct 2026 02:58:01 +0100

trutz-py3-lib (2.0.22) testing; urgency=medium

  * lifecycle: create_mail_user stops with LocalNameConflict before the
    first step when a user of that name already exists on the TrutzBox.
    Until now the first step reserved the address at the OSS with an
    empty fingerprint, the same call as a deregistration: creating an
    existing user a second time removed the key of that user at the OSS.
    The address then counted as inactive, other TrutzBoxes got no key
    for it, and neither mail nor chat from them arrived until the next
    update of trutz-mail registered the key again.

 -- Comidio GmbH <info@comidio.de>  Tue, 13 Oct 2026 02:45:00 +0200

trutz-py3-lib (2.0.21) testing; urgency=medium

  * accounts: the OSS answers 402 with the error text "Service Expired"
    when the service runtime of the account has ended. registerMail raises
    the new ServiceExpired for it, a subclass of PaymentError, so older
    callers keep working.
  * lifecycle: create_mail_user asks the OSS for the service runtime
    (GET /box/) before the first step and stops with ServiceExpired when
    it has ended. No TrutzMail address is created or reactivated then,
    and nothing has to be rolled back. The field "expired" of the OSS
    decides; an OSS without it is judged by the expiration date. An
    unreadable answer never blocks, the OSS decides in that case.

 -- Comidio GmbH <info@comidio.de>  Mon, 12 Oct 2026 20:09:20 +0200

trutz-py3-lib (2.0.20) testing; urgency=medium

  * postinst: restore /etc/comidio/config.ini and comidio_email.pem from
    /usr/share/trutz-py3-lib/defaults when they are missing. dpkg never
    brings back a deleted conffile on upgrade, and without config.ini the
    mail milters and account handling cannot start. Present files are
    never touched. Prepares dropping python3-comidio: trutz-backend now
    depends on trutz-py3-lib, the old package then becomes an unused
    dependency and is removed by unattended-upgrades. No Breaks/Conflicts
    on purpose, unattended-upgrades refuses any upgrade that removes a
    package.

 -- Comidio GmbH <info@comidio.de>  Fri, 25 Sep 2026 22:00:00 +0200

trutz-py3-lib (2.0.19) testing; urgency=medium

  * lifecycle: a failed step no longer hides its cause behind
    RollbackCompleted. After a clean rollback PaymentError, name conflicts,
    OSS authorization, OSS unreachable, Tor and key generation errors keep
    their own type, so accounts.py exits with the matching code and the UI
    names the real reason (address quota used up showed only "creation
    failed, changes rolled back", trutzbox-amd 24.09.2026). The step log
    now shows the exception type.

 -- Comidio GmbH <info@comidio.de>  Thu, 24 Sep 2026 21:53:26 +0200

trutz-py3-lib (2.0.18) testing; urgency=medium

  * keyring: applyCertificateRevocationList() no longer lets any exception
    escape. The three mail milters run it as their ExecStartPre, so a failed
    CRL run stopped router, encryptor and decrypter from starting at all --
    systemd retried every 10s and Postfix answered every mail with 451
    (customer case ar, 22.09.2026). Hardened in detail: a key with stripped
    user ids no longer raises IndexError, a failed gpg delete is logged and
    keeps the old update id for the next run, an unwritable update-id file
    (root-owned by the daily cron) is a warning, and the CRL request has a
    bounded timeout (connect 5s, read 15s, one retry) instead of none.

 -- Comidio GmbH <info@comidio.de>  Wed, 23 Sep 2026 12:00:00 +0200

trutz-py3-lib (2.0.17) testing; urgency=medium

  * keyring: new lookupTrutzMailKey() always asks the OSS for a TrutzMail
    recipient and reports 'imported', 'inactive' (address registered but not
    active, OSS answers 410, e.g. mail runtime expired) or 'unknown' (404).
    The encryptor uses it to stop calling an expired address "not
    registered", and it also replaces a locally cached key that cannot
    encrypt. api: getTrutzMailKeyStatus() returns status and body.

 -- Comidio GmbH <info@comidio.de>  Tue, 22 Sep 2026 19:40:00 +0200

trutz-py3-lib (2.0.16) testing; urgency=medium

  * keyring: stop gpg from looking keys up over the network. The default
    --auto-key-locate local,wkd made dirmngr chase an unknown address over
    WKD; in the mail milters the same default blocked 128s per recipient and
    turned a clear 550 into Postfix' bare 451. Keys reach this module through
    the OSS directory, never from WKD, so the lookup is switched off here too.

 -- Comidio GmbH <info@comidio.de>  Mon, 21 Sep 2026 00:57:43 +0200

trutz-py3-lib (2.0.15) testing; urgency=medium

  * urllib3 2.x (Trixie): remove the long-obsolete strict= keyword from all
    HTTPSConnectionPool call sites (api.py, accounts.py). urllib3 1.26
    (Bookworm) silently ignored it; 2.x raises TypeError, which broke the
    OSS registration and the mail key retrieval/CRL path on Trixie boxes.
    No behaviour change on Bookworm.

 -- Comidio GmbH <info@comidio.de>  Thu, 13 Aug 2026 15:30:00 +0200

trutz-py3-lib (2.0.14) testing; urgency=medium

  * keyring: pass --no-permission-warning on the gpg command line. The
    keyring is owned by postfix on purpose (milters must write it), but many
    callers run as root - every invocation logged "unsafe ownership on
    homedir", burying real messages. The gpg.conf variant cannot work: gpg
    checks the homedir before reading the config inside it.

 -- Comidio GmbH <info@comidio.de>  Wed, 05 Aug 2026 01:50:00 +0200

trutz-py3-lib (2.0.13) testing; urgency=medium

  * tor: serve chat attachments over the existing hidden service. A file
    always sits on the SENDER's box; without this port the reference would
    be a dead address for the other side. Port 80 points at a minimal nginx
    site (trutz-rtc) that serves /file_share and nothing else - same hidden
    service, same onion address, no extra exposure.

 -- Comidio GmbH <info@comidio.de>  Mon, 03 Aug 2026 18:04:28 +0200

trutz-py3-lib (2.0.12) testing; urgency=medium

  * users/lifecycle: keep the chat host and the tor directory in step with
    the mailbox. setupTorHS syncs the prosody onion virtual hosts once the
    address exists (via /usr/lib/trutz-rtc/onion-vhost.sh, tolerated to be
    absent); purgeUser removes the hidden-service directory - including the
    private key - along with the torrc block, so a deleted mailbox no longer
    leaves key material behind nor resurfaces as a chat host on the next
    trutz-rtc update.

 -- Comidio GmbH <info@comidio.de>  Wed, 29 Jul 2026 22:30:00 +0200

trutz-py3-lib (2.0.11) testing; urgency=medium

  * config: honor the /etc/comidio/oss-host override for the OSS Registration
    host. loadConfig() patches [Registration] Host/URL from that file when it
    holds a valid hostname, otherwise keeps the config.ini default. Single
    source of truth shared with trutz-backend (oss-host.ts) and trutz-setup.

 -- Comidio GmbH <info@comidio.de>  Sat, 27 Jun 2026 12:00:00 +0200

trutz-py3-lib (2.0.10) testing; urgency=medium

  * keyring: re-own the keyring (postfix) after every mutating operation so
    the postfix milters can always update it. remove(),
    clearCertificateCache(), applyCertificateRevocationList() and
    tryLoadKey() now call _fix_keyring_perms(), like create() and
    refresh_from_oss() already did. Fixes a root-owned pubring.kbx left by
    the root socketmap daemon (mailmap.service has no User=) and by UI key
    deletion, which broke the decrypter's OSS key refresh (refresh_from_oss).

 -- Comidio GmbH <info@comidio.de>  Sat, 13 Jun 2026 18:05:00 +0200

trutz-py3-lib (2.0.9) testing; urgency=medium

  * keyring: add refresh_from_oss() - fetch the authoritative key from the
    OSS when a sender re-keyed (the in-mail Autocrypt key is never trusted);
    used by the decrypter to heal stale keys safely
  * api: bounded timeout on getTrutzMailKey (called from the milter)

 -- Comidio GmbH <info@comidio.de>  Sat, 13 Jun 2026 15:36:37 +0200

trutz-py3-lib (2.0.8) testing; urgency=medium

  * keyring: record former own keyids at re-key (former-own-keys) and
    persist CRL-revoked fingerprints (revoked-fingerprints) for the
    decrypter milter (Autocrypt key-freshness stage 2)
  * postinst: repair existing root-owned OpenPGP keyrings (chown to
    postfix) so pre-2.0.6 accounts sign/decrypt again after upgrade

 -- Comidio GmbH <info@comidio.de>  Fri, 12 Jun 2026 18:08:14 +0200

trutz-py3-lib (2.0.7) testing; urgency=medium

  * keyring: generate the encryption subkey in the same gen_key_input batch
    (%no-protection) instead of add_subkey(). add_subkey() protected the
    subkey with a passphrase, so the mail milter (decrypts without one)
    failed with "No secret key" on incoming mail once gpg-agent cache was cold.

 -- Comidio GmbH <info@comidio.de>  Tue, 09 Jun 2026 05:39:18 +0200

trutz-py3-lib (2.0.6) testing; urgency=medium

  * keyring: chown OpenPGP keyring to postfix after key writes so the
    postfix-run mail milters can sign/decrypt freshly generated keys
    (regression from the milter User=postfix switch in trutz-mail 35d12a3b)

 -- Comidio GmbH <info@comidio.de>  Mon, 08 Jun 2026 23:08:40 +0200

trutz-py3-lib (2.0.5) testing; urgency=medium

  * Fix key deletion using subprocess instead of python-gnupg
    - Fixes orphaned public keys after user deletion on GnuPG 2.2+
    - python-gnupg 0.4.9 doesn't pass --yes flag reliably

 -- Comidio GmbH <info@comidio.de>  Fri, 31 Jan 2026 21:30:00 +0100

trutz-py3-lib (2.0.4) testing; urgency=medium

  * Add user lifecycle manager with saga pattern for atomic operations
  * Fix keyring.remove() for GnuPG 2.1+ compatibility
  * Add OSS connectivity check before destructive operations
  * Add lifecycle exception types with i18n error codes

 -- Comidio GmbH <info@comidio.de>  Fri, 31 Jan 2026 18:00:00 +0100

trutz-py3-lib (2.0.3) testing; urgency=medium

  * password.check: fix yescrypt salt parsing (include cost parameters)

 -- Comidio GmbH <info@comidio.de>  Sat, 21 Dec 2025 13:30:00 +0100

trutz-py3-lib (2.0.2) testing; urgency=medium

  * password.check: support multiple hash algorithms

 -- Comidio GmbH <info@comidio.de>  Fri, 20 Dec 2025 15:25:00 +0100

trutz-py3-lib (2.0.1) testing; urgency=medium

  * Fix password hashing: replace deprecated crypt.crypt with mkpasswd
  * debian/control: add whois dependency (provides mkpasswd)

 -- Comidio GmbH <info@comidio.de>  Sat, 20 Dec 2025 13:41:43 +0100

trutz-py3-lib (2.0.0) testing; urgency=medium

  * debian/control depend on trutz-abi-64 (>= 63)

 -- Comidio GmbH <info@comidio.de>  Wed, 10 Dec 2025 23:25:13 +0100

trutz-py3-lib (1.0.1) testing; urgency=medium

  * debian/control uses new package names

  * fix /usr/lib/trutz-lib path
  * fix trutzmail -> trutz-mail
  * update cache path trutz-mail

  * debian/control uses new package names

  * fix /usr/lib/trutz-lib path
  * fix trutzmail -> trutz-mail
  * update cache path trutz-mail

 -- Comidio GmbH <info@comidio.de>  Fri, 07 Nov 2025 22:02:13 +0100

trutz-py3-lib (1.0.0) testing; urgency=medium

  * change the package name; Version Bump

 -- Comidio GmbH <info@comidio.de>  Tue, 21 Oct 2025 10:39:51 +0200

python3-comidio (0.0.5) testing; urgency=medium

  * update comidio_email.pem; Version Bump

 -- Comidio GmbH <info@comidio.de>  Fri, 11 Jul 2025 09:48:51 +0100

python3-comidio (0.0.4) testing; urgency=medium

  * fix error in user handling

 -- Comidio GmbH <info@comidio.de>  Sat, 16 Nov 2024 19:48:51 +0100

python3-comidio (0.0.3) testing; urgency=medium

  * debian/control: add python3-pip

 -- Comidio GmbH <info@comidio.de>  Mon, 24 Jun 2024 19:31:51 +0100

python3-comidio (0.0.2) testing; urgency=medium

  * adjust path of GPG_HOME

 -- Comidio GmbH <info@comidio.de>  Fri, 05 Apr 2024 13:31:51 +0100

python3-comidio (0.1) UNRELEASED; urgency=medium

  * Initial release

 -- Comidio GmbH <info@comidio.de>  Mon, 11 Dec 2023 17:23:51 +0000
