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

#1375 #1237 #925 #920 Fix DownstreamRoute DangerousAcceptAnyServerCertificateValidator #1377

Merged
merged 14 commits into from
Sep 28, 2023

Conversation

evgslyusar
evgslyusar previously approved these changes Dec 23, 2020
@raman-m raman-m changed the base branch from master to develop July 15, 2023 13:59
@raman-m raman-m changed the title Fix/1375 fix DownstreamRoute DangerousAcceptAnyServerCertificateValid… #1375 Fix DownstreamRoute DangerousAcceptAnyServerCertificateValidator Jul 15, 2023
@raman-m
Copy link
Member

raman-m commented Jul 15, 2023

Hi zhangq!
Thanks for your interest in Ocelot!

Could you Sync fork please? So, your master branch was outdated!
And I don't see develop branch... It seems the fork is very old.

@raman-m raman-m requested a review from evgslyusar August 21, 2023 12:31
@raman-m raman-m added bug Identified as a potential bug needs feedback Issue is waiting on feedback before acceptance labels Aug 21, 2023
@raman-m
Copy link
Member

raman-m commented Aug 21, 2023

The feature branch has been rebased onto ThreeMammals:develop!
Welcome to code review!

@raman-m raman-m linked an issue Sep 25, 2023 that may be closed by this pull request
@raman-m raman-m linked an issue Sep 25, 2023 that may be closed by this pull request
@raman-m raman-m linked an issue Sep 25, 2023 that may be closed by this pull request
@raman-m raman-m changed the title #1375 Fix DownstreamRoute DangerousAcceptAnyServerCertificateValidator #1375 #1237 #925 #920 Fix DownstreamRoute DangerousAcceptAnyServerCertificateValidator Sep 25, 2023
RaynaldM
RaynaldM previously approved these changes Sep 26, 2023
@raman-m
Copy link
Member

raman-m commented Sep 28, 2023

@RaynaldM Please, review, carefully! 😉
I've added unit tests for WebSockets feature because there was no unit testing class at all.
And, hope for your approval...

@raman-m
Copy link
Member

raman-m commented Sep 28, 2023

@RaynaldM Everything fine in testing? 😄
Anyway, thanks for approval! 😍

@RaynaldM
Copy link
Collaborator

@raman-m When it's urgent, I just read the code and "judge" the form, and a little less the content. :)

Copy link
Member

@raman-m raman-m left a comment

Choose a reason for hiding this comment

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

Follow up issue should be created.


Update 1 on Sep 29

The #1707 has created

Copy link
Member

Choose a reason for hiding this comment

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

The UseWebSocketsProxyMiddleware method enables custom WebSocketsProxyMiddleware in the pipeline.
But there is no usage of native WebSocketMiddleware class which is industry standard. But instead of standard framework middleware a custom WebSocketsProxyMiddleware class was written with custom Invoke method. This is design issue...

using Ocelot.Logging;
using Ocelot.Middleware;
using System.Net.WebSockets;

namespace Ocelot.WebSockets.Middleware
namespace Ocelot.WebSockets
{
public class WebSocketsProxyMiddleware : OcelotMiddleware
Copy link
Member

Choose a reason for hiding this comment

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

@raman-m
Copy link
Member

raman-m commented Sep 28, 2023

@raman-m approved these changes on Sep 28

@RaynaldM FYI
But I'm going to merge...

@raman-m raman-m merged commit fa179bf into ThreeMammals:develop Sep 28, 2023
@raman-m raman-m added accepted Bug or feature would be accepted as a PR or is being worked on and removed needs feedback Issue is waiting on feedback before acceptance labels Sep 28, 2023
@raman-m
Copy link
Member

raman-m commented Sep 28, 2023

Related to #309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Bug or feature would be accepted as a PR or is being worked on bug Identified as a potential bug Websockets Ocelot feature: Websockets
Projects
None yet
4 participants