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
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
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
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
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
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
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
16391d7374
perf: lazyloading settings_get + pass all the global settings as an env variable to the regenconf to prevent having to 'yunohost settings get' like ten times ... reduces the regenconf runtime from 35s to 23s on my machine
2023-11-28 21:12:03 +01:00
Alexandre Aubin
9a4b0e422d
quality: unused import, missing import
2023-11-28 20:19:06 +01:00
Alexandre Aubin
356c081a4f
portalapi: implement a proper expiration/prolong mechanism for session cookies
2023-11-28 18:40:49 +01:00