Commit Graph
2 Commits
Author SHA1 Message Date
Ben West 6b98e012bb ensure obfuscation only affects rendered values
The results to render may come from an in-memory cache, or from the database.
If they came from the in-memory cache, it's possible that obscurring the device
field could actually change the values in memory.  When obscurring, the device
field, this patch copies all of the values in order to ensure that the
in-memory copies are unaffected.  With this patch, cached objects should not be
affected.
2021-12-15 10:10:51 -08:00
Ben West 4b38e32b50 obscure private device provenance
Allow users to choose whether or not to reveal the provenance of the data to
consumers.  This is intended to help protect data rights to portability and
access.  If consumers start abusing or discriminating against Nightscout users
due to the source of the data, this allows users to conceal this information.
2021-12-14 14:51:40 -08:00