Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swarm Addrs, Disable secio opt, + tests #1399

Merged
merged 9 commits into from
Jun 27, 2015
Merged

Swarm Addrs, Disable secio opt, + tests #1399

merged 9 commits into from
Jun 27, 2015

Commits on Jun 27, 2015

  1. t0060-daemon: test transport is encrypted

    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    748d25f View commit details
    Browse the repository at this point in the history
  2. ipfs id -f=<addrs> and \n \t

    - added <addrs> field to `ipfs id -f`
    - added \n and \t conversion in `ipfs id -f`
    
    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    c5caccb View commit details
    Browse the repository at this point in the history
  3. ipfs swarm addrs local - show local addrs

    Add a command to return local addresses.
    
    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    500f513 View commit details
    Browse the repository at this point in the history
  4. daemon output includes swarm addresses

    daemon output now includes initial swarm addresses. this is not a
    full solution, as a change in network will not trigger re-printing.
    We need a good way to do that.
    
    This made me re-think how we're outputting these messages, perhaps
    we should be throwing them as log.Events, and capturing some with
    a special keyword to output to the user on stdout. Things like
    network addresses being rebound, NATs being holepunched, external
    network addresses being figured out, connections established, etc
    may be valuable events to show the user. Of course, these should be
    very few, as a noisy daemon is an annoying daemon.
    
    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    9716018 View commit details
    Browse the repository at this point in the history
  5. daemon option to optionally disable secio

    This commit adds an option to turn off all encryption. This is a mode
    used for tests, debugging, achieving protocol implementation interop,
    learning about how the protocol works (nc ftw), and worst case
    networks which _demand_ to be able to snoop on all the traffic.
    (sadly, there are some private intranets like this...). (We should
    consider at least _signing_ all this traffic.)
    
    Because of the severity of this sort of thing, this is an
    all-or-nothing deal. Either encryption is ON or OFF _fully_.
    This way, partially unencrypted nodes cannot be accidentally left
    running without the user's understanding. Nodes without encrypted
    connections will simply not be able to speak to any of the global
    bootstrap nodes, or anybody in the public network.
    
    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    e37fefd View commit details
    Browse the repository at this point in the history
  6. added sharness/t0061-daemon-opts

    Test odd daemon options, like:
    - unrestricted-api
    - disable-transport-encryption (known breakage atm)
    
    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    f300e97 View commit details
    Browse the repository at this point in the history
  7. fix t0061-daemon-opts.sh nc wait

    fix the nc wait. the issue was that stdin needs to remain _open_
    but not receive any input for some time. If stdin receives (invalid)
    input or closes, the other side terminates the connection before
    writing out the muxer frames + identify handshake.
    
    This commit also changes the use of `!` for `test_must_fail`
    
    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    6b8e9f5 View commit details
    Browse the repository at this point in the history
  8. mock: fix notif test

    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    f796615 View commit details
    Browse the repository at this point in the history
  9. fix swarm notif tests

    they were failing intermittently
    
    License: MIT
    Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
    jbenet committed Jun 27, 2015
    Configuration menu
    Copy the full SHA
    59d6a9a View commit details
    Browse the repository at this point in the history