Commit graph

83 commits

Author SHA1 Message Date
Alexandre Aubin
d9990cd818
Smarter regex to avoid redacting all --key=stuff when using setting helpers for example 2019-10-16 18:59:23 +02:00
Alexandre Aubin
61931f2c4b We don't want this to call .error() for legit logs already completed 2019-10-14 20:28:16 +02:00
Alexandre Aubin
38c43f4b9a Fix the whole operation logger / related to thing + propagate on the legacy addaccess 2019-09-13 16:31:03 +02:00
Bram
3d7c3d13de
Merge pull request #783 from yalh76/token
adding token to not be logged
2019-08-20 21:18:48 +02:00
yalh76
98423a7f91 adding token to not be logged 2019-08-20 20:23:45 +02:00
Alexandre Aubin
1cec9d78eb We need quotes here, otheriwse yaml isn't happy later when loading the metadata file 2019-08-05 18:27:11 +02:00
Alexandre Aubin
d507d447dd Don't miserably fail if we can't load detail for a log entry 2019-08-05 18:27:00 +02:00
Alexandre Aubin
6936fa95b9 Gotta feed the file path, not the file itself 2019-08-04 18:45:42 +02:00
Alexandre Aubin
0ad91b027c
Merge pull request #754 from YunoHost/fix-log_corrupted_md_file
[fix] Path not displayed in log_corrupted_md_file
2019-08-04 18:01:53 +02:00
Laurent Peuch
04e5c7c203 [mod] use read_yaml and only keep sensible code inside of exception 2019-08-04 17:45:40 +02:00
Laurent Peuch
680b3a0793 [mod] don't truncate 'yunohost log display' log by default 2019-07-21 19:43:55 +02:00
ljf (zamentur)
2db493c7d6
[fix] Use read_yaml instead of custom yaml load 2019-07-15 13:30:22 +02:00
ljf (zamentur)
99d6daf3ab
[fix] Path not displayed in log_corrupted_md_file 2019-07-12 14:17:35 +02:00
Alexandre Aubin
0d2a9b0a98 Also redact vars ending with 'secret' or 'key' 2019-07-06 19:33:57 +02:00
Alexandre Aubin
f0ad9440cf Be more robust against empty metadata file 2019-07-03 21:01:39 +02:00
Alexandre Aubin
18f3540e2f Also redact psql password if it exists 2019-07-02 15:56:56 +02:00
Bram
aa621abf57
[doc] typo
Co-Authored-By: decentral1se <lukewm@riseup.net>
2019-06-27 05:11:04 +02:00
Alexandre Aubin
6a00aac13a Catch pwd, pass and password as patterns for password 2019-06-27 03:16:46 +02:00
Alexandre Aubin
b26ec9c2fc Find data to redact on-the-fly corresponding to common stuff 2019-06-19 23:14:48 +02:00
Alexandre Aubin
b9e4b91f1b Add /etc/yunohost/mysql as data to redact 2019-06-19 23:11:24 +02:00
Alexandre Aubin
4269c10b80 Also redact metadata file 2019-06-19 22:24:41 +02:00
Alexandre Aubin
37274a9e54 Add redacting mechanism for secrets, using a custom Formatter 2019-06-19 21:33:25 +02:00
Alexandre Aubin
331bdb53aa
Merge branch 'stretch-unstable' into authenticate-as-root 2019-05-16 17:08:48 +02:00
Alexandre Aubin
f010f49528 Get rid of all those crazy 'auth' arguments. Instead : directly fetch the ldap interface when and where it's actually needed 2019-05-10 02:11:40 +02:00
Alexandre Aubin
1781dd7abe
Merge branch 'stretch-unstable' into rework-update-and-upgrade 2019-05-09 17:15:41 +02:00
Alexandre Aubin
94f33b617b Add a --with-details option for log list 2019-04-24 20:25:34 +02:00
ljf
ad0f65aad7 [enh] Log special upgrade into operation_logger 2019-03-22 15:17:39 +01:00
Laurent Peuch
b68c358023 [mod] remove unused import 2018-12-16 03:18:19 +01:00
Alexandre Aubin
115b557b67 autopep8 + a few manual tweaks 2018-12-13 18:52:26 +00:00
Alexandre Aubin
2dd1d8ccfe Unused errno + remaining unecessary m18n.n 2018-12-12 19:01:28 +00:00
Irina LAMBLA
4ba309a221 modif MoulinetteError to YunohostError 2018-12-12 19:01:28 +00:00
Irina LAMBLA
fab662f4ef The rest
The ones that sed didn't find. Modified by hand.
2018-12-12 18:56:26 +00:00
Irina LAMBLA
4bc3427e3e moulinette MoulinetteError multilignes"
sed -i "N; s@MoulinetteError(.*m18n\.n(\n* *\(.*\)))@MoulinetteError(\1)@g" <fichiers>
2018-12-12 18:56:26 +00:00
ljf
7732136b75 [enh] Remove unneeded code 2018-12-09 23:58:06 +01:00
ljf
cafd0dd884 [enh] Remove pytz 2018-12-09 23:55:51 +01:00
ljf
db1b00e706 [enh] Use UTC naive format and manage it in moulinette 2018-12-09 23:48:56 +01:00
ljf
830341a687 [enh] Display date correctly 2018-12-09 19:27:44 +01:00
ljf
775a16d883 [enh] Rename uo in operation_logger 2018-08-23 18:59:44 +02:00
ljf
a43b3dfa18 [fix] Pep8 2018-08-10 15:59:36 +02:00
ljf
6c18e51b82 [enh] Replace string strange list 2018-08-10 15:40:00 +02:00
Alexandre Aubin
77b7f96b33 Remove 'auto' option, essentially irrelevant if we want to properly manage errors 2018-08-09 00:24:31 +00:00
Alexandre Aubin
5e5ac0be50 Clarify handling of 'not-really-unitary' operations ô.o 2018-08-05 23:34:13 +00:00
Alexandre Aubin
934a19cea2 Display this as info, makes more sense 2018-08-02 16:30:00 +02:00
Alexandre Aubin
c069f8621c Since info is now always displayed, move this message to debug instead 2018-08-02 16:28:16 +02:00
Alexandre Aubin
3bd14aa6fd Remove old 'list of dict' style, only use 'list of 2-tuples' 2018-08-02 16:22:36 +02:00
Alexandre Aubin
6d6d778a7b Display log list in chronological order in CLI to avoid having to scroll to get the last action 2018-07-25 17:06:09 +00:00
Alexandre Aubin
f89c41f3e4 Improve behavior of yunopaste() for integration with the webadmin 2018-07-25 16:38:53 +00:00
Alexandre Aubin
8eaceefbbd Add a --share option to 'log display' to share the log on yunopaste 2018-07-21 17:59:51 +00:00
Bram
b2d07d1c6e
[mod] simplify code
"raise" alone will do exactly the same thing.
2018-06-22 05:56:27 +02:00
Bram
f1181540c6
[mod] correct year for copyright stuff 2018-06-22 05:34:18 +02:00