Commit graph

209 commits

Author SHA1 Message Date
Alexandre Aubin
351d9361fa sso: use PCRE regexes instead of LUA regex 2023-12-23 20:40:20 +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
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
d1022b1a6c Merge remote-tracking branch 'origin/dev' into bookworm 2023-12-12 15:12:13 +01:00
Alexandre Aubin
54a6a1b3d2 Aleks forgot to remove pdb.set_trace ... 2023-12-09 18:26:02 +01:00
yunohost-bot
0a7b5fb0ba [CI] Format code with Black 2023-12-09 15:12:51 +00: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
Josué Tille
fe3416aa02
Set domain with new_domain and path with new_path 2023-11-29 15:02:47 +01:00
Alexandre Aubin
356c081a4f portalapi: implement a proper expiration/prolong mechanism for session cookies 2023-11-28 18:40:49 +01:00
axolotle
5b5527a279 app:config: fix indentation for file content 2023-11-28 14:41:38 +01:00
Alexandre Aubin
3dda3bc4d5 perf: improve perf for a bunch of operations by lazy import + lazy define of config-panel related stuff 2023-11-28 14:31:38 +01:00
axolotle
4a270b88b6 quality: fix lint + some formatting 2023-11-26 17:42:48 +01:00
axolotle
d36ca72887 fix: some test apps has empty string domain 2023-11-09 17:40:04 +01:00
axolotle
03fc739b3c domain: add _get_raw_domain_settings to read settings directly + use it in app_info to avoid infinite recursion 2023-11-09 15:49:19 +01:00
axolotle
ec2ffe6813 configpanel: remove unused arg 'config' from _get_raw_settings() 2023-11-09 14:52:58 +01:00
axolotle
bfba939927 Merge remote-tracking branch 'origin/dev' into bookworm 2023-10-31 02:57:26 +01:00
axolotle
9423168aaf configpanels: fix app is_default + dns alert style 2023-10-30 15:17:01 +01:00
axolotle
3a31984e3c configpanel: allow other ConfigPanels to have no settings defined 2023-10-22 17:51:04 +02:00
axolotle
6bef4b1e0e app: remove call of 'domain_config_get' to avoid infinite recursion 2023-10-22 15:48:07 +02:00
axolotle
2a28e289ad form: rework 'hydrate_questions...' with a new 'parse_raw_options' that parse and validate options 2023-10-22 15:48:07 +02:00
axolotle
37b4eb956d typing: add missing type + misc typing fixes 2023-10-22 15:48:06 +02:00
axolotle
15c827908f configpanel: update run_action 2023-10-22 15:46:57 +02:00
axolotle
5f9ea58313 configpanel: update _apply 2023-10-22 15:46:55 +02:00
axolotle
02948ad49c config: rework config+settings getter methods 2023-10-22 15:19:32 +02:00
axolotle
3ff6e6ed96 app: update app_install 2023-10-22 15:13:12 +02:00
axolotle
8d366e67b0 app_ssowatconf: generate per domain portal config with available apps 2023-10-18 18:29:55 +02:00
yunohost-bot
f003565074 [CI] Format code with Black 2023-10-10 02:31:47 +00:00
Alexandre Aubin
a0ce7c2d28 ssowatconf: drop unused redirected_regex mechanism + we don't need the label+show_tile info in ssowat conf anymore 2023-10-07 17:40:06 +02:00
Alexandre Aubin
8036226935 Typo 2023-10-07 17:12:26 +02:00
axolotle
a457f8dbcb app: add "support_purge" to app info 2023-09-29 16:43:29 +02:00
Alexandre Aubin
db30b3acb8
Merge branch 'bookworm' into portal-api 2023-09-27 18:57:02 +02:00
Alexandre Aubin
883bb2b498 Merge remote-tracking branch 'origin/dev' into bookworm 2023-09-27 17:56:48 +02:00
Alexandre Aubin
8a72bac884
Merge pull request #1692 from YunoHost/logging-is-a-mess
Moulinette logging is an unecessarily complex mess, episode 57682
2023-09-27 17:45:21 +02:00
orhtej2
920fe527f4
Allow system users to send mails from IPv6 localhost and in no-IP contexts. 2023-09-07 22:14:06 +02:00
Pierre de La Morinerie
79e41a1e4b
app.py: fix typo in log statement 2023-09-07 16:22:16 +02:00
Alexandre Aubin
07daa68770 apps: BACKUP_CORE_ONLY was not set for pre-upgrade safety backups, resulting in unecessarily large pre-upgrade backups 2023-08-22 15:37:47 +02:00
Alexandre Aubin
576992899c apps: allow to use jinja {% if foobar %} blocks in their notifications/doc pages 2023-08-16 19:18:37 +02:00
Alexandre Aubin
4fda8ed49f apps: fix another case of no attribute 'value' due to config panels/questions refactoring 2023-07-21 22:02:56 +02:00
Tagada
4385c886a4 Merge branch 'dev' into bookworm 2023-07-20 15:49:45 +02:00
Alexandre Aubin
2ece3b65f6 Moulinette logging is an unecessarily complex mess, episode 57682 2023-07-18 00:19:16 +02:00
Alexandre Aubin
781f924e30 apps: hotfix for funky issue, apps getting named 'undefined' 2023-07-17 21:13:34 +02:00
Alexandre Aubin
f69f87fa65 Merge remote-tracking branch 'origin/dev' into portal-api 2023-07-17 18:56:05 +02:00
yunohost-bot
6e63b6fc53 [CI] Format code with Black 2023-07-17 16:00:11 +00:00
Alexandre Aubin
4b582f72df
Merge pull request #1687 from YunoHost/11.2
11.2
2023-07-17 16:11:20 +02:00
Alexandre Aubin
4561f900df portal refactoring: update ssowat conf format with a dict mapping domains to portal urls. For now, let's have one portal per main/parent domain (which is anyway imposed by cookie management unless we reintroduce complex cross-domain authentication...) 2023-07-15 21:20:15 +02:00
Alexandre Aubin
a81a548f76 Unused imports 2023-07-14 19:12:49 +02:00
Alexandre Aubin
d44b09cf12 quality: cleanup unused code 2023-07-14 15:20:13 +02:00
Alexandre Aubin
a1cf770e1b Merge branch 'dev' into portal-api 2023-07-11 17:11:02 +02:00
Alexandre Aubin
7ba6c37eb8 Merge branch '11.2' into bookworm 2023-07-11 15:56:52 +02:00