5884 Commits

Author SHA1 Message Date
nbenedek
de2c246dbd
privoxy: Restrict to private IPs, prevent access over the internet
- Make sure a user might not run Privoxy as an open proxy, potentially giving
unwanted access to local resources. Only private IP classes are allowed to
connect.

Tests:

- Freshly install privoxy app. permit-access directives are set in the
configuration. Proxy works when tested with a private IP address with Firefox.

- Install privoxy app without the changes. Apply the changes, privoxy setup
should run. permit-access directives are set in the configuration. Proxy works
when tested with a private IP address with Firefox.

- Privoxy works when accessed with IPv4 address (such as 10.42.0.x) and IPv6
address (such as fe80:y:z%ve-fbx-testing).

[sunil: Use Spacevars augeus lens to edit the configuration file]
[sunil: Update IP ranges with auto-configuration, IPv6 addresses, etc.]
[sunil: Update description to mention that only local IPs are allowed]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-07-13 19:41:42 -07:00
Maxime Leroy
864c269f3d
Translated using Weblate (French)
Currently translated at 100.0% (1455 of 1455 strings)
2022-07-14 00:17:56 +02:00
Sunil Mohan Adapa
08821787bf
cockpit: Depend on apache and setup after it
Closes: #2089.

Tests:

- Regular startup works without errors. Cockpit is ordered after Apache.

- After creating a fresh container, Cockpit works as expected. Cockpit setup
runs after Apache setup.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-12 20:00:18 -04:00
109247019824
d5c0a221c9
Translated using Weblate (Bulgarian)
Currently translated at 32.7% (477 of 1455 strings)
2022-07-12 05:04:47 +02:00
Nikita Epifanov
d9a13d32e2
Translated using Weblate (Russian)
Currently translated at 100.0% (1455 of 1455 strings)
2022-07-12 05:04:47 +02:00
109247019824
ca5001aa4e
Translated using Weblate (Bulgarian)
Currently translated at 32.5% (473 of 1455 strings)
2022-07-10 20:16:22 +02:00
Nikita Epifanov
eee90a2650
Translated using Weblate (Russian)
Currently translated at 100.0% (1455 of 1455 strings)
2022-07-10 20:16:22 +02:00
Maxime Leroy
34c6a07c36
Translated using Weblate (French)
Currently translated at 99.1% (1442 of 1455 strings)
2022-07-10 20:16:21 +02:00
109247019824
d11e2d4c27
Translated using Weblate (Bulgarian)
Currently translated at 32.4% (472 of 1455 strings)
2022-07-07 06:21:44 +02:00
Andrij Mizyk
3250397569
Translated using Weblate (Ukrainian)
Currently translated at 83.6% (1217 of 1455 strings)
2022-07-07 06:21:43 +02:00
Eric
db642c8b96
Translated using Weblate (Chinese (Simplified))
Currently translated at 69.6% (1013 of 1455 strings)
2022-07-07 06:21:43 +02:00
James Valleroy
d0118752f2
Release v22.15 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 21:43:09 -04:00
James Valleroy
e7f432f914
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 21:23:21 -04:00
Andrij Mizyk
55bc21b5fc
Translated using Weblate (Ukrainian)
Currently translated at 83.5% (1216 of 1455 strings)
2022-07-05 03:21:41 +02:00
Sunil Mohan Adapa
40f4a24e92
views: Add a comment about change in Django 4.0
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 21:03:10 -04:00
James Valleroy
d42a07a630
datetime: Fix typo from pylint fix
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 20:58:21 -04:00
Sunil Mohan Adapa
eaa3a59791
*: pylint: Drop unnecessary 'pass' statements
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 19:46:31 -04:00
Sunil Mohan Adapa
22a120d979
*: pylint: Avoid calling super() with arguments
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 19:46:23 -04:00
Sunil Mohan Adapa
bfa11beb73
*: pylint: Don't inherit from 'object'
- This was required in Python 2 but useless in Python 3.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 19:46:15 -04:00
Sunil Mohan Adapa
3c7bc4a192
*: pylint: Explicitly specify encoding when open a file
This is recommended by PEP-0597: https://peps.python.org/pep-0597/

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 19:45:57 -04:00
Joseph Nuthalapati
05815bc992
ci: Use compatible versions of Selenium and Splinter
This is a temporary fix until Splinter addresses the breaking changes in Selenium 4.3.0

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 19:26:40 -04:00
James Valleroy
892deefdca
upgrades: Hold packages one at a time
`apt-mark hold PACKAGES` accepts a list of packages. But if one of the
package is missing from the apt repository, then it will fail to hold
any of the listed packages. So it is necessary to try to hold each
package by itself.

Test:
- Run dist-upgrade from bullseye to bookworm. mumble-server package is
currently missing from bookworm, but it should not cause an error in
dist-upgrade.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-07-01 10:22:42 -04:00
Guillermo Lopez Alejos
957ddf5a2d
backups: Unmount repositories before and after backup
[sunil: Make the umount code specific to SSH repositories]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-30 15:31:16 -07:00
Artem
d7c9c89257
Translated using Weblate (Ukrainian)
Currently translated at 81.0% (1179 of 1455 strings)
2022-06-30 20:19:52 +02:00
nbenedek
35b50a2c71
users: create home directories for newly created users
Test I made: Created a few users, then appied the changes
and rebooted FreedomBox. After reboot I created another user
whose home directory could now be listed.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-30 09:07:52 -07:00
109247019824
12f157071b
Translated using Weblate (Bulgarian)
Currently translated at 29.3% (427 of 1455 strings)
2022-06-29 23:17:36 +02:00
Nikita Epifanov
559ab48e9b
Translated using Weblate (Russian)
Currently translated at 99.7% (1451 of 1455 strings)
2022-06-29 23:17:35 +02:00
nbenedek
0d37809eb8
mediawiki: Add regex validator to the domain field
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-29 13:01:37 -07:00
nbenedek
26f576bb79
mediawiki: Remove wgLogo as it is not needed in Bullseye
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-29 09:29:37 -07:00
James Valleroy
402b5594aa
Release v22.14.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-27 08:45:18 -04:00
Jiří Podhorecký
5d862f1a1f
Translated using Weblate (Czech)
Currently translated at 100.0% (1455 of 1455 strings)
2022-06-25 02:20:09 +02:00
Sunil Mohan Adapa
696a876df4
mumble: tests: Add functional tests for setting the passwords
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-24 08:41:57 -04:00
Sunil Mohan Adapa
c772534a35
mumble: Don't set the root channel name unless it is changed
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-24 08:41:50 -04:00
Sunil Mohan Adapa
f8b4aa9d6f
mumble: Backup/restore the configuration file
This allows the root channel name to be preserved as expected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-24 08:41:42 -04:00
Sunil Mohan Adapa
fb70fdef6e
actions: Note that privileged actions can't output to stdout
- This can be improved later by using a IPC mechanism other than stdin/stdout.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-24 08:41:34 -04:00
Sunil Mohan Adapa
7470821dc7
mumble: Use privileged decorator for superuser actions
- Don't use command line argument for sending the join password for security.

- murmurd can switch to mumble-server UID before performing database operations.
Remove code to switch to mumble-server user.

- murmurd seems to return correct response code of 0 upon successfully setting
the password. Simplify code accordingly.

- Use subprocess.run() instead of subprocess.Popen for convenience.

Tests:

- Run functional and unit tests on Debian stable.

- Perform a fresh installation.

- Verify that setting super user password works.

- Verify that setting root channel names works.

- Verify that setting join password works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-24 08:41:23 -04:00
Sunil Mohan Adapa
a55e63b7f4
matrixsynapse: Allow new dependency to be installed from backports
Closes: #2230.

- matrix-synapse >= 1.59.1-1 requires python3-unpaddedbase64 >= 2.1.0~

Tests:

- On a stable container, matrixsynapse app is not installable.

- With the changes, start FreedomBox service, setup will run on the upgrades
module and /etc/apt/preferences.d/51freedombox-apps.conf will be changed to
include the two new entries. After this, matrix-synapse app is installable.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-24 08:18:27 -04:00
109247019824
223b1c9417
Translated using Weblate (Bulgarian)
Currently translated at 24.1% (352 of 1455 strings)
2022-06-22 19:14:53 +02:00
Eric
e5eadf059b
Translated using Weblate (Chinese (Simplified))
Currently translated at 69.6% (1013 of 1455 strings)
2022-06-22 19:14:52 +02:00
Burak Yavuz
e79d8b5258
Translated using Weblate (Turkish)
Currently translated at 100.0% (1455 of 1455 strings)
2022-06-22 19:14:52 +02:00
ikmaak
7ad9350596
Translated using Weblate (Dutch)
Currently translated at 100.0% (1455 of 1455 strings)
2022-06-22 19:14:51 +02:00
ikmaak
762b2299a0
Translated using Weblate (German)
Currently translated at 99.7% (1452 of 1455 strings)
2022-06-22 19:14:51 +02:00
James Valleroy
041e154696
Release v22.14 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 20:52:43 -04:00
James Valleroy
a3b2751200
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 20:22:26 -04:00
Sunil Mohan Adapa
e4f8a7942f
ejabberd: Revert changes to always keep localhost (aa5b1cea126d37)
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 17:06:03 -07:00
Sunil Mohan Adapa
15038ae24c
transmission: Simplify actions using the privileged decorator
Tests:

- Get and set the storage path.

- Functional tests pass.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 18:17:18 -04:00
Sunil Mohan Adapa
4fed6921d6
actions: Add a decorator for marking superuser actions
Any privileged action (a method) can be marked as such with the new decorator. A
call to the method will be serialized into a sudo call (or later into a D-Bus
call). The method arguments are turned to JSON and method is called as
superuser. Arguments are de-serialized and are verified for type before the
actual call as superuser. Return values are serialized and returned where they
are de-serialized. Exceptions are also serialized and de-serialized.

The method must have be strictly typed and should not have keyword-only
arguments. Currently supported types are int, float, str, dict/Dict, list/List
and Optional.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 18:16:47 -04:00
nbenedek
3ec086411b
mediawiki: Add option to change the site name
[sunil: Update the form description for styling]
[sunil: Show the default site name when nothing is set]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 14:13:28 -07:00
Sunil Mohan Adapa
aa5b1cea12
ejabberd: Make localhost disabled option in domain selection
Remove the label description that says the localhost option is not shown.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 12:51:41 -07:00
James Valleroy
1a39212313
ejabberd: Add multi-select form for domains
Choices includes all of the available domain names in the system, as
well as any domains that are in ejabberd configuration.

Tests:

- Disable a domain. It is removed from ejabberd config.

- Enable a domain. It is added to ejabberd config.

- Enable all name services. Run ejabberd functional tests and observe
  that they pass.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 11:09:31 -07:00