Commit graph

4436 commits

Author SHA1 Message Date
Alexandre Aubin
510e82fa22 quality: fix mypy complaining about types for the 'extras' key in apt resource 2023-06-23 19:08:53 +02:00
Alexandre Aubin
e87ee09b3e postinstall: crash early if the username already exists on the system 2023-06-23 02:30:38 +02:00
Alexandre Aubin
fb4693be39 apps: be able to customize the user-part and domain-part of email when using allow_email on system user 2023-06-20 17:59:09 +02:00
Yann Autissier
f9850a2264
keep fail2ban rules on firewall reload (#1661)
* keep fail2ban rules on firewall reload

reloading firewall flushes all iptables rules to create new ones,
dropping fail2ban rules in the same time.

* restart fail2ban instead of reload

Reloading fail2ban does not create f2b-* iptables rules.
2023-06-20 17:49:04 +02:00
Alexandre Aubin
d69c196fe4
Merge pull request #1670 from Salamandar/apt_packages_list
Allow passing a list in the manifest.toml for the apt resource packages
2023-06-20 17:29:26 +02:00
Nicolas Palix
460e39a2f0 Support multiple TXT entries for TLD
The dig of TXT for @ can returns multiple entries.
In that case, the DNS diagnosis fails.

The modification preserves the handling of DMARC and the likes
which use a single entry and a specfic domain name.

For single entry list, the behavior is preserved.

If mutliple TXT entries are defined for @, only the v=spf1
one is returned.

Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
2023-06-20 15:25:31 +02:00
Alexandre Aubin
8a865daddd apps: add YNH_DEFAULT_PHP_VERSION in app's dict as a boring workaround/fix for apps using YNH_DEFAULT_PHP_VERSION in _common.sh *before* sourcing helpers ... 2023-06-19 16:04:31 +02:00
Alexandre Aubin
ced6d5c975 apps: fix version.parse now refusing to parse legacy version numbers 2023-06-18 15:48:14 +02:00
Alexandre Aubin
29338f79bc apps: don't attempt to del password key if it doesn't exist 2023-06-14 15:48:12 +02:00
Alexandre Aubin
8ac48ee09e Drop deprecated firstname/lastname in user_create/update + also drop old deprecated cert- commands 2023-06-14 08:04:16 +02:00
Alexandre Aubin
efe3ace98d
Merge pull request #1619 from YunoHost/legacy_cleanup
WIP : Legacy cleanup (meant for Bookworm)
2023-06-13 21:36:37 +02:00
Alexandre Aubin
81b96ad6d4 tests: tmp tweaks to adapt for removed deprecated features 2023-06-13 21:30:20 +02:00
Alexandre Aubin
b4dcd0fb22 Merge branch 'bookworm' into legacy_cleanup 2023-06-13 21:30:01 +02:00
Alexandre Aubin
b6ae711dd7
Merge pull request #1666 from eldertek/fix-2090
[fix] Remove deprecated domain_dns_conf
2023-06-13 20:43:35 +02:00
Alexandre Aubin
c4c353843c Unused vars, unhappy linter gods 2023-06-13 14:57:55 +02:00
Alexandre Aubin
8728b2030c Remove migrations/0027_migrate_to_bookworm for now because it's triggering errors on the CI, at least half of it should be reworked, and it should be in a separated PR to target dev(=bullseye) 2023-06-13 14:57:55 +02:00
Alexandre Aubin
d1d6da8fcb Merge branch 'dev' into bookworm 2023-06-13 14:57:44 +02:00
Alexandre Aubin
48ee78afa2 fix tests: my_webapp is using manifest v2 now 2023-06-13 14:48:30 +02:00
Alexandre Aubin
84984ad89a Fix again /var/www/.well-known/ynh-diagnosis/ perms which are too broad and could be exploited to serve malicious files x_x 2023-06-12 17:41:18 +02:00
yunohost-bot
2f982e26a9 [CI] Format code with Black 2023-06-12 00:30:59 +00:00
Tagada
5a2570a5d6 Merge branch 'dev' into bookworm 2023-06-11 00:00:38 +02:00
8caff6a9dc Allow passing a list in the manifest.toml for the apt resource packages 2023-06-10 22:27:39 +02:00
Alexandre Aubin
d42c99835a nginx: use /var/www/.well-known folder for ynh diagnosis and acme challenge, because /tmp/ could be manipulated by user to serve maliciously crafted files 2023-06-09 22:30:32 +02:00
Tagada
fee5375dc4 more verbose logs for user_group _update
fix YunoHost/issues#2193
2023-06-04 23:50:23 +02:00
tituspijean
9cebd2e3fe
Merge pull request #1656 from YunoHost/app_shell 2023-05-30 13:28:15 +02:00
tituspijean
cc167cd92c
Rename ynh_load_app_environment into ynh_spawn_app_shell
Co-authored-by: Florent <florent.git@zeteo.me>
2023-05-24 21:12:06 +00:00
ElderTek
23eaf609da remove deprecated 2023-05-25 00:00:07 +04:00
Alexandre Aubin
c319303612 Merge remote-tracking branch 'origin/dev' into bookworm 2023-05-22 20:58:20 +02:00
Kay0u
f046c291e5
add missing args in tests 2023-05-22 19:32:53 +02:00
tituspijean
2b65913b89
Launch app shell 2023-05-18 19:35:56 +00:00
tituspijean
425670bcfb
Remove useless var declaration in app_shell function 2023-05-18 16:14:50 +00:00
tituspijean
d27e9a9eea
Add ynh_load_app_environment helper 2023-05-18 16:14:49 +00:00
tituspijean
3bb32dc1e4
Init app_shell 2023-05-18 16:14:49 +00:00
axolotle
097cba4b56 tests:options: fix missing data
patching
2023-05-18 14:47:09 +02:00
Alexandre Aubin
3b75485923 tests: somehow using 'Domain' as http header aint supported anymore, gotta use Host 2023-05-16 15:21:27 +02:00
Alexandre Aubin
5b9721eb23 tests: fix bad regex permission test because python3.11 now accepts ++ quantifier, so change the 'bad regex' trick 2023-05-16 15:17:03 +02:00
Alexandre Aubin
5564f7dc12 tests: fix remaining funky mocker.spy 2023-05-16 15:11:51 +02:00
Alexandre Aubin
031c641b77 tests: fix spy on m18n.n which in some cases doesnt work anymore ... not sure why, bit confused ... 2023-05-15 18:51:18 +02:00
Alexandre Aubin
774ac64770 Merge remote-tracking branch 'origin/dev' into bookworm 2023-05-15 17:26:17 +02:00
Alexandre Aubin
ecc4c2bd1c tests: flake8 not happy about escape sequence in comment @_@ 2023-05-15 16:23:09 +02:00
Alexandre Aubin
d0838cbe58 Merge remote-tracking branch 'origin/dev' into bookworm 2023-05-13 19:20:33 +02:00
Alexandre Aubin
8fa823b414 appsv2: fix funky current_version not being defined when hydrating pre-upgrade notifications 2023-05-13 19:07:34 +02:00
Tagadda
691ce5eace fix: python3.11 now supports Possessive Quantifiers regex 2023-05-13 14:37:32 +00:00
yunohost-bot
74f4c1660c [CI] Format code with Black 2023-05-08 14:27:54 +00:00
Tagadda
f617287eb2 woops thanks codeql i guess 2023-05-05 23:58:30 +00:00
Tagadda
de3dd9436c create migration : s/bullseye/bookworm
s/buster/bullseye
yolo, needs some more cleanup
2023-05-05 23:40:17 +00:00
Tagadda
8fb225f3ad remove some legacy pre-bullseye workarounds 2023-05-05 19:16:21 +00:00
Alexandre Aubin
0901298935 bookworm: add php7.x -> php8.2 autopatch 2023-05-05 20:18:19 +02:00
Alexandre Aubin
224f1b1730 firewall: fix upnpc.discover() behavior that somehow now trigger an exception when cant talk to upnp device 2023-05-05 00:09:09 +02:00
Alexandre Aubin
a7350a7eae appsv2/regenconf: prevent set -u to be enabled during regen-conf triggered from inside appsv2 scripts 2023-05-04 17:02:35 +02:00