tritondatacenter / gosign Goto Github PK
View Code? Open in Web Editor NEWGo HTTP signing library
License: Mozilla Public License 2.0
Go HTTP signing library
License: Mozilla Public License 2.0
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?
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.
Steps to reproduce:
export SDC_URL="http://us-east-1.api.joyentcloud.com/"
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 '/'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.