Commit graph

3345 commits

Author SHA1 Message Date
Laurent Peuch
28b44401f5 [mod] remove debug print 2018-01-03 19:22:10 +01:00
Laurent Peuch
8935817338 [fix] add timeout on requests 2018-01-03 19:21:53 +01:00
Laurent Peuch
544ffb273e [mod] improve waiting time UX 2018-01-03 19:00:16 +01:00
Laurent Peuch
299cba623b [fix] avoid stupid mistake 2018-01-03 18:52:01 +01:00
Laurent Peuch
044b2406d3 [enh] better logging during key migration 2018-01-03 18:45:18 +01:00
Alexandre Aubin
164377d599 [mod] Use systemctl for all service operations 2017-11-27 23:12:13 +01:00
Alexandre Aubin
fd23216544 [mod] Use proper functions to enable/start firewall during postinstall 2017-11-27 22:17:09 +01:00
M5oul
46469b8893 [fix] Update acme-tiny as LE updated its ToS (#386)
- fix https://dev.yunohost.org/issues/1007
- Renewing a certificate is not problematic, but creating a certificate
for a new domain name may failed according to recent feedbacks.
2017-11-21 16:46:45 +01:00
Alexandre Aubin
5cd1563014 [enh] Enable stdinfo when running app script 2017-10-29 23:20:10 +01:00
Alexandre Aubin
b8d8f72e36 [enh] Add an optional stdinfo output for stuff ran with hook_exec 2017-10-29 23:19:52 +01:00
Laurent Peuch
5086707983 [mod] add some documentation comment 2017-10-09 12:14:14 +02:00
Laurent Peuch
a32359c76a [mod] wait locally for the dynette cron to have runned during tsig migration 2017-10-09 12:12:41 +02:00
Laurent Peuch
fbdf684254 [mod] add failure handling mechanism for json decoding 2017-10-09 12:12:08 +02:00
Alexandre Aubin
9903c48f3a Be able to give lock to son processes detached by systemctl (#367)
* Give lock to systemctl sons
* Get the 'need_lock' flag from services.yml
* Don't need the lock for enable/disable and other stuff
2017-10-08 23:46:10 +02:00
Alexandre Aubin
5ae558edc9 [fix] Clean madness related to DynDNS (#353)
* Add a function to check if a dyndns provider provides a domain
* Add a function to check a domain availability from a dyndns provider
* Use new functions in dyndns_subscribe
* Replace complete madness by _dyndns_available in dyndns_update
* This regex is only used in dyndns_update, no need to define it at the whole file scope level
* Try to clarify management of old ipv4/ipv6 ...
* Add a nice helper to get both ipv4 and ipv6...
* Clarify the dyndns_update madness to get current ipv4/v6
* Remove now useless IPRouteLine
* Change default values of old ipv4/v6 to None, otherwise shit gets update just because IPv6 = None
* Rearrange thing a bit, move path to global variable
* Copypasta typo
* Dyndns zone file as a global variable
* Use helper to write zone content to file
* Adding some debugs/info messages
* Move the domain guessing to a dedicated function...
* Adding comments..
* Using subprocess check_call instead of os.system for nsupdate
* Removing dump of the zone update because it's kinda duplicated from what nsupdate already does
* Ignore error if old_ipvx file is non existent
* Add docstring for _dyndns_available
* Remove parenthesis otherwise this gonna displease Bram-sama :P
* Start working on postinstall .. use _dyndns_provides to check if domain is a .nohost.me or .nohost.st
* Use _dyndns_available to cleanly check for domain availability
* Forget about the weird 'domain split' check...
* Clean dyndns stuff in domain.py
* Missing argument for string
2017-10-08 23:44:07 +02:00
Laurent Peuch
724f9af923 Merge pull request #359 from YunoHost/enh-add-log-on-app-upgrade
[enh] Return log after app upgrade with api
2017-10-06 15:05:40 +02:00
Laurent Peuch
f4b95ca5ff [fix] fix this UnicodeDecodingError on backup-restore 2017-09-26 01:01:00 +02:00
Laurent Peuch
87a5759ca4 [enh] automatically migrate tsig done using md5 to sha512 when doing a dyndns update 2017-09-21 06:56:11 +02:00
Laurent Peuch
f5f813badb [fix] hmac-sha512 key can have space in them because why the fuck not 2017-09-21 05:52:59 +02:00
Laurent Peuch
2c73dd1a2f [fix] 163 was for sha256 2017-09-19 00:51:11 +02:00
Laurent Peuch
b53b05eabd [enh] register tsig as hmac-sha512 2017-09-19 00:08:56 +02:00
Laurent Peuch
622bed1169 [mod] introduce regex for SHA512 2017-09-18 21:29:01 +02:00
Laurent Peuch
0fc80b256b [mod] constant needs to be upper cases 2017-09-18 21:17:13 +02:00
Laurent Peuch
85f0b02f1f [fix] '/' was resulting in '//' 2017-09-07 15:06:12 +02:00
Laurent Peuch
0dbec4fa62 [enh] add debugging in ldap init (#365) 2017-09-06 22:00:17 +02:00
Laurent Peuch
a6639c4530 Merge pull request #358 from YunoHost/crypto_random_for_password
[fix] use cryptorandom to generate password
2017-08-30 08:44:39 +02:00
ljf
75d8084852 [enh] Add hooks on app management operations 2017-08-28 21:08:45 +02:00
Laurent Peuch
fea6d3568f [fix] previous string was expecting an app name but we don't have any 2017-08-28 18:00:23 +02:00
ljf
171258e7fa [enh] Return log after app upgrade with api 2017-08-28 17:17:19 +02:00
Laurent Peuch
c6b5284be8 [fix] use cryptorandom to generate password 2017-08-27 05:42:33 +02:00
Alexandre Aubin
950359061e [fix] Set firewall start as background task (to be done right after postinstall) to avoid lock issues 2017-08-23 02:02:44 +02:00
Laurent Peuch
8117ffb85f [mod] pep8 on app.py 2017-08-20 22:52:51 +02:00
Laurent Peuch
40a5bcc96b [mod] pep8 on backup.py 2017-08-20 22:51:26 +02:00
Laurent Peuch
83971afb9c [mod] pep8 on hooks.py 2017-08-20 21:19:04 +02:00
Laurent Peuch
40ea2f9477 [mod] pep8 on tools.py 2017-08-20 21:18:25 +02:00
Laurent Peuch
66524213cd Merge pull request #348 from YunoHost/clean_domains.py
Clean domains.py
2017-08-19 20:23:31 +02:00
Alexandre Aubin
360ac66bc7 Use app_ssowatconf instead of os.system call 2017-08-19 11:11:49 -04:00
Laurent Peuch
4f1cf058c2 Merge pull request #351 from YunoHost/dev_shell
Integrate a command to launch a dev shell from within moulinette context
2017-08-18 04:12:25 +02:00
Laurent Peuch
20c3c8386d Merge pull request #349 from YunoHost/fix-925-local-domain-resolution
[fix] Local domain resolution in cert-install/renew
2017-08-18 03:44:46 +02:00
Laurent Peuch
8567164d58 Merge pull request #346 from YunoHost/fix-559-dns-conf-is-not-actual-conf
[fix] Tell user that domain dns-conf shows a recommendation only
2017-08-18 03:24:48 +02:00
Alexandre Aubin
d010a288b2 [enh] Add a complete docstring with explanations and reference 2017-08-15 21:06:00 +02:00
Laurent Peuch
1cd121e801 [doc] add comment explaining choices in _hash_user_password 2017-08-15 20:54:58 +02:00
Laurent Peuch
4e1a839557 [enh] can do a 'yunohost tools shell -c command' à la python -c 2017-08-15 17:24:26 +02:00
Laurent Peuch
52c7a37a78 [enh] add 'yunohost tools shell' 2017-08-15 17:18:50 +02:00
Laurent Peuch
970d9b0207 [fix] uses strong hash for admin password 2017-08-15 12:52:44 +02:00
Laurent Peuch
c5a44b8638 [fix] also uses sha512 in user_update() 2017-08-15 00:34:33 +02:00
Laurent Peuch
147b305e8a [mod] extract password generation code to a function 2017-08-15 00:34:07 +02:00
Laurent Peuch
6c9156c3ae [enh] according to https://www.safaribooksonline.com/library/view/practical-unix-and/0596003234/ch04s03.html we can go up to 16 salt caracters 2017-08-14 16:49:50 +02:00
Laurent Peuch
4419ec10ce [fix] move to sh512 because it's fucking year 2017 2017-08-14 16:09:46 +02:00
Laurent Peuch
49d5c70fd6 [mod] add more salt because life is miserable 2017-08-14 15:44:06 +02:00