567 Commits

Author SHA1 Message Date
James Valleroy
ec0ba5df3c freedombox Debian release 24.26.1
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmd6xmAWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICAjSEADUIDUnqu6/HKryq8KrYgOYmi05
 i1aye65HSzrr+1QyUKenB1lQ2ttgqF/5VbdNoN89W67GZvTnYw22d40C1Dx1wXtk
 rjDRSQFwP3LQE9eFr9GxlyNeSq5r2gPa76a2eoj6Hxz4E2XQxvDW8aK/BTCDRM5N
 lmVyxZUb+p49HMoJMJUx/uBpmrur+usZBPDM+q3pr0E+PuXj6oL/qzt4g/H0JkMs
 A72+G8Lcq8EQJHBstxdMLMl+f6+tuzy0NgVLdAgd7SNpfIjteD+jG7cUUq8bpKcm
 b7IvgKSy4Ze66yYsZkwAZy42LXfTAitUvGPdF0URBt6peoE4RVPFu9wNRtwOVIw3
 sowoTf038EG65q8LuqTkrmUSovN/uBcermzZ/MHnRxHX5RLS6ELVn42cEza/t+RF
 AgXnaUgG7fPXeiNU6AD4vQEAcmYtnQB7IHdXwiGC081CrilxWNbjWhPk/dC7lz2a
 qreMn9HiKjkQ2yN5C8GJZ7m2XO+HzwV2t9fTh4hIfNp05/Q9FAFkls30UHzClLxF
 JNV74pwBqLX3m7DXOfz5e8jjecAizN7n7hJQvVIWJRKf/Dmji/aqxZ2zV2HFzNco
 VJpYxvde0PbjGMPQopK7v0+f16D1/cHmytFtAD/P8YdbRlzMQtoJkFEXurzTaDz7
 NmsoedzbaIAra1ZZIA==
 =xzy5
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmeBoj8WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICFgLEACYRuJbxtQ1GpO71co7fAYlMQKA
 rVke5Y0BoUqznfhBgcMHEu3nSNjIulgFR91rdbCw/WnrE9ON99rm4IXVPKuesbVv
 wMSz9Ez3U+i3mpUjl18tCgOgaOcapemQr00AX6gwsMqpunxp9A5vOcXrDPLUhrx1
 gg1OTt/ya6O/X+oVvZqRisYngRkx/LSKK4HJ5SjznknmIGZLn31sIvwCUx4dkt7f
 RFYIoBJd2NAcQ8xIoJp296jIsTZbz7eearKUSq4PfudmKrf+iEd7Tp/LiH32PIUL
 M5Frje7dTH2EgvO4nm4A4kB6wT3DymGCGHg/fFIVYeuuvG/fUdXdV/83FeLzZ7xE
 U2aW5ZeOBE8Wcn4gy/TrSDFkVVsdbK3VWUCDH7sidnB4X8jCOY2lWCBjyckMkGjf
 dp2WACfjJrzqpQtJF2Osu38qbmHy/EBv67cKZoFIRDXdd3feJv84vzSnYLG6SQLT
 YFpFyEDyHBWNNwmYi//7Lk67IB/NS2nWEms5aAX6X7YLqYZ/DGYfBzsi0rEwBF9X
 Xi+dqZzSFwwLMbraVHjMs8N8w9juaFzhm9TD9gRo+L4AZGudARWjF6hpL80A6jPK
 8zGP2aFIGMaOODDwoBb5mNcN0GNLUCbQrI1P60UH1NFo0XqDuMPrqODSwIL/WnzM
 M5GyCqM4ixgf1Qq5yg==
 =G0IP
 -----END PGP SIGNATURE-----

Merge tag 'v24.26.1' into debian/bookworm-backports

freedombox Debian release 24.26.1

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-01-10 17:42:05 -05:00
James Valleroy
6f1d97e009
Release v24.26.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-01-05 12:17:24 -05:00
James Valleroy
18d2249043
Release v24.26 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-30 20:49:26 -05:00
Joseph Nuthalapati
a54a29f009
debian: Remove dependency libjs-jquery
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-12-29 14:15:07 -08:00
Sunil Mohan Adapa
c2007d0f6d
backups: Fix issue with verifying SSH hosts with RSA key
- In current stable and testing, verifying SSH remote hosts using RSA is not
working. After selecting the verified RSA fingerprint, paramiko fails to connect

- A change introduced in paramiko 2.9 lead to failures when connecting to hosts
that have a verified RSA host key[1][2][3]. To fix the issue,
disabled_algorithms must be used to drop some of the other algorithms supported
by the server to force paramiko behavior. A better solution to the problem was
introduced in paramiko 3.2. Both these solutions require careful update to the
code. Considering the utility paramiko provides, the regression annoyance,
effort required for this fix, and the security implications (it is an completely
independent SSH implementation), the library does not seem to be worth the
effort in our case.

- Switch to using sshpass command line utility instead of paramiko library. The
only reason to use paramiko seems that 'ssh' command by default does not allow
us to input password easily while paramiko does.

- Another place where paramiko is being used is to check if a host is already
verified in the known_hosts file. This has been trivially replaced with
'ssh-keygen -F'.

- Exit codes provided by sshpass can replace the specific exception raised by
paramiko.

Links:

1) https://www.paramiko.org/changelog.html
2) https://github.com/paramiko/paramiko/issues/2017
3) https://github.com/paramiko/paramiko/issues/1984

Tests:

- Add a remote backup repository with and without encryption.

- Add remote backup repository with all three types of algorithms.

- Add a remote repository again with wrong password. Authentication error is
properly shown.

- Add a remote backup repository and remove it. Host remains verified. Add a
repository again.

- Add a remote backup repository and remove it. Host remains verified. Change
the fingerprint the /var/lib/plinth/.ssh/known_hosts file. Add a repository
again. A proper error is shown that remote host could not be verified.

- Add a remote backup repository and remove it. Host remains verified. Stop SSH
server on the remote host. A generic error is shown that ssh command on remote
host failed.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-29 14:01:04 -05:00
James Valleroy
7fc288a2d1
Release v24.25~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-19 07:33:46 -05:00
James Valleroy
561d43d61f freedombox Debian release 24.25
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlC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z8ojnxn6Y3ohjUEr6VWz75M
 D1gB1ORtvMHv4JLCDu7ZGsPFAubM5Ah3wU9IZRX8X6NtG+XG+EzTEVeb0sJ1QstA
 JABiZVjCyf2JcQc8aXViVbn6ZPIqVnAXv9C0Vo0nKAY11bbEw6j5BZ9/TIUbg0UA
 HA+8HwIOJVf4yk18yOcRrOHxKDHxjZ4NJJKtBq/AoQPlrC45ogCZ0HSOLmanf5Ge
 lPQaLCr8VnNyDBxaEofVIclm3HNKXqtyAvoGWqQKhAnyuuCKxWwLaq46/XLta6FN
 Zin6O7kaZrwDPihRC3dMIxEJ6I3dZnWZd4BrSZwKPzh3Sksl0WRMTaFf6aqUhWrq
 +ven3zUBkUnSDHR8VquxcRZRmLEs3heJEILeeeHQAebIpPhcXlzi3aPOKT9XaLj2
 0Q5mWY6KIcmzxrR5G9fQyDtV2Gs9hlgVY0Dy0Kq0ptjM63vfy4zNPmPsidvKvITl
 nCZGGOyqq0Y/aGh6pOEKsHBGwXrWPgfwDZcLsFs20MsZO91Ff0WzJHQG8/ZmFZEf
 AXOn/YCM+kqa5gLA9Q==
 =0LIo
 -----END PGP SIGNATURE-----

Merge tag 'v24.25' into debian/bookworm-backports

freedombox Debian release 24.25

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-19 07:32:47 -05:00
James Valleroy
5062cb2585
Release v24.25 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-16 21:44:38 -05:00
Sunil Mohan Adapa
e523a83f1a
i2p: Drop app as it has not been available in Debian for a while
Closes: #1528.
Closes: #2041.
Closes: #2438.

- In Bullseye and Bookworm the app is not available.

- i2pd (written is C++) is available in Debian, but it is not a drop-in
replacement for i2p. First, it is only a client. Then has a differently
philosophy of not integrating apps inside it and let outside apps connect to it.
If i2pd is ever added to FreedomBox, it has to be added as a new app with no
possibility of migration from an unlikely old setups.

- Updated wiki pages to remove references to I2P.

Tests:

- Looked for all string references to 'i2p'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-16 21:09:40 -05:00
Sunil Mohan Adapa
11aa36f6ca
d/control: Drop unnecessary recommendations
- These tools are not strictly needed for FreedomBox operation in anyway.

- Slightly Reduce the size of the built images.

- Some of these tools are outdated or not typically used on a modern GNU/Linux
system and make FreedomBox seem less shiny.

- Originally thought of splitting them into a separate metapackage but it does
not seem worth it.

- killall from psmisc is used in the Makefile, it is kept for now.

- FreedomBox already has many dependency and so it is now important to start
paying attention to unnecessary ones.

Tests:

- For each binary executable provided in each of the packages, verify that it
not being used in our code anywhere.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-16 20:01:37 -05:00
James Valleroy
86ca8164d3
d/control: Drop version specification on dependencies for Bookworm
- We don't support Debian Bullseye or older in latest versions of FreedomBox. We
can drop any minimum version specifications that are only relevant on those
release.

Tests:

- Potential issues with tomli/coverage will be caught during autopkgtests.

- For version specifications, it has been verified that for each of the
packages, version available in Bookworm is newer than the minimum version
specification.

- freedombox-setup and plinth packages don't exist on Bookworm or newer. We
don't support upgrade from older version with the latest code.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-16 13:31:11 -05:00
Sunil Mohan Adapa
b64ea720fc
sso: Switch using cryptography module instead of OpenSSL.crypto
Closes: Debian bug #1088760.

- OpenSSL.crypto.sign has been deprecated and in the current version of
python3-openssl in Debian testing, it has been dropped. The recommended
alternative is cryptography.hazmat.primitives. So, use this instead.

- The entire OpenSSL.crypto module is planned to be deprecated in the future.
So, stop using it entirely by using cryptography.hazmat.primitives.

- sso app does not use openssl anymore, so drop dependency on it. Other apps
such as Let's Encrypt do depend on it and but they have their own dependency
declared. The freedombox package on the overall retains on 'openssl' package.

- We are not using the python OpenSSL module anywhere else, so drop dependency
on it.

- Use pathlib to simplify some code.

- Ensure proper permissions on private and public keys as they are being written
to.

Tests:

- Freshly setup container and ensure that first run succeeds. Permission on the
public/private key files and the parent directly are correct. Users are able
login to FreedomBox. SSO works when accessing apps such as transmission.

- Without patches, setup freedombox container. Apply patches. Permission for
keys directory is updated but keys are not overwritten. Login to FreedomBox
works. SSO works when accessing apps such as transmission.

- Run code to perform signatures using old code and ensure that newer code
generates bit-identical signatures.

- Running ./run --list-dependencies show 'openssl' and python3-cryptography.

- Running unit tests works.

- Building debian package works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2024-12-14 23:41:13 +05:30
Sunil Mohan Adapa
47d9894e67
ui: Switch to using bootstrap 5
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2024-12-12 12:28:36 +02:00
Carles Pina i Estany
9504eab6e3
Added po-debconf Catalan translation
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-12-01 17:22:04 -05:00
James Valleroy
8ba182ef00
Release v24.24~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-11-21 20:12:42 -05:00
James Valleroy
5b3f8e4b11 freedombox Debian release 24.24
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmc8AQcWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICPRXEACAZTfGvJRlcVPe4Ca5s3OpNRT2
 sbK3JLcfG0+weOSVXCYgrAuCgVhjb5mrj8pN5fjFfZD6mlNjrzriRpM9exjhFrus
 SHv49BI2V35grodyL2I62H9bleCi8GqUG2JgyF30wD0bbuv4YMVmaoXolSYZuldv
 ABL/6XIv6oRwXH6Xe15FYnwff++5iCcTN3GvWIY7oTcfyyOUHvBJT8FhwRnkO/S6
 BPvH+tNB0HL5/TXyBO/ESsSYPraNg1OZRegboT4KEX+A7hPKrGAG5beUh5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SDy/Xxe1f8621LjZ43VbV95tcnrLpdDWv9/aEP5kOy1tkG5A2b3xZyJ5Dv9u
 Mxjh8FuNu4OCyDUpab1jkvPzCYaQe0aiCuToJkAPIdPSMwzpjJ1HC9dE4nEkqTzu
 5U8MV6bX2PkF1JzkraAJzkWX0DGUJPMcNvUEDpBxlv7aAxmmeAzODwPtk1n9aSqZ
 REKLiS+lrcqGBPMBFw==
 =Qe/I
 -----END PGP SIGNATURE-----

Merge tag 'v24.24' into debian/bookworm-backports

freedombox Debian release 24.24

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-11-21 20:12:13 -05:00
James Valleroy
7a7f9b01e7
Release v24.24 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-11-18 20:40:25 -05:00
James Valleroy
6e7884a544
Release v24.23~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-11-08 07:42:25 -05:00
James Valleroy
b960aa49d5 freedombox Debian release 24.23
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmcpg58WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICDHQD/9NFAa0dTZuSmZdfOgsVYRRqfaX
 Rf4wV7zJqluGl24YcFcBHBjnv2MCGUzoMhN3KCGXWdeSMvWE+1rxbzOWdTEW5RLk
 fsshcmcZcPgoxItoW5PASJRHC6cCPPCCPGco/qW/P1/p5OXByv7142iEc93Q6GxU
 ZjIiApH1wcJ+OWjNhhGIS8624dFID1xrG8fwfDae2j5guhCSkbbDNiY3LoBo5gqw
 0DEZIvo96yJavqHnRa06FWgaLWCzmHauu6KBMxEapqTjrRZvbbuS36SINuS0pajA
 Gq7HTpoSAUpfxwxfC45qopvz/wzu4P5btZJ1qkwYgZAh3d8K/OYNBSO+gT/F47re
 liUcKGmaFbnbw+a80cf0gA7FoGJW1Ss81owcsd9GfSJJC1g649zNl5/ODcj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KcFtsiXB0
 ZRRi0JgcxMiHQMaXlgzo410MtD7ebZdTH/1MhNc/hVoOjzHi3Fg8pAd4VKyIH9YH
 HipoiMzvb6pNUg7z6A==
 =pArS
 -----END PGP SIGNATURE-----

Merge tag 'v24.23' into debian/bookworm-backports

freedombox Debian release 24.23

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-11-08 07:41:53 -05:00
James Valleroy
f0082f2102
Release v24.23 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-11-04 20:56:14 -05:00
James Valleroy
3a403e7b57
debian: Drop python3-flake8 build dependency
Although flake8 is used in development, it is not needed for building
the package.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-11-04 20:54:47 -05:00
James Valleroy
44af7807e1
Release v24.22~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-10-25 08:56:43 -04:00
James Valleroy
9761c7ba47 freedombox Debian release 24.22
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmcXBsIWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICLYHD/9dEGFq/ILCf8q0lgw3qkyDs8V9
 jlvLx/hsK60RhYcSakWaT8QbjACnFGn5nwAMMxcQWIq3Nc/XSs9NMx+7nbZUVmXK
 ZqWWLU65pfpMP0EE6zpGBq8ZNhnzIdX4jwGhu8KNUQjoaaMLUk7m7DH3sBVeaMIt
 FxrOW2Yso9+R5QOOcpJXUmrg5z9JUeYzd+F0EqyUa4uL3zZsU1ELFShskepXJuTH
 mx1Nkjdcs56Kx40YJlh1qxwBAPsAks4Kpc2KDWQsj7sNvO6gScRAYc0Rr70b8DUl
 g2uPLzFnNV5jp1Ug3lJZoUCwAwBB4Xr736fVl0L6l0mk9AtMqhrArMnvlTsL2571
 0KcqHenMsXbk5+ti/Z9KlAJ/FvvLFqjz43cyinyiVrOIAmkS6Uo0lSJ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6CuVdgqwE
 jBrWG9JV3BAAaTqFsMtiyTFeuV5CbOYwNvc1BGB23I6mXBn3XkSSvyuQ5yWoLuU4
 1tFj/fJgD7vVC9Dxrw==
 =Vpo6
 -----END PGP SIGNATURE-----

Merge tag 'v24.22' into debian/bookworm-backports

freedombox Debian release 24.22

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-10-25 08:56:03 -04:00
James Valleroy
822fcc8f2b
Release v24.22 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-10-21 20:43:13 -04:00
James Valleroy
f0fc5e1d6b
Release v24.21~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-10-11 06:56:07 -04:00
James Valleroy
6fc223746a freedombox Debian release 24.21
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmcEhb0WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICIbJD/9II8qrtF2Zm10FuGUdF2xVqhid
 PsPgJUK5oMiz/Hyb+ztG/cPD58oSShm7NU1FP1oauzoe+ZpxLgtL+pjnIy6a1ty5
 IpFBkpqYQ7MhQW2a5/400vhz4AwwGaY2+ZosM2lHfe49DKr4vqIxAZ+FrMBSW2L+
 42V6u668ysckP4PEQADPexu9Imrvlaq6Jq9lhXiFze3psKm5h7NmWyd3A1ea6JUo
 guJLg4QYfLXeplA2c53j3t2zi4LQjHNysNZ1LU6Mm+e0ZXUGDXHibgIbySGsEUg9
 Z6CgaVq584Gs+Oed3Ln0VoncrdpnTZo5tKHtn6TKbUXm3tRKVJa+DqsTthr2KtQ3
 o5WaB6xJzU6gpaCqNcFt90ySqJ972Sllb0lcbQ6YirOjKkDb7kXAHVcnIf/x78LT
 u8n2PO87YbB7tqui746HT7cx3ufmJ8lf/Qfhi4gngrb4WskTjAPrtLHG2u47z2Dv
 ykLxnmMy8wrfOVgjtIEbAWr9o7JhGDh0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-----

Merge tag 'v24.21' into debian/bookworm-backports

freedombox Debian release 24.21

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-10-11 06:55:29 -04:00
James Valleroy
c35555a273
Release v24.21 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-10-07 20:38:12 -04:00
James Valleroy
2e5010f66c
Release v24.20.1~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-09-28 07:25:41 -04:00
James Valleroy
19d0e64cee freedombox Debian release 24.20.1
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmb0NhUWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICAW5EADN692QSHMyDBLLd/sdLkI5RyYa
 O4U3g9uj1q7rnOsvHraabjtKFFxn1QNFQ/rFljVr/VanTfKdBjmflISkgE2mUxYa
 klf7ALjJ71CVbcS5RV+vlrNPYhSixSUduAalEpRIE0dIiKlXqfk7BIgbEm4PlsvX
 phS4mLUJI7hUeb7Xgz5UGua3BGpjFvf53OozY+9B7QnV8kfZ3vbvPHL6bopO5ogv
 BnZ9KkS6bt8rM/PE7Lu6SLdysGa6e+S7Bhb/BkglbriqgPR0fA5kkMiLz+mnuqzb
 WGGftqW97DfeZo57KVvykZ+6tqmfOjI+Hk0OCPWOBhFaTq8PE5nLzlnvM47Z3j/i
 5oKARF92LJPxpbTbpjio99inhsHJ/hk99OasQ1YnsYWGQ0jcMRSO+ZLn7ez6L4UQ
 GW32Qa3LPyNeHSr5+xtcIKXTiqx+wkCP0YsORA1LFEeHmTM/iuaTxD4xI35xt030
 64Yi/nP7gwWzfOkqgmRAnL6zYrI7POaVz3QJJ7DfNS3RwdU/YYpipWNjfzovEFLe
 S/oYGG1Y+KBNPUUT3vP2qE7eMI4NOcYO411PSbYa+d6ILERM8uCy8XLWKqPCMWPc
 lQBV2mJr6Bb75gdk/fWmFXLbM2C7OZE0M43Sssr5OZrEBChsiZxhC5ITou0Iww4X
 SwbZlullO5x+Pju7gA==
 =q+xB
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmb355AWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICPRND/wLyF/YKI1SSWDQnEbBuNOWD7Oa
 augnI3upFqgeD0kc8USDHPp2fNOX0mMKqTzsRL6jOlQdWa5XpzPQGhGUfrgaNWNp
 NZM4gepWTjM5Kuzuvf6rLkH5LmVfUYx+0Jn8h+7GICUyjvWqdc8O7n6C8cJtAtd9
 kltji8pirT7D2dENzcmeZzGx4K8bcrSuN6GZa9BRDXJnVWSEQ3BtpH0CEIRYCEge
 dIneULX0DI4rign9PS/4Fv8uV52CZTnG7sg0eLdo+VCM5oDr0kCjUvhueiaxKtse
 dYTQa66QNoaxRBNdSeJPWM3RRqKUSbqWLQNy7hMWYuc1QgPLNosnrR6Y49k/LJvd
 tpvA07qVrmea7RK8U/6TW+B4f98x+F41x0pUimiYNZHSi26X28/q/Eir5YBCXuJv
 459bXP48z/NwwhHC/KorseV7PpWoyz14MHI4N1dQ20jzJlnDEQVffkVU8Q77u+S+
 2Jv57ViOutbVAKDuboHK3AFuCWXzF9IgdCm/O8gILaiKAmaXwQ7BFMw3urcx42HB
 YONGqdk+qHlXpgE2NkhKttlB6vTF9I8TxLQa11q9S5qwOmCV6E61SuowHKnoRsnU
 Xxjr/e3M3aOk+83ROZD8oYIdZv/FIHHlCei5LN/KnlCIbtlN194bDibkyO9RXS0j
 7eEDlBjuHJTVX3kI1g==
 =WVoY
 -----END PGP SIGNATURE-----

Merge tag 'v24.20.1' into debian/bookworm-backports

freedombox Debian release 24.20.1

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-09-28 07:25:01 -04:00
James Valleroy
66d3ca01a2
Release v24.20.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-09-25 11:58:04 -04:00
James Valleroy
534b0d6eb0
d/tests: Add breaks-testbed restriction
This restriction is also used by systemd:
0992a823a4

This is another attempt to fix #2450.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-09-24 13:38:52 -07:00
James Valleroy
d8e82deb20
Revert "debian: tests: Wait for systemd-resolved to be started"
This reverts commit 618adefab794eb85018704ed97c871c3e1ae0b0e.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-09-24 13:38:34 -07:00
James Valleroy
da02b464a9
Release v24.20 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-09-23 20:42:47 -04:00
Sunil Mohan Adapa
125a002fa3
users: Don't cache NSS user indentity information
nscd daemon caches queries made to NSS via glibc. In our case queries to passwd
and group databases are cached. But this leads to many problems.

See: https://salsa.debian.org/freedombox-team/freedombox/-/merge_requests/2520

The bug that this MR fixes, that is, the inaccuracy of the authentication data,
is horrible and only acceptable if the caching provides very important
functionality. Already, having to purge nscd caches after modifying user
accounts is not nice.

I believe that we have encountered this bug before and blamed libpam-abl due to
the time sensitive nature of the problem.

nscd itself recommends that it should be used if NSS lookup are expensive (such
as in case of NIS, NIS+ queries according to /etc/init.d/nscd). In case of
FreedomBox, LDAP queries are unlikely to be made using network. LDAP server is
likely always local. I believe we can safely remove nscd by masking and stopping
nscd.service and unscd.service.

Tests:

- After applying the patches, users app setup is re-run. Service nscd is stopped
and masked. unscd is also masked.

- Running 'id tester' shows expected value 'uid=10001(tester) gid=100(users)
groups=100(users),10002(admin)'.

- Adding, removing, renaming a user immediately reflects in 'id <user>'.

- Adding and removing a user from groups immediately reflects in 'id <user>'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2024-09-21 00:09:22 +03:00
James Valleroy
618adefab7
debian: tests: Wait for systemd-resolved to be started
This is attempting to fix a test setup issue in Debian CI, see #2450.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-09-19 19:41:06 -07:00
James Valleroy
b82c881014
Release v24.19 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-09-09 21:08:42 -04:00
Sunil Mohan Adapa
0817e7af45
names: Use systemd-resolved for DNS resolution
- Disable mDNS resolution. While we can migrate our DNS-SD service definition
files to systemd-resolved and switch from using avahi to systemd-resolved, many
programs still solely depend on avahi-daemon. Examples include cups and GNOME.
It is not clear if they will work any mDNS daemon or if they interact with
avahi-daemon in other ways that the mDNS protocol. So, for now, disable mDNS in
systemd-resolved and continue to use avahi-daemon for it. This is also Fedora's
default.

- Re-introduce Fallback DNS servers with the value same as the upstream systemd
project. Debian removes the default fallback DNS servers likely because they
could be considered a privacy violation. However, when systemd-resolved package
is first installed, the post install script recommends a reboot instead of
feeding the currently configured nameservers from /etc/resolve.conf into
systemd-resolved. Immediately, this causes the system not be able to connect to
any external servers. While this may be acceptable solution for interactive
systems and pre-built images, FreedomBox has to a) be available for remote
access b) perform upgrades without user intervention (and without reboot until a
day). To mitigate privacy concerns, an option to disable these fallback servers
will be provided in the UI.

- systemd-resolved's stub resolver runs on 127.0.0.53%lo:53 and 127.0.0.54. This
does not conflict either with shared connections which listen on 10.42.x.1 or
with bind which listens on 127.0.0.1 (and other IP addresses). This MR does not
address the existing conflict between bind and shared network connections.
However, it does not cause any further conflicts.

Tests:

* mDNS

- Avahi diagnostics works. daemon is running. mdns port is exposed in the
firewall.

- systemd-resolved does not listen on mDNS ports.

- Running avahi-browse shows freedombox on local network.

- Running avahi-browse shows the services ssh, sftp-ssh, http and ejabberd.

- Machine can be discovered in Gnome Files.

* NetworkManager shared connections

- After install/upgrade to systemd-resolved, 'shared' connections can be
created.

- With a 'shared' connection configured and active, it is possible to upgrade to
using systemd-resolved.

- Resolving domains from a machine on shared network goes via systemd-resolved
on FreedomBox.

* Bind

- Installing, running tests on bind works.

- Programs connecting from outside network can connect to bind as expected.

- Programs connecting from local machine can connect to bind as expected.

* Upgrading works

- Upgrading to new FreedomBox package works

- systemd-resolved is installed and running. 'resolvectl' shows a proper name
server (or fallback nameserver like 1.1.1.1).

- libnss-resolve is installed and configured in /etc/nsswitch.conf

- /etc/resolv.conf has proper link to /run/systemd/resolve/stub-resolv.conf.

- Programs using /etc/resolv.conf directly work. Install python3-pycares.
python3 -m pycares freedombox.org.

- NetworkManager has passed on proper DNS entries. In logs dns=systemd-resolved,
rc-manager=unmanaged, plugin=systemd-resolved

- DNS resolution works after first setup. Installing packages works.

- 'resolvectl query' resolution works.

- Programs using glibc API resolution such as 'ping' work.

* Fresh image

- Building an image with new freedombox package works without error.

- Booting from fresh images works.

- systemd-resolved is installed and running. 'resolvectl' show proper name
server.

- libnss-resolve is installed and configured in /etc/nsswitch.conf

- /etc/resolv.conf has proper link to /run/systemd/resolve/stub-resolv.conf

- Programs using /etc/resolv.conf directly work. Install python3-pycares.
python3 -m pycares wikipedia.org

- NetworkManager has passed on proper DNS entries. In logs dns=systemd-resolved,
rc-manager=unmanaged, plugin=systemd-resolved

- DNS resolution works after first setup. Installing packages works.

* Installing package on Debian

- Installing new freedombox package in Debian machine works.

- systemd-resolved is installed and running.

- libnss-resolve is installed and configured.

- /etc/resolv.conf has proper link to /run

- NetworkManager has passed on proper DNS entries to systemd-resolved using
'nmcli reload dns-rc'.

- Resolution works with fallback DNS servers when network interfaces are
configured with /etc/network/interfaces

* OpenVPNs works

- As a server, we don't push DNS servers to the client. So, a client continues
to use its old DNS servers. With systemd-resolved running on server, the client
is able to connect to OpenVPN server, route traffic to the internet, and resolve
DNS queries.

* WireGuard works

- As a server, we can't push DNS servers to the client. So, a client continues
to use its old DNS servers. With systemd-resolved running on server, the client
is able to connect to WireGuard server, route traffic to the internet, and
resolve DNS queries.

- As a client, server does not push DNS servers to the client. So, a client
continues to use its old DNS servers. With systemd-resolved running on the
client, the client is able to connect to WireGuard server, route traffic to the
internet, and resolve DNS queries.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2024-09-04 10:28:47 +03:00
James Valleroy
aca91a0f5e
Release v24.18~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-08-31 15:09:02 -04:00
James Valleroy
ed50f172a2 freedombox Debian release 24.18
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmbNKbUWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICPfLD/0V85TcAWc2ITgtE6hFu5UVfup3
 ETq2Hr2alZShlXKC47I3X5ztw64V65igvOSD4vSrZ4M6j+WXT27FS5ORAFMnmb6H
 CMPMxH/adb0JM9OFIBXJdoZYzHh+K8tPUiTqJxAZPltheZcKPCUal7xuTgqxU/wj
 5uqGDX/sd2l9WqS8sDYP2BGhRu+3CKcQfI2ihrcrYKjEZRETl2XXiWovGbj9um1Y
 YLacl2d+iAEge0YB9y41RukRUqmv4MEyNGJZHzqWPkkP1hKuHt2042tkRnnCheV8
 GWpEmIMZrqqbgpBRYDTH3E38TZEDWmXxrOPTIVGpLPWwodSByYuR9LmmJJHrLAHr
 c6Lo72GPzNw/BaySfF4exk2LHpXdNzuV5P4R6i+D7CG+ROidYKHuMEUu/2ND9XXk
 yGFpSJanCjvTHI5bHOc0rDgqF7p78R+xnYd41rXrOWkPcZ1LcYfUwSojg7/qS8N4
 EVmryA/Q9Jp8fRMSmq9GHj1It2KE2/0t3dIQzg2jsJASUVYdqOZWXpYnMah4zjrS
 whtV1Z+5yttaDzq3TLfUA7O+tZkgMKCeuzdUqCrTTrBJa9OWBcHyrGr2UBB7Jsc9
 0Z/SLmjzjxalJGPzewwukKgwjPDAgm2f+5Vs0g+APLnM2lqC8g4kBr0mVJTBHnCa
 jNkXE1YsobLmpjwSMA==
 =K1+4
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmbTaeUWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICPgGEAC/VhywSaxjHtkVR4HWdd369vbC
 xZz2dYTWd+3r6iWGFmy1pSSUE1VF/dLFZlyG49/G0QKfdvjkxDAA1s8FzeFzrZCd
 M35ERlLSPzvacR9psRj6uL9H8oKglu0/hWwTl8pT9j3NSfP95C+PS6qOpeB2njhN
 +E6JNjTZM1ZuMO+f/uIo92l4MUZ2O6bn0BuBv3HRtw+iw+Cmx0u/6q0QEdimxFqf
 tCO1yY0RHUUbKhJNaRYtZZufCeiLwSR0hFRyr5fLQiHGTADExb+PMJBMgl7hbCl8
 WLijp2XeRBT6e237XqdkuCLqblTWx7JKAxBjIeK4hhMuiVU+WT6tHHkPcog5Yf7+
 F4wFJ8IGqGaDKd0CjEESBQ3O75uawDHexuHXJa+b7Kw+0HoKzC2uHXrc26DwyXA1
 piYsJWY6d+sgpjYnNFKVfWCD3nG+3VZ9IVqeVMY7Tua6KTdPaptA4Z99VQUudtEb
 L4OH6t97VSP4BiL178kSWM2bfUpUWXbAjrwPZxnK/Qj4ChFU5U9VSzVFNYNKb+kg
 wEj/vbr8bVYUMRNA1ZviXGJnpFjw1zW7o0u9Fwbw+u5VSkJqR8+Od0sB28yMKBCS
 AbgzeemC55ZmXVGT/vChnumLJH5FjftXpCEHKY0nfAmM62x8SYwYxFlkKBjuWRjR
 uHs4JvVgT0tNWZD3uw==
 =tiwQ
 -----END PGP SIGNATURE-----

Merge tag 'v24.18' into debian/bookworm-backports

freedombox Debian release 24.18
2024-08-31 15:07:15 -04:00
James Valleroy
8c1cacfdf9
Release v24.18 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-08-26 20:26:10 -04:00
James Valleroy
bbbcfb4876
debian: Set gbp default branch to main
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-08-26 19:22:58 -04:00
Sunil Mohan Adapa
13a1f59103
d/control: Don't recommend libnss-gw-name
Closes: Debian bug #1069240
Closes: Debian bug #877935

- libnss-gw-name resolves 'gateway.localhost' to the ip address currently
configured as default route. This has been abandoned upstream[2], deprecated in
Debian[1]. Using libnss-myhostname (part of systemd) instead is recommended[2].

- libnss-gw-name has been removed from testing and unstable. Installing
freedombox package in these distributions no longer installs the libnss-gw-name
package but freedombox installation succeeds as this is only a recommends.
Latest images don't contain the libnss-gw-name package either.

- We already recommend libnss-myhostname and this package is typically installed
along with freedombox package.

- libnss-myhostname resolves '_gateway' where as libnss-gw-name resolves
'gateway.localhost'. This is technically a breaking change. However, we have
neither used nor documented gateway resolution on FreedomBox machines. So, any
disruption is likely minimal.

Tests:

- On a FreedomBox container, running 'ping _gateway' shows that it resolves to
the same IP address as default route shown in 'ip route'.

Links:

1) https://www.debian.org/releases/stable/amd64/release-notes/ch-information.en.html#deprecated-components
2) https://github.com/nomeata/libnss-gw-name

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-08-25 18:01:19 -04:00
Sunil Mohan Adapa
c5e60632e7
d/control: Remove havged as it no longer relevant on latest kernels
Closes: Debian bug #961733.

- The version of Linux kernel supported in FreedomBox is from Debian Bookworm
and that is 6.1, released on Sun, 11 Dec 2022[4][5].

- Around 2014, in Linux kernel version 5.4, a way to extract entropy from CPU
execution jitter every second was implemented. This is similar to
HAVAGE/havaged's approach[1][2]. This ensures that user space applications never
hang indefinitely when entropy is not available.

- Since 2020, /dev/random only blocks until it is initialized and after that
never blocks. It provides cryptographically secure psuedo-random numbers after
initialization (which is believed to be as good as blocking pool even for
security sensitive applications). This the same behavior as getrandom() call[6].
This means that even on embedded systems, haveged is not necessary once the
initialization of the random pool has been completed.

- Since Feb/Mar 2022, /dev/urandom no longer provides insecure random
numbers[3]. Earlier, if it was used before full initialization, it provided
insecure random numbers. Now it blocks the caller until initialization and then
provides cryptographically secure pseudo-random numbers. The initialization
itself won't take too much time due to the "Jitter Dance" technique of
extracting entropy from CPU execution jitter. The only way to request for
insecure random number (without even blocking for 1 second) is to use
getrandom(GRND_INSECURE) which systemd uses to initialize hash tables. This
change was reverted because Jitter Dance did not work on several architectures
including arm[3]. Later it was added back as an opportunistic approach, where
secure random numbers would be provided by urandom if Jitter Dance worked.

- Git repository for haveged mentions that it is less relevant now[7]. It also
lists circumstances where haveged might still help (old kernels, user-space RNG,
additional source of entry and early boot). Of these, only early boot scenario is
of interest for us.

- In summary, the understanding of relevance of haveged is as follows:

Request Random Number
---------------------
Is this during initialization of the random pool?
No:
  - Linux never blocks after initialization. It uses CSPRNG now instead of
  blocking for entropy.
Yes:
  Is this for secure purposes?
  No:
    - It does not block and provides insecure (or secure in most practical
    cases) numbers with getrandom(GRND_INSECURE), used by systemd hash tables,
    etc.
  Yes:
    Does the architecture provide hardware random numbers?
    Yes:
      - Use RDSEED (Intel/AMD) CPU instruction or HWRNG (SOCs) to initialize the
      random pool.
      - If on virtual machine, use virtio-rng, ACPI VM ID, etc. to initialize the
      random pool.
    No:
      Is this on architectures with time stamp counter?
      Yes:
        - The system will block for 1-2 seconds and provide secure random numbers
        using "Jitter Dance" (similar to haveged).
        - ARMv7 (Allwinner A20, etc.) the lowest ARM architecture we support,
        seems to have time stamp counters but we not sure kernel uses it and
        implements "Jitter Dance".
      No:
        - On urandom, The system will not block and provide insecure random
        numbers. This is as per the original definition of /dev/urandom.
        - The system will block until entropy is available through interrupts,
        etc.
        - haveged will likely not help here because it also requires time stamp
        counter provided by CPU.

Links:

1) https://lwn.net/Articles/802360/
2) https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=50ee7529ec45
3) https://www.zx2c4.com/projects/linux-rng-5.17-5.18/
4) https://lkml.org/lkml/2022/12/11/206
5) https://packages.debian.org/search?searchon=names&keywords=linux-image-6.1.0
6) https://lwn.net/Articles/808575/
7) https://github.com/jirka-h/haveged

Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2024-08-22 14:34:31 +05:30
James Valleroy
e083aa06b7
Release v24.17~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-08-15 07:09:58 -04:00
James Valleroy
63a7236050 freedombox Debian release 24.17
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAma7X+8WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICN4NEACBK5iQ7AYcVDOc5Tf5b2fFlf0c
 myBGI1t5+C8CT8wL+TSKB1EOzvGFCthhkyKhYEQ2CGHOdSrkXDpbtdB/rdnahAcJ
 atBI7UZhXAJsqB2CPpYKBw/gJe9pT3MNComDA4CHnDt4/CiA2LanJ+u+EJR118fh
 L7vDVOKSEm7qU+II4nxCtYlYXCT4Mc2DvNlfBjnxb/+m2lh+DBbO7XfU3iynerpP
 kJSMP8Wamh1siCf5FJ74cxiRFKSXIc9u5rOT3sgiBEaGSJXrrsJRn4yCkV+exokH
 6Griz4LDwAYta9Bc9BVlcDpjMJ4OIDQ7EKmQQ6PkLEb8nsvUYmcgnd8ffPYx6ncy
 0gJfGu3OY6JX88t0bGAsF4c/GyNeaGbpAQpoQk1wVELj+iHcTv5QQgg05NJTgAfa
 WtyZBq3WJ+OlJWZOcEjT9LlPd2967bfFKKBTHahr7qyzGGFwEBjpuhnUG5GjURAj
 bKHLm3A5XW6t6fhi0H1jGMBiFiV0g5bSktvpSJBy1XnXdEQCWWFf2gKOWDjw+NHi
 VKCB4B5j33JzRNeo+5tJBY2Ow0WNKN7aK13n2+uACPO7R7LR8wEZzIJ0L16AaXI0
 2yU8qFLOl2EgOEKBcM85nrnhxa84dJeucY2nbMDqoGXY9B0aXzJqPG9GjvL1BZ/T
 KOcoUTic08Sjk8BjEA==
 =MzRg
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAma94eoWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICO7DEACfuUwrL842/sZHoD8GdO3mSbKY
 oW1WotDzTX/TWNsdfS5CZAsDcPEbHvJMhUqHUXOTGAEMgZwDGAMe/vZool/QDQ4j
 c1bmA530uLJgIBXAHqQ0TPf9bDQG2ZKrzAu15SjMqf4sX11Wpdq2LnlzCzJxq4UQ
 8NQDZQWjrbSdhwMX7nB9DqdJktBRNcKLRfKdaW12lna5oFBCXB2uU9NxuYDfwSTb
 69Da5GAlEVot2jkzcme7QgK5Jd3+UUIvlVlLoX9SEAEmM+q8uK8nopOn9XZlUgL9
 PMYi8WCw7JTfq57uslMfG0USeG4x/h4vBv0MfUlZP+zSU02dk/o113xUlxUggsls
 6WSLpgeKyUOZs5DIg9kYsL4z0LJXPJTpWpgi9RB6ec6rtwywmxqIjxZOKAn6/qdd
 iHct98/5OYr1PaImdQMaTWzZIfL2g3XxB6OsCRhv6gQWwIxSt9MSWXbbdVRYLams
 B64Jgk6MvXFdTAo9nMeEKvZNfMvwQOKLANg5xWOc95pbkkU5f0kfCt0mzvje8gli
 +WDQv/Ei9kpf1+9y7eo2NW8CHZ2niJ3dUaOO2O9WVbxLqTx3Pu1SO6RHWZmy9SXj
 37dVVxCJQGjy8V776jl+vrn16SHNpRsq553DyEyCa+vXNCGBWEx2sF1DMR3UGqg0
 NS6SXc2IDiSRAORHQQ==
 =bMfa
 -----END PGP SIGNATURE-----

Merge tag 'v24.17' into debian/bookworm-backports

freedombox Debian release 24.17
2024-08-15 07:09:29 -04:00
James Valleroy
99496eb536
Release v24.17 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-08-12 22:10:24 -04:00
Joseph Nuthalapati
96bd9c8bd4
tiddlywiki: Add new app
TiddlyWiki uses almost the same Apache configuration as Feather Wiki,
with one difference - disabling gzip for the `HEAD` request.

The FreedomBox app for TiddlyWiki is identical to Feather Wiki in
every other aspect.

- Proxy download through freedombox.org. This serves two purposes:

1. Upstream's website cannot track the IP addresses of FreedomBox users.
2. We can update the versions of the empty quine files without making
   code changes in FreedomBox.

[sunil]

- Update description to correct the list of users who can access the app.

- Update logo to adhere to the logo guidelines.

- Minor styling fix.

- Update the copyright on the logo based on information from upstream git
repository.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-08-10 17:57:01 -07:00
Joseph Nuthalapati
b7c3a06e85
featherwiki: Add new app
- Uninstall deletes wikis & extensions

- Use Skylark (v1.8.0)

- Add option to upload existing wiki

- Open wiki links in new tab. Since Feather Wiki modifies browser history, it
takes several clicks to go back and reach the FreedomBox app for Feather Wiki if
the user wants to switch to another wiki file. Opening in a new tab also makes
it easy for the user to move text between wikis (i.e. the Refile use case).

- Improve HTML file path handling. Extract only the HTML file name from the URL.
Return a 404 status if the file cannot be found

- Place featherwiki_nest.cgi file in /usr/lib/cgi-bin. The file is installed as
part of the FreedomBox package, rather than a step in the installation of
Feather Wiki.

[sunil]

- Reorganized description to complete the introduction before talking about
FreedomBox implementation.

- Update description to say that only users of 'wiki' group can access.

- Update description to talk about where the wiki is downloaded from how to
upgrade it.

- Update short description to 'Personal Notebooks'.

- Add UsersAndGroups component and to reuse 'wiki' group properly.

- Reorder component to resemble other apps (could prove useful in future).

- Restrict frontpage shortcut to 'wiki' group users.

- Minor styling updates. Run isort.

- Use pathlib.Path object where possible instead of os.path.

- Perform sanitization in privileged methods instead of callers. This leads
better security if the service is compromised.

- Perform duplicate checking in privileged methods instead of callers.

- Check in privileged action that uploaded file originates from temporary
directory. Otherwise, arbitrary files can moved into DAV directory.

- Switch storage path to /var/lib/ which is an application data folder from
/var/www which is a user data folder.

- Add extra security to the DAV folder by explicitly rejecting .htaccess
directives, forcing mime type and removing all options.

- Update SVG/PNG logo icons to adhere to our guidelines.

- Minor template updates. Add required attributes. Improve i18n. Avoid <p>
  inside <p>.

- Refactor tests for more code reuse and fewer globals.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-08-07 20:03:10 -07:00
Sunil Mohan Adapa
7ba559a8a9
base.html: Drop dependency on modernizr.js library
- The library performs a large number of tests to determine if various features
are available in the browser. In Debian most tests seem to be present unlike
other methods of distribution where users select which tests they want and build
a customized library for their app. This leads to increased page load time.

- The only functionality we use from Modernizr library are the .js and .no-js
classes we use in our CSS styling. Modernizr is not needed by Bootstrap library.
We don't use 'Modernizr.' properties in Javascript.

- A bug in the test to determine if an <input> element with type="number" allows
localization or not causes the page to scroll down to the end. This behavior
appeared in version 3.x of modernizr and despite the bug report and the fix, it
is not gone. Dropping modernizr fixes this issue.

Tests:

- The logout link in the header bar is visible only when Javascript is disabled.

- The dropdown icons next to header menus only appear when Javascript is
enabled.

- For each feature detection provided by Modernizr library, search if our
project is using that in CSS styling.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2024-08-07 23:26:32 +03:00
James Valleroy
32cdbe1f30
Release v24.16~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-08-01 08:04:18 -04:00