Use rustls exclusively for Telegram #3

Merged
pawel merged 1 commit from furina/rustls-only into main 2026-08-24 10:05:44 +00:00
Collaborator

The new Alpine-built image received Telegram updates but repeatedly failed outbound SendMessage and GetUpdates requests with OpenSSL ssl/tls alert bad record mac. teloxide was configured with its rustls feature while default features still enabled native-tls, so the runtime was actually using statically linked OpenSSL.

This disables teloxide default features, preserves macros and Ctrl-C handling explicitly, selects rustls only, removes OpenSSL build packages and lockfile dependencies, and makes the container build locked. It also prevents branch workflow dispatches from reaching the privileged deploy job; only main may deploy.

Validation: local cargo check passed and the branch image built successfully in Forgejo Actions: https://git.pjw.lol/pawel/shopping-bot/actions/runs/7. The live Deployment has been temporarily rolled back to the previously working Docker Hub image.

The new Alpine-built image received Telegram updates but repeatedly failed outbound `SendMessage` and `GetUpdates` requests with OpenSSL `ssl/tls alert bad record mac`. `teloxide` was configured with its `rustls` feature while default features still enabled `native-tls`, so the runtime was actually using statically linked OpenSSL. This disables teloxide default features, preserves macros and Ctrl-C handling explicitly, selects rustls only, removes OpenSSL build packages and lockfile dependencies, and makes the container build locked. It also prevents branch workflow dispatches from reaching the privileged deploy job; only `main` may deploy. Validation: local `cargo check` passed and the branch image built successfully in Forgejo Actions: https://git.pjw.lol/pawel/shopping-bot/actions/runs/7. The live Deployment has been temporarily rolled back to the previously working Docker Hub image.
furina force-pushed furina/rustls-only from a4f0ea9c41 to 1d0b98277e 2026-08-24 09:47:29 +00:00 Compare
pawel merged commit 0e90304741 into main 2026-08-24 10:05:44 +00:00
pawel deleted branch furina/rustls-only 2026-08-24 10:05:44 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pawel/shopping-bot!3
No description provided.