synadia-labs / natster

Natster - A peer-to-multipeer media sharing application built with nothing but NATS
https://docs.natster.io
Apache License 2.0
39 stars 6 forks source link

Support unsharing a catalog #40

Closed autodidaddict closed 8 months ago

autodidaddict commented 9 months ago

Allow someone to remove a target account from the share list for a given catalog.

natster catalog unshare mycatalog Axxxx

I don't know if there's a better command than unshare other than maybe disallow

If we're being clean about this, not only should it remove the share entry from the events log (or create a delete entry?), but it should also remove the imports so the target gets those back in their account quota

jordan-rash commented 9 months ago

except synadia hub?

autodidaddict commented 9 months ago

Synadia hub is just another user. To unshare a synadiahub catalog, someone would have to issue the unshare command within the context of a synadia hub user.

In other words, the importer doesn't remove the share, the sharer/exporter does.

Should probably figure out what the experience is like for the importer, because that should also unshare and remove the import, in which case your question about synadia hub makes sense - we shouldn't let them remove that share.

autodidaddict commented 8 months ago

closed by #54