Repository navigation
linkeddatahub-6.5.0
·
169 commits
to master
since this release
Migration
- Run
make secretsbeforemake up: the stack needsFUSEKI_ADMIN_PASSWORDin.envfor Fuseki's admin API (#531)
Added
- Fuseki's admin API is on:
POST /$/datasetscreates a dataset at runtime andDELETE /$/datasets/<name>removes one, for the administrator only (FUSEKI_ADMIN_PASSWORDin.env, whichmake secretswrites); a dataset per dataspace can be made without editingconfig.ttland restarting. Created datasets live under./fuseki/run ldh get --timemapand--timegatefollow theLinkthe document advertises, and--timegatewaits as a503withRetry-Afterasks- What the stylesheets put into a page from data someone else controls is formalised in Lean (
formal/xslt/): XML literals, the assistant's answer, the bootstrap script and a server-sidedocument(), with the rendering rules and the editor's canonical form replayed against the stylesheets - Uploads are formalised in Lean (
formal/uploads/): the upload folder under the graph store's writes, what an upload is described and authorized by, and how it is served, replayed against the server and againstByteRange.parse VARNISH_FRONTEND_STORAGE,VARNISH_ADMIN_STORAGEandVARNISH_END_USER_STORAGEsize each Varnish's main store, so a deployment can fit it under the service'smem_limit
Changed
- A service of a dataspace added to the descriptions after the platform started (through the context accessor, as
PATCH /settingschanges its own) gets its context on first use instead of aNullPointerException; a dataspace description change throughupdateAppmakes its services' contexts anew. For an extension: aContextPersistenceProviderfound byServiceLoadersupplies where the descriptions come from and where a change is kept (the files when there is none, a refusal to start when there are several),createServiceContextandforgetServiceContextare protected, the backend proxies have getters, andreloadContext()reads the descriptions from their persistence again (ContextEndpointAccessor.reload()) and makes the contexts of the services whose description changed anew, as a replica does to see a change another made to a persistence they share - Agents are created only in the root dataspace's admin, the one holding the secretary's WebID, so an agent URI outlives any other dataspace and no other dataspace's owner can rewrite it: sign-up on another dataspace's admin redirects there (
303), and a first OAuth login on any dataspace creates the account and agent there. An OAuth login is then recognised on every dataspace of the instance as the same agent, as a WebID certificate already is. Agents and accounts made in other dataspaces before stay where they are and keep working there; nothing is migrated - A TimeGate asked for a document whose latest change is still being committed answers
503withRetry-After(a second per commit queued on its branch, up to a minute) instead of redirecting to the version before it, and500when that commit failed; dataspaces without versioning answer as before - With
ENABLE_LINKED_DATA_PROXY=false,?uri=naming anything other than one of the instance's dataspaces or a mapped document answers403for browsers too, instead of rendering the app shell; each distinct?uri=had been an uncached server-side render - The platform's JVM exits on an
OutOfMemoryError, and thelinkeddatahubservice restartson-failure; before, the JVM could lose Tomcat's acceptor and poller threads and stay up answering nothing - A dataspace counts as seeded only once all its seed uploads have succeeded (the
based-datasets/<app>/.seededmarker, written last); before, the marker was the folder created before the first upload, so a seed that failed partway was never retried - The
ldhplugin asks for its base, certificate and password when enabled (userConfig) - The image downloads Jena from Maven Central instead of
archive.apache.org, which reset connections under load make seffinds a deployment's image whatever it's named, takesSEF_IMAGEfirst and keeps stylesheet subpaths;make publicfindsldhonPATH
Removed
- The Northwind Traders demo dataspace from the default config
Fixed
- The server certificate
bin/server-cert-gen.shmakes names every subdomain of the host (*.HOST) beside the host, soadmin.HOSTand every other dataspace's origin pass name checks; it named the host only - A SPARQL result under the
/sparqlendpoint's limit is no longer cut short when the Varnish store of SPARQL results is full: the store may evict up to 1000 cached results to make room for it (nuke_limit), not 50 - The
/sparqlendpoint answers502for a result the store's response cut short, instead of200with the rows that had arrived ldh admin import ontology --sourceimports from a LinkedDataHub document, such as a vocabulary vendored into the dataspace: it leaves the source document'ssioc:has_parentandsioc:has_containerout of the import, which the admin application refused with422- A write refused with
422for the document hierarchy, thePATCHupdate form or an access request answers with the RDF description of the error, its message asdct:title, instead of the servlet container's empty error page ldh admin create ontologywithout--uri, which writes a blank node ontology, succeeds instead of failing with500- A write whose
Originis not the dataspace'slds:originanswers403: a page on another site could submit a form that wrote as the agent, since the browser presents the client certificate to any site's request. Requests withoutOrigin(the CLI, Web-Algebra) are unaffected - A write through the Linked Data proxy to another LinkedDataHub instance is delegated again, with the platform's certificate and
On-Behalf-Ofnaming the caller, so the target's access control decides on the caller: since 6.2.4 it went out anonymous and was refused with403, which broke "Add data" to a foreign document. Reads of other origins stay anonymous, including theGETa write continues as after a303 See Other, and the ID token still goes to this instance's dataspaces only. ThatGETis now sent at all: a proxied write answered with303failed with502, the redirect hop asking the request again for the body the first hop had consumed - A chart attached to a property (
ldh:view,ldh:inverseView) is queried about the page's resource, as a view is, instead of its own block, which matched nothing - The front Varnish doesn't cache a
no-storeresponse, such as a TimeGate redirect: it was cached for a day
Security
- A body the Linked Data proxy relays byte for byte, a non-RDF file or an error page, is served with
Content-Security-Policy: default-src 'none'; sandbox, as an upload is on its own origin: it carried no policy, so a file proxied from another origin was served as this origin's content, unsandboxed. Found by the uploads replay through the proxy (tests/http/formal/uploads-conformance-proxied.sh) - A
?uri=that is nothttp(s)is refused with400, and the client opens only anhttp(s)document the proxy could not fetch: a link with?uri=javascript:…ran its script on the dataspace's origin. Found by the client model,formal/client/, which proves the window is sent tohttp(s)URLs only - On a proxied document, the assistant's requests stay on the page's origin, and the ontology import's query and the namespace
cleargo through the proxy: a proxied document naming anlds:dataspacesent them to its own origin - A version restore on a proxied document writes that document, through the proxy, and reads its access modes, TimeMap and version the same way: it wrote the remote's version over the dataspace's root
- A first OAuth login links its account to an existing agent by email only when the provider verified the address (
email_verified), and an unverified address is not stored as the new agent'sfoaf:mbox: an address the provider had not verified took over the agent whose mailbox it was. Google's boolean claims reach the login,email_verifiedamong them. Found by the authentication model,formal/auth/ - The ID token cache is kept per dataspace: a token used on one dataspace authenticated on another whose admin dataset has no account for it, until the token expired
- An XML literal renders without what would run on the page: scripts in any namespace, event handlers, a frame's
srcdoc, andjavascript:,vbscript:and non-imagedata:URLs, read as the browser reads them. A literal written straight to the graph store or imported never passed through the editor's canonical form, and one in a proxied document ran on the proxying dataspace's origin; the editor's live region copied the literal in as it was too, so a handler ran when the editor opened - The editor's canonical form takes out a script in any namespace and reads a URL's scheme as the browser does, on an SVG link's
xlink:hreftoo: it keptsvg:script,java	script:andxlink:href="javascript:…"(RDFa-Editor) - A server-side
document()ordoc-available()of a URI that is nothttp(s)reads an empty document: Saxon opened it itself, so a storedfile:URI read the server's file when the page looked up its label, andjar:http:fetched directly, past the egress proxy - An upload is served with the media type it was first uploaded with, which the platform records beside the bytes (
uploads/.types/): it was a pick among thedct:formatvalues any document stated of the file - An upload is readable by whoever may read a document it was uploaded into, which the platform records beside the bytes (
uploads/.documents/): a grant on a document did not reach the files uploaded into it, and only thenfo:FileDataObjectclass grant did - An upload's entity tag is the digest its URI is named by: it was read from the upload's description, which every document's graph adds to, so a writer of any document could state another
foaf:sha1of someone's upload and make its tag a pick between the two