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

New HTTP framework to incorporate automatic insecure connection handling #2100

Merged
merged 35 commits into from
Nov 1, 2019

Conversation

chanseokoh
Copy link
Member

@chanseokoh chanseokoh commented Oct 24, 2019

Introducing thread-safe TlsFailoverHttpClient (still named Connection for now) designed to be instantiated as a singleton stateful instance throughout the Jib build life cycle.

The TLS failover feature is decoupled from RegistryEndpointCaller and integrated into TlsFailoverHttpClient. The new client provides a complete abstraction for taking care of all possible TLS failover scenarios and controlling whether to send credentials over plain-HTTP.

RegistryAuthenticator will make use of the new client, so this will fix #2074.

In the future, this setup will allow

Copy link
Contributor

@TadCordle TadCordle left a comment

Choose a reason for hiding this comment

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

This mostly LGTM, I think others should take a look though since it seems like an important change.

Copy link
Member

@briandealwis briandealwis left a comment

Choose a reason for hiding this comment

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

Still looking, but some early comments

Copy link
Member

@briandealwis briandealwis left a comment

Choose a reason for hiding this comment

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

Sorry haven't finished. But some more things.

Copy link
Member

@briandealwis briandealwis left a comment

Choose a reason for hiding this comment

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

Some more.

@chanseokoh chanseokoh merged commit 3030cde into master Nov 1, 2019
@chanseokoh chanseokoh deleted the i2027-TlsFailoverHttpClient branch November 1, 2019 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

-Djib.allowInsecureRegistries=true does not seems to work
5 participants