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

PUBAPI-1146 Divorce wanted between *_KEY_ID env vars and keyId actually sent to server #3

Closed
wants to merge 1 commit into from

Conversation

arekinath
Copy link

This change divorces the *_KEY_ID environment vars (and thus the input keyIds to smartdc-auth functions) from the keyId actually sent to the server, in order to handle compatibility with newer OpenSSH versions in a simple way.

The *_KEY_ID variables will henceforth be used only to identify which key it is that the user wishes to use for authentication, and will support any known key fingerprint format. Then, the keyId actually sent to the server is generated based only on the key itself.

See also https://smartos.org/bugview/PUBAPI-1146

This change also prepares smartdc-auth to be used by not just smartdc but also manta and sdc-clients by merging the changes in the 3 separate copy-pasted versions of this code back into this library. These changes include the Manta-originated signature and key cache, and some minor API compatibility changes from sdc-clients.

It also introduces a new commandline tool sdc-curl which can be used to generate signed curl requests for testing and development purposes.

The patch makes use of sshpk's support for loading the public half of a private key file so that we no longer require the presence of a matching .pub file next to a given key in $HOME/.ssh. And makes some error messages a little more actionable for users, hopefully.

And finally, it re-enables the (now no longer broken) DSA key support, and paves the way for ECDSA support in future.

@arekinath arekinath force-pushed the pubapi-1146 branch 6 times, most recently from 88b75c8 to a82af4b Compare September 22, 2015 21:08
@arekinath
Copy link
Author

Merged as e6604c9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant