Alexander Graf
9dae649f31
Flush buffer on flush() and flush explicitely after subprocess has ended
...
(cherry picked from commit f16467b984
)
2024-10-17 15:36:22 +00:00
Alexander Graf
5e8fdd4c9e
Filter logs line based and in binary mode without decoding utf-8
...
(cherry picked from commit 4a49234afa
)
2024-10-17 15:36:21 +00:00
Florent Daigniere
0bdb9e1cea
Apply suggestions from code review
...
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com >
(cherry picked from commit cdf8ee8820
)
2024-09-12 15:34:09 +00:00
Florent Daigniere
80427fb77c
Fix #3450
...
(cherry picked from commit a875d7fe6a
)
2024-09-12 15:34:09 +00:00
Florent Daigniere
0e9721b7f9
Untested code that may fix the following:
...
Exception in thread Thread-2 (forward_text_lines):
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run() File "/usr/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/app/venv/lib/python3.12/site-packages/socrate/system.py", line 155, in forward_text_lines
current_line = src.readline()
^^^^^^^^^^^^^^
File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 166: invalid start byte
This was reported in #3398
(cherry picked from commit 61812ac32a
)
2024-09-07 18:45:50 +00:00
Florent Daigniere
6fc97ee2cb
doh2
...
(cherry picked from commit 1917bf7ee4
)
2024-08-11 16:43:16 +00:00
Florent Daigniere
7556df2fa7
Fix CI
...
(cherry picked from commit 616376eb5a
)
2024-08-11 16:43:16 +00:00
Florent Daigniere
b36018e0c1
Handle the case where PROXY_PROTOCOL_25 is set
...
(cherry picked from commit 0ff18c6079
)
2024-08-11 16:43:16 +00:00
Florent Daigniere
2d2e9c4d8a
another
...
(cherry picked from commit c0d0dcf713
)
2024-06-19 17:00:57 +00:00
Florent Daigniere
38b6d360d3
Update system.py
...
promote to log.critical()
2023-11-09 10:26:04 +01:00
Florent Daigniere
e75834f746
Update system.py
...
143 is the standard following SIGTERM
2023-11-09 10:20:42 +01:00
Florent Daigniere
1c26368b37
Add a sigterm handler to make docker go faster
2023-11-07 16:55:24 +01:00
Dimitri Huisman
60b9ff0090
Fixed log filter not filtering out log messages for dovecot/nginx/postfix.
...
Fixed postfix not logging to standard out.
Fixed not all containers logging to journald.
Removed POSTFIX_LOG_FILE functionality. Added documentation on how to achieve the same (log to file) via journald & rsyslogd (see new FAQ entry 'How can I view and export the logs of a Mailu container?').
2023-10-27 14:10:13 +00:00
Florent Daigniere
92e861d4fa
There is no reason not to enable it ourselves.
2023-10-07 10:09:04 +02:00
Florent Daigniere
dd58d51156
change the logic as discussed
2023-10-07 09:45:59 +02:00
Florent Daigniere
3985d1d044
clarify
2023-10-06 14:00:58 +02:00
Dimitri Huisman
0379857ab5
Update core/base/libs/socrate/socrate/system.py
...
Only check for avx2 is required
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com >
2023-10-06 13:51:05 +02:00
Dimitri Huisman
e70db935ec
Hardened malloc also requires AVX2 cpu flag
2023-10-06 10:27:31 +00:00
Florent Daigniere
bbed508e8b
As per review
2023-08-28 11:49:42 +02:00
Florent Daigniere
367fd247cb
Move the cleanup to socrate
2023-08-25 14:38:14 +02:00
Florent Daigniere
21982478fb
warning is enough
2023-04-20 18:01:16 +02:00
Florent Daigniere
281800d946
Try to do the same for ARM64, log a message if we do
2023-04-20 17:59:14 +02:00
Florent Daigniere
ede331f657
LD_PRELOAD may not be in ENV
2023-04-20 17:46:27 +02:00
Florent Daigniere
b6ed4fd83e
fix #2764
2023-04-14 10:09:51 +02:00
Florent Daigniere
7b08232049
Sanitize logs as appropriate
2023-04-13 14:46:12 +02:00
Florent Daigniere
108958cabb
drop privs better
2022-12-23 10:58:06 +01:00
Florent Daigniere
df924b0864
doh
2022-12-19 11:04:25 +01:00
Florent Daigniere
0fa239da11
These tests are not required anymore
2022-12-19 10:43:40 +01:00
Florent Daigniere
e42d029c25
normalize booleans
2022-12-08 17:41:33 +01:00
Florent Daigniere
4e3874b0c1
Enable dynamic resolution of hostnames
2022-12-08 13:00:50 +01:00
Florent Daigniere
6def1b555b
doh
2022-10-31 10:06:55 +01:00
Florent Daigniere
96d9289630
No need to send an extra \n
2022-10-30 22:12:15 +01:00
Florent Daigniere
cdc9b63a46
Guard the message logging too
2022-10-30 21:54:03 +01:00
Florent Daigniere
2a417dbfc2
doesn't belong here
2022-10-30 21:51:29 +01:00
Florent Daigniere
1ce889b91b
Do it the pythonic way
2022-10-30 21:43:34 +01:00
Florent Daigniere
e10527a4bf
This is not used anymore
2022-10-30 21:33:10 +01:00
Florent Daigniere
1ae4c37cb9
Don't do fancy, just re-raise it
2022-10-30 21:25:34 +01:00
Florent Daigniere
5ec4277e1e
Make it async. I'm not sure it's a good idea
2022-10-30 21:11:45 +01:00
Florent Daigniere
cf34be967c
Implement ITERATE
2022-10-30 20:15:10 +01:00
Florent Daigniere
340e359096
doh
2022-10-29 17:13:58 +02:00
Florent Daigniere
076d67b513
follow the protocol
2022-10-29 17:02:52 +02:00
Florent Daigniere
2e467092a2
The newer dovecot sends data podop should ignore
2022-10-29 15:53:55 +02:00
Alexander Graf
a29f066858
Move even more python deps to base image
2022-10-12 16:32:27 +02:00
Alexander Graf
8668b269cd
Add requirements.txt for base image
2022-10-12 16:32:26 +02:00
Alexander Graf
9f511faf64
Merge pull request #8 from NeverBehave/master
...
fix: resolve IPv6 container hostname
2022-10-12 16:32:26 +02:00
Dimitri Huisman
b711f930ef
Merge pull request #9 from vavanade/patch-1
...
fix docstring
2022-10-12 16:32:26 +02:00
Dimitri Huisman
c0066abd01
Merge pull request #6 from micw/log-failed-dns
...
Add logging for failed DNS lookups
2022-10-12 16:32:25 +02:00
kaiyou
f63837b8e1
Update to 0.2.0
2022-10-12 16:32:25 +02:00
kaiyou
68d44201ab
Merge pull request #4 from micw/resolve-host-if-address-not-set
...
Resolve host if address not set
2022-10-12 16:32:25 +02:00
kaiyou
b198fde756
Merge pull request #3 from micw/fix-random-failures
...
Change test hostnames for stable test results
2022-10-12 16:32:25 +02:00