1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00
Mailu/towncrier/newsfragments
bors[bot] 4ff90683ca
Merge #1758 #1776
1758: Implement a simpler credential cache (alternative to #1755) r=mergify[bot] a=nextgens

## What type of PR?

Feature: it implements a credential cache to speedup authentication requests.

## What does this PR do?

Credentials are stored in cold-storage using a slow, salted/iterated hash function to prevent offline bruteforce attacks. This creates a performance bottleneck for no valid reason (see the
rationale/long version on https://github.com/Mailu/Mailu/issues/1194#issuecomment-762115549).

The new credential cache makes things fast again.

This is the simpler version of #1755 (with no new dependencies)

### Related issue(s)
- close #1411
- close #1194 
- close #1755

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file.


1776: optimize generation of transport nexthop r=mergify[bot] a=ghostwheel42

## What type of PR?

bug-fix and enhancement.

## What does this PR do?

Possibly there should be more input validation when editing a relay, but for now this tries to make the best out of the existing "smtp" attribute while maintaining backwards compatibility. When relay is empty, the transport's nexthop is the MX of the relayed domain to fix #1588 

```
RELAY			NEXTHOP						TRANSPORT
empty			use MX of relay domain				smtp:domain
:port			use MX of relay domain and use port	smtp:domain:port
target			resolve A/AAAA of target			smtp:[target]
target:port		resolve A/AAAA of target and use port	smtp:[target]:port
mx:target		resolve MX of target				smtp:target
mx:target:port	resolve MX of target and use port	smtp:target:port
lmtp:target		resolve A/AAAA of target			lmtp:target
lmtp:target:port	resolve A/AAAA of target and use port	lmtp:target:port

target can also be an IPv4 or IPv6 address (an IPv6 address must be enclosed in []: [2001:DB8::]).
```

When there is proper input validation and existing database entries are migrated this function can be made much shorter again.

### Related issue(s)
- closes #1588 
- closes #1815 

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [X] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
2021-06-29 12:15:03 +00:00
..
224.feature DNS records for client autoconfiguration (RFC6186) 2021-02-07 18:50:26 +01:00
1194.feature Implement a simple credential cache 2021-06-04 09:41:12 +02:00
1503.doc Update docs/reverse.rst with Traefik v2+ info 2020-10-01 13:51:19 +03:00
1607.feature add towncrier for #1607 2020-08-30 01:19:42 +02:00
1610.feature add towncrier for 1610 2020-09-01 21:50:21 +02:00
1618.feature add newsfragemnt for #1618 2020-09-12 01:38:37 +02:00
1638.fix Add changelog 2020-09-24 16:53:42 +02:00
1660.bugfix towncrier 2021-03-09 19:47:34 +01:00
1662.feature Improve the towncrier messages 2021-03-09 12:05:46 +01:00
1669.bugfix Fix extract_host_port port separation 2020-10-24 21:52:21 +01:00
1686.bugfix Fix letsencrypt access to certbot for the mail-letsencrypt flavour 2020-11-17 10:26:41 +01:00
1694.feature update newsfragment #1694 2021-06-16 15:01:55 +02:00
1696.misc fix changelog entry from feature to misc 2020-11-23 09:27:55 +02:00
1712.misc Add newsfragment 2020-12-23 18:53:56 +01:00
1720.bugfix Use alpine 3.13 to fix CVE-2020-25275 and CVE-2020-24386 2021-01-15 10:56:49 +01:00
1753.feature Improve the towncrier messages 2021-03-09 12:05:46 +01:00
1760.bugfix Add changelog 2021-02-11 12:12:06 +01:00
1783.misc towncrier 2021-03-09 20:13:31 +01:00
1828.misc Added new docker repo for test image. Adapted deploy script to use env var for test repo name. Modified travis references to github actions references in docs. Added changelog entry. 2021-06-26 19:16:56 +00:00
1830.misc Forgot to set permissions on images folder. Added changelog. 2021-06-27 09:24:17 +00:00
1831.bugfix Add changelog entry 2021-06-19 09:30:32 +02:00
1837.bugfix Add newsfragment 2021-06-29 08:07:43 +00:00