Skip to content
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

How to manage and share site location privacy? #130

Open
amabdallah opened this issue Jan 31, 2022 · 1 comment
Open

How to manage and share site location privacy? #130

amabdallah opened this issue Jan 31, 2022 · 1 comment
Labels
Future work question Further information is requested

Comments

@amabdallah
Copy link
Collaborator

amabdallah commented Jan 31, 2022

DRAFT

All WaDE's data is public except for some states, we do not want to publically share the coordinates of water supply sites (e.g., wells or treatment plants) for national homeland security reasons). It is a state-by-state case. For data query and visualization purposes in WaDE and its dashboard, we will mask the site's location by using the centroid of a small standardized watershed boundary called (HUC12) that the site falls within. The centroid will be calculated using GIS tools before loading the data to the database.

However, the USGS federal agency is one of our data users, they do need the real coordinates of those sites through a password-protected API call.

This issue applies to this data type, not water rights
https://schema.westernstateswater.org/diagrams/2_SiteSpecificAmounts.html

Question: How do we store both the actual site coordinates (for USGS use) and the masked site coordinate (HUC centroid)?
The public WaDE API will show the HUC site coordinate, while the password-protected API will show the actual site coordinates.

Possible Solution: What if we add the following two new fields to the sites table? HUC12Latitude and HUC12Longitude

The USGS API call will serve the Latitude and Longitude values, and the public WaDE call will serve the HUC12Latitude and HUC12Longitude values.

Complex case:
A few states, as in Utah, are okay with sharing the site location, which we want to publish through the WaDE public API and dashboard. Do we need a new third field that indicates if the site location is protected or public? If Protected, the API would show the HUC12Longitude, and if public, would the API shows the actual coordinates? How would the users know if they're getting the real location or the masked one? Is the CoordinateMethodCV a good place to report that?

Sites table
https://schema.westernstateswater.org/tables/Core_Sites_dim.html

@amabdallah amabdallah added Future work question Further information is requested labels Feb 15, 2022
@amabdallah
Copy link
Collaborator Author

amabdallah commented Mar 2, 2022

We need to decide on how we want to use authentication to grant access to our protected API

Our sister project (OpenET) is using user-specific tokens for API authentication. Users can create accounts on the OpenET portal https://explore.etdata.org where they can generate a FireBaseID https://firebase.google.com/docs/reference/rest/auth

Then in the API, users can use that token to authenticate the API. This user-specific authentication allows API tracking per user.
https://openet.dri.edu/docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Future work question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant