Skip to content

Add credentials store support - #1181

Merged
shin- merged 2 commits into
masterfrom
credstore-support
Sep 6, 2016
Merged

shin- merged 2 commits into
masterfrom
credstore-support

Conversation

@shin-

@shin- shin- commented Sep 3, 2016 •

Copy link
Copy Markdown
Contributor

No description provided.

@shin- shin- added this to the 1.10.0 milestone Sep 3, 2016
@shin-

shin- commented Sep 3, 2016

Copy link
Copy Markdown
Contributor Author

@shin-
shin- force-pushed the credstore-support branch from 21c0404 to 240cf33 Compare September 3, 2016 03:03
@shin-

shin- commented Sep 3, 2016

Copy link
Copy Markdown
Contributor Author

Fixes #1023

Comment thread docker/auth/auth.py Outdated
return res
except dockerpycreds.StoreError as e:
log.error('Credentials store error: {0}'.format(repr(e)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this should raise an exception? The user explicitly asked to use the credential store, right ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I need to differentiate a runtime error from a missing entry in dockerpycreds, then we can raise when there's an issue, and proceed with an unauthenticated push/pull if we just don't have credentials.

@dnephin

dnephin commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

LGTM, just one comment.

I'm not all that familiar with these credential stores, but the code looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants