Code Monkey home page Code Monkey logo

gosign's People

Contributors

dstroppa avatar jclulow avatar misterbisson avatar tgross avatar twhiteman avatar wallyworld avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gosign's Issues

License

The license for this is currently GPLv3 - would you consider changing to a more permissive license such as MPL in order that other projects can use it?

SSH Agent Signing

Has anyone looked at trying to use the Go SSH Agent support to sign data to match functionality in node-smartdc-auth?

I'm particularly interested in this since I use a GPG smart card (YubiKey 4 and others previously) for the last 2 years and was very pleasantly surprised by the awesomeness of the http signature authorization scheme and the implementation for Joyent's cloud. I'm hoping support here will lead to being able to use the terraform provider with my agent.

Region() method crashes if SDC_URL has a trailing '/'

Steps to reproduce:

  • export SDC_URL="http://us-east-1.api.joyentcloud.com/"
  • Run anything that depends on gosign, .e.g. terraform scripts.
  • Receive something like
panic: runtime error: slice bounds out of range

goroutine 50 [running]:
panic(0x72db80, 0xc82000e0d0)
    /usr/local/Cellar/go/1.6.1/libexec/src/runtime/panic.go:464 +0x3e6
github.com/hashicorp/terraform/vendor/github.com/joyent/gosign/auth.(*Credentials).Region(0xc82035b720, 0x0, 0x0)
    /Users/sodre/go/src/github.com/hashicorp/terraform/vendor/github.com/joyent/gosign/auth/auth.go:122 +0x11c
github.com/hashicorp/terraform/vendor/github.com/joyent/gocommon/http.getDateForRegion(0xc82035b720, 0x818700, 0x0, 0x0)
    /Users/sodre/go/src/github.com/hashicorp/terraform/vendor/github.com/joyent/gocommon/http/client.go:135 +0x169
github.com/hashicorp/terraform/vendor/github.com/joyent/gocommon/http.createHeaders(0x0, 0xc82035b720, 0x8938b0, 0x10, 0x0, 0x0, 0x81eb10, 0x4, 0x0, 0xe, ...)
    /Users/sodre/go/src/github.com/hashicorp/terraform/vendor/github.com/joyent/gocommon/http/client.go:116 +0x4e6
github.com/hashicorp/terraform/vendor/github.com/joyent/gocommon/http.(*Client).JsonRequest(0xc82035f680, 0x819f00, 0x4, 0xc82038
...

A fix is to have the code in Region use a URL parsing library instead of looking for the last '/'.

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.