-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Configuration for S2S to exclude fields from sharing [3] #6875
Comments
Leaving the ongoing discussion aside, on a technical level we could use JSON patch to do this. Json patch is an easy way to programmatically rewrite JSON objects. So the query We could simply provide a file with all the operations we want to see on outgoing entities. Find a java library here and the RFC |
* #6875 initial mechanism for ignoring properties when sending * #6875 improve ignored field clearing before sharing for a case * #6875 apply the S2SIgnoreProperty annotation more widely + code cleanup * #6875 unit tests for handling ignored properties * #6875 fix missing handling for associated contacts and event * #6875 revert to https * #6875 fix merge conflicts and apply change to immunizations * #6875 revert to https
4 new properties were introduced in
By default they are commented and are internally set to
If a system has the properties set to |
Verified ticket on local environment using the latest version of Sormas 1.65.0-SNAPSHOT from the development branch and on the ignore_fields branch. |
More explanation about corner cases when configuring how external data is handled for different sormas instances can be found here #7014 (comment) |
Situation Description
With the current implementation Sormas 2 Sormas is also sending the External Token, the Internal ID, the general comment and the ExternalID. In corner cases this may result in either data protection issues or issues with the reporting system.
Feature Description
By default the sending (and receiving that values) of ExternalToken, ExternalID, generalComment, InternalID should be prevented.
With the config in sormas.properties (a config property for each mentioned field in all entities) you can decide which of the mentioned fields should be sent when using S2S and which won't.
Example with expected behavior:
Possible Alternatives
Additional Information
The fields should be excluded for all entities
The text was updated successfully, but these errors were encountered: