Commit Graph
2450 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 2e55acb465 firewall: Move remaining setup steps to Plinth
There is no need to restart firewalld after the setup steps run.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:03:51 -04:00
Sunil Mohan Adapa f5a5ee1f04 firewall: Remove redundant setup steps
- Essential modules enable their own services properly.  There is no need to do
  them as part of common setup.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:03:28 -04:00
Sunil Mohan Adapa c2cf591e1b Capture and log all Python warnings
- Capture all Python warnings so that they can shown as part of logging system
  on console and in log file.

- Also capture deprecation warnings into logging system if debug mode is
  enabled. Current versions of Python disable deprecation warnings by default.
  Django 1.11 also follows this approach now.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-09-01 13:32:14 +02:00
Sunil Mohan Adapa a9c7e28c3e repro: Safety check to make sure pubtkt module is enabled
If pubtkt module is not enabled (rare) and if repro is enabled, Apache fails to
start. Make sure this effects only repro module. The single-sign-on
configuration already ensures that access is denied if pubtkt module is not
enabled, preventing unauthorized access.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 05:52:07 -04:00
Sunil Mohan Adapa 4bbbfd956c Don't run Plinth setup as part of freedombox/setup
Instead run all of the setup process during the first boot. This enables us to
someday remove the reboot step entirely.

Tests: After building a new image with the changes, call the modules have shown
to be properly setup. Running the setup wizard, creating admin user and logging
works as expected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 21:08:54 -04:00
Johannes Keyser 3ba672f28a disks: enabled caching for check-if-admin during check for low space
Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-08-31 16:10:04 +02:00
Sunil Mohan Adapa 14f5a27950 disks: Minor changes for styling and performance
- Enable cached results when checking if the user is an admin. Cached results
  are only invalid when a user newly get admin permission or when an existing
  user loose admin permission. Here the consequence of showing wrong results is
  minor.

- Use all small case for variable names.

- When we use a utility method from Plinth, we can trust it to give expected
  values. Otherwise, we should fix the method to be more robust.

- Don't recommend the user to go to disks configuration page as there is not
  much there to do to free up space. The action might be removing apps, deleting
  downloaded content (downloaded via torrents) etc.

- df is unlikely to return '-1' for size of disk.

- Avoid using -1 as error value.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 15:49:46 +05:30
Johannes Keyser a47f33d7a4 disks: warning about low space only for users in admin group
Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 15:49:08 +05:30
Johannes Keyser 3c4c770404 disks: add low disk space warning to system and disks page
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 15:48:23 +05:30
Johannes Keyser 82475522f9 disks: Add low disk space warning (Closes: #985)
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 15:47:15 +05:30
Sunil Mohan Adapa 1f0a878b2e Minor styling fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 14:34:23 +05:30
Joseph Nuthalpati 32d17e6c93 sso: Safety check to make sure auth_pubtkt is enabled
Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 14:34:11 +05:30
Pavel Borecki 416cb881cd Translated using Weblate (Czech)
Currently translated at 93.9% (693 of 738 strings)
2017-08-30 15:44:51 +02:00
Sunil Mohan Adapa e558cdc1e4 users: Keep safety check to start slapd during setup
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-29 17:09:10 +05:30
James Valleroy b19a9f972c users: Move ldap structure config into normal setup
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-29 17:08:09 +05:30
Joseph Nuthalpati f9166f8e98 sso: Upgrade crypto
- using latest version of lib-apache2-mod-authpubtkt
- upgraded keys to 4096-bit RSA
- upgraded hashing algorithm to sha512

Plinth needs dependency on libapache2-mod-auth-pubtkt >= 0.11

Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-28 16:07:27 +05:30
Joseph Nuthalpati 0a6e45f1cc Remove print statement from tests
Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
2017-08-28 16:01:24 +05:30
Алексей Докучаев fecc5c7b94 Translated using Weblate (Russian)
Currently translated at 99.8% (737 of 738 strings)
2017-08-27 18:48:08 +02:00
Pavel Borecki d072fa996c Translated using Weblate (Czech)
Currently translated at 93.3% (689 of 738 strings)
2017-08-22 19:04:44 +02:00
ikmaak 21127371bc Translated using Weblate (Dutch)
Currently translated at 97.5% (720 of 738 strings)
2017-08-21 07:56:25 +02:00
Prachi c8eb714562 Separate out the short description and app name
Signed-off-by: Prachi <prachi@swecha.net>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-08-21 11:17:08 +05:30
bharath2547 f75f9dbab9 Translated using Weblate (Telugu)
Currently translated at 63.0% (465 of 738 strings)
2017-08-19 18:48:17 +02:00
Prachi Srivastava 7b14f1f1a4 Translated using Weblate (Hindi)
Currently translated at 0.4% (3 of 738 strings)
2017-08-18 09:46:10 +02:00
Joseph Nuthalpati db479a7ae9 SSO: Use Login and Logout view classes instead of methods
- Closes #965

Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-08-16 19:43:57 -04:00
Joseph Nuthalpati 08e84001a8 Diaspora: Disable for release 0.15.2
diaspora* is no longer installable from Debian
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872305

Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-08-16 19:38:18 -04:00
Hemanth Kumar Veeranki 3de4c5639f Remove help from navbar before firstboot complete
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-08-13 01:39:24 +02:00
Hemanth Kumar Veeranki 29cc95bbdb Make help accessible for logged-in non-admin users
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-08-11 23:54:35 +02:00
James Valleroy 9fabb7b903 diaspora: Don't enable service until domain name is set
- This avoids an issue where it would try to enable the apache conf
possibly before it is generated.

- Added an explicit enable statement since it was missing.

Reviewed-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
2017-08-10 11:47:45 +05:30
Joseph Nuthalpati 78df88ca85 Fix Python string formatting in translated string.
Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
2017-08-10 10:50:13 +05:30
Joseph Nuthalapati 48e5ba4e63 Translated using Weblate (Telugu)
Currently translated at 63.0% (465 of 738 strings)
2017-08-10 06:48:58 +02:00
James Valleroy bf7bde18c2 Sync requirements.txt with setup.py
Reviewed-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
2017-08-10 10:16:36 +05:30
Joseph Nuthalpati f069f663d0 UI: Make apps and configure pages responsive on small screens
- Hide the listing of apps and configuration options on small screens,
  so that the user doesn't have to navigate to the bottom of the page.
- Closes #921

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-08-09 18:20:44 +02:00
Johannes Keyser 57c2835300 Add contributing guidelines, see issue #964
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-08 17:39:25 +05:30
Johannes Keyser a1435dd926 Merge pull request #962 from JoKeyser/fixIssue699
ejabberd, ikiwiki, ttrss: user login descriptions, fixes #699
2017-08-06 15:28:20 +00:00
Johannes Keyser caae04d549 ejabberd, ikiwiki, ttrss: user login descriptions, fixes #699 2017-08-05 20:05:09 +02:00
Hemanth Kumar Veeranki 217ef97a6f Add services information to the domains configured in dynamicdns
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
2017-08-05 13:29:47 -04:00
Joseph Nuthalpati 72208f440d SSO: Add check to see if auth_pubtkt module is available
- Solves bug #890
- Since Apache might be started before Plinth setup is ever run, we
have to handle the case where the auth_pubtkt module may not be available.
2017-08-02 17:04:41 +05:30
Sunil Mohan Adapa 3b7b271293 travis: Fix build errors due to change to non-system python
When virtualenv creates a environment with --python=python3, it was earlier
picking Python 3 from system at /usr/bin/python3. Due to recent changes in
Travis, now it picks up from Python 3.6.1 from /opt. This new Python does not
take into account system packages which are being installed via apt.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2017-08-02 11:31:35 +05:30
Andrey Skvortsov b6e6fdd134 radicale: Update link to documentation
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-01 11:23:21 +05:30
James Valleroy 3c3d280792 dynamicdns: code style fixes 2017-07-30 12:07:13 -04:00
Hemanth Kumar Veeranki 1e19508b95 Add/remove domain name in names module when domain name is configured in dynamicdns module
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
2017-07-30 12:01:57 -04:00
Johannes Keyser d8849114ba letsencrypt: delete button also disables certificate renewal mngmt 2017-07-30 09:18:00 -04:00
Pavel Borecki 063c008a10 Translated using Weblate (Czech)
Currently translated at 92.1% (680 of 738 strings)
2017-07-29 21:33:20 +02:00
James Valleroy b8255ca46b diaspora: Avoid incorrect 'setting unchanged' message 2017-07-29 15:31:41 -04:00
Joseph Nuthalpati 4abb7cd885 Diaspora: Checkbox to enable or disable user registrations 2017-07-29 12:40:44 -04:00
James Valleroy 3e38a3e3f1 diaspora: fix test file header 2017-07-29 10:50:06 -04:00
Joseph Nuthalpati f3860b197a Diaspora: Generate apache configuration at setup
- Deleted static configuration file
- Generating configuration with the domain name set.
2017-07-29 10:45:57 -04:00
Joseph Nuthalpati d1b8d8e811 Diaspora: Make config changes using augeas 2017-07-29 10:45:52 -04:00
Joseph Nuthalpati b109507e0a Diaspora: Update domain name in Apache config 2017-07-29 10:45:30 -04:00
James Valleroy 276dac2df2 security: minor style fixes 2017-07-29 09:49:14 -04:00