[ARVADOS] updated: 1.1.3-263-g9bb1691

Git user git at public.curoverse.com
Tue Mar 27 05:59:41 EDT 2018


Summary of changes:
 sdk/R/R/HttpRequest.R | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

       via  9bb169138470dbb176af7e891d6da2089950354b (commit)
      from  62908a022cf7fc2fe7bf81e9e97f92bd7ef2912c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 9bb169138470dbb176af7e891d6da2089950354b
Author: Fuad Muhic <muhic.fuad at gmail.com>
Date:   Tue Mar 27 11:57:35 2018 +0200

    When env variable ARVADOS_API_HOST_INSECURE is set HTTP client will not try to validate the server's TLS certificate.
    
    Arvados-DCO-1.1-Signed-off-by: Fuad Muhic <fmuhic at capeannenterprises.com>

diff --git a/sdk/R/R/HttpRequest.R b/sdk/R/R/HttpRequest.R
index 2a5c4fa..149ec0d 100644
--- a/sdk/R/R/HttpRequest.R
+++ b/sdk/R/R/HttpRequest.R
@@ -21,13 +21,17 @@ HttpRequest <- R6::R6Class(
             if(!(verb %in% self$validVerbs))
                 stop("Http verb is not valid.")
 
-            headers  <- httr::add_headers(unlist(headers))
             urlQuery <- self$createQuery(queryParams)
             url      <- paste0(url, urlQuery)
 
+            config <- httr::add_headers(unlist(headers))
+            if(toString(Sys.getenv("ARVADOS_API_HOST_INSECURE") == "TRUE"))
+               config$options = list(ssl_verifypeer = FALSE)
+
+            print(config)
             # times = 1 regular call + numberOfRetries
             response <- httr::RETRY(verb, url = url, body = body,
-                                    config = headers, times = retryTimes + 1)
+                                    config = config, times = retryTimes + 1)
         },
 
         createQuery = function(queryParams)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list