Public | Automated Build

Last pushed: 2 days ago
Short Description
Coreo proxy
Full Description

Setup

  1. Install mitmproxy
  2. The node app will listen for messages from the proxy on the port specified in the CC_PROXY_TARGET_PORT environment variable (default is 4444)
  3. The proxy will listen for connections on port specified by the CC_PROXY_PORT env variable
  4. Context and Task are provided as the username:password http basic auth
  5. You will need to fetch an ssl cert from the proxy and add it to your trusted certs
    • run the proxy
    • run http_proxy=localhost:<port> curl mitm.it/cert/pem > proxy_cert.pem
    • add the pem file to your trusted certs

Example

  1. Set proxy port and node port:
    • export CC_PROXY_PORT=9999 && export CC_PROXY_TARGET_PORT=4444
    • ./run_proxy.sh > proxy.log &
  2. Set the proxy url:
    • export https_proxy="https://mycontext:mytask@localhost:${CC_PROXY_PORT}"
  3. Run the node app:
    • node index.js > node.log &
  4. Execute aws commands
    • aws swf list-domains --registration-status REGISTERED

Helper commands

The commands in scripts/proxy_commands.sh are utilities for modifying the proxy env variable

Example

Docker Pull Command
Owner
cloudcoreo
Source Repository

Comments (0)