Commit graph

9936 commits

Author SHA1 Message Date
Alexandre Aubin
3aa087ca04 debian/postinst: make sure /etc/yunohost/portal exists 2024-01-01 19:44:13 +01:00
Alexandre Aubin
0a01423408 Merge remote-tracking branch 'origin/dev' into bookworm 2023-12-28 02:57:12 +01:00
Alexandre Aubin
6c3290d8bf Update changelog for 11.2.9.1 2023-12-28 02:46:15 +01:00
Alexandre Aubin
0ed6769fcf helpers/utils: replace the damn ynh_die with a warning when patch fails to apply ... 2023-12-28 02:45:27 +01:00
Alexandre Aubin
f12ed69b7b
Merge pull request #1755 from YunoHost/ci-format-debian/11.2.9
[CI] Format code with Black
2023-12-27 21:03:57 +01:00
yunohost-bot
8952d69e05 [CI] Format code with Black 2023-12-27 19:07:29 +00:00
Alexandre Aubin
57a0e8b8f8 Update changelog for 11.2.9 2023-12-27 19:15:09 +01:00
Alexandre Aubin
7eb1413d09 zgrmbl 2023-12-27 05:09:36 +01:00
Alexandre Aubin
570a22a31c Make linters happy 2023-12-27 04:28:08 +01:00
Alexandre Aubin
61551eb40d Fix tests in CI context / yunohost-api is down and it's expected 2023-12-27 04:24:37 +01:00
Alexandre Aubin
0856f27b46 Unused imports 2023-12-27 03:22:30 +01:00
Alexandre Aubin
665592374d user/password: move to passlib hash.sha512_crypt to generate password hashes to replace deprecated crypt lib 2023-12-27 03:18:48 +01:00
Alexandre Aubin
f505efc8bb password: utils/password.py is not used by ssowat anymore 2023-12-27 02:41:52 +01:00
Alexandre Aubin
7f02fcd985 portalapi/sso: add a first bunch of unit tests 2023-12-27 02:41:24 +01:00
Alexandre Aubin
29cac1791d tests: fix hardcoded domain / typo x_x 2023-12-26 19:00:44 +01:00
Alexandre Aubin
3070e504ad Make rspamd an optional dependency, because rspamd is only necessary when you really care about incoming mail, is resource-heavy, and for some reason some setups cant install libhyperscan which is required by rspamd 2023-12-26 17:52:08 +01:00
Alexandre Aubin
155418409e postfix: fix edge case bug with the sni file when no domain has mail enabled 2023-12-26 17:42:11 +01:00
Alexandre Aubin
351d9361fa sso: use PCRE regexes instead of LUA regex 2023-12-23 20:40:20 +01:00
Alexandre Aubin
609c3911d3
Merge pull request #1754 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-12-23 19:35:00 +01:00
Kuba Bazan
6fa59bfd5c Translated using Weblate (Polish)
Currently translated at 40.2% (315 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-12-23 19:34:26 +01:00
xabirequejo
ca354cd827 Translated using Weblate (Basque)
Currently translated at 99.1% (775 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-12-23 19:34:26 +01:00
Josue-T
a729c78379
apps: add mailbox/IMAP support for apps that declared a system user with mail enabled (#1745)
* Add missing account registration for apps in postfix

* Also set email on dovecot DB

* fix undefined var

* Fix missing username format config in dovecot
2023-12-23 19:34:22 +01:00
Alexandre Aubin
7e7a6845d5 portal-api: improve handling of ldap interfaces 2023-12-22 01:11:49 +01:00
Alexandre Aubin
2be1dccb91 mypy doesn't like the function attribute trick 2023-12-22 00:34:15 +01:00
Alexandre Aubin
6022be5ff1 Prevent unecessary import resulting in catastrophies + lazy-load the session secrets 2023-12-22 00:25:08 +01:00
Alexandre Aubin
38b3cfddd8 quality: make linter gods happy 2023-12-22 00:00:49 +01:00
Alexandre Aubin
c19e2b7b19 auth/portal/acl: allow admins to log on any main domain 2023-12-21 23:52:04 +01:00
Alexandre Aubin
746433c5d1 Whoopsies 2023-12-21 19:48:57 +01:00
Alexandre Aubin
d0f1d9201c auth/portal/acl : add 'user is allowed for domain X' mechanism, such that users can't log in or add mail aliases for a domain they aint allowed to access. The fact that they are able to access a domain is derived from the fact that they have access to at least one app on that domain (actually .. we may want to bypass this check for admins, otherwise this is gonna be hella confusing for fresh intalls). 2023-12-21 18:36:15 +01:00
Alexandre Aubin
20d914fd10 Update 'ssowat conf regenerated' message to reflect that SSO and portal are two slightly different thing 2023-12-21 17:28:38 +01:00
Alexandre Aubin
9a45a6ccf2 auth/quality: replace os.path stuff with Path from pathlib 2023-12-21 17:18:06 +01:00
selfhoster1312
4284cd5d10
Only warn that mailbox is disabled for admins (#1739)
* Only warn that mailbox is disabled for admins

* Requality warning about "disabled mail perm for user" as debug

---------

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2023-12-21 15:35:16 +01:00
Alexandre Aubin
5daf33f58e
Merge pull request #1750 from YunoHost/allow-dots-in-username
Allow dots in usernames
2023-12-21 15:28:04 +01:00
Alexandre Aubin
308ed0e174 Refactor ynh_use_logrotate madness 2023-12-21 15:14:56 +01:00
Alexandre Aubin
4ce101b5c6 More boring warnings 2023-12-19 20:30:18 +01:00
Alexandre Aubin
c57a7a4cf0 Zrgrml 2023-12-19 20:08:41 +01:00
Alexandre Aubin
3922ba9c68 Implement similar cookie mechanism for admin api (compared to portal) with static secret (cookies aint invalidated by api restart) and rolling session validity 2023-12-19 20:01:40 +01:00
Alexandre Aubin
83df4d9ff0
Merge pull request #1753 from YapWC/enh-2287-allow-dots-in-username
[enh] Update user.py
2023-12-19 03:25:31 +01:00
YapWC
5738526349
Update user.py
Allowed dots to be used in creating username
2023-12-19 10:13:03 +08:00
ljf (zamentur)
770fdb6861 [fix] First source patches failure doesn't stop app script 2023-12-15 11:06:57 +01:00
Alexandre Aubin
c0337bf1ef logs: Ignore boring java warning 2023-12-13 15:10:30 +01:00
Alexandre Aubin
830d7b47e0 systemutils: when checking debian version and system arch, redirect stderr to /dev/null to prevent stupid issues, for example when the current working dir doesnt exist anymore.. 2023-12-13 13:15:55 +01:00
Alexandre Aubin
d1022b1a6c Merge remote-tracking branch 'origin/dev' into bookworm 2023-12-12 15:12:13 +01:00
Alexandre Aubin
05ea37d694 lazy-load crypt which is a deprecated lib to avoid having DepreciationWarnings all over the place 2023-12-12 15:11:32 +01:00
axolotle
1d734b5df5 form: fix SelectOption's choices coercing list to dict 2023-12-12 12:17:19 +01:00
Alexandre Aubin
64c616076f i18n: fix fucked up <code> tags 2023-12-11 11:48:55 +01:00
Alexandre Aubin
8e3e788842 ynh_setup_source: properly handle --keep for directories when the dir already exists in the new setup 2023-12-10 12:07:39 +01:00
Alexandre Aubin
9489d200b2 Update changelog for 11.2.8.2 2023-12-09 18:26:43 +01:00
Alexandre Aubin
54a6a1b3d2 Aleks forgot to remove pdb.set_trace ... 2023-12-09 18:26:02 +01:00
Alexandre Aubin
207ebbb27f Allow dots in usernames 2023-12-09 17:20:41 +01:00