Repository navigation
Client credentials store. - #20107
Conversation
565fc19 to
19c01ce
Compare
|
+1 I think we should use the native keychain and allow the operating system apply its security to the objects it controls |
19c01ce to
31f7278
Compare
|
nice! +1 |
There was a problem hiding this comment.
Is MPL compatible with our licensing and distribution?
There was a problem hiding this comment.
Really? MPL is copyleft, whereas Apache is doesn't have such distribution restrictions. I don't see MPL anywhere on here. There is some GPLv3 but that specifically has a static linking exception.
IANAL, but this requires more thought. For example, this may have implications for proprietary authorization plugins.
There was a problem hiding this comment.
A good example of these subtle incompatibilities is between MPL 1.1 and Apache 2.0. In certain circumstances, a patent litigant could trigger Apache 2.0's patent peace clause without triggering MPL 1.1's similar (but slightly different) patent peace clause. This made the two licenses incompatible in the sense used here. Aligning these triggering conditions is what allowed us to be more comfortable that Apache 2.0 and MPL 2.0 are compatible. In other words, complying with MPL 2.0's patent requirements will allow someone to be comfortable that they've also complied with the patent requirements of any Apache-licensed code contained within the MPL-licensed project.
There was a problem hiding this comment.
I am not asking about license compatibility. I am asking about whether or not MPL is compatible with the goals of a login system. Are we comfortable with forcing implementors of login plugins to have to link against code under a copyleft license?
This is going to require more than a one word answer and a link to blog.
|
This is pretty awesome. I disagree with adopting yet-another-plugin-framework, but this is a fine start. Could we just define a cli API, like |
I'm not sold on that part either.
Yes, that's what git does. I wanted to have a working version before settling down in one protocol. |
|
What I like about this implementation is that it doesn't require any STDOUT parsing, like a pure command line would require. I don't think it would be much complicated, but it's definitely less "graceful". |
|
waw nice !! 👍 on this too 😉 |
Piping stdout into a json unmarshaler seems straightforward and can be done with a large number of languages. The framing and protocol of go-plugin would have to implemented in each language. I don't think there is anything "graceful" about using go-plugin here. |
|
Okay, let's go with a shelling out implementation, it should not be very hard to modify and I agree that it's more open to other languages. |
|
😍 |
31f7278 to
97143fa
Compare
|
Given @cpuguy83's ❤️-y eyes, I'm going to assume that we should move forward with this. I've updated the implementation to shell out already. I've also updated the osxkeychain program to handle that. There are still things to do here, like adding tests and docs, but I'll appreciate your reviews. |
|
If I understand correctly : If there is no credentialStore specified, we use the Design LGTM, I like this a lot 😻 |
|
@vdemeester you're correct. |
8039237 to
5d2b29a
Compare
There was a problem hiding this comment.
Just curious - what's the reason for this build tag?
There was a problem hiding this comment.
I'm using that same tag to load a mock command for testing, to avoid shelling out during tests. I'm still considering if it's the best way to simulate commands. I'm open to suggestions
There was a problem hiding this comment.
See:
https://github.com/docker/docker/pull/20107/files#diff-734ed399478ed3c45691f17639d62e46
and
https://github.com/docker/docker/pull/20107/files#diff-ac0f1eddc56b3465724336aa5a1a649a
5d2b29a to
0852ef4
Compare
|
I really like this PR. Having secure credential storage will be great. One suggestion is I think it would be better to serialize the |
addbfdd to
cf721c2
Compare
|
@thaJeztah I addressed your comments, thanks for the suggestions. |
| you can download them from: | ||
|
|
||
| - Apple OS X keychain: https://github.com/docker/docker-credential-helpers/releases | ||
| - Microsoft Windows Credential Manager: https://github.com/docker/docker-credential-helpers/releases |
There was a problem hiding this comment.
nice! Oh I noticed there's no release yet? https://github.com/docker/docker-credential-helpers/releases
There was a problem hiding this comment.
I'm working on the first release as we speak, but anyone can build the binaries form the source until then 😸
There was a problem hiding this comment.
Should we link to the repo itself then, so that they end up at the readme?
There was a problem hiding this comment.
no need. We probably have about 1 month to make sure we have releases in the right place.
There was a problem hiding this comment.
|
LGTM, thanks! |
|
LGTM 🐯 |
|
All green! Let's merge! |
|
🍌 |
|
🍏 |
|
🍋 |
|
I'm not intimately familiar with Signed, |
|
@JonathonReinhart I'm also not very familiar with By having a separate binary, upon first use, your credential management system will present a dialog asking if you want to authorize this new application to set/access this new entry in your credential store. Now
Hmm, looks like just Windows and OS X support for now? I'm sure support for GNOME Keyring will come soon? |
@jlhawn working on it docker/docker-credential-helpers#5 |

This change implements communication with an external credentials store,
ala git-credential-helper. The client falls back the plain text store,
what we're currently using, if there is no remote store configured.
This implementation shells out to helper program when a credential store is
configured. Those programs can be implemented with any language as long as they
follow the convention to pass arguments and information.
There is an implementation for the OS X keychain in https://github.com/docker/docker-credential-helpers. That package also provides basic structure to create other helpers.
Signed-off-by: David Calavera [email protected]