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

Questions about security features and table relationships #168

Open
samtux opened this issue Jul 4, 2024 · 3 comments
Open

Questions about security features and table relationships #168

samtux opened this issue Jul 4, 2024 · 3 comments
Labels
question Further information is requested

Comments

@samtux
Copy link

samtux commented Jul 4, 2024

I have some questions regarding the support of some functionality of the published web services.

  • Is it possible to relate a geographic layer to an attribute table and support query filters?
  • Is it possible to add authentication security or query authorization on a published web services?
@dr-jts dr-jts added the question Further information is requested label Jul 4, 2024
@dr-jts
Copy link
Collaborator

dr-jts commented Jul 4, 2024

  • Is it possible to relate a geographic layer to an attribute table and support query filters?

This should be possible via a view.

  • Is it possible to add authentication security or query authorization on a published web services?

The only security that pg_featureserv currently supports is via the access grants on the service user ID. This is by design, to reduce code complexity and separate concerns. If some more elaborate scheme is required it could be done via a security proxy in front of pg_featureserv.

@samtux
Copy link
Author

samtux commented Jul 5, 2024

Thank you for your prompt response. For the first case, if it is a relationship of weather stations with temperature and humidity records every 10 minutes, it can be quite a big view to handle. Have you thought of another strategy to handle this kind of data?

@dr-jts
Copy link
Collaborator

dr-jts commented Jul 5, 2024

if it is a relationship of weather stations with temperature and humidity records every 10 minutes, it can be quite a big view to handle. Have you thought of another strategy to handle this kind of data?

From a purely pg_featureserv standpoint, the solution is simple: refine the queries so that the amount of data returned is smaller (e.g. by using a filter with time intervals).

If the need is to access all or a large part of the dataset, then perhaps exploring something like GeoParquet would be more appropriate.

If the issue is visualizing a large number of spatial features, then pg_tileserv might be more effective for this. But it sounds like your dataset has relatively few spatial locations, but a large number of observations at each location.

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

No branches or pull requests

2 participants