Commit graph

806 commits

Author SHA1 Message Date
Alexandre Aubin
5f0b1b7450 Encoding fixes 2021-01-01 04:06:09 +01:00
Alexandre Aubin
8e30768598 2to3-2.7 ./src/yunohost/{,data_migrations/,utils/,tests/}*.py data/hooks/diagnosis/*.py -w -x dict -x print --nobackups --no-diffs 2020-12-30 21:53:43 +01:00
Kayou
4f1ea2405d
fix my mess 2020-12-18 15:11:37 +01:00
Kay0u
401778f68e
fix the fixme 2020-12-11 16:22:29 +01:00
Kay0u
c823f5ffd5
indent ssow conf 2020-12-11 15:09:37 +01:00
Alexandre Aubin
efdb2ee6b5 Gotta make sure everything is a string 2020-12-05 21:06:37 +01:00
Alexandre Aubin
2428f01521 Do not pass app args to the command line, they're already provided in the env... 2020-12-05 20:35:53 +01:00
Alexandre Aubin
74272de52c
We need to have YNH_MANIFEST_VERSION also defined during backup/restore (#1088)
* We need to have YNH_MANIFEST_VERSION also defined during backup/restore

Co-authored-by: Kayou <pierre@kayou.io>
2020-11-30 23:20:13 +01:00
Alexandre Aubin
5bf4a2d60b
Merge pull request #1082 from YunoHost/add-number-arg-parser
Add number arg parser
2020-11-29 04:09:27 +01:00
Alexandre Aubin
f6ac6bb4f7
Merge pull request #1081 from YunoHost/fix-show-config-panel
[fix] show config panel
2020-11-29 04:08:17 +01:00
Alexandre Aubin
38bd061b98
Merge pull request #1076 from YunoHost/translate_legacy_rules_in_ssowat_conf_persistent
Automatically translate legacy rules in /etc/ssowat/conf.json.persistent
2020-11-28 17:31:32 +01:00
Kayou
1ddca81f5a
Use isdigit 2020-11-25 19:13:50 +01:00
Kay0u
d79c9b4bf8
Add number arg parser 2020-11-25 18:42:18 +01:00
Alexandre Aubin
fe6333d2d2
Merge pull request #1079 from YunoHost/fix-optional-args
Fix optional args
2020-11-25 18:38:23 +01:00
Kay0u
ad4678362a
[fix] show config panel 2020-11-25 18:30:00 +01:00
Kay0u
f0d3d36365
An optional password should be either empty or strong enough 2020-11-25 11:41:00 +01:00
Kay0u
93fd101663
check if password is strong enough only if it's not an optional argument 2020-11-25 11:14:15 +01:00
Alexandre Aubin
2f19f3311e Uniformize imports (who knows if there's a completely unrelated python module called 'permission' or 'utils' maybe...) 2020-11-25 03:23:39 +01:00
Alexandre Aubin
c39bfd309d Move all the webapp permissions handling at the end of app_install to app_register_url for the sake of clarity/consistency 2020-11-25 03:22:48 +01:00
Kay0u
4ce9e4a446
set url when register and url 2020-11-24 23:10:57 +01:00
Alexandre Aubin
bfecb8b7dc Support more complex errors (be able to return additional data in a json structure) 2020-11-22 02:19:56 +01:00
Alexandre Aubin
3f8b922e92 Automatically translate legacy rules in /etc/ssowat/conf.json.persistent 2020-11-21 17:41:43 +01:00
Alexandre Aubin
083b3ead74 Gotta return here to not create a regular setting for legacy settings... 2020-11-16 19:15:31 +01:00
Alexandre Aubin
37d7eace43 Merge branch 'privacy-hotfix' into dev 2020-11-04 17:53:12 +01:00
Alexandre Aubin
d34d6b1949 App installs logs were still disclosing secrets when shared sometimes... 2020-11-04 17:26:02 +01:00
Dave
6b04a4cae4 Define a new "yunohost app search" command 2020-11-02 15:30:23 +01:00
Alexandre Aubin
5c19fb0a42 List all permissions in app_info() output, not just those with actual urls ... otherwise for example the user won't be able to change the label from the webadmin for non-webapps ? 2020-10-31 14:13:16 +01:00
Alexandre Aubin
d96d06e915 Label ain't in setting anymore ... but let's add a shortcut to get it easily from app_info() 2020-10-31 14:12:16 +01:00
Alexandre Aubin
05b1a8f96e autopep8 --in-place -a -a -a --ignore E402,E501,E722 -r src/yunohost/*.py 2020-10-30 15:22:40 +01:00
Alexandre Aubin
c45c182980
Merge pull request #861 from YunoHost/permission_protection
Extends permissions features
2020-10-30 14:51:52 +01:00
Alexandre Aubin
d2c6397f82 Fix typo in previous fix ;[ 2020-10-30 14:26:35 +01:00
Alexandre Aubin
51f5b3f716 Fix a regression for full-domain apps 2020-10-30 01:17:30 +01:00
Alexandre Aubin
6085918b03
Typo in comment
Co-authored-by: Kayou <pierre@kayou.io>
2020-10-30 00:55:50 +01:00
Alexandre Aubin
4e40f8b86a The key can't be in app_settings anymore because it got migrated ... 2020-10-30 00:04:40 +01:00
Alexandre Aubin
2cb6f4e2c2 Don't add show_tile for non-webapps apps 2020-10-29 22:26:13 +01:00
Alexandre Aubin
fd5c66db1b Do not display regexes in app_map because that doesn't really make sense ..? 2020-10-29 21:54:12 +01:00
Alexandre Aubin
e748f7a80e Fix handling of multiple legacy perm _regexes in app_setting set 2020-10-29 21:50:43 +01:00
Alexandre Aubin
66f5d14e0c Only display the deprecration warning when setting the setting (avoid displaying a huge wall of warnings when getting/deleting the legacy settings) 2020-10-29 20:33:48 +01:00
Alexandre Aubin
cb1d02243e Do not advertise upgrades for bad-quality apps 2020-10-14 01:45:53 +02:00
Alexandre Aubin
3a23f9715f We don't need app-type argument for manifest questions 2020-10-08 20:04:50 +02:00
Alexandre Aubin
fb44bd1c66 Try to uh simplify the whole full_path=True / False thing, most of the time internally we want it set to False 2020-10-01 23:47:56 +02:00
Alexandre Aubin
a7d105ace6 Merge branch 'dev' into permission_protection 2020-09-30 18:48:26 +02:00
Alexandre Aubin
07cec39af5 Move a bunch of function from domain.py to app.py because it's much simpler to have them here 2020-09-30 17:38:42 +02:00
Alexandre Aubin
1ce1ecc2be Fix tests, keep a special exception when we know we're checking full-domain apps 2020-09-30 17:30:04 +02:00
Alexandre Aubin
950dbc6b46
Merge pull request #935 from YunoHost/remove_legacy_settings
Remove legacy settings
2020-09-30 17:06:08 +02:00
Alexandre Aubin
dd9df5943e Set sub-permission labels as 'Mainlabel (Sublabel)' 2020-09-27 18:20:29 +02:00
Alexandre Aubin
b55d8e023f Typo 2020-09-24 21:55:34 +02:00
Alexandre Aubin
2b4e14cca7 Hardcode some permission labels for non-trivial legacy permissions 2020-09-24 21:46:33 +02:00
Alexandre Aubin
815c8fc49e Refactor app_setting to better separate legacy permission setting vs. regular setting, hopefully make the core more readable 2020-09-24 20:25:28 +02:00
Alexandre Aubin
8c92f011d5 Rework function that validate and sanitize permission url 2020-09-16 22:38:18 +02:00