Commit graph

103 commits

Author SHA1 Message Date
Rodolphe Bréard
a1349f9bc9 Fix the exception handling 2023-04-30 19:08:02 +02:00
Rodolphe Bréard
5814af3960 Test the strict canonicalization method first 2023-04-30 19:02:51 +02:00
Rodolphe Bréard
b46b133302 Add the missing blank lines 2023-04-30 19:02:07 +02:00
Rodolphe Bréard
8dcd3f7a21 Refactor the wait&kill 2023-04-30 18:54:27 +02:00
Rodolphe Bréard
b8800a2336 Test both canonicalization methods 2023-04-30 18:06:24 +02:00
Rodolphe Bréard
54c4398cfd Create the maildir in the start_tests function 2023-04-30 18:04:13 +02:00
Rodolphe Bréard
065b1cb368 Add a second test emails with utf-8 sender name and an image as attachment 2023-04-30 18:03:33 +02:00
Rodolphe Bréard
d0e38a8f2c Set the Maildir mode to 777 2023-04-30 17:25:53 +02:00
Rodolphe Bréard
bad81f79a7 Set the maildir rights to 0777 2023-04-30 17:15:23 +02:00
Rodolphe Bréard
e33d7c26b7 Prevent an infinite loop 2023-04-30 17:08:22 +02:00
Rodolphe Bréard
8e75759a19 Set the hostname 2023-04-30 16:54:57 +02:00
Rodolphe Bréard
17c31ceff0 Use sudo to stop service 2023-04-30 16:43:46 +02:00
Rodolphe Bréard
08378caef1 Stop the opensmtpd service 2023-04-30 16:42:05 +02:00
Rodolphe Bréard
bdef34c55b Removing pipes 2023-04-30 16:30:41 +02:00
Rodolphe Bréard
1fadcde028 Add Black to the CI 2023-04-30 16:20:09 +02:00
Rodolphe Bréard
b7291a2bd4 Add the intagration test to the CI 2023-04-30 16:16:08 +02:00
Rodolphe Bréard
a71faac437 Use sudo to start OpenSMTPD 2023-04-30 16:11:26 +02:00
Rodolphe Bréard
ce3e6f3765 Remove Rust 1.64.0 from the tests 2023-04-30 13:16:08 +02:00
Rodolphe Bréard
964fc2421a Reformat the revocation SQL query 2023-04-30 13:13:14 +02:00
Rodolphe Bréard
7674b26c16 Write an integration test script 2023-04-30 13:06:37 +02:00
Rodolphe Bréard
b860004196 Update the rsa dependency 2023-04-30 11:25:07 +02:00
Rodolphe Bréard
0fe5caa557 Add the signature expiration tag 2023-04-16 20:27:34 +02:00
Rodolphe Bréard
9a4b1d202c Add a man page 2023-04-16 18:37:42 +02:00
Rodolphe Bréard
51e6ecb85c Change the binary name to filter-dkimout 2023-04-16 16:56:32 +02:00
Rodolphe Bréard
b57c98c4ba Update the dependencies' features 2023-04-16 12:14:31 +02:00
Rodolphe Bréard
875a84811e On revocation, display only the key type 2023-04-16 00:14:21 +02:00
Rodolphe Bréard
a83a98cf8d Add two non-regression tests 2023-04-16 00:00:55 +02:00
Rodolphe Bréard
9ecbbdeaac Merge branch 'main' of github.com:breard-r/opensmtpd-filter-dkimout 2023-04-15 23:15:56 +02:00
Rodolphe Bréard
4f1651874f Fix the DKIM header CRLF 2023-04-15 23:13:16 +02:00
Rodolphe Bréard
614bc13bf3 Add more canonicalization tests 2023-04-15 22:07:56 +02:00
Rodolphe Bréard
9c109ed1f6 Re-add the set_header_alg and set_body_alg functions, but only for the tests 2023-04-15 22:07:27 +02:00
Rodolphe Bréard
d78fd34995 Canonicalize the DKIM header 2023-04-15 22:06:35 +02:00
Rodolphe Bréard
2fb6dd7c14 Add the key type in the header 2023-04-15 20:06:15 +02:00
Rodolphe Bréard
cd55e5cb83 Format code 2023-04-15 19:26:18 +02:00
Rodolphe Bréard
7c9cfb300e Remove unused functions 2023-04-15 19:25:51 +02:00
Rodolphe Bréard
0c921e4fdd Do not print the CR 2023-04-15 19:24:35 +02:00
Rodolphe Bréard
08297ac5e0 Sign the message 2023-04-15 19:24:04 +02:00
Rodolphe Bréard
2da4955da0
Set the revocation field when revoking a key 2023-04-11 10:25:16 +02:00
Rodolphe Bréard
39a2186b61 Update examples 2023-04-10 20:07:33 +02:00
Rodolphe Bréard
cc2968849d Continue to use anyhow 2023-04-10 16:29:36 +02:00
Rodolphe Bréard
97fae54252 Use anyhow for error handling 2023-04-10 13:09:56 +02:00
Rodolphe Bréard
372a49262d Publish revoked keys 2023-04-10 12:35:12 +02:00
Rodolphe Bréard
ad6eed4f02 Move SQL queries to the db module 2023-04-10 11:21:53 +02:00
Rodolphe Bréard
4164274ad2 Check keys at least every 3 hours
Doing so will permit to regularly populate the revocation file with the
new entries.
2023-04-10 11:18:11 +02:00
Rodolphe Bréard
d8e668916d Add a published flag to keys 2023-04-10 11:11:00 +02:00
Rodolphe Bréard
d197c16a53 Remove the unused 0BSD license 2023-04-10 11:00:48 +02:00
Rodolphe Bréard
188b7b12c5 Acknowledge the RUSTSEC-2022-0090 advisory 2023-04-10 11:00:05 +02:00
Rodolphe Bréard
01223a5a3b Do not run cargo-deny on windows 2023-04-10 10:58:56 +02:00
Rodolphe Bréard
bbfa08fd75 Use native-tls instead of rustls
Rustls uses ring, which does not declare an SPDX license. Because of
that, cargo deny signals this license as incompatible.

The correct change would be to completely disable TLS since it is
neither used nor needed, however `sqlx` does not currently support that.

https://github.com/launchbadge/sqlx/issues/914
https://github.com/launchbadge/sqlx/issues/1750
2023-04-10 10:52:33 +02:00
Rodolphe Bréard
eb2cce8edb Add an entry to the FAQ regarding manual key revocation 2023-04-10 00:31:22 +02:00