atsign-foundation / at_server

The software implementation of Atsign's core technology
https://docs.atsign.com
BSD 3-Clause "New" or "Revised" License
39 stars 13 forks source link

Setting `isEncrypted:false` in notify: verb doesn't actually set it to `false`. #1944

Open JeremyTubongbanua opened 2 months ago

JeremyTubongbanua commented 2 months ago

image

In the above image, I sent notification with isEncrypted:false

Then in the receiving notification has isEncrypted:true

image

Intended behaviour:

Running notify:isEncrypted:false:<...>

Should have a receiving notification of:

notification:{..., "isEncrypted":false, ...}

XavierChanth commented 1 month ago
srieteja commented 1 month ago

Could not get to this in the previous sprint, will be taking this up first in PR88.

gkc commented 4 weeks ago

Hi @srieteja I've been looking at this as it came up in another context. I'll pick it up this sprint.

Summary of the current behaviour for 'update' notifications

Summary of the changes I have in mind:

In the distant future, once all of the client-side sdks are doing the right thing with their generated notify commands, we can default isEncrypted to 'false' if it is not set in the command but for now we have to continue to default it to 'true' so we don't break the world.

I need to think a little more about the sequencing of the at_commons and at_client changes; what we want to ensure is that we only ever send a notify command with isEncrypted:false when that is genuinely the case. We will likely need to do an at_commons major version change, although we may be able to do something fiddly in at_client to ensure the right behaviour

gkc commented 4 weeks ago

See also https://github.com/atsign-foundation/at_client_sdk/issues/1332

gkc commented 2 days ago