Commit graph

10010 commits

Author SHA1 Message Date
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
Alexandre Aubin
fa848c376f
Merge pull request #1749 from YunoHost/ci-format-debian/11.2.8.1
[CI] Format code with Black
2023-12-09 16:36:40 +01:00
yunohost-bot
0a7b5fb0ba [CI] Format code with Black 2023-12-09 15:12:51 +00:00
Alexandre Aubin
457289d6ca Update changelog for 11.2.8.1 2023-12-09 15:57:03 +01:00
Alexandre Aubin
33774ce625
Merge pull request #1747 from YunoHost/ci-format-debian/11.2.8
[CI] Format code with Black
2023-12-09 15:55:59 +01:00
Alexandre Aubin
63d1b5f7fa
Merge pull request #1748 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-12-09 15:55:39 +01:00
Christian Wehrli
2828b76364 Translated using Weblate (German)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2023-12-09 15:54:22 +01:00
Alexandre Aubin
169c921444 Fix change_url again, otherwise the lack of path_url default to the old path and fucks up the nginx regen 2023-12-09 15:54:04 +01:00
Alexandre Aubin
9809de65f8 tests: fix permission tests 2023-12-08 09:10:03 +01:00
Alexandre Aubin
3765349436 tests: fix boring warning about domain_a.dev/domain_b.dev during permissions tests 2023-12-08 09:00:17 +01:00
Alexandre Aubin
fb52083b09 tests: more debug attempt + remove the boring 'other_domain' for many test where we don't really care about second domain yet this slow things stuff ... 2023-12-07 16:39:27 +01:00
Alexandre Aubin
8351d88da1 ci: yolotry to add more info to debug issue with sso check 2023-12-07 15:53:01 +01:00
axolotle
2db709e043 i18n: add domain configpanel help keys in expected keys + add/remove some keys 2023-12-07 14:28:08 +01:00
axolotle
544fe85773 i18n: rename pydantic errors + register in form file 2023-12-07 14:26:01 +01:00
axolotle
5563fd8ca0 tests:backuprestore: let hooks gracefully fake exec except 'restore' 2023-12-07 13:49:47 +01:00
yunohost-bot
f436057d27 [CI] Format code with Black 2023-12-05 19:51:58 +00:00
Alexandre Aubin
38db30cd70 Update changelog for 11.2.8 2023-12-05 19:22:34 +01:00
Alexandre Aubin
857a285b5a
Merge pull request #1746 from YunoHost/fix_change_url
helpers: Further simplify the change url helper
2023-12-05 19:17:42 +01:00
Alexandre Aubin
8c475d0a7b
Further simplify ynh_change_url_nginx_config 2023-12-05 19:01:17 +01:00
axolotle
878944c7c1 form: fix pattern can be None 2023-12-02 17:24:42 +01:00
axolotle
dad366da61 Merge branch 'dev' into bookworm 2023-12-01 18:46:39 +01:00
axolotle
cdc703a48f form: add pydantic errors translations 2023-12-01 18:25:22 +01:00
axolotle
719ffe387e tests:options: add small test for pattern 2023-12-01 18:24:29 +01:00
axolotle
3f320a2358 portal:auth: samesite=None in dev mode 2023-11-30 14:04:13 +01:00
Josué Tille
fe3416aa02
Set domain with new_domain and path with new_path 2023-11-29 15:02:47 +01:00
Josué Tille
570184ac1e
Fix change url 2023-11-29 14:55:26 +01:00
axolotle
246c513796 portal:auth: remove touch in delete_session_cookie 2023-11-29 14:32:11 +01:00