298 Commits

Author SHA1 Message Date
James Valleroy
2695c080c5 Release v20.12 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEE5xPDY9ZyWnWupXSBQ+oc/wqnxfIFAl76kcQACgkQQ+oc/wqn
 xfJ8KBAAqcaEO3tV84OJ2te5Varbi/N0ojiiXMmrhBxY8Xy0naajE/gRouZfY/J9
 bpzxBlSTex1JY4I6BYUMDeSkWsyGPMFfKSl3UJ96J5V4/yZkZ5AepuOSlwMvp705
 ZyatEM9872ylpO/gXamltEyjqDE1G/538bNq8Mhh2rCTCXAaTGmPFHsc/6Up3+Oc
 6BSKfX3KeKQMBXaRz3putU3Kep8f6OZEO4qSPqU5dvgSoPQSA8rzrfe7fvRyiAfV
 WPEourSz1yN1tw/n8nwWSFqO8cq0vsC2l716wHX3mCYwHFRJt4rKfBwv9LhZPlHI
 NTmkhtQHfbR26QecbCaTWqDLBeDYa0mmrOOagA9P3CP/WSMX1BxpGSG55B/WsNTK
 HhncoDTFHR3CU24f6NM3zwup9RAfdyNfatfNa8s4XW3N++HutW1BRC27gG3F/BkQ
 dd0YAtGK1mCLgqSFI/QuWkwPmaJqPACu0wQgA+aw2ZzYYRphVUJC2nNNMrDcuyl+
 W8+WywkR+Fread3FnG8u8LGE8bFPWhI4+q3yp8a10tccON/i8Wx5oELNm4M1Su5X
 WQuNbRWEbFAafKKXIaP/eE0X1NHEWzu8zeitKiGjEWiwiukUEtYZVwsfaBrWf3vV
 Ms+PNEAgEnP93nuSB60bRvoGpJRiLyNN0otVIvVq+xsJ0I4YPeA=
 =clcr
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl792kgWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICEUPEADBuS+NldPwel2RETC5znM+pbRO
 iA1YlytqRDGOlyKXhCmt7RLJk5FV9jDMy0FW0LV/VT8aSbhq1Kwrh9tiad22MmwS
 jhggN3TUNWpjwjHNt8DCc3bwQjOWuSL9Hd9wcMHtzGvaCcy/FjA5lahSe4yiyCzB
 Vb3BbXb8LB4+ri+izYFzf3vvVR7ta3GR7WfFeXs6ol7/N8TshQj00lUsl3kRZ/LH
 2jvRMjh/beAenpatLP9cOE5kNYAEt5BfOa0wQ8RM6c2Ywh4uvdiHuqPMieFLVSLD
 mm8bSU3V5J7QgDUMRR++f8DVRl+TFLNH7TZGvXQRetjIEaWavROdGTIs+GD1svpz
 YyO1GWlvPeqtoyo/ODB69z7hs8uMABdH9MFv9f2awVZI+LCtQvyY7oVpmf2qMC5n
 MYJHzFE2Evm85oCpA37GlFseMvrSCj1ZQwlq3Pk7aDAfxiQddgc69uWNhtCvw22b
 xrZ8WmxsQxlGrP88RVkgqVu/vQ98SIrNzI+tV3HBgMhhupNmjcwdOxUhzdYGrrph
 2r00AZMKmK+Kd9P+1kzQJr6vxIoJ8PAsI8AUzQ/q17slwuMZ+BoNNb9xXLJwdUxA
 mlcEIYlIYJ5A6uwWIjTPrfzv5o/e3qjo/Mu94CB6MXRSO7VZ/qwgh8/CjQ+ZGqPf
 4Qcv+HrsTkAOqh1zwQ==
 =wN2z
 -----END PGP SIGNATURE-----

Merge tag 'v20.12' into debian/buster-backports

Release v20.12 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-02 08:59:47 -04:00
Sunil Mohan Adapa
af276461fc
Release v20.12 to unstable
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-06-29 16:41:18 -07:00
Sunil Mohan Adapa
bf7a9b8c7a
d/rules: vagrant: INSTALL.md: Fix installing dependencies
- Using ./run --develop ensures that the last list of dependencies are picked up
from current source directory instead of list of dependencies from system
configuration.

- Using sudo -u plinth ensures that even if any temporary files are created,
they belong to the plinth user instead of root user.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-28 21:02:05 -04:00
Sunil Mohan Adapa
823735729b
d/tests/control: Rename Plinth to FreedomBox in a comment
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-28 21:01:38 -04:00
Sunil Mohan Adapa
9def9750c0
frontpage: Drop empty custom shortcut files
Installing an empty file in /etc/ that is meant to be modified is an unnecessary
invitation to upgrade issues.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-28 21:01:20 -04:00
Sunil Mohan Adapa
4263f9e2c8
cfg: Drop the default configuration file
- The configuration module defaults to values in the production configuration
file.

- If the file is found, it is read and the read values overwrite the defaults.
If the file is not found, no error is raised. This allows us to not ship the
configuration file. User may create the configuration if they want to change the
defaults. This eases upgrades when configuration is edited. This also make
FreedomBox robust to deployments where /etc/ is not populated by default such as
OSTree. It is also a good practice for daemons as followed by the likes of
systemd.

- If the file partly populated only the values read override the defaults and
the remaining values don't change. This allows the user to write simpler
configuration file.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-28 21:01:15 -04:00
James Valleroy
aac511d534
debian: Add nscd >= 2 as dependency
This is a slightly hacky way to ensure that nscd package is installed
rather than unscd (which provides nscd as a virtual package).

This will work as long as unscd does not jump to a version 2. It is
currently 0.53-1 and has little recent activity, so this condition
seems likely to hold in the near future.

Tests:

- In vagrant box, installed unscd. Installed modified freedombox deb.
  Saw that unscd was removed and nscd was installed.

- In DigitalOcean droplet, reproduced issue from #1877. Installed
  modified freedombox deb. Saw that unscd was removed (no other
  packages were removed) and nscd was installed. FreedomBox interface
  was available again.

- Built a freedom-maker image with modified freedombox deb. Checked
  build log that nscd was installed and unscd was not installed.

Closes: #1877.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-06-22 15:13:59 -07:00
Sunil Mohan Adapa
28e19abf46
d/control: Add python3-systemd as a dependency
Module systemd.journal is used for writing proper structured messages to
systemd-journald. This was earlier only a recommends.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-22 17:17:55 -04:00
James Valleroy
728db70979
Release v20.11~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-18 07:27:16 -04:00
James Valleroy
65a81f296c Release v20.11 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl7oGyEWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICJNzD/9JYiEeyiJbcfS8hiNQwYtWehW5
 OGetP2fsHuJLXgTbO4QybhLRzOUe2DoQi1O20Swf+91kKUu+sEb9GGb9UOTHry2q
 ZLyBnUZnlK30XJnxPMHzOZLXSaMFfVBZz3EJlyO4QnjiMos2KdprEbcpI+s8RiU8
 jfb9mbX1p/hgpOHcoEfvRWR4MwDtwN9u5btwgPac61g+pgEHmqhpWFxFafnPgkPn
 DqZS4G+7moxTSHVkG6MEWqSjIg5Ld7vwBG2oWjx2i/81iqHjqqFDbZ6IU9W31i+n
 1/d1k6kCpa7ONANqcspIc+DQ2GQs+LKgDi4oz3jN/QruhqDtZTnXm14Aicygn4R1
 2J5hJvBfOCYVhuqCWIWgJ9UZQQRMgAXAvNu7lJWC79CDW2XeASgT1elM1z+QLQgP
 pAEXfnwDWKVSBN6kDF6yLaYmnvMNYS0lTKKrc8nFp+5EXXLAqp2BMLIK+VrqX65d
 P8KUiVG7LW675JCM4XQTF4yrwe6lN44W2wgDpYfcL2l0pvFR+r7G3ZZNLgoEIPO6
 1ruxIH0ulK6i1BLET3IfH/AvPp8pqLM6BJ/wLYcjuNg0ebzOWHLX9HvCdPbQazC2
 9Mddg3JE3ps+maQerIPlF6/ruzdX/mGkeJYdCe5i4eo6DG+KEMq3JhW2fXjh35Tx
 GYADn2TyMHwZGdUR7A==
 =/4n3
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl7rT3MWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICBW7D/9wFVGnILocMC3om10KTkmlB8vs
 m7gZA025iQ3BIb6U6hMdevbGStowMHE8W7akOp6XPyJf5uTAQC/g8SAdHBTvRp/R
 tN0zmlH/HWk8dyZ4MsHbEef2nwNBNiaUCzhtiOxD4BaBbiQuHRD8u3VoSOEN1K16
 WRARWOekt7vgORpOhCKF9L1EKCWrMfhemI9w7Qj2lE+Sb5Vxz9Wdc0I/cEulZTJK
 s32G2YeJP5tzPrkqzRxG9L61z8J8oyMSI/kK91MCV+NlL2eHBuTtkAGIGw6PIfHa
 GoGhI7CeatJSA/ONI3HhjDl+TBAmWVRQABb84CsbB7bk+/ksh3WZkrRkCuXkdsvL
 rzGJSxX+5EjpBvPiwtg7qze+HNqz8jhb8n9ZGBi1z7bXvSaChDNILyz4gNaKHvT6
 iNvX/aiEmvw16kLXuqZUyBkC2R62IwpOO3MDUzS1zkQBsyHss+DpDrfiqiPoJrBx
 LVQ3sOUmR9SWhQPofoOml+cfR5bWn0Sk5v07UPQFNzAfL5A9tOq191xx4aXsHPX3
 w1dDFTfDB8OejaSFImDAa9RlxLmndkfeu+RCdtO8XUqI5v8WTXr+l536W85fwz4y
 yuqCC1uIKSBmAX+OdWt77Su3gnxu5zxMtlMpJk5O+zYodApo+xi3nm/pL7VRZz3+
 6ojjJxyWxrw5jV/oKw==
 =tHek
 -----END PGP SIGNATURE-----

Merge tag 'v20.11' into debian/buster-backports

Release v20.11 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-18 07:26:40 -04:00
James Valleroy
9485d29cfa
Release v20.11 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-15 20:06:39 -04:00
James Valleroy
03115e4e72
debian: Update renamed lintian tag
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-15 20:05:57 -04:00
Sunil Mohan Adapa
966ceb5871
container: Fix upgrading of freedombox
On a development container, we are currently changing the plinth user to be a
non-system user to allow folder sharing with the host. This leads to `addgroup
--system` and `adduser --system` failing when a non-system user/group already
exists.

This patch added checks to ensure that plinth user and group don't exist before
trying to add them. Several packages in Debian seem to be doing similar checks
before running adduser and addgroup. So, this patch is not bad to have even when
container hack is not present.

Closes: #1875.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-15 18:30:04 -04:00
James Valleroy
2d1ced84cd
upgrades: Use a custom service for manual update
- Do not enable/start service during package install/upgrade
- Configure needrestart to skip restarting service

Closes: #1638.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Provide proper regex string in needrestart configuration with qr()]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-06-15 13:33:31 -07:00
James Valleroy
2978baa68c
Release v20.10~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-05 07:11:58 -04:00
James Valleroy
a030d64668 Release v20.10 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl7Vmh0WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICFKLD/9IKRjwsctivEJsLVy6NsWOM7H8
 DPJ1rgAckxgiMCE4x2GbAcysLN1u0ciLV/HoqBYkJ8KLNZrX3MO0Fq8/q2hnDiEB
 8KW7JyI+IxxjHErHvJFLgRnLKeuA6lB1cQVZN01qW4bOjSDzAiugAcwLcNWLgppP
 EdKSIh/qXlFZaqnOjXmE9RLruZ9S1qyMKJdsfi0j2Rd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MysrSmce7
 JQPBvNaeFZV0QEPNSJlSKYB65Xwl67ClYVlZVnnzbC1VWYwBolKmvSanqEMao++4
 PENAcq0flC5fMkcF58VNvGkcqs1xjCJTzB92eriB1+KIegDvunh721ihR6619sCT
 oOFJ84gUHs3ebFZtNUl1K0B0r0ofzTVF7bqfcPZDBJ16JhW6Iw5xD5qfpLvKsFoi
 lv6D3nRhG6mSlAWzte0RSQukWdHOPFz2f1ezx/lQ6Gik5CI5nMY6w4RKUow1QLPV
 dtZlH8NWtai4kk0odg==
 =Eb7z
 -----END PGP SIGNATURE-----

Merge tag 'v20.10' into debian/buster-backports

Release v20.10 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-05 07:11:08 -04:00
Sunil Mohan Adapa
ac103d7132
*: Remove use of Turbolinks library
See #1841 for discussion on why Turbolinks needs to be removed.

Closes: #1841.
Closes: #1804.

Tests performed:

- There are no more references to 'turbolinks' in source code other than .po(t)
  files and the manual.

- When loading a page, turbolinks.js is no longer loaded.

- The following links don't have data-turbolinks attribute and work well when
  clicked.a
  - Gitweb repository links
  - Download manual links (en, es)
  - Ikiwiki wiki links
  - Sharing app web share links
  - TT-RSS mobile app link
  - 'Launch web client' button
  - 'Launch' button in web section of clients table
  - Active and regular front page shortcut

- Roundcube does not have a link to /roundcube in description.

- turblinks not present in /static/jslicense.html . LibreJs accepts all scripts.

Reported-by: Veiko Aasa <veiko17@disroot.org>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-06-03 10:29:19 +03:00
James Valleroy
bce4c1c974
Release v20.10 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-06-01 20:07:15 -04:00
James Valleroy
b9459655fb
debian: Mark doc packages as Multi-Arch: foreign
Issue was reported by multiarch hinter on
https://tracker.debian.org/pkg/plinth.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-05-26 19:01:25 -07:00
James Valleroy
c5fdf699f7
Release v20.9~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-21 07:07:02 -04:00
James Valleroy
03f08ca5a7 Release v20.9 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl7DLdwWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICL6LD/wKkImO2qEucdZ86feRWK7Dnc9M
 VhysJ4mjvqDmd22cVi7Y7+w921mQ8SCKIB8RWpjqzvwFSywUAIV+VyuRWtW/L3Ix
 8OQervWz18w++LYRW+6vJ+9cRjIUVOEterOwcwZCaFql67sl8LsCm9l/1fEPh2Km
 PzAFk+2XN57ON7yQMzntjNZciHxRI87MklKlyxeKOtgcNwjIX/cow4yhhgKCDPEe
 r6jAfAIzQRKKHAZJ+FJQyqG9bAdP7nXuvZh5e0qvebPCqi3Gbw6lm/5ivMBOoTp1
 4fTnrLD4xM9o9iU+6p6u8TVB/CCQ/vGeil95U3/zptfpD1H7W5C5Sd/qEC9GOOVl
 uHeNfQNlZe/vLqdGyK10GBgdL2t5FpbQgBDRDsNu6fOSOpFvn0FKwVQ5aVAazwfz
 i/QErSKCf1TD8BPmEGtcGC49rPLukNSwwZ13YNS2/A3laoWdLkpusMd5Xg1Fh64T
 iWvQFCI4/T/GAnQeE6HlS5cmdRu09TlewgMKk2x54pGoqfLSFTJxO77enKYftlZA
 de8VOsrcISwnuPA9KkB4Q5MQ6Ds/Ibfy+OwYRi1ZO0f0Dad6IyOrWPWRU0ZNPUny
 nmYdA/J3/hvBgR7v5NrIvN+OZBtz4GZcDPnce9d6ryVh6AMjmDP1otf46cMXgkMH
 uBhRfYviLns0oW17xw==
 =bpv2
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl7GYJwWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICJoTEADRoDLFfAbhizXRjm+CdPmw2qqf
 9lFlAxwqL/mso4HhIkFNnIjlipLnHdY9iC4hXUiYFe8phypByT8t6t7hxm8PX5EU
 VwJDN8M4sg46O6GGgjbcs/eaaB6b0P9QHm07+gcWIMDcaqgb6Ge+A/VaxpXIU9rk
 q0OXmnJzzulSl2/C5Abv3928Ya/N0koOY7q/BKv5go4M1/I1D9M/xwgSrXcEpTmL
 7SyzT117Tz/D8G1mGINgu/GsN+QnRWV2FlCb7aHOfVIJf9AWob61jd53v45TpBkb
 BaIqwRqvrmeNYPoTPIKF85kIlNSFB35SJ38YkKa06SZYWbPRMZ3VyK/Okq3BCSIu
 6R6YSpz6HyIJ26nkDjrVk3elRw0A+VHip068kiFKC5UyoY2JQtmIGS07sjW0lggK
 Rd2z1jz4F+724ihK4ImYy2YdtraLHvgWrlXMAxT3tVqDwUNG3dTORd/6HhZ2M34o
 JtG9SmGyYZ61fEUOm/9OqEYEGq7Q71wdaktP0QVxB4H0aospE+HZuOeuYTcdvSJN
 toV4LyOozmoxhNk/Pe8sGFJ9JWdjfqnMh51qvfkTVbsftQe/+lBJccr8mpJqHQFm
 qX9+TCIuYXAH5qyR4ZUPgRwT8ZEj7YkeYhNr9c8ciA7O674WztY7/Y0sqAQeygdu
 Ki/wb5E7Si6q64Ie0w==
 =/g55
 -----END PGP SIGNATURE-----

Merge tag 'v20.9' into debian/buster-backports

Release v20.9 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-21 07:06:00 -04:00
James Valleroy
10924a1dca
Release v20.9 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-18 19:43:25 -04:00
Sunil Mohan Adapa
e51d027618
storage: Auto-mount disks, notify of failing disks
- Remove freedombox-udiskie.service file. Don't run udiskie anymore. Use our own
implementation of auto-mounting.

- Schedule disk failure checking to 3 seconds after application initialization.
Also perform auto-mounting at that time.

- Listen to new filesystems added and auto-mount them.

- Listen to disk failing attribute and report to user via a notification.

- Add rules to polkit-1 to allow plinth user to mount drives.

- Add simple abstractions over DBusProxy objects make accessing properties
simpler.

- Replicate udiskie's approach to mounting disks.

- Mount as root user for now using command line instead of DBus API. This is to
keep compatibility with older code that mounted under /media/root with relaxed
permissions.

Udiskie analysis:

  - On device added, media added, perform auto_add
  - On device changed and is addable and old state is not addable or removeable
  - Automount condition:
    - Matches configuration
    - Not ignored
    - is_filesystem and not mounted -> mount
    - crypto device -> try unlock -> if success, mount
    - is partition table
      - Get all non-ignored devices, if partition then mount
  - Mount condition:
    - Is not ignored
    - Is filesystem
    - Find device with path
    - Get options from configuration
    - Is ntfs and executable ntfs-3g is not available
    - Call mount
  - No support for udisks1
  - Built-in rules
    - {'symlinks': '/dev/mapper/docker-*', 'ignore': True}
    - {'symlinks': '/dev/disk/by-id/dm-name-docker-*', 'ignore': True}
    - {'is_loop': True, 'is_ignored': False, 'loop_file': '/*', 'ignore': False}
    - {'is_block': False, 'ignore': True}
    - {'is_external': False, 'is_toplevel': True, 'ignore': True}
    - {'is_ignored': True, 'ignore': True}

Tests performed:
  - Create a CDROM in VM, inject media. Disk should get mounted.
  - Create a temp file. mkfs.ext4 it at top level. losetup it. It should not get
    auto mounted as it is a top level internal device.
  - Create a temp file. Create two partitions and format the partitions. kpartx
    -a on it. Both the file systems should get mounted.
  - Create a temp file. luksformat it. Create a filesystem. luksopen the file.
    It should get auto mounted.
  - Checking for disk space repeatedly happens every 3 minutes.
  - Drives are checked for healthy status only once, 3 seconds after FreedomBox is started.
  - FreedomBox is able to mount disks while running as 'plinth' user with
    policykit-1 version 0.105-26.
  - FreedomBox is able to mount disks while running as 'plinth' user with
    policykit-1 version 0.116-2 from experimental.
  - Temporarily flip the is_failing condition in report_failing_drive. When
    FreedomBox is restarted, notification about drives failing show up. When the
    condition is reverted to normal, the notification is withdrawn.
  - Build new Debian package and upgrade system with 20.8 installed. Two files
    should be removed:
    /var/lib/systemd/deb-systemd-helper-enabled/freedombox-udiskie.service.dsh-also
    /etc/systemd/system/multi-user.target.wants/freedombox-udiskie.service .
    systemctl status freedombox-udiskie.service should report no such unit.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-05-16 11:42:23 +03:00
James Valleroy
7c6e265fd7
Release v20.8~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-07 09:45:59 -04:00
James Valleroy
db3f921957 Release v20.8 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl6wwusWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICN8lD/9J3StIZ5Jnt77+ZehQv70vXwOo
 6fwUqvWjxGgtzL2AAID/u1Yr6EvafduWqMYDriQscyybgMJeiAVGDzMaGqYbHJZw
 TH4jHTpLW0QKDIuyq5EF4ER74wWzTiVvUHV1sv7DyrMBQrJsxcccsPifmXRWtzCS
 XqLcuQUlPm2ws2Jts7kr5uc59hBO61TcwYfje/r2gRj4rfsb1ArJb+b209/8P40I
 lAA7j0T7uULOrdZR0jvKo/lPpcxwvxejiMHqUwHp2RBmQGceoqXTV/FXIysaBm39
 5FaAm6lKZuWKPj2d0GWFu3xsTQ9c44uOJ8Kx1FU2LCsN8k78n5zmOEURZ4Rxm7pg
 /Cb+098obT90/fW1MpUsx07gxPTcWmQwU/2urHsAl1A8S6cSMjueAh2Eb7pmlFe5
 +U7u4TdZsqJHsY3MSK5e7RMNiUnchZN5Fe5APGBy0UXh0oCbnYz81kJ7plz6C56s
 iJp+h/zWKqLfhvbMFLurPrAsZTRoH7OYnBl8A4YYuZW22DYxnYFFbcN7vQ0tayqB
 onAWw8aNNWl3v9LVkU/bZWR5GZg1CDTaloC5c+encaOEXMpRuh2Ml57BFF123OqI
 o1A2wuqFo34szEzJO0jm2OTc3+H6dR5m1+e0uNZsRVSHNOWcEcCsAkfTH80ImO3F
 LPfa1yll1w3sUI78rw==
 =wG7C
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl60Ds4WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICBVPD/9vgxtoC0JZ7/JWOm9u4PtyyISz
 r0yjTRai7deOxUgCMbKMLUoPL4XiKpsf4+OnAkKQX8WZUtdo4IDRT7I9S3hgzpip
 32vEyTP7YgT5AGXx+IQkE/GxmY/9IfHRKxTbfW/0kSyUM1cVszD8V2qI2ixbso3Z
 GdT51d5wi/gjeGF0Crz7li8n4cJEcSSKos5fY1jpOsGyAQukPlTo4pn0hr34qkIx
 BBHsNjVcvvkImOPPb7GxNqcRuxH0IOmqWvhnS3P31iWmNdY0XK7ZZnbdEJN7GwwN
 AZD7rIiv+t0dHtYFaTVMnV4Zs0RsfEVEUXK5mKXfBL/VpMsV4pgdsDVvgl8cnCrF
 y+ED//Q2QkNSnKmqU/WEYr8pOq9pdGpz2mceyAGpRnwDUBWePRwmH/FP2XNzhNt3
 rdNUe0Go8/DFaaIHR3NQ2G6GNFTGu10sw5b9ZojjQ7qcR30W8K06uTy02/BuajDS
 Q0l6OIAqZQeNIiD+iEY9YrHiBJdjHBB9yBOTmGtE5Wse6ctTP34UBCqdvm2m38X6
 2cMfwZmCazNR+ooOdgHy8i2uZPdPlhWI7rGuijJvnmYw/mMn/cIMulKsfGq6sYhN
 oBin9/Vya3G1xryInIC14eIIu95Yqgw9wIUoSyhjoEwwfavDAt9r35OTDkqSIkr7
 hXqtWWvTk6w0siLIMA==
 =WPG/
 -----END PGP SIGNATURE-----

Merge tag 'v20.8' into debian/buster-backports

Release v20.8 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-07 09:36:10 -04:00
James Valleroy
dac7bc4f8c
Release v20.8 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-04 20:55:02 -04:00
James Valleroy
e522bcbf22
debian: Use debhelper compat level 13
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-04 20:02:16 -04:00
Sunil Mohan Adapa
b4e6c03bd7
coturn: New app to manage Coturn TURN/STUN server
- Shows URLs and shared secret that communication servers like matrix-synapse
should be configured to. Later we will implement auto-configuring those servers.

- Allow selecting domain for the sake of TLS/DTLS certificate installation.

- Simplify systemd service file options. Drop log file and pid file support as
they are not needed with systemd. Add security options.

- Set custom configuration file by overriding systemd service file options so
that we don't have a problem with conffile prompts.

- Implement functional tests (and automatic diagnostics).

- Custom icon selected from the Noun project as Coturn project does not have
one.

- Backup/restore configuration file and certificates.

- Document some questions regarding configuration options.

Tests performed:

- App is not listed in the app page if 'advanced' flag is disabled.

- App name, icon and short description shows up correctly in apps page.

- App name, icon, short description, description, manual link, enable/disable
button and diagnostics link show up currently in app page.

- Verify that configuration used by coturn server is the FreedomBox
configuration by checking the cert path in the log output.

- PID file is not created in /var/run/turnserver/. It goes into /dev/null
according to the log output.

- No log file is created other than what is collected by systemd from command
line.

- systemctl show coturn.service shows all the intended restrictions such as
NoNewPrivileges, Protect* options.

- Run functional tests.

- Ensure that backup of configuration file works by taking backup, changing the
secret and restoring. During backup and restore coturn should be stopped and
started as per logs.

- Build Debian package. No warnings about the copyright file.

- Enabling the app enables the service and runs it.

- Disabling the app disables the service and stop it.

- All diagnostics tests pass.

- Diagnostic tests show firewall port coturn-freedombox for internal and
external networks, service coturn, and each listening port for udp4, udp6, tcp4
and tcp6.

- Information in the firewall page shows up properly. Enabling the app opens
firewall ports, and disabling it closes them.

- When the app is installed, if a cert domain is available, it will be used.
When multiple domains are available, one of them is picked.

- Status shows 4 URLs with the currently selected domain and secret key.

- Changing domain to another domain succeeds and reflects in the status
information.

- When no domain is configured. Installing the app succeeds. No domain is shown
in the list of domains.

- When domain is changed, the certificates files in /etc/coturn/certs are
overwritten.

- Certificates have the ownership turnserver:turnserver. Public key is cert.pem
has 644 permissions. Private is pkey.pem has 600 permissions. /etc/coturn/certs
is owned by root:root.

- Let's encrypt certificates are setup immediately after install.

- Port forwarding information shows all ports except for relay ports.

- Trying to create a user with username 'turnserver' throws an error. This
happens even when coturn is not installed yet.

- After installing coturn, the configuration file /etc/coturn/freedombox.conf is
created with ownership root:turnserver and permissions 640. The directory
/etc/coturn is created with ownership root:root and permissions 755.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
[jvalleroy: Fix copied form_valid comment]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-05-02 18:51:23 -04:00
Sunil Mohan Adapa
16202e6f3a
*: Update links to repository and project page
- The repository has been renamed from 'plinth' to 'freedombox'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2020-05-01 17:14:23 +05:30
James Valleroy
41498ba9f6
d/copyright: Fix path to visual_design
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 16:15:58 -04:00
Sunil Mohan Adapa
ff44a7de5a
static: Don't ship visual design file and unused images
- Move all the unused image files into doc/visual_design directory.

- Reduces the size of the shipped .deb binary significantly.

Closes: #1840.

Tests performed:

- Ensure that each of the files moves are not referenced anywhere in the source
code.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 16:10:02 -04:00
Sunil Mohan Adapa
af5e0e1b24
debian: Remove timer to setup repositories properly
When removing systemd services, dh_installsystemd has no idea about services
present in the older versions that been removed. So, it generates no handling
scripts for those services. No convenience methods exist too.

dh_installsystemd uses deb-systemd-helper which maintains state files in
/var/lib/systemd/deb-systemd-helper-enabled/*.dsh-also. These files need to
removed apart from symlinks created in /etc/systemd/system enable services are
enabled. If the service/timer is currently running, stop it too.

Use deb-systemd-helper and deb-systemd-invoke to achieve this.

Closes: #1835

Tests performed:

- Install a freedombox version older than 20.5. Upgrade to 20.5. Notice the
incorrect symlink
/etc/systemd/system/multi-user.target.wants/freedombox-setup-repositories.timer
and also the state file
/var/lib/systemd/deb-systemd-helper-enabled/freedombox-setup-repositories.timer.dsh-also
Then upgrade to a .deb packages built with the patch. The two files will be
removed. No extra messages are warnings are printed during package upgrade.

- Install a freedombox version older than 20.5. Upgrade to .deb packages built
with this patch. Notice the same results.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 15:45:01 -04:00
James Valleroy
81575c0878
Release v20.7~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-23 12:12:36 -04:00
James Valleroy
55694fcb7d Release v20.7 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl6eLk8WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICE+tD/9uCLOVnAYSoHimXUAz/e8eGrne
 6R4320VEHS7lEnahqw2lsRQo8Bv12eunFC7wiomak9AVASahWNVeaKSi+q6p0CoT
 q1usNTdsjQazoBaYew1bIdXIgQQSihoak7aOJhRc5okyV88U7mgA6wxCBlP2giQW
 2YoDtOLOYbSucM+wJaiTCqejHDyMb4sQhCD5Mg5dXLN7Go23Ln8shT/3nJnJ0RLQ
 ltA+z/WcW6cTOSjzvwKCtMxuAKy71H12CNuwpeLrWQYroHXopHH85nT8M19YOTY5
 kFoHkPcqyRXWRHCoCYDW1ulJyXVuOplGA9rEadmT/v1M/BDbgXpke4av10NsIr18
 E/RZUd1n2geD9PJkqlA58A0shJ9/cPkFLEL6fW7ONTg6McJ8c62gy8aOCtyhk3YN
 sAZ8kcQ1n+2T/lLlLCmYD60cEVnheuY/nyGvB/ZcZ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ZApyWpMQqX/Vi5gRPw
 XEKSG0oz/YHUIlB9Bw==
 =F5na
 -----END PGP SIGNATURE-----

Merge tag 'v20.7' into debian/buster-backports

Release v20.7 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-23 12:11:41 -04:00
James Valleroy
167895b537
Release v20.7 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-20 18:39:06 -04:00
Federico Ceratto
95496d8a7c Release v. 20.6.1~bpo10+1 to Buster-backports 2020-04-17 00:05:15 +01:00
James Valleroy
362d990f1d
Rebuild for buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-14 07:13:12 -04:00
James Valleroy
d409ab1d66 Release v20.6.1 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl6R9E8WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICAQ6EADNntKhbZbIB7wLA+CWxHe0rWy/
 q+x6ezO09otNw10kBYH4SwROP+13JCsmSwsg/UZCvUbxz8ZyMMJBmi0G9PISVMKs
 I59nPbYMko65S8xElE5BJjV19sYth7NqgQbEX7+vVM6XIIErvyRq1FYQao5uu+fy
 KbQuTO4wAGnC4aM1z7m/YAlck2lgCBFzzx7LOnWYT9+55OC/mvUoh0MxzGjizRlR
 +q1XRd8VCagkb0UGDjFR6Mc5IxJWVKVnZhhvCm/wMsn305SL+wNhF4xFDjdjAPVA
 cl25iPlfAmSO9nArE9etOEb4w1F0AW/coa7PNgoAJL2FUi75FM4J5qKAiYB7FMdv
 qouXBF0KBTTA7WLBA99gPYzHWGzWq+QqHlK9Gv/i76DCwnLzrxm23Hk1nMDfdlsN
 V75yzVE+ZROND60y53tonxcsmn4MSvbBf2GLoyWR1bDhnNruaPWZO9ofbZRXxV+T
 7K/9OelTMYT4ygMRBtuzigV493esN0tSadvtkjbqLEluKbFCiBI41E+5sx4tnoC1
 x1kLnZsuz0fjINzz5RsgYgJPzygksgCQdAMpCd9Q0sHdqp5MQI2pzWXK+cnypKjO
 theN7PWqZcZPOW6S3g6xyQvPivWB4uqoe5xEfRRswZR9W+usuiGN7W+pp7SbNhLr
 HYP5moIVNzJglPRc7Q==
 =iR9u
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl6R9N4WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICNMJEACqUmCHe3ToWhqLYJWZJyXflGKN
 m/pOwVIWOUIsbhvVABnYZjAzKAadzRmfgf03GYzmh/UTEMwko0myjtPXhmuJAglL
 c8rlm2Mx8xsK5FxWMsTVJYocr3c1+D6YbNcP1uKkiSPMkuU4mn9mZAEkb+JYk3yg
 34ftnI759NcIDrpBdh2PdsX4135E73RLv6r3fEaGC8S89sM+ZiGaZ8MTlFM5MGzo
 Rv77LjjmjYof/nQjDy383kjxDsKxfxdTkKw0FdFtz6hGuG/99aMZkURIApBMF2iv
 rDjeAu8RwI//pnJP2nOLaD2E0Pz/xtcbcjBGZP+hy1gSYvoCKULdHlv3Rp7qy84Q
 tXtyFc1aLoMIiUqtR2cpSTC7xbxR7Ht/1Cvuw1bBspagid2LEyQoPdsJrL35usu5
 tMd6q9/gcK57p0/g6FZvZ7S/jpGbpDsiGxJXymNwAWvoVdY8IdPRAViKYtym+Qp0
 do+ELzXszJVZ+enhf8cXmhVETULejmxhBaLspXEEXYI+yDPb1kgiPqJ8ZvNB21kb
 qqfDcK60DEm5XCXSKJQMsbH4u+Wd+FP5dx0sUqLBR+im/g7DItcdaaZ0ducLRutC
 0driYWlF1FfBUWxD/qltRoK/lB8jJB1vNji4bKUnZu2n5wT/iNBhJcbN15HLbcFL
 NUSB23gNQbmgLdyNMg==
 =7GGq
 -----END PGP SIGNATURE-----

Merge tag 'v20.6.1' into debian/buster-backports

Release v20.6.1 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-11 12:48:27 -04:00
James Valleroy
ba0bb524ee
Release v20.6.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-11 09:57:07 -04:00
James Valleroy
a9adc13a56
debian: Add firmware-ath9k-htc to Recommends
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-09 17:35:21 -04:00
James Valleroy
64024725be
Release v20.6 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 20:53:29 -04:00
James Valleroy
30b4b67e7f
debian: Cleanup overrides for jsxc symlinks
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 20:52:44 -04:00
James Valleroy
dd2ba4c8fa
Release v20.5.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-26 09:13:34 -04:00
James Valleroy
c7f974677b
Release v20.5~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-26 06:28:56 -04:00
James Valleroy
7d01a7f28b Release v20.5 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAl55VLsWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICE7yD/0bN2Uc/vvJY1SMZdbxq63YX0K3
 fhqRLuxEBJckdcR0K5lm1lwymmLkuBASdojUwn+7ZJGbzNDiBY3SmIYQAhMrmhb+
 OGxnM4n2XUYWdC7PqrNlw5Bps4e5J32zDXhyGvx15hPwQS1gollJ1j9iSX8rswG6
 /UKFrA8ZuBbT5PLfH5WjubIsNsTcjBFJ2oDuhhn4FW3X9DjH624Mgg+EbrIBXG9D
 X1GEVN/+WoMXdDKC0FUpV4xf9ET8Q9kMaT/HPqN7AtVMhD0Pb/uNNL/X6CXo75VY
 HkPq6yc6s4YizWCOAIS9MIa3wYU2Gt4cIn0nLBWOG5fSZyB6VQiNfTiT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4WE5Tz8baHy+sdtO3Q8J3/M6KsSwXRjt/kdB6tTwcAVWoYIzOHJg8plyWnpJfuS
 3qhGGSHxX6zaS6SN87AmT+hEY6pSxAHDs0Bxb8okvr/HEuRMU38i6UyQZMOIUv3I
 Jf9JBpqheqHWoNUCnw==
 =816Z
 -----END PGP SIGNATURE-----

Merge tag 'v20.5' into debian/buster-backports

Release v20.5 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-26 06:28:07 -04:00
James Valleroy
b7fda9d657
debian: Correct doc package names in Recommends
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-25 18:47:41 -04:00
Sunil Mohan Adapa
cd5bd5a31c
debian: Remove outdated TODO file
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-25 17:52:24 -04:00
Sunil Mohan Adapa
172f5f3160
debian: Separate binary packages for each language manual
- When there are multiple binary packages, a common practice is to install into
  debian/tmp using the Makefile and then use dh_install and .install files. This
  splits the contents installed into debian/tmp to various package directories
  debian/{package}.

- Install documentation in to /usr/share/freedombox instead of
  /usr/share/doc/freedombox. Then create a link to /usr/share/doc/freedombox/.
  This approach is recommended Debian Policy Manual in section 12.3[1] because
  it should safe for administrator to delete files in /usr/share/doc safely
  without breaking the application functionality. The doc-base must refer to the
  documentation in /usr/share/doc as per doc-base documentation.

Links

1) https://www.debian.org/doc/debian-policy/ch-docs.html#additional-documentation

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-25 17:52:22 -04:00
Sunil Mohan Adapa
58b6f0a8e1
debian: Prepare for multiple binary packages
Rename various files in debian directory so that it is clear which binary
package they are relevant for.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-25 17:52:19 -04:00
Sunil Mohan Adapa
75bd8a61f8
debian: Update doc-base to include PDF
- Fix the list of files for the HTML format.

- Add PDF format listing.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-25 17:52:16 -04:00