From 5b7d6f911920043671ef8aa0a9e559bfb6f3a3c8 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Tue, 30 Sep 2014 01:46:07 +0200 Subject: [LIBREPORT PATCH 90/93] upload: read credentials from environment variables We use environment variables for the per-user-configuration. Adding new configuration options to the configuration file for credentials doesn't make sense because the credentials can be part of the URL (everything is plain text in the configuration file). But it does make sense to add a support for environment variables which are used to propagate the configuration from the GUI where the URL field is plain text but the password field cannot be read. Related to rhbz#1066486 Signed-off-by: Jakub Filak Conflicts: doc/reporter-upload.txt --- doc/reporter-upload.txt | 5 +++++ src/plugins/report_Uploader.xml.in | 10 ++++++++++ src/plugins/reporter-upload.c | 24 +++++++++++++++++++++++- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/doc/reporter-upload.txt b/doc/reporter-upload.txt index 8df7ea2..e813c58 100644 --- a/doc/reporter-upload.txt +++ b/doc/reporter-upload.txt @@ -68,6 +68,11 @@ the configuration file. 'Upload_URL':: The URL where should be the tarball uploaded. +'Upload_Username':: + User name for the upload URL + +'Upload_Password':: + Password for the upload URL SEE ALSO -------- diff --git a/src/plugins/report_Uploader.xml.in b/src/plugins/report_Uploader.xml.in index df01e21..a136aad 100644 --- a/src/plugins/report_Uploader.xml.in +++ b/src/plugins/report_Uploader.xml.in @@ -19,6 +19,16 @@ <_note-html>Examples: ftp://[user[:pass]@]host/dir/[file.tar.gz] scp://[user[:pass]@]host/dir/[file.tar.gz] file:///dir/[file.tar.gz] + +