Allow users to enable/disable specific backend service URLs (i.e. dumpthings collections) #384
Labels
No labels
bug
config
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
orinoco/shacl-vue#384
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See https://shacl-vue.psychoinformatics.de/app-configuration.html#service-base-url
It is currently possible to configure any number of dumpthings collections for a shacl-vue deployment, with maximum one
writecollection. We could implement a feature that allows users to select which collections to enable, with configuration allowing some to enable by default.Some more context for this issue:
@adina:
This record contains a public information I want to edit via the editor (in this case: I'm adding the creator of an ORCID identifier). Because I'm submitting the record via the editor, I have a token set, which give me at least read permissions to the protected collection. As such, I'm seeing the information from both public and protected. If I now do the edit and submit, my protected inbox contains the full record (including the protected and public information). As soon as I curate this to public as I intend, protected information will leak there.
@mih:
Jep. In the present system, it would need two different deployments to ease that pain. One that only has public and one that (only/also) has protected.
@jsheunis:
maybe the enabled collection should become a parameter, rather than (only) being hard coded in the config. Each collection could be named, there could be a default set of enabled ones, but there could be others that are known, but disabled. And there could be a parameter (in the URL also?) that specifies the desired set of enabled collections.
@mih:
Such a feature would also make the use case with 30+ collections (I talked about earlier today) a bit less scary.
@jsheunis:
I don't see how a feature that allows the configuration and use of several enabled (or disabled but known) collections will solve the issue of protected information leaking into the public domain (or more generically, information leaking from one collection into another). Unless "enabled" means the collections that are submitted to. This challenge has overlap with this issue: #356
Perhaps shacl-vue should be updated to know and act on:
Is this level of granularity desirable and useful?
@adina:
Not sure if that commonly holds true... Maybe something simpler could be a useful first step, eg: let a user "switch on" collections (or off), and retrieve only the record from that collection. Then submit to an inbox matching the switched on collection?
@jsheunis:
What would we do if multiple write collections are switched on? Or do we specifically want to avoid that by design (that is currently the case).
A user could also (unintentionally) switch off the only write collection (or all of them), and the app should then likely ignore the user's selections and still submit to said write collection.
@mih:
I think it would be better if shaclvue makes as few assumptions about a user's intentions as possible. there need not be a "write collection" (like now). It should be OK to merely let a user set a collection to write (from read-only, or disabled). There are perfectly fine use cases for many combinations, incl. write to a collection that has not been read. It would be OK to continue supporting only max one writeable collection at any time.