865 Commits

Author SHA1 Message Date
abilashr
81fde34254
Rename Disks and Snapshots in Configuration tab
- Rename Disks to Storage
- Rename Snapshot to Storage Snapshots

Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-09-27 09:39:34 +05:30
Johannes Keyser
063c0fd7ce
Users: Allow non-admin users to log out. Fixes issue #999.
Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-09-19 18:06:07 +05:30
Joseph Nuthalpati
fe46ddb63d
Correct LAFS to Tahoe-LAFS in apps page 2017-09-14 12:00:48 +05:30
Prachi Srivastava
fbe08443f4
Refactor functions for api
- Change url to use hyphen instead of camelCase
- Refactor functions to be immutable

Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-09-08 14:56:30 +05:30
Prachi Srivastava
c0fb2abf46 Add api module for android app
- Add api end-point to get enabled-services in plinth
- Add api end-point to get acess info for plinth
2017-09-08 14:46:38 +05:30
Sunil Mohan Adapa
9369f72c4f
sso: Add dependency on apache module
This ensures that Apache is fully setup before setting up mod-auth-pubtkt.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:04:15 -04:00
Sunil Mohan Adapa
602ea6cf16
apache: New module to manage Apache configuration
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:04:07 -04:00
Sunil Mohan Adapa
07c062aef3
ssh: New application to manage SSH server
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:03:58 -04:00
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
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
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
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
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
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
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
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
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
James Valleroy
276dac2df2
security: minor style fixes 2017-07-29 09:49:14 -04:00
nsaikiran
a8a5da996e
[#759] Add fail2ban to Plinth UI
Run sudo-required action via actions.superuser_run

Actions related to services those require `sudo` permissions need to
be executed via actions.superuser_run.

NOTE:
If plinth service is started via `sudo ./run --debug` (in dev mode)
all actions will be executed silently. But plinth in user machines
won't be executed with sudo permissions.
2017-07-29 09:42:31 -04:00
Johannes Keyser
4bd6929d69
power: warn if a package manager is running before shutdown/restart
- red colors for warning about running package manager

- red buttons to indicate danger if installation/upgrade runs
2017-07-22 10:07:33 -04:00
James Valleroy
3ea5868ec1
pylint and spelling fixes 2017-07-19 21:47:07 -04:00
Johannes Keyser
1069f84154
letsencrypt: Add option to let Plinth "manage" certbot's renewal hooks
- add action commands for managing and running hooks

- adding template, view and url for managing and running hooks

- disable Plinth hook management on domain change
2017-07-19 21:47:00 -04:00
Joseph Nuthalpati
ff1a2537cd
diaspora: Fixed a left-over refactoring
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-07-14 15:51:39 +05:30
bharatak
ee43db0e1b
letsencrypt: Make Let's Encrypt an essential module
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-07-14 12:55:01 +05:30
Johannes Keyser
e8f0be1010
i18n: don't use backslash-newline for wrapping long lines in _(), fixes #872 2017-07-10 21:56:46 -04:00
Johannes Keyser
1a39ec0267
letsencrypt: add option to delete certificates 2017-07-06 22:30:10 -04:00
Johannes Keyser
57e96b298c
letsencrypt: show more info on cert validity status 2017-07-06 22:30:01 -04:00
Johannes Keyser
280431a7bd
power: erase entry from config menu, fixes issue #834 2017-07-01 10:20:47 -04:00
Joseph Nuthalpati
5403d00e85
SSO: Generate keys during plinth startup
- Removed key generation for mod_auth_pubtkt from first boot.
- Running setup every time plinth starts so that new essential modules
can be setup properly.

Partially fixes #875
2017-06-24 14:59:03 -04:00
Joseph Nuthalpati
5ad180fcc9
Add Tahoe-LAFS module
- Created basic plinth app which starts an introducer and a storage
  node on the FreedomBox.
- Prompt user to set a domain name before creating Tahoe-LAFS nodes.
- Support adding and removing of introducers to the storage node.
- Serve Tahoe-LAFS from a different port.
- Start all nodes and introducers at system startup.
- Add utility class YAMLFile with test cases.
2017-06-10 09:38:57 -04:00
Johannes Keyser
62aa3ce26a
disks: delete existing test file, if necessary 2017-06-07 22:24:15 -04:00
Johannes Keyser
8ae6fbbd4c
help: only show help pages if user is logged in 2017-06-07 22:22:08 -04:00
Johannes Keyser
249403a6dd
diagnostics: Disable button if app/service is not running
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-06-06 08:55:24 +05:30
Joseph Nuthalpati
995365f3df
Add SSO using auth_pubtkt for 3 web apps
- Install mod_auth_pubtkt and generate public/private key-pair.

- Redirect user to login page if no cookie is presented.

- Add check for authenticated user for login page.

- Temporarily switched to DSA because of a bug in mod_auth_pubtkt
  which causes it to accept only DSA and not RSA. Also had to use SHA1
  instead of SHA256.

- Enabled SSO for Syncthing, Repro and TT-RSS.

- Using tokens to authorize by user groups.

- Generate keys during first boot.
2017-06-03 10:29:42 -04:00
Johannes Keyser
5ee8e9397d
help: Add Debian release to about page. 2017-05-29 20:00:52 -04:00
Johannes Keyser
cc5e49433a
disks: restrict precision of reported available space on root partition 2017-05-26 12:07:12 -04:00