Commit graph

9902 commits

Author SHA1 Message Date
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
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
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
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
axolotle
6f9203c98c form:FileOption: fix cli file check 2023-11-29 14:09:36 +01:00
axolotle
c5758bcd30 tests:questions: reflect changes of patch_users 2023-11-29 14:08:42 +01:00
Alexandre Aubin
29a452c1d3 ci: warnings about 'not identify correctly the dns zone for domain' driving me crazy² 2023-11-29 00:28:17 +01:00
Alexandre Aubin
a7553501b0 ci: warnings about 'not identify correctly the dns zone for domain' driving me crazy 2023-11-29 00:26:19 +01:00
Alexandre Aubin
60b7f63afa ci: move lint stage as first stage, require invalidcode to pass before running builds 2023-11-29 00:11:33 +01:00
Alexandre Aubin
35c809a726 ci: simplify 'test actionsmap' job, move it to linting 2023-11-28 23:58:50 +01:00
Alexandre Aubin
a0d6c9a032 ci: remove tmp profiling stuff 2023-11-28 23:52:29 +01:00
Alexandre Aubin
e7379a7ec3 ci: whoopsies stages must be declared in the other file 2023-11-28 23:37:40 +01:00