Skip to content

Feature Request: Add support for forward proxies in scripts #1862

@adavault

Description

@adavault

Describe the bug
It is more secure to run BPNs with whitelisted outbound connectivity to specified URLs, and therefore it should be possible to use an outbound proxy (e.g. squid). This mostly works, but fails with non obvious errors for cncli sync and validate services without first creating ~/.curlrc with proxy and noproxy settings configured.

To Reproduce
Steps to reproduce the behavior:

  1. Block outbound access on 80/443 from BPNs
  2. Configure whitelisted access to URLs required via a proxy such as squid
  3. On BPN export standard environment variables http_proxy, https_proxy, no_proxy
  4. On BPN fail to set ~/.curlrc with proxy and no proxy values

Expected behavior
Error message from cncli sync or validate service to indicate unable to connect

Screenshots
If applicable, add screenshots to help explain your problem.

Version:

  • OS: Ubuntu
  • Product version: CNTools v13.4.1
  • Cardano Node version: n/a
  • Network you're connecting to: n/a

Additional context
Reporting this in case useful for others...may not be a bug as much a documentation issue.
Internet access via proxy is default behaviour on enterprise networks and this feature should be supported by default.

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