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

Add ability to configure 'forceBasicAuth' for docker registries #31

Closed
wants to merge 3 commits into from

Conversation

bourd0n
Copy link

@bourd0n bourd0n commented Mar 16, 2018

No description provided.

* @param v1Enabled Whether or not this Repository supports Docker V1 format
* @param strictContentTypeValidation Whether or not the Repository should enforce strict content types
* @param writePolicy The {@link WritePolicy} for the Repository
* @param forceBasicAuth whether or not this Repository should support anonymous pull
Copy link

Choose a reason for hiding this comment

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

This comment is not entirely true.

forceBasicAuth=true means use BASIC auth.
forceBasicAuth=false means use bearer token auth.

False is required for anonymous access but it doesn't guarantee it, also you could configure the permissions so that it isn't just "pull" specific. How about something like "whether to force basic auth (false is required to enable token auth which can be used for anonymous access)"

Copy link
Author

Choose a reason for hiding this comment

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

@jlstephens89 thanks for remark. Fixed

@bourd0n
Copy link
Author

bourd0n commented Mar 22, 2018

@jlstephens89 Hi! could you approve this PR or any other comments will be?

Copy link

@j-s-3 j-s-3 left a comment

Choose a reason for hiding this comment

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

👍

@bourd0n
Copy link
Author

bourd0n commented Jun 13, 2018

Hi all! When this MR will be merged? Is some due date exists ?

@doddi
Copy link

doddi commented Jun 21, 2018

Thanks for the contribution @bourd0n, before we can merge could I ask you to sign the Sonatype Contributor License Agreement

@bourd0n
Copy link
Author

bourd0n commented Jul 23, 2018

@doddi yes, i sign CLA

@proivk
Copy link

proivk commented Aug 3, 2018

Guys, any new on this MR? This is really usefull stuff for us and we're waiting the feature eagerly.

@DarthHater
Copy link
Member

Working on getting this imported internally today fellas! Sorry for the wait!

@DarthHater
Copy link
Member

@proivk @bourd0n this is now merged internally, should make it's way out to nexus-public soon. Thanks a ton @bourd0n !!! Let's chat, I'll try and get you some stickers and cool stuff for doing this :)

@DarthHater
Copy link
Member

Closing as this is now merged internally.

@DarthHater DarthHater closed this Aug 8, 2018
@joedragons
Copy link

This is just conjecture but I assume when this is released formally it'll be for 3.14 (next minor release).

@DarthHater
Copy link
Member

@joedragons , actually this would filter out the next time we do a synch from our internal repo to public, likely Sunday. As for it being in a released downloadable product, you are correct, but someone can assumedly build the source and see it in there as of Monday.

@micw
Copy link

micw commented Sep 27, 2018

Hello,
unfortunately the PR is incomplete. The methode createDockerGroup and createDockerProxy should also be extended by this option to have a consistent API.
Regards,
Michael.

@joedragons
Copy link

@micw I don't think we're going to unmerge to add further stuff. Do you mind filing a ticket on issues.sonatype.com; we will keep in mind with other issues. Or PRs welcome.

@micw
Copy link

micw commented Oct 8, 2018

I've created a follow-up PR at #41
The groovy methods had already been extended by this pr, so it was only missing in the interface.

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.

7 participants