Skip to content

should renv_download_curl() inherit local config from _curlrc/.curlrc? #64

Closed

Description

@MilesMcBain

At my work we have an awful man in the middle proxy which decrypts all traffic by substituting the certificates on all secure connections. We work around this by disabling certificate verification for git and other services.

We can do the same for curl using the insecure option in the curlrc but since renv does not read this config and in fact provides its own, all attempted package installations fail due to certificate errors with curl.

edit relevant function is: renv_download_curl, https://github.com/rstudio/renv/blob/master/R/download.R#L87

Activity

  1. kevinushey commented on Apr 16, 2019

    @kevinushey
    Collaborator

    Thanks! This is definitely something we'll want to support.

    The intention of invoking curl in this way was to help ensure things like credentials wouldn't be leaked on the command line (e.g. so they can't be seen in the output of tools like lsof) but I think that implies we need to do extra work here to support user-defined curlrcs as well.

  2. added a commit that references this issue on Apr 16, 2019
  3. kevinushey commented on Apr 17, 2019

    @kevinushey
    Collaborator

    I think this should be handled correctly now -- can you test and let me know if you bump into any issues?

  4. added a commit that references this issue on Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions