Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Websocket transport layer(Using secure websockets)
[CDO] Websocket transport layer [message #1834268] Fri, 06 November 2020 09:56 Go to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 146
Registered: July 2015
Senior Member
I saw that a websocket transport layer was added a couple of months ago.
Thanks for that! By looking at the test samples, it was quite easy to set up.

What I would also like to try is a secure websocket connection. But I could not find any sample code for this. Is it even possible at the current point?

[Updated on: Fri, 06 November 2020 09:57]

Report message to a moderator

Re: [CDO] Websocket transport layer [message #1834313 is a reply to message #1834268] Sat, 07 November 2020 04:41 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
You're welcome. Thanks also go to Obeo who funded this interesting new feature.

I did not test the transport over WSS, but I know that Obeo successfully did. I'll try to get someone to comment on it...



Re: [CDO] Websocket transport layer [message #1834372 is a reply to message #1834313] Mon, 09 November 2020 09:21 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Eike, Robert,

At the current point, the websocket transport layer which has been added to CDO does not allow to have/configure a secure websocket connections.

I have a working prototype on my side but it is not yet ready for production / contribution.
For the moment, I should not have time to continue the work on it before the end of the year.

Regards


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [CDO] Websocket transport layer [message #1834384 is a reply to message #1834372] Mon, 09 November 2020 12:58 Go to previous messageGo to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 146
Registered: July 2015
Senior Member
Maxime, thanks for the information!
Out of curiosity: did you need to change cdo/net4j itself, or can this be implemented externally?
Re: [CDO] Websocket transport layer [message #1834386 is a reply to message #1834384] Mon, 09 November 2020 13:21 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
I had to change CDO on server and client side in order to provide new transport, react to a new uri scheme and correcly configure the sockets.
I can now use wss:// scheme and and have a secure web socket created by CDO.
I should be able to work on this and industrialize/polish my PoC around the end of the year.

Regards


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [CDO] Websocket transport layer [message #1837269 is a reply to message #1834386] Tue, 26 January 2021 14:39 Go to previous messageGo to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 146
Registered: July 2015
Senior Member
We would very much like this feature to be integrated to CDO.
Is there any way that we could help in the process? E.g. performing tests?
Re: [CDO] Websocket transport layer [message #1838686 is a reply to message #1837269] Wed, 03 March 2021 14:35 Go to previous messageGo to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 146
Registered: July 2015
Senior Member
I implemented this myself now. See attached files.
There was really not much change necessary with respect to the existing websocket implementation.
I basically copied the according WS*.java files and added the following:

* Allow to set cookies. I think a common use case will be a connection through a secure reverse proxy. Usually, you will need to perform a separate login via https to retreive the login cookie.
* Option to trust all certificates. I needed this for testing purposes.

A note on the server-side if anyone wants to implement this as well: if you use a reverse-proxy, you will not need to change anything. The connection will be secured up to the reverse-proxy and then continue in clear. This has the advantage (so I was told) that the network guys can perform analyses for security intrusions. But if you want to encrypt all the way to the CDO server, you can configure the jetty server to use SSL/TLS. There are numerous examples on the web for that.
Re: [CDO] Websocket transport layer [message #1838731 is a reply to message #1838686] Thu, 04 March 2021 08:36 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
That's not so much code. What about contributing it to CDO?!

Re: [CDO] Websocket transport layer [message #1838745 is a reply to message #1838731] Thu, 04 March 2021 12:52 Go to previous messageGo to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 146
Registered: July 2015
Senior Member
Sure, I would gladly do so! Btw: it is mostly your code ;-).
Shall I open a bugzilla for that?
Re: [CDO] Websocket transport layer [message #1838794 is a reply to message #1838745] Fri, 05 March 2021 07:13 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Great! Yes, we definitely need a bugzilla with either a patch attached, or a Gerrit referenced.

Re: [CDO] Websocket transport layer [message #1839897 is a reply to message #1838794] Wed, 31 March 2021 10:34 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Robert and Eike,

The link to bugzilla created by Robert: https://bugs.eclipse.org/bugs/show_bug.cgi?id=571805

Regards,


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Unresolved requirement after building CDO server plugin manually
Next Topic:Creating Ecore models programmatically
Goto Forum:
  


Current Time: Sat Nov 09 01:22:09 GMT 2024

Powered by FUDForum. Page generated in 0.06448 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top