Commit graph

4436 commits

Author SHA1 Message Date
axolotle
7f53f56471 portal: add app's description + logo from catalog in portal settings 2024-01-19 13:33:24 +01:00
axolotle
56b5670e4c domaiiconfig: add portal search engine option 2024-01-19 13:31:21 +01:00
axolotle
3bb5702855 UrlOption: fix serialize HttpUrl to str in post validator so it can be saved 2024-01-19 13:22:31 +01:00
axolotle
94d16d6d76 configpanels: avoid settings being None when empty 2024-01-19 13:20:45 +01:00
Alexandre Aubin
13638b0aa8 Oopsies 2024-01-14 19:54:09 +01:00
Alexandre Aubin
d41d6549eb legacy: drop autopatching of PHP versions, nowadays Sury is here by default and offers more flexibility over which PHP versions may be installed e.g. even 5.6 can still be installed on Bookworm, but anyway only a ~handful of apps are still using 7.2 or lower 2024-01-14 19:41:54 +01:00
Alexandre Aubin
99ac76e7d6 Drop legacy snippet from the 3.x era 2024-01-14 19:36:03 +01:00
Alexandre Aubin
388c30c40f Drop a bunch of legacy stuff from the 4.x era 2024-01-14 18:58:57 +01:00
Alexandre Aubin
d3b50db951 Unused import 2024-01-14 17:53:57 +01:00
Alexandre Aubin
e2aaf72076 Portal theme is no more as well, now handled on a per-main-domain basis 2024-01-14 17:36:05 +01:00
Alexandre Aubin
0dcecf5f47 Remove rspamd from recommends, replace with a global setting similar to pop3 to enable/disable antispam 2024-01-14 17:19:52 +01:00
Alexandre Aubin
1cbc30e0d5 So the reason the 'enable pop3' thing is not working properly is because the config panel was spitting inconsistent boolean shit like 1, True or 'yes' depending on whatever... 2024-01-14 17:08:24 +01:00
Alexandre Aubin
5975dd4310 Merge remote-tracking branch 'origin/dev' into bookworm 2024-01-14 16:25:02 +01:00
Alexandre Aubin
491588bb88
Merge pull request #1763 from YunoHost/fix-dns-suffix-during-xmpp-cert-setup
Fix DNS suffix edge case during XMPP certificate setup
2024-01-13 19:30:40 +01:00
Alexandre Aubin
54ad8dd2cb
Merge pull request #1761 from YunoHost/small-tools
Add basic-space-cleanup command
2024-01-13 19:29:25 +01:00
Alexandre Aubin
a44ea14141 Update copyright headers to 2024 using maintenance/update_copyright_headers.sh 2024-01-13 19:26:47 +01:00
tituspijean
8ca59703c5
Improve basic-space-cleanup shell calls and documentation 2024-01-13 12:11:05 +01:00
Alexandre Aubin
699500dbb0
Fix DNS suffix edge case during XMPP certificate setup 2024-01-12 22:00:10 +01:00
c8f0f131fd app.py, helpers: Reword YNH_APP_UPGRADE_TYPE
* remove UPGRADE_FULL
* rename DOWNGRADE_FORCED -> DOWNGRADE
* rename UPGRADE_FORCED -> UPGRADE_SAME
* keep the helper ynh_check_app_version_changed behaviour for reverse compatibility.
2024-01-11 10:15:28 +01:00
tituspijean
b920b82f4e
Add basic-space-cleanup command 2024-01-07 22:14:27 +01:00
OniriCorpe
b424ae01c1 document changelog link for latest_github_release 2024-01-04 23:59:02 +01:00
Alexandre Aubin
0a01423408 Merge remote-tracking branch 'origin/dev' into bookworm 2023-12-28 02:57:12 +01:00
yunohost-bot
8952d69e05 [CI] Format code with Black 2023-12-27 19:07:29 +00: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
351d9361fa sso: use PCRE regexes instead of LUA regex 2023-12-23 20:40:20 +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
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
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
YapWC
5738526349
Update user.py
Allowed dots to be used in creating username
2023-12-19 10:13:03 +08:00
fb2ca1f27d Add __ARCH__ and __DEBIAN_VERSION__ to available variables in manifest.toml 2023-12-14 17:30:11 +01:00
7981653c23 Apply __APP__ -> self.app recursively thanks to recursive_apply 2023-12-14 17:30:11 +01:00
dc8f51e2f8 Add a new utils.algorithms file for code helpers.
The first helper, recursive_apply, goes through recursive dict/lists to apply a function on non-recursable types
2023-12-14 17:30:11 +01:00