Add optional client-certificate authentication (0.1.1) #2
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/imap-blade-mcp!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/mtls-client-cert"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Optional mutual TLS per account, so the blade can authenticate to the companion
imap-blade-relay(Caddy layer-4 IMAPS relay withrequire_and_verifyclient authentication) from a host that cannot open IMAP ports. Version 0.1.1.Two new account keys, both optional and both absolute paths:
client_cert_fileandclient_key_file. The key defaults to the certificate file for a combined PEM. The key file is checked like a credential (regular file, owned by the running user, mode0600) before any socket opens. Nothing else changes: same 11 tools, sametools/listbytes, same output shapes, every v0.1.0 control intact.Evidence
make check: ruff, format,mypy --strict, 171 unit tests, pip-audit clean.tests/test_tls.py::TestClientCertificateagainst a loopback server that requires a client certificate:tls_errorand noLOGINis sent;LOGIN;config_errorbefore any socket opens;client_cert_filealone;client_key_filewithoutclient_cert_fileand relative paths are rejected by the config model.tests/fixtures/tls/client.pem/client.key(CN=bot-client,clientAuth) signed by the existing test CA.Docs
README config reference and comparison row, SECURITY.md threat row, CHANGELOG 0.1.1,
docs/deploy-linux.md§3a (relay client certificate delivery), fixtures README.Open items
imap-blade-relayrepository (local build in progress; repo creation on the forge needs a token withwrite:organization).🤖 Generated with Claude Code