Skip to content

Support starttls for client connections - #15443

Merged
lizan merged 43 commits into
envoyproxy:mainfrom
bryce-anderson:banderson/ClientStartTls
May 5, 2021
Merged

lizan merged 43 commits into
envoyproxy:mainfrom
bryce-anderson:banderson/ClientStartTls

Conversation

@bryce-anderson

@bryce-anderson bryce-anderson commented Mar 11, 2021 •

Copy link
Copy Markdown

Problem
If I want to implement an upstream protocol that supports a form of
start TLS I can't because unlike the downstream transport, their isn't
an upstream start-tls transport socket.

Solution
Add support for starttls on the upstream side. This is exactly the same
code as used for the server implementation, just reused.

Risk Level: Low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features: None

Signed-off-by: Bryce Anderson [email protected]

Add support for starttls on the client side. This is exactly the same
code as used for the server implementation, just reused.

Risk level: Low

Signed-off-by: Bryce Anderson <[email protected]>
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
API shepherd assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #15443 was opened by bryce-anderson.

see: more, trace.

@bryce-anderson

Copy link
Copy Markdown
Author

I doubt that the .proto changes are what we want, but I'd appreciate some pointers as to what the best way forward would be.

Signed-off-by: Bryce Anderson <[email protected]>
@bryce-anderson

Copy link
Copy Markdown
Author

@lizan, I'd love your input wrt the api change.

Bryce Anderson added 5 commits March 17, 2021 16:20
Signed-off-by: Bryce Anderson <[email protected]>
Signed-off-by: Bryce Anderson <[email protected]>
Signed-off-by: Bryce Anderson <[email protected]>
Signed-off-by: Bryce Anderson <[email protected]>
@bryce-anderson bryce-anderson changed the title WIP: support starttls for client connections Support starttls for client connections Mar 24, 2021
@bryce-anderson

Copy link
Copy Markdown
Author

This should be in a pretty good state, but I'm not sure why the CI jobs are failing. The logs look unrelated to my changes, but please let me know if that's not the case. :)

@bryce-anderson
bryce-anderson requested a review from lizan March 26, 2021 14:57
Signed-off-by: Bryce Anderson <[email protected]>
@bryce-anderson

Copy link
Copy Markdown
Author

@lizan, @cpakulski, what do I need to do to get this moving forward?

@mattklein123 mattklein123 self-assigned this Mar 29, 2021

@cpakulski cpakulski 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.

Integration tests need rework.

@cpakulski cpakulski 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.

Comments for integrations tests.

Bryce Anderson added 5 commits March 29, 2021 15:00
Signed-off-by: Bryce Anderson <[email protected]>
Signed-off-by: Bryce Anderson <[email protected]>
Signed-off-by: Bryce Anderson <[email protected]>
Bryce Anderson added 2 commits April 27, 2021 14:29
Signed-off-by: Bryce Anderson <[email protected]>
Bryce Anderson added 2 commits April 29, 2021 09:05
Signed-off-by: Bryce Anderson <[email protected]>
Signed-off-by: Bryce Anderson <[email protected]>
@cpakulski

Copy link
Copy Markdown
Contributor

@bryce-anderson Can you merge main to see if it fixes failing CI tests?

@bryce-anderson

Copy link
Copy Markdown
Author

@cpakulski, it looks like there are still some failures but they appear to be due to jobs being canceled due to timeouts.

@cpakulski

Copy link
Copy Markdown
Contributor

Let me do the final review. Do not worry about those two failures.

@cpakulski cpakulski 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.

LGTM. Thanks.

@cpakulski

Copy link
Copy Markdown
Contributor

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #15443 (comment) was created by @cpakulski.

see: more, trace.

@bryce-anderson

Copy link
Copy Markdown
Author

@cpakulski, thanks for the review. It looks like most of the CI jobs are taking a lot longer with this patch than other recent runs. I'm not familiar with the Azure pipeline structure in this case, but could it be due to the base of this patch and maybe a squash/rebase would help?

@cpakulski

Copy link
Copy Markdown
Contributor

I do not know why macos CI always fails here. I did a PR yesterday and it passed all checks.

@cpakulski

Copy link
Copy Markdown
Contributor

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #15443 (comment) was created by @cpakulski.

see: more, trace.

@lizan

lizan commented May 4, 2021

Copy link
Copy Markdown
Member

Can you merge main to your branch?

@bryce-anderson

Copy link
Copy Markdown
Author

Can you merge main to your branch?

Done.

@bryce-anderson

Copy link
Copy Markdown
Author

The MacOS build passed this time but it looks like an unrelated test failed on windows.

@bryce-anderson

Copy link
Copy Markdown
Author

@lizan @cpakulski, looks like CI's finally all green. Anything left for me to do?

@lizan
lizan merged commit 9f2bb17 into envoyproxy:main May 5, 2021
gokulnair pushed a commit to gokulnair/envoy that referenced this pull request May 6, 2021
Add support for starttls on the client side. This is exactly the same
code as used for the server implementation, just reused.

Risk level: Low

Signed-off-by: Bryce Anderson <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
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.

5 participants