GithubHelp home page GithubHelp logo

stunnel-on-dotcloud's Introduction

stunnel recipe for dotCloud custom services

As the title states, this is a recipe for adding SSL tunnels between your dotCloud services. It uses the Ubuntu stunnel4 package and automates the tunnel configuration as well as the key download.

Out of the box, this package sets up two services. One is the server, which is a very simple use of netcat that will execute and output the id command upon the first connection. The second is a client which will connect to the netcat "server" over SSL.

In order to use it, use this package as the base of your custom services. If you have existing custom services already, or are trying to use a different base, you will need to merge the systempackages, ports, and processes sections of the dotcloud.yml.

Additionally, you will need to append the contents of the provided builder script with your own, as well as the postinstall. When editing the postinstall script, please take note of the following usage:

    ./gen-stunnel-cfgs.py <config_prefix> <server_connect> <server_local_port> <client_connect> <client_local_port>

Please edit the builder script accordingly, paying particular attention to client_local_port. Also, you will need to ensure that config_prefix is unique for each instance of stunnel you wish to run. A new process will need to be added to your processes section in dotcloud.yml. The config/stunnel run files are saved as configprefix-mode.stunnel where mode is either client or server.

Finally, you will need to put your keys in Amazon S3 and set some dotCloud environment variables so we can deploy your keys automatically. Please take care to configure a private ACL on these keys. Additionally, we highly recommend you use Amazon IAM to give this script its own API keys. In order to configure these containers to use these settings, you will need to run the following command:

    dotcloud var set stunnel STUNNEL_S3_ACCESSKEY=<your aws access key> \
        STUNNEL_S3_SECRETKEY=<your aws secret key> \
        STUNNEL_S3_PRIVKEYPATH=<the path on s3 to your private key> \
        STUNNEL_S3_PUBKEYPATH=<the path on s3 to your public key>

For the S3 paths mentioned above, these are typically in the form of s3://bucketname/path/to/key.pem

stunnel-on-dotcloud's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.