6911 Commits

Author SHA1 Message Date
James Valleroy
66e09cf04d
Merge remote-tracking branch 'freedombox-team/debian/bullseye-backports' into debian/bullseye-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-10 06:17:08 -05:00
James Valleroy
1f7e49fc88
Release v21.14.1~bpo11+1 to bullseye-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.14.1_bpo11+1
2021-11-27 09:11:28 -05:00
James Valleroy
ed8c9dcf10 freedombox Debian release 21.14.1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmGealUACgkQd8DHXntl
 CAjrrRAAl/x7JeW7tONAc4erFARzVQ4RJzfatGB1oaDOePcHOocMrU3pggUed/cJ
 8NAdwrR87qwnr3iMcB3BlMjHxVGYOVJ0mL2nNx3lhOwOXU0RuN2gjnHUC3EWbXnB
 mSt1tLeBiaDRZuFM10fxzGLEDg5FfXOycfG65AgX2HCeARiXwhRPpX8kZpykSKPa
 AYnrNyIe0Ch01s3oOFkC4xO2v0IXBHon7Np5aX4MqwLheUQfifcVJDb5tUTELoMu
 xHunfgG2oq4XJz9JqWh61Ev53jazUTZs1k2sj5YaqT1ZYriAr1dlOW2AXmGhaask
 KdY9WfeBDM7mesfPW8NOu9CmosYlVf9AT04WbcmFoy/vLr0MTvtSlEhQJHYRXhI0
 QInZhDyU7YJY7jWdt36lPWzmodNFxhgsPePmbIO1jHWUd+03FNI8GzUBUXao1vyd
 X7OnuLdJ/x95ibBlbXwF88J2tWl9ttcPOm3BRcnJkPosVoX6Lz54e30rXiy7hex3
 Ck2+s7vbMXPcj0QzEO18W6cy0cK0z/LvNUblgnoJL3T806TDitJv8A8XaUe9oWZp
 sh0YHnpcoMHP1hK1ylzI1e2Z5SDC6SYRrF4cgtV8ZxwrgQ5grWoHgm6BCSnzwjzY
 bsm40ykc+hGHrgIoD3gNYgfWbHLb3U5sKW3uH1JtB3ZQJrZy1vw=
 =W3wk
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmGiPF8ACgkQd8DHXntl
 CAgxkhAAh+4N+0Zy0DSOSdjecWkfBxwG4lQMRvhCkfBwKxH142o9hGA787b9FUv5
 qjYYAmqIdy31RwhWhpQdSAP7hqhRXzI4D9F95V9/v28P21imOE6n07L95Ny3hc3k
 YPTFWFtWGM5N3M0xtZKl5VBiDnOkdt2GOGR/hDrSl85m95AGzHm56zq7c78eZu91
 gARtNjzNjM2ltZXursCInqi8k/vWD/0nUwl/fWA0N1As14J74iDvsbGpu+e7kARd
 j6nlPU5pg6No8AQ048gZ6NyS3siV5BBob0VklxkSgXWcrhtL0WVrEzE5vTEWNRyr
 Wnyt6mavtH5F6h3m1oknmdPyRf8pP2rTrD3vUFLYNxvbYd8E8v0R/EgfmjE8oaZ3
 LRAuvnjxWiNOr4Dgyd7SeIdxwkjfM4mip7R7ggzWOZbwp7RwvEMuDipomLKODuZu
 cqI3TZC/mNEHrV2/Jd8aoYGfR3clV7LxZYk0ZUSYnuPacTRwI+NLr0U1jjut2L4B
 zpnIx1DLKvporQhshWYO8yjFUh2hEl15lOAGADjoCxsIfHz5o/DOXa3O0OUUTwRe
 hJsU6ZwAa53Jr6rO89yR4JD71f0U7mILEiWnUrmyNHnqAuxrd91vBT1sF7neH6eZ
 xfBJ9i6a+aQAewdvanHpXn7RlR7aZ3SD3hD2pdWGzi/0iOJeslA=
 =KNl0
 -----END PGP SIGNATURE-----

Merge tag 'v21.14.1' into debian/bullseye-backports

freedombox Debian release 21.14.1

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-27 09:10:34 -05:00
James Valleroy
9718b2aa2c
Release v21.14.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.14.1
2021-11-24 10:37:37 -05:00
Sunil Mohan Adapa
20b46f7df5
config: Add packages component to a re-add zram-tools dependency
Fixes: #2151.

Tests:

- Before this patch, --list-dependencies does not list zram-tools. After this
patch, --list-dependencies lists zram-tools.

- After this patch, --list-dependencies exactly matches the output from
freedombox release without Packages component changes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-24 10:17:27 -05:00
James Valleroy
9a855f7bd2
Release v21.14 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.14
2021-11-22 18:46:18 -05:00
James Valleroy
4fc4a91166
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-22 18:45:07 -05:00
James Valleroy
18bf1062a8
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-22 18:18:37 -05:00
James Valleroy
bec080ec90
datetime: Avoid error when systemctl is not available
This situation happens when building the package with cowbuilder.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-22 05:42:51 -08:00
James Valleroy
122bda7f7e
debian: Fail build if no module dependencies found
debian/rules uses --list-dependencies to collect the dependencies of
all essential modules. Ensure that the list is not empty.

Helps #2149.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-22 05:39:56 -08:00
Joseph Nuthalapati
aaea6bf00e
tt-rss: Allow selection of a domain name
Fixes: #2136

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[james: Fix comment]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-21 19:10:54 -05:00
Joseph Nuthalapati
a912c867c8
names: Create a generic TLS domain selection form
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-21 19:04:35 -05:00
Andrij Mizyk
5c62fc7599
Translated using Weblate (Ukrainian)
Currently translated at 79.2% (1187 of 1498 strings)
2021-11-19 12:51:12 +01:00
Sunil Mohan Adapa
abf389aaa1
main: Drop initializing Django when listing dependencies
- Avoid any potential problems with sqlite3 not being present.

- Avoid any potential problems with secret key not being available. Avoid
accidentally creating the secret key hardware/container images.

Tests:

- --list-dependencies works with and without secret key and plinth sqlite3.

- --list-dependencies works with plinth and root users.

- --list-dependencies does not create the sqlite3 database or the secret key.

- Running app works in normal mode and creates the secret key.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-18 06:48:41 -05:00
Sunil Mohan Adapa
00e42a42b9
menu: Avoid reversing URL during Menu component construction
This allows app initialization to happen without Django being configured.

Tests:

- Update unit tests.

- Visit /app, /system and /help pages. All the icons are listed properly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-18 06:48:32 -05:00
Sunil Mohan Adapa
fa48fafa6b
frontpage: Avoid URL reverse during Shortcut component construction
This allows the entire app construction process not to require Django.

Tests:

- An app with url is None (ejabberd) and one without (transmission) show their
on the frontpage. Both shortcuts work as expected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-18 06:48:19 -05:00
Sunil Mohan Adapa
3c44fa9a07
gitweb: Split app initialization
Tests:

- When a public repo is added, upon startup, the front page shortcut is shown.

- When all public repos are removed, upon startup, the front page shortcut is
not shown.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:14:14 -05:00
Sunil Mohan Adapa
9c091df245
ejabberd: Split app initialziation
Tests:

- When enabled, when domain name or hostname changes, ejabberd actions are
triggered.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:14:07 -05:00
Sunil Mohan Adapa
5b4f70d6f9
upgrades: Split app initialziation
Tests:

- Upon startup, upgrade check runs every 3 minutes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:13:59 -05:00
Sunil Mohan Adapa
fe482256f6
tor: Split app initialziation
Tests:

- When onion services are enabled, upon startup, names module shows the onion
domain.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:13:51 -05:00
Sunil Mohan Adapa
4b3a4020d9
storage: Split app initialization
Tests:

- Upon startup, 'storage usage-info' action is triggered every 3 minutes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:13:42 -05:00
Sunil Mohan Adapa
e5b56e44f1
pagekite: Split app initialization
Tests:

- When configured, upon startup, pagekite domains shows up in the names module.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:13:34 -05:00
Sunil Mohan Adapa
1d17ba2134
names: Split app initialization
Tests:

- When domain name is changed in config module. The updated names shows up in
the names module.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:13:25 -05:00
Sunil Mohan Adapa
32d7ce9b38
letencrypt: Split app initialization
Tests:

- On startup, LE tries to obtain certs during post app initialization.

- When domain is added, LE tried to obtain certificates.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:13:17 -05:00
Sunil Mohan Adapa
c27000c6d6
config: Split app configuration
Tests:

- After startup, the configured domain name shows up in names module.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:13:08 -05:00
Sunil Mohan Adapa
6429806114
email_server: Don't get domain name during initialization
This keeps the LE module working better when the domain name is changed after
startup.

Tests:

- Untested. The module is not enabled yet. LE functionality in email server is
not fully functional.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:13:00 -05:00
Sunil Mohan Adapa
b163423a26
dynamicdns: Split app initialization
Tests:

- When configured, after startup, Dynamic DNS domain shows up in names module.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:12:52 -05:00
Sunil Mohan Adapa
249c713bb5
diagnostics: Split app initialization
Tests:

- When a print message is added in low disk space checking method, it is printed
every 3 minutes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:12:44 -05:00
Sunil Mohan Adapa
2947e182cd
cockpit: Split app initialization
Tests:

- When a domain is added it is added to the configuration file.

- When a domain is removed it is removed from the configuration file.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:12:35 -05:00
Sunil Mohan Adapa
143bff3984
backups: Split app initialization
Tests:

- After startup, every 3 minutes, backup schedule check is performed if a
schedule is set.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:12:19 -05:00
Sunil Mohan Adapa
79a6e041ca
avahi: Split app initialization
Tests:

- After startup, names module shows a .local domain if app is enabled.

- If app is disabled, .local domain is not shown.

- When hostname is changed, .local domain name in names modules changes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:12:11 -05:00
Sunil Mohan Adapa
d2aee03c89
module_loader: Split app initialization into separate steps
- Loading module is only for importing python modules and determining the order
in which they should be loaded.

- Initializing apps will create the instances which involves just creating the
components of the apps.

- Post initialization involves connecting to signals, running configuration
fixes, etc.

Tests:

- All apps that have post initialization step have been tested.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:11:59 -05:00
Sunil Mohan Adapa
1147249bd8
app: Introduce separate method for post initialization operations
During __init__, only component building must be done. All other operations go
in to post_init(). This allows for cleaner initialization from various
scenarios which simply have to query the app instead of fully initializing it.

Tests:

- None.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-15 10:11:47 -05:00
Michael Breidenbach
bdb239c72e
Translated using Weblate (Swedish)
Currently translated at 100.0% (1498 of 1498 strings)
2021-11-13 04:49:48 +01:00
James Valleroy
5dae6cf8d7
Release v21.13~bpo11+1 to bullseye-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-11 09:22:22 -05:00
James Valleroy
69b68e8d38 freedombox Debian release 21.13
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmGJ5rkACgkQd8DHXntl
 CAih2xAAvBe1QaU+lW+oWGaKvCB2kyg32ghDWLmhGv6iw62zPwRe4K1ZUmpgQWI5
 hpZRPchZKvfTeyBmJ+l0sT3sQKgzwvh8iUiB9axKDziN/C8KicDSgLjdXiUki0Gc
 UI7/BEP9kfujY1XwSCbBK2Z9N99uClyezaMneIhxSqVgD/2XXUquSRBanOisWru+
 UJBxz961A6JlpvbrFGDJ6yHKgwFI/EZXJqVccUlFcPBpYgymTyPfVpoc8X0bWet0
 8GhwpbB0wQVTczoPWdE0caaF1de1GBW4KNm+iV0o1pw7A1pAsHJv7vf1Nh86ISwl
 BPVlVM0oGaCaRO62UBJjvEoFkgflbAgEGpZAuFKZ73H4UhQlcciYPkx6MyGfvE2r
 KxRLYvWX9BY4CiOCj4FFi+YRPKvqqBV8WfosMIhH7q6jR5Do6lHgSAiKROf5GzOp
 gEc8wVmR8oXoFHDdm/e+GhaIYBJrOlW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E-----

Merge tag 'v21.13' into debian/bullseye-backports

freedombox Debian release 21.13

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-11 09:21:21 -05:00
Burak Yavuz
4d2053e115
Translated using Weblate (Turkish)
Currently translated at 100.0% (1498 of 1498 strings)
2021-11-10 05:52:39 +01:00
James Valleroy
898a854ddc
Release v21.13 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.13
2021-11-08 21:34:54 -05:00
James Valleroy
eda492405a
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-08 21:33:58 -05:00
James Valleroy
e3f7511ff2
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-08 21:02:10 -05:00
Sunil Mohan Adapa
7b9149d048
security: Properly handle sandbox analysis of timer units
- When a timer is provided to 'systemctl show' not all expected keys are
provided in the result. This leads to a KeyError exception.

- Also the security analysis for a timer unit is not useful. Instead perform the
analysis on the corresponding .service unit.

Closes: #2145

Tests:

- Before the patch, Wordpress shows as not sandboxed. The security report page
crashes on Debian testing setup.

- After the patch, there is no crash. Wordpress shows as sandboxed with 86%
coverage.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-08 20:44:49 -05:00
James Valleroy
903bf6f29b
debian: Add python3-openssl to autopkgtest depends
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-11-08 20:42:30 -05:00
Joseph Nuthalapati
53fbaf27f2
components: Add docstrings & tutorial for Packages
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Include the new component reference in the components index]
[sunil: Minor changes to component doc string]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-08 16:12:00 -08:00
Joseph Nuthalapati
6e68614e21
setup: Use packages from Packages component
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Minor refactor in listing unavailable packages, add code comment]
[sunil: Fix listing dependencies by initializing modules before call]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-08 16:11:34 -08:00
Joseph Nuthalapati
cd4bd17173
components: Introduce new component - Packages
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: isort all files]
[sunil: Remove component in datetime component as managed_packages is empty]
[sunil: Minor refactor in minidlna for consistency]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-08 16:03:42 -08:00
James Valleroy
ff0dc01023
samba: Use systemd sandboxing for smbd/nmbd
Test: Samba functional tests passed.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-08 13:52:54 -08:00
James Valleroy
4bb0f81643
avahi: Use systemd sandboxing
Sandbox coverage is 35%.

Tests:
- Functional tests passed.
- Diagnostics passed.
- FreedomBox services are visible in Avahi Zeroconf Browser.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-08 13:28:42 -08:00
James Valleroy
10ece80a56
tests: functional: Add diagnostics delay parameter
Time to delay after app is enabled, before checking
diagnosics. Default value is 0 (no delay).

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-08 11:55:31 -08:00
James Valleroy
520feedaca
tor: Use BaseAppTests for functional tests
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-08 11:55:28 -08:00
James Valleroy
7b90787be3
tahoe: Use BaseAppTests for functional tests
Not tested: App is not currently available.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-11-08 11:55:24 -08:00