Commit graph

10012 commits

Author SHA1 Message Date
Alexandre Aubin
c77d05e693 portal: store custom logos in a /usr/share/yunohost/customassets, and only store the file id which the front should then query as a regular asset 2024-02-03 21:07:45 +01:00
Alexandre Aubin
f248086fb6 nginx: nevermind applogos caching, nowadays nginx/browsers automatically cache static assets with etags etc ? 2024-02-03 20:28:41 +01:00
Alexandre Aubin
8823ef0a2c nginx: can't really delete the old yunohost_panel.conf.inc because it may be included by nginx app confs ~_~ 2024-02-03 20:06:10 +01:00
Alexandre Aubin
6958ea3b0f regenconf: more factorizing in yunohost hook 2024-02-03 20:00:13 +01:00
Alexandre Aubin
a47321e1bc Typo 2024-02-03 19:44:36 +01:00
Alexandre Aubin
402327d6ef regenconf: factorize all the dirs/perm stuff in the yunohost hook 2024-02-03 19:43:13 +01:00
Alexandre Aubin
ceace620da regenconf: factorize nginx regenconf a bit 2024-02-03 18:58:34 +01:00
Alexandre Aubin
ce529107be regenconf: remove unecessary/inconsistent check that script is ran as root... 2024-02-03 18:42:08 +01:00
Alexandre Aubin
41da1daf02 nginx: remove old 'yunohost_panel.conf' stuff 2024-02-03 18:39:25 +01:00
Alexandre Aubin
98701ebdab regenconf: the 'plain' subfolder thing for nginx conf is annoying, flatten things up 2024-02-03 18:36:55 +01:00
Alexandre Aubin
ca835534de portal: serve app logos from an sso-specific route (to keep separation of concern etc) 2024-02-03 18:24:31 +01:00
Alexandre Aubin
69cc6345a5 webadmin: add cache config for app logos 2024-02-03 18:21:02 +01:00
Alexandre Aubin
6a3c77eda1 auth: restrict cookies to the appropriate api 2024-02-03 17:29:19 +01:00
Alexandre Aubin
9a7ec301a6 configpanel: improve debugging/error message when pydantic fails to validate the options etc 2024-02-03 16:51:02 +01:00
Alexandre Aubin
b427783721 Make linter happy 2024-01-31 03:17:21 +01:00
Alexandre Aubin
ec8594a325 Zgrombpf 2024-01-31 03:16:07 +01:00
Alexandre Aubin
ddbd367085 Fix app resource test 2024-01-31 02:43:43 +01:00
Alexandre Aubin
133ce6e6b2 Fix permission test 2024-01-31 02:14:35 +01:00
Alexandre Aubin
b4b55fae54 Fix empty catalog test 2024-01-31 02:09:29 +01:00
Alexandre Aubin
e682fe9abd apps/portalconf: use description from local manifest + cases where the app aint in catalog or has no logo hash 2024-01-31 02:06:29 +01:00
Alexandre Aubin
c9a4838b5a tests/sso: add tests for subdomain and secondary 'main' domain 2024-01-31 01:35:37 +01:00
Alexandre Aubin
80d6a6f08d tests: fix/add tests for SSO 2024-01-31 00:16:26 +01:00
Alexandre Aubin
fc048f804e tests/sso: fix redirect test, gotta explicitly tell python to not follow 302s 2024-01-30 22:59:14 +01:00
Alexandre Aubin
61a43df169 Cleanup unused code 2024-01-30 19:53:32 +01:00
Alexandre Aubin
18df4bbc32 ssowatconf: replace use_remote_user_var_in_nginx_conf with protect_against_basic_auth_spoofing, and basic-with/without-password for the auth_header flag 2024-01-30 19:46:18 +01:00
Alexandre Aubin
d9daf111e6 helpers: fix pattern to wait for when fail2ban is starting/reloading 2024-01-30 19:18:06 +01:00
Alexandre Aubin
cc97efa033 helpers: remove pre-4.2 behavior for default file/folders permissions 2024-01-30 17:06:33 +01:00
Alexandre Aubin
6e85323a8f Unused imports 2024-01-27 18:08:25 +01:00
Alexandre Aubin
8bd2104722 Moar lazy loading 2024-01-27 16:16:14 +01:00
Alexandre Aubin
dda095dc15 Cleanup legacy 2024-01-27 16:13:57 +01:00
Alexandre Aubin
b33a47f27d broken imports ... + more lazy loading 2024-01-27 16:13:37 +01:00
Alexandre Aubin
6a01b657da appscatalog: this 'init' step is overengineered ... let's instead say the nominal case is that there's no apps_catalog.yml defined, and in this case we use the default catalog 2024-01-27 15:51:56 +01:00
Alexandre Aubin
2d42f59377 logs: remove the intermediate useless 'categories' directory, this is triggering me so much 2024-01-27 15:31:10 +01:00
Alexandre Aubin
902e65f9bc domain: don't regen the ssowat conf when changing the main domain (creates an issue during postinstall) 2024-01-27 15:23:22 +01:00
Alexandre Aubin
045869283c portalapi: don't leak the full list of users nor private apps 2024-01-22 21:39:54 +01:00
Alexandre Aubin
16d7f77f91 apps: checking that relevant services are up before app actions: the 'services' key is a super old thing from packaging v1 era, and nowadays mariadb/php/.. are likely to be installed on the fly, not pre-installed on the system anymore. This should be reworked someday 2024-01-22 21:19:56 +01:00
Alexandre Aubin
0796273be3 sso/portal: more tests 2024-01-22 19:52:25 +01:00
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
862e66c17e regenconf/dovecot: make sure the home folder for vmail user is created to prevent a warning 2024-01-14 18:47:17 +01:00
Alexandre Aubin
c9f2bb7911 debian: force the dependency of resolvconf to be about the concrete package, not openresolv/systemd-resolved which apparently nowadays 'provide' resolvconf but with different stuff under the hood ~_~ 2024-01-14 18:19:30 +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
b6c55c9aa6 SSOwat's tile overlay is no more 2024-01-14 17:25:41 +01:00