researchstudio-sat / webofneeds

Finding people to cooperate with. Protocol, not platform. Decentralized. Linked Data. Open Source.
http://researchstudio-sat.github.io/webofneeds/
Apache License 2.0
62 stars 20 forks source link

Grant access rights to WoN nodes #3362

Closed fkleedorfer closed 3 years ago

fkleedorfer commented 3 years ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

WoN messaging across WoN nodes is not possible. The receiving node cannot verify the incoming message as it does not (necessarily) have access to the sending atom's public key.

In addition to that, the nodes enter a deadlock trying to verify each other's WebID.

What is the new behavior?

We add the option to allow ACL grants to won nodes, defined as the target WoN node of a connection, and we add an implicit Authorization giving any won node read access to an atom's key if that atom has a connection to any atom on that WoN node.

Access to the node descriptor is possible without checking a WebID first, so as to avoid a deadlock when a node wants to check another node's WebID using its own webID.

Does this introduce a breaking change?

Other information

Can be tested with green/blue test system.