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

pkg/credentials: Credentials retrieval should prioritize credentials #877

Merged
merged 1 commit into from
Nov 22, 2017

Conversation

harshavardhana
Copy link
Member

Always prefer proper credentials over anonymous ones, if no
credentials are found default to anonymous value.

@@ -58,28 +56,30 @@ func NewChainCredentials(providers []Provider) *Credentials {
})
}

// Retrieve returns the credentials value or error if no provider returned
// without error.
// Retrieve returns the credentials value, or no anonymous credentials if
Copy link
Member

Choose a reason for hiding this comment

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

This comment is quite confusing - s/no anonymous credentials/the anonymous credential value/ perhaps.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Always prefer proper credentials over anonymous ones, if no
credentials are found default to anonymous value.
@harshavardhana
Copy link
Member Author

Can you review again @nitisht @donatello ?

Copy link
Contributor

@nitisht nitisht left a comment

Choose a reason for hiding this comment

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

LGTM

@nitisht nitisht merged commit e7112d0 into minio:master Nov 22, 2017
@harshavardhana harshavardhana deleted the support-chaining branch November 22, 2017 17:33
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.

3 participants