Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bookworm + Portal rework #1657

Merged
merged 563 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
563 commits
Select commit Hold shift + click to select a range
dda095d
Cleanup legacy
alexAubin Jan 27, 2024
8bd2104
Moar lazy loading
alexAubin Jan 27, 2024
6e85323
Unused imports
alexAubin Jan 27, 2024
cc97efa
helpers: remove pre-4.2 behavior for default file/folders permissions
alexAubin Jan 30, 2024
d9daf11
helpers: fix pattern to wait for when fail2ban is starting/reloading
alexAubin Jan 30, 2024
18df4bb
ssowatconf: replace use_remote_user_var_in_nginx_conf with protect_ag…
alexAubin Jan 30, 2024
61a43df
Cleanup unused code
alexAubin Jan 30, 2024
fc048f8
tests/sso: fix redirect test, gotta explicitly tell python to not fol…
alexAubin Jan 30, 2024
80d6a6f
tests: fix/add tests for SSO
alexAubin Jan 30, 2024
c9a4838
tests/sso: add tests for subdomain and secondary 'main' domain
alexAubin Jan 31, 2024
e682fe9
apps/portalconf: use description from local manifest + cases where th…
alexAubin Jan 31, 2024
b4b55fa
Fix empty catalog test
alexAubin Jan 31, 2024
133ce6e
Fix permission test
alexAubin Jan 31, 2024
ddbd367
Fix app resource test
alexAubin Jan 31, 2024
ec8594a
Zgrombpf
alexAubin Jan 31, 2024
b427783
Make linter happy
alexAubin Jan 31, 2024
9a7ec30
configpanel: improve debugging/error message when pydantic fails to v…
alexAubin Feb 3, 2024
6a3c77e
auth: restrict cookies to the appropriate api
alexAubin Feb 3, 2024
69cc634
webadmin: add cache config for app logos
alexAubin Feb 3, 2024
ca83553
portal: serve app logos from an sso-specific route (to keep separatio…
alexAubin Feb 3, 2024
98701eb
regenconf: the 'plain' subfolder thing for nginx conf is annoying, fl…
alexAubin Feb 3, 2024
41da1da
nginx: remove old 'yunohost_panel.conf' stuff
alexAubin Feb 3, 2024
ce52910
regenconf: remove unecessary/inconsistent check that script is ran as…
alexAubin Feb 3, 2024
ceace62
regenconf: factorize nginx regenconf a bit
alexAubin Feb 3, 2024
402327d
regenconf: factorize all the dirs/perm stuff in the yunohost hook
alexAubin Feb 3, 2024
a47321e
Typo
alexAubin Feb 3, 2024
6958ea3
regenconf: more factorizing in yunohost hook
alexAubin Feb 3, 2024
8823ef0
nginx: can't really delete the old yunohost_panel.conf.inc because it…
alexAubin Feb 3, 2024
f248086
nginx: nevermind applogos caching, nowadays nginx/browsers automatica…
alexAubin Feb 3, 2024
c77d05e
portal: store custom logos in a /usr/share/yunohost/customassets, and…
alexAubin Feb 3, 2024
7f1dd86
Typo :|
alexAubin Feb 3, 2024
99e2521
Dafuq Aleks, we do need to send the SSO cookie on all route not just …
alexAubin Feb 4, 2024
76be0ee
Update 15-nginx: typo >_>
alexAubin Feb 5, 2024
11cabc0
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Mar 14, 2024
96494cb
apps: simplify env creation for config panel script, _make_environmen…
alexAubin Mar 14, 2024
7d640f8
ci: autoblack is now a github workflow
alexAubin Mar 14, 2024
2a4d5bf
helpers/configpanel: fix assumption claquée au sol that $install_dir …
alexAubin Mar 20, 2024
10c6c80
Return auth cookie valid for whole main domain.
orhtej2 Mar 26, 2024
458221e
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Apr 10, 2024
26bead7
Merge branch 'migrate-to-bookworm' into bookworm
alexAubin Apr 10, 2024
2e3b4ae
perf: add cache for system utils that fetch debian_version, debian_ve…
alexAubin Apr 10, 2024
cc39fca
Merge branch 'dev' into bookworm
alexAubin Apr 10, 2024
7a077b5
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Apr 11, 2024
3182aa8
Merge branch 'dev' into bookworm
tituspijean Apr 20, 2024
5e406a5
Allow users to access their own domain portal without app permission
selfhoster1312 May 6, 2024
2d8cd9f
Merge pull request #1822 from selfhoster1312/portal-without-apps
alexAubin May 7, 2024
582350c
mail: attempt to move to opendkim instead of rspamd for dkim signing/…
alexAubin May 7, 2024
4769242
Yolodraft: handle metronome as an app
alexAubin May 11, 2024
dc5c432
Merge pull request #1809 from orhtej2/fix_sso_domain
alexAubin May 18, 2024
42d2f78
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin May 19, 2024
c02933c
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin May 19, 2024
d4ef646
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin May 19, 2024
7674ba5
[fix] Forbidden keywords config panel
zamentur May 21, 2024
b233ce1
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin May 22, 2024
7c71bd8
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jun 4, 2024
46372a0
dns+certs: add a new cert_alternate_names hook + improve custom_dns_r…
alexAubin Jun 8, 2024
4077881
Merge remote-tracking branch 'origin/bookworm' into handle-metronome-…
alexAubin Jun 8, 2024
1e527a8
Merge pull request #1831 from YunoHost/handle-metronome-as-an-app
alexAubin Jun 9, 2024
d225992
Update certificate.py: typo @_@
alexAubin Jun 9, 2024
37c9908
Update certificate.py: moar typo @_@
alexAubin Jun 9, 2024
cff8905
Remaining metronome trick to cleanup
alexAubin Jun 9, 2024
2e59393
ldap/permissions: add a migration to delete the legacy xmpp.main perm
alexAubin Jun 9, 2024
caa26ee
tests: remove old reliances on xmpp.main
alexAubin Jun 9, 2024
bb4f9cc
Merge remote-tracking branch 'origin/migrate-to-bookworm' into bookworm
alexAubin Jun 10, 2024
e13e9bc
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jun 13, 2024
b661356
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jun 29, 2024
9cf8a7b
Test resources with influxdb instead of yarn that is installed by def…
Salamandar Jun 30, 2024
b523089
Merge pull request #1887 from YunoHost/fix_yarn_test
alexAubin Jun 30, 2024
8366e4b
Merge branch 'migrate-to-bookworm' into bookworm
alexAubin Jul 3, 2024
1a85521
Didnt realize this line could be removed during previous merge
alexAubin Jul 3, 2024
4b8506f
Add migration for postgresql 13->15 after migrating to bookworm
alexAubin Jul 3, 2024
3d05ff1
Cleanup old migrations
alexAubin Jul 3, 2024
edaffcf
Adapt venv-rebuild migration for bookworm
alexAubin Jul 3, 2024
30c512f
Fix i18n messages for bullseye->bookworm
alexAubin Jul 3, 2024
5429885
Fix i18n strings?
alexAubin Jul 3, 2024
7f7bafb
Merge branch 'migrate-to-bookworm' into bookworm
alexAubin Jul 6, 2024
6120a5a
YunoHost has a hard dependence on python 3.11 because of type hints s…
alexAubin Jul 6, 2024
c818318
Gotta depend on python3-jinja2 >= 3.0 to prevent issues with markupsaf
alexAubin Jul 6, 2024
4f7fa32
ssowatconf: change auth_header from None to false
kay0u Jul 11, 2024
3a06241
Merge pull request #1905 from YunoHost/auth_header-to-false
alexAubin Jul 11, 2024
128df3d
Update services.yml
alexAubin Jul 11, 2024
262a3c5
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jul 15, 2024
f16011a
Remove reference to rspamd, rspamd is to become an app
alexAubin Jul 15, 2024
5244317
Rename 0027_migrate_to_bookworm.py.disabled -> 0027_migrate_to_bookwo…
alexAubin Jul 15, 2024
6638ee3
Remove trick to force checking for migration 0027 strings
alexAubin Jul 15, 2024
daa4c39
debian: remove dependency to redis-server
alexAubin Jul 15, 2024
946d228
cleanup: we probably don't need to keep the super-legacy service entr…
alexAubin Jul 15, 2024
443eac4
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jul 16, 2024
03a5c3d
Ensure postgresql is upgraded to 15.
Salamandar Jul 16, 2024
91f747e
log.py: fix listing of log files
Salamandar Jul 16, 2024
9a0960d
log.py: use os.path.join instead
Salamandar Jul 16, 2024
6453d15
bullseye->bookworm: fix the /var/log/yunohost/operations folder migra…
alexAubin Jul 17, 2024
0ade9d0
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jul 17, 2024
609748e
mail: Make sure to restart opendkim after regenconf
alexAubin Jul 17, 2024
b9178e7
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jul 17, 2024
88b11be
mail: fix opendkim assuming mails arent authenticated because of miss…
alexAubin Jul 17, 2024
4211497
Update regenconf.py: cleanup legacy rspamd and metronome hash entries
alexAubin Jul 18, 2024
505e3db
ci: fallback to bookworm branch for build such that even on PR on top…
alexAubin Jul 22, 2024
03def5b
appconfig panel: new values were replaced by default values
kay0u Jul 23, 2024
a069cda
fix permission test
kay0u Jul 23, 2024
f547ac2
Merge pull request #1919 from YunoHost/fix-appconfig-panel
alexAubin Jul 23, 2024
970e2e2
services: redis ain't installed by default anymore on yunohost
alexAubin Jul 25, 2024
d0ce8cc
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jul 25, 2024
9a6ad19
apps/ssowat: fix default value for auth_header and protect_against_ba…
alexAubin Jul 26, 2024
ccfea31
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jul 26, 2024
a1e63a1
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jul 26, 2024
6f1e341
Update changelog for 12.0.1
alexAubin Jul 26, 2024
7b50c4e
remove redis regen conf too
kay0u Jul 30, 2024
eb1d715
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Jul 30, 2024
0503a38
bullseye->bookworm: add a trick to flag the migration as done if it's…
alexAubin Jul 30, 2024
7a45675
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Aug 1, 2024
54fd311
Update changelog for 12.0.2
alexAubin Aug 1, 2024
656e5c7
ci: Fix test_permission_propagation_on_ssowat ?
alexAubin Aug 5, 2024
bc93a2e
portalapi: we don't need absolute URLs for app logos ? (This ain't wo…
alexAubin Aug 5, 2024
cdf443c
portalapi: fix portal_user_intro not being sent when authenticated, h…
alexAubin Aug 5, 2024
24fb877
portail/domain settings: Improve explanation about search engine
alexAubin Aug 5, 2024
279f332
domain settings: add a title to the Email section to have a separatio…
alexAubin Aug 5, 2024
9e93130
ci: fix auth header test?
alexAubin Aug 5, 2024
44920d8
ci: fix test_sso_basic_auth_header now that the default is with-passw…
alexAubin Aug 5, 2024
fe9a4fb
ci: new image names, now using 'shared' image build process with the …
alexAubin Aug 7, 2024
0598182
ci: Merp, explicitly use python3
alexAubin Aug 7, 2024
14ee49f
ci: really aleks
alexAubin Aug 7, 2024
a9e71e8
ci: fix missing image name for i18n job
alexAubin Aug 8, 2024
7f2da0a
ci: tweaks to try to run build/lints into a 'permanent' container (no…
alexAubin Aug 8, 2024
94594e5
ci: try skipping diagnosis during upgrade to speed things up a bit?
alexAubin Aug 8, 2024
d639e1c
ci: ignore boring warning 'Could not identify correctly the dns zone …
alexAubin Aug 8, 2024
cb6778c
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Aug 8, 2024
66049a2
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Aug 8, 2024
69b9055
ci: also get rid of those old temporary nginx restart for debug
alexAubin Aug 8, 2024
3318159
ci: hmmm temporarily(?) enable debug during postinstall to investigat…
alexAubin Aug 13, 2024
4f3b9df
ci: try to generate partial coverage data arterfact during tests, whi…
alexAubin Aug 13, 2024
98731ba
ci: merp?
alexAubin Aug 13, 2024
5a6a915
ci: force coverage file to have a different name per job ?
alexAubin Aug 13, 2024
55e7e79
ci: yoloattempt to combine the coverage reports
alexAubin Aug 13, 2024
87c30dd
ci: fix indent?
alexAubin Aug 13, 2024
2fe2442
ci: try to fix coverage remembering absolute path instead of relative…
alexAubin Aug 13, 2024
4fc9290
ci: speedup git clone for test_apps using --depth 1
alexAubin Aug 14, 2024
fd040b8
ci: drop unused option --yunodebug in pytest conftest
alexAubin Aug 14, 2024
0bbc14f
ci: when running pytest, make sure that 'import yunohost' will load t…
alexAubin Aug 14, 2024
ace7dd1
ci: remove tmp --debug, issue was due to hideproc failing to enable b…
alexAubin Aug 14, 2024
2976e7b
ci: moar fixes to get the pytest import right ? x_x
alexAubin Aug 14, 2024
4ee8d4e
ci: fix mypy complains
alexAubin Aug 14, 2024
1ba75df
quality: add type hints to user.py
alexAubin Aug 14, 2024
4a03cdc
quality: unused import é_è
alexAubin Aug 14, 2024
d4f39da
quality: zblerg type must exist in runtime too, but using the classna…
alexAubin Aug 15, 2024
611846a
quality: similar to previous commit...
alexAubin Aug 15, 2024
efce7f9
Fix weird typing issue breaking runtime ~_~
alexAubin Aug 15, 2024
fe1c04f
quality: fix type confusion + mypy not actually checking the function…
alexAubin Aug 15, 2024
2ef5b24
tests: moar friskies
alexAubin Aug 15, 2024
603c64e
portal: fix extra app tiles not being displayed, gotta use the perm i…
alexAubin Aug 17, 2024
a6b7ba8
portal/sso: with the public app page, fix the root of the domain not …
alexAubin Aug 17, 2024
8f63656
portal: allow to configure custom CSS from the domain config panel
alexAubin Aug 18, 2024
748a20d
portal: change the way the new 'public apps' page in the portal is co…
alexAubin Aug 18, 2024
8311314
portal: add proper i18n string + help for new settings
alexAubin Aug 18, 2024
560dac1
domain: reorder config panel sections
alexAubin Aug 18, 2024
9973cc7
Update config_domain.toml: propagate change in theme list from yunoho…
alexAubin Aug 20, 2024
ff03885
i18n: add i18n for domain and global config panel and sections
alexAubin Aug 20, 2024
16e8205
quality/typing: missing type import
alexAubin Aug 20, 2024
f37bfca
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Aug 27, 2024
70a5bbc
zblerg
alexAubin Aug 27, 2024
36ffa13
merp
alexAubin Aug 27, 2024
2cc1e72
apps/config panel: fix _compute_binds + _dump_options_types_and_binds…
alexAubin Aug 28, 2024
72a13c7
ja ja typing stuff gneugneugneu
alexAubin Aug 28, 2024
317a7f9
resources: Workaround for duplicate yarn repository
Aug 30, 2024
dd1853e
Merge pull request #1888 from YunoHost/fix_repo_extra_yarn
alexAubin Aug 30, 2024
d6167c5
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Aug 31, 2024
0496cad
Update changelog for 12.0.3
alexAubin Aug 31, 2024
daefc56
Add yunohost-portal to the --version output
kay0u Sep 1, 2024
5edb8bd
Merge pull request #1946 from YunoHost/add-portal-version
alexAubin Sep 1, 2024
2577fb1
certificate: check if domain dns records as a wildcard
Axolotle Sep 9, 2024
8d1fd9c
domain: add `install_letsencrypt_cert` option to domain_add
Axolotle Sep 9, 2024
012cd49
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Sep 9, 2024
d5d6fb8
fix(domain): `custom_css` may not be in the the form when changing ot…
Axolotle Sep 10, 2024
4507361
postinstall: add CLI TOS acknowledgement
Axolotle Sep 11, 2024
ed67d14
domain: add CLI TOS acknowledgement for dyndns domain addition
Axolotle Sep 11, 2024
78d0ab7
i18n: add TOS related translation keys
Axolotle Sep 11, 2024
96a6b1f
tos: wording
alexAubin Sep 12, 2024
3746226
tos: add a skip_tos for domain_add to solve the fact that the ToS que…
alexAubin Sep 12, 2024
8c1813f
tos: add migration to advertise the ToS for existing installs
alexAubin Sep 12, 2024
521fb65
Unused import @_@
alexAubin Sep 12, 2024
fada3ce
certificate: check topest parent domain has dns wildcard
Axolotle Sep 13, 2024
f578c9f
domain_add: first install selfsigned cert before trying to install le…
Axolotle Sep 13, 2024
ad690b9
cert_status: allow API to get all domains cert status with `*`
Axolotle Sep 13, 2024
eb11214
lint: fix
Axolotle Sep 13, 2024
6c0a5b9
configpanels: pass config object to `_apply`
Axolotle Sep 15, 2024
0c8fef1
configpanels: add `get_panel` and `get_section` method to `ConfigPane…
Axolotle Sep 15, 2024
de49711
dns: fix special-use tld registrar infos
Axolotle Sep 15, 2024
f101118
dns: raise validation error on `domain_dns_push` for special-use tld
Axolotle Sep 15, 2024
9afb454
domain: make dns registrar auth infos optional + add `use_auto_dns` b…
Axolotle Sep 15, 2024
bdffa19
domain: Also remove `managed_dns_records_hashes` in settings which ar…
Axolotle Sep 15, 2024
e6324e3
fix: missing config param in settings ConfigPanel._apply
Axolotle Sep 15, 2024
f19b6f8
configpanels: fix boolean option in context evaluation for custom yes…
Axolotle Sep 15, 2024
d2481c8
Merge pull request #1949 from YunoHost/enh-tos
alexAubin Sep 16, 2024
59b7cd6
Update src/domain.py
alexAubin Sep 16, 2024
c05bdbc
Merge pull request #1951 from YunoHost/enh-auto-dns
alexAubin Sep 16, 2024
0b5d886
Update src/domain.py
alexAubin Sep 16, 2024
1fad0e9
Merge branch 'bookworm' into enh-domain-add-subdomain
alexAubin Sep 16, 2024
dfb9321
Merge pull request #1936 from YunoHost/enh-domain-add-subdomain
alexAubin Sep 16, 2024
1755dd6
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Sep 16, 2024
a332400
Update changelog for 12.0.4
alexAubin Sep 16, 2024
9d49f9b
fix: allow secondaries instances of apps_that_need_external_auth_mayb…
nathanael-h Sep 18, 2024
3c302fb
Merge pull request #1954 from nathanael-h/bookworm
alexAubin Sep 18, 2024
cebd886
domain_add: fix missing translation param
Axolotle Sep 20, 2024
0e99a0b
Update changelog for 12.0.4.1
alexAubin Sep 25, 2024
d0005e6
fix: backup and restore portal settings
Tagadda Sep 26, 2024
654d748
Allow bypassing the terms of services at postinstall time
Salamandar Oct 11, 2024
6c36401
Merge pull request #1966 from YunoHost/bypass_tos
alexAubin Oct 12, 2024
05bc707
Fix: terms and services should be terms of services...
Salamandar Oct 11, 2024
bc7f942
Empty commit to trigger Gitlab builds
Salamandar Oct 22, 2024
9f8674a
Fix py311-lint
Salamandar Oct 22, 2024
cb4fc00
Merge pull request #1977 from YunoHost/lint
alexAubin Oct 22, 2024
deeabfa
portal: fix cookie validity issues by defining 'maxage' + re-setting …
alexAubin Oct 22, 2024
a18a177
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Oct 22, 2024
60e6426
Fix ldap_ynhuser: missing is_dev variable
Salamandar Oct 22, 2024
b008d52
Fix tox linting (whitespace)
Salamandar Oct 22, 2024
f7896b7
Fix i18n: missing calls to m18n, missing keys in en.json
Salamandar Oct 22, 2024
21cf649
Merge pull request #1978 from YunoHost/fix_i18n
alexAubin Oct 23, 2024
6a09245
i18n: more fikses, missing translation for authenticator strings
alexAubin Oct 23, 2024
f15d272
auth: turns out 'maxage' is 'max_age' in bottle 12.x
alexAubin Oct 23, 2024
d5827ed
#2445: Pass email, username and fullname as header for ssowat
Josue-T Oct 23, 2024
4105df9
helpersv2.1/fail2ban: Fix reload-or-restart match line
Salamandar Oct 24, 2024
aab61f5
Fix ihatemoney API that needs basic auth workaround
Salamandar Oct 24, 2024
a67caa4
Merge pull request #1984 from YunoHost/ihatemoney
alexAubin Oct 24, 2024
da23d81
Fix owncloud API that needs basic auth workaround
Salamandar Oct 24, 2024
415b5a6
Avoid to pass the full headers keys in the cookie
Josue-T Oct 25, 2024
7f117b0
fix confirmation during postinstall
kay0u Oct 27, 2024
6c435a5
Update domain.py: fix TOS confirmation during domain add with dyndns
alexAubin Oct 27, 2024
4e91742
Apply suggestions from code review
alexAubin Oct 27, 2024
efabf32
fstrings ftw
alexAubin Oct 27, 2024
3ae3423
cosmetics
alexAubin Oct 27, 2024
240e6a4
Merge pull request #1981 from YunoHost/auth_headers
alexAubin Oct 29, 2024
cd36757
helpers/nginx: yoloremove the REMOTE_USER lines from app's conf becau…
alexAubin Oct 29, 2024
d9f59f3
configpanel: better error message when uploading a file from unsuppor…
alexAubin Oct 29, 2024
0b336f1
Annnd forgot the -i
alexAubin Oct 29, 2024
2a5fa9d
portal: add multiple tiling themes
Axolotle Oct 29, 2024
197b3a5
Merge pull request #1986 from YunoHost/enh-portal-tiling
alexAubin Oct 29, 2024
554bd6b
fix(portal): portal_tile_theme not optional
Axolotle Oct 29, 2024
f64cc3f
fix(domain): allow custom css removal
Axolotle Oct 29, 2024
0da8730
i18n(portal): add portal_tile_theme translation key
Axolotle Oct 29, 2024
aa27af6
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Oct 29, 2024
d709468
Update changelog for 12.0.5
alexAubin Oct 29, 2024
7822abc
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Oct 30, 2024
09fe0b3
Update changelog for 12.0.5.1
alexAubin Oct 30, 2024
593bd30
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Oct 30, 2024
1427c79
Update changelog for 12.0.5.2
alexAubin Oct 30, 2024
ab7bbef
typo in generate-helpers-doc
kay0u Oct 30, 2024
9d24a07
Merge branch 'dev' into bookworm
tituspijean Oct 30, 2024
debd916
Update changelog for 12.0.5.3
tituspijean Oct 30, 2024
1f0a7ca
Merge remote-tracking branch 'origin/dev' into bookworm
alexAubin Oct 31, 2024
94ad04b
Update changelog for 12.0.6
alexAubin Oct 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitlab/ci/doc.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ generate-helpers-doc:
image: "before-install"
needs: []
before_script:
- apt-get update -y && apt-get install git hub -y
- git config --global user.email "[email protected]"
- git config --global user.name "$GITHUB_USER"
script:
Expand Down
13 changes: 6 additions & 7 deletions .gitlab/ci/lint.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,41 @@
########################################
# later we must fix lint and format-check jobs and remove "allow_failure"

lint39:
lint311:
stage: lint
image: "before-install"
needs: []
allow_failure: true
script:
- tox -e py39-lint
- tox -e py311-lint

invalidcode39:
invalidcode311:
stage: lint
image: "before-install"
needs: []
script:
- tox -e py39-invalidcode
- tox -e py311-invalidcode

mypy:
stage: lint
image: "before-install"
needs: []
script:
- tox -e py39-mypy
- tox -e py311-mypy

black:
stage: lint
image: "before-install"
needs: []
before_script:
- apt-get update -y && apt-get install git hub -y
- git config --global user.email "[email protected]"
- git config --global user.name "$GITHUB_USER"
- hub clone --branch ${CI_COMMIT_REF_NAME} "https://$GITHUB_TOKEN:[email protected]/YunoHost/yunohost.git" github_repo
- cd github_repo
script:
# create a local branch that will overwrite distant one
- git checkout -b "ci-format-${CI_COMMIT_REF_NAME}" --no-track
- tox -e py39-black-run
- tox -e py311-black-run
- '[ $(git diff | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit
- git commit -am "[CI] Format code with Black" || true
- git push -f origin "ci-format-${CI_COMMIT_REF_NAME}":"ci-format-${CI_COMMIT_REF_NAME}"
Expand Down
1 change: 0 additions & 1 deletion .gitlab/ci/test.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.install_debs: &install_debs
- apt-get update -o Acquire::Retries=3
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
- pip3 install -U mock pip pytest pytest-cov pytest-mock pytest-sugar requests-mock tox ansi2html black jinja2 "packaging<22"

.test-stage:
stage: test
Expand Down
1 change: 0 additions & 1 deletion .gitlab/ci/translation.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ autofix-translated-strings:
image: "before-install"
needs: []
before_script:
- apt-get update -y && apt-get install git hub -y
- git config --global user.email "[email protected]"
- git config --global user.name "$GITHUB_USER"
- hub clone --branch ${CI_COMMIT_REF_NAME} "https://$GITHUB_TOKEN:[email protected]/YunoHost/yunohost.git" github_repo
Expand Down
8 changes: 2 additions & 6 deletions bin/yunomdns
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,8 @@ def main() -> bool:
)
continue

# Only broadcast IPv4 because IPv6 is buggy ... because we ain't using python3-ifaddr >= 0.1.7
# Buster only ships 0.1.6
# Bullseye ships 0.1.7
# To be re-enabled once we're on bullseye...
# ips: List[str] = interfaces[interface]["ipv4"] + interfaces[interface]["ipv6"]
ips: List[str] = interfaces[interface]["ipv4"]
# Broadcast IPv4 and IPv6
ips: List[str] = interfaces[interface]["ipv4"] + interfaces[interface]["ipv6"]

# If at least one IP is listed
if not ips:
Expand Down
7 changes: 3 additions & 4 deletions conf/dovecot/dovecot.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ protocols = imap sieve {% if pop3_enabled == "True" %}pop3{% endif %}
mail_plugins = $mail_plugins quota notify push_notification

###############################################################################

# generated 2020-08-18, Mozilla Guideline v5.6, Dovecot 2.3.4, OpenSSL 1.1.1d, intermediate configuration
# https://ssl-config.mozilla.org/#server=dovecot&version=2.3.4&config=intermediate&openssl=1.1.1d&guideline=5.6
# generated 2023-06-13, Mozilla Guideline v5.7, Dovecot 2.3.19, OpenSSL 3.0.9, intermediate configuration
# https://ssl-config.mozilla.org/#server=dovecot&version=2.3.19&config=intermediate&openssl=3.0.9&guideline=5.7

ssl = required

Expand All @@ -32,7 +31,7 @@ ssl_dh = </usr/share/yunohost/ffdhe2048.pem

# intermediate configuration
ssl_min_protocol = TLSv1.2
ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
ssl_prefer_server_ciphers = no

###############################################################################
Expand Down
10 changes: 5 additions & 5 deletions conf/nginx/security.conf.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ ssl_session_cache shared:SSL:50m; # about 200000 sessions
ssl_session_tickets off;

{% if compatibility == "modern" %}
# generated 2020-08-14, Mozilla Guideline v5.6, nginx 1.14.2, OpenSSL 1.1.1d, modern configuration
# https://ssl-config.mozilla.org/#server=nginx&version=1.14.2&config=modern&openssl=1.1.1d&guideline=5.6
# generated 2023-06-13, Mozilla Guideline v5.7, nginx 1.22.1, OpenSSL 3.0.9, modern configuration
# https://ssl-config.mozilla.org/#server=nginx&version=1.22.1&config=modern&openssl=3.0.9&guideline=5.7
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
{% else %}
# Ciphers with intermediate compatibility
# generated 2020-08-14, Mozilla Guideline v5.6, nginx 1.14.2, OpenSSL 1.1.1d, intermediate configuration
# https://ssl-config.mozilla.org/#server=nginx&version=1.14.2&config=intermediate&openssl=1.1.1d&guideline=5.6
# generated 2023-06-13, Mozilla Guideline v5.7, nginx 1.22.1, OpenSSL 3.0.9, intermediate configuration
# https://ssl-config.mozilla.org/#server=nginx&version=1.22.1&config=intermediate&openssl=3.0.9&guideline=5.7
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
ssl_prefer_server_ciphers off;

# Pre-defined FFDHE group (RFC 7919)
Expand Down
10 changes: 5 additions & 5 deletions conf/postfix/main.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ smtpd_tls_chain_files =
tls_server_sni_maps = hash:/etc/postfix/sni

{% if compatibility == "intermediate" %}
# generated 2020-08-18, Mozilla Guideline v5.6, Postfix 3.4.14, OpenSSL 1.1.1d, intermediate configuration
# https://ssl-config.mozilla.org/#server=postfix&version=3.4.14&config=intermediate&openssl=1.1.1d&guideline=5.6
# generated 2023-06-13, Mozilla Guideline v5.7, Postfix 3.7.5, OpenSSL 3.0.9, intermediate configuration
# https://ssl-config.mozilla.org/#server=postfix&version=3.7.5&config=intermediate&openssl=3.0.9&guideline=5.7

smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
Expand All @@ -41,10 +41,10 @@ smtpd_tls_mandatory_ciphers = medium
# not actually 1024 bits, this applies to all DHE >= 1024 bits
smtpd_tls_dh1024_param_file = /usr/share/yunohost/ffdhe2048.pem

tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
{% else %}
# generated 2020-08-18, Mozilla Guideline v5.6, Postfix 3.4.14, OpenSSL 1.1.1d, modern configuration
# https://ssl-config.mozilla.org/#server=postfix&version=3.4.14&config=modern&openssl=1.1.1d&guideline=5.6
# generated 2023-06-13, Mozilla Guideline v5.7, Postfix 3.7.5, OpenSSL 3.0.9, modern configuration
# https://ssl-config.mozilla.org/#server=postfix&version=3.7.5&config=modern&openssl=3.0.9&guideline=5.7

smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1, !TLSv1.2
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1, !TLSv1.2
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
yunohost (12.0.0) unstable; urgency=low

- Tmp changelog to prepare Bookworm

-- Alexandre Aubin <[email protected]> Thu, 04 May 2023 20:30:19 +0200

yunohost (11.1.22) stable; urgency=low

- security: replace $http_host by $host in nginx conf, cf https://github.com/yandex/gixy/blob/master/docs/en/plugins/hostspoofing.md / Credit to A.Wolski (3957b10e)
Expand Down
25 changes: 10 additions & 15 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: yunohost
Section: utils
Priority: extra
Maintainer: YunoHost Contributors <[email protected]>
Build-Depends: debhelper (>=9), debhelper-compat (= 13), dh-python, python3-all (>= 3.7), python3-yaml, python3-jinja2
Build-Depends: debhelper (>=9), debhelper-compat (= 13), dh-python, python3-all (>= 3.11), python3-yaml, python3-jinja2
Standards-Version: 3.9.6
Homepage: https://yunohost.org/

Expand All @@ -14,9 +14,9 @@ Depends: ${python3:Depends}, ${misc:Depends}
, python3-psutil, python3-requests, python3-dnspython, python3-openssl
, python3-miniupnpc, python3-dbus, python3-jinja2
, python3-toml, python3-packaging, python3-publicsuffix2
, python3-ldap, python3-zeroconf (>= 0.36), python3-lexicon,
, python3-ldap, python3-zeroconf (>=0.47), python3-lexicon,
, python-is-python3
, nginx, nginx-extras (>=1.18)
, nginx, nginx-extras (>=1.22)
, apt, apt-transport-https, apt-utils, dirmngr
, openssh-server, iptables, fail2ban, bind9-dnsutils
, openssl, ca-certificates, netcat-openbsd, iproute2
Expand All @@ -32,23 +32,18 @@ Depends: ${python3:Depends}, ${misc:Depends}
Recommends: yunohost-admin
, ntp, inetutils-ping | iputils-ping
, bash-completion, rsyslog
, php7.4-common, php7.4-fpm, php7.4-ldap, php7.4-intl
, mariadb-server, php7.4-mysql
, php7.4-gd, php7.4-curl, php-php-gettext
, python3-pip
, unattended-upgrades
, libdbd-ldap-perl, libnet-dns-perl
, metronome (>=3.14.0)
Conflicts: iptables-persistent
, apache2
, bind9
, nginx-extras (>= 1.19)
, openssl (>= 1.1.1o-0)
, slapd (>= 2.4.58)
, dovecot-core (>= 1:2.3.14)
, redis-server (>= 5:6.1)
, fail2ban (>= 0.11.3)
, iptables (>= 1.8.8)
, nginx-extras (>= 1.23)
, openssl (>= 3.1)
, slapd (>= 2.6)
, dovecot-core (>= 1:2.4)
, redis-server (>= 5:7.1)
, fail2ban (>= 1.1)
, iptables (>= 1.8.10)
Description: manageable and configured self-hosting server
YunoHost aims to make self-hosting accessible to everyone. It configures
an email, Web and IM server alongside a LDAP base. It also provides
Expand Down
3 changes: 3 additions & 0 deletions helpers/mysql
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ ynh_mysql_setup_db() {
# If $db_pwd is not provided, use new_db_pwd instead for db_pwd
db_pwd="${db_pwd:-$new_db_pwd}"

# Dirty patch for super-legacy apps
dpkg --list | grep -q "^ii mariadb-server" || { ynh_print_warn "Packager: you called ynh_mysql_setup_db without declaring a dependency to mariadb-server. Please add it to your apt dependencies !"; ynh_apt install mariadb-server; }

ynh_mysql_create_db "$db_name" "$db_user" "$db_pwd"
ynh_app_setting_set --app=$app --key=mysqlpwd --value=$db_pwd
}
Expand Down
Loading