-
Couldn't load subscription status.
- Fork 32
Description
It'd be a good improvement to allow binding grlc instance with a specification file and to prevent using any other specification file.
Now you can set a specification file with specUrl argument and, thus, anyone can create its own specification file and set of queries to run against the pre-configured SPARQL endpoint. It causes a security risk if the intention is to allow users to run only pre-configured SPARQL queries.
My use case is that we have an RDF store in private network but we want to build a public application interacting with the RDF store via grlc API. We want to expose only the pre-configured set of SPARQL queries to make application work. However, we don't want anyone to abuse the RDF store by providing their own specUrl.
The ideal solution would be the following:
- GRLC_SPEC_URL env variable should specify the URL of the specification file.
- Using the env variable should disallow using specUrl argument. Alternatively, there could be a config parameter to disallow that.