Skip to content

Latest commit

 

History

History

core

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Cube Curator Core Hydra API

Authentication

The API is secured with a JWT middleware. To configure set these environment variables in a .env file in the repository root:

  • AUTH_ISSUER
  • AUTH_AUDIENCE

Configuration variables

ENV variable
TRIFID_UI /sparql endpoint of a Trifid instance which will be linked from published cubes
GITLAB_TOKEN (optional) GitLab project access token used to cancel concurrent deployments of same cube. Requires api scope
GITLAB_API_URL (optional) GitLab address, for example https://my.gitlab.app/api/v4/

Dev environment

In the local environment it is possible to authorize requests with HTTP headers serving as a testing backdoor

  • X-USER - the user id
  • X-EMAIL - the user email
  • X-PERMISSION - authorized permissions (multiple values allowed)

Debugging

When the app is running in container started by land (see root readme) the debugger can be attached to node process on port 45671.

Make sure to map the repository root to /app directory in the container as shown below on a screenshot from WebStorm

debug config