Virtuoso Open-Source Wiki
Virtuoso Open-Source, OpenLink Data Spaces, and OpenLink Ajax Toolkit
Advanced Search
Help?
Location: / Dashboard / Main / VOSIndex / VirtSPARQLEndpointProtection / VirtAuthFOAFSSLACL

Securing your SPARQL Endpoint via WebID

SPARQL endpoints are easy for random visitors to accidentally overload. Virtuoso allows you to secure your SPARQL endpoint against such abuses in various ways, including the WebID Protocol.

The WebID Protocol links a Web ID to a public key, to create a global, decentralized/distributed, and open -- yet secure! -- authentication system that functions with existing browsers.

Virtuoso lets you set WebID Protocol-based ACLs (Access Control Lists) to restrict and permit various levels of activity based on the visitor's WebID, through the SPARQL-SSL endpoint, <https://<cname>:<port>/sparql-ssl>, e.g., https://virtuoso.example.com:8889/sparql-ssl.

Accessing Virtuoso's WebID Protocol ACLs

  1. Load the Conductor in your browser, http://<cname>:<port>/conductor, e.g., http://virtuoso.example.com:8889/conductor.
  2. Log in as a DBA-privileged user, e.g., dba.
  3. Drill down to to Linked Data -> Access Controls -> SPARQL-SSL.



Sample scenario

The following sample scenario demonstrates setting WebID Protocol ACLs using the Virtuoso Authentication Server UI:

  1. Download and install the conductor_dav.vad package.
  2. Generate an X.509 Certificate hosted WebID.
  3. Go to http://<cname>:<port>/conductor, where <cname>:<port> are replaced by your local server values.
  4. Log in as user "dba" or another user with DBA privileges
  5. Go to Linked Data -> Access Controls -> SPARQL-SSL



  6. In the shown form:
    1. Enter for Web ID for ex.:

      http://id.myopenlink.net/dataspace/person/demo#this

    2. Select "SPARQL Role" for ex. "Sponge".



  7. Click the "Register" button.
  8. As result the WebID Protocol ACLs will be created.



  9. Go to the SPARQL+SSL endpoint https://<cname>:<port>/sparql-ssl
  10. Select the user's certificate from above:



  11. As result the SPARQL Query UI will be presented:



  12. Execute sample query and view the results:



Related

Powered By Virtuoso