Skip to content

Secure WebSockets #105

@michielbdejong

Description

@michielbdejong

The new Notifications protocol that is expected to become required in addition to the current pubsub protocol requires:

  • a new discovery mechanism, same as for webhooks
  • auth checks, same as for webhooks
  • a new pub format, same as for webhooks

So far I created the rudimentary https://github.com/pdsinterop/solid-nextcloud/blob/main/solid/lib/Controller/SolidWebsocketController.php which points to the old pubsub server.

I thought of a way to improve this:

  • add a second port to the pubsub server
  • when a client subscribes, create a corresponding webhook subscription, but as the target, put the new port of the pubsub server + an auth token
  • give the URL with auth token to the client
  • the pubsub server second port forwards webhook messages into the open websocket (if any) that matches its token

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions