Skip to content

New HTTP framework to incorporate automatic insecure connection handling - #2100

Merged
chanseokoh merged 35 commits into
masterfrom
i2027-TlsFailoverHttpClient
Nov 1, 2019
Merged

chanseokoh merged 35 commits into
masterfrom
i2027-TlsFailoverHttpClient

Conversation

@chanseokoh

@chanseokoh chanseokoh commented Oct 24, 2019 •

Copy link
Copy Markdown
Member

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

@TadCordle TadCordle left a comment

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.

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

@briandealwis briandealwis left a comment

Copy link
Copy Markdown
Member

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

@briandealwis briandealwis left a comment

Copy link
Copy Markdown
Member

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.

@briandealwis briandealwis left a comment

Copy link
Copy Markdown
Member

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