Service to validate SCL Files.
For the RiseClipse implementation of the validator parts of the RiseClipse project are being used. Currently, these parts aren't distributed to any Maven Repository, so the Git Repositories need to be included. This is done using Git Submodules.
To clone the project or update the project this means that the Git commands are sometimes a little different. To clone
the project use the following command git clone --recurse-submodules [email protected]:com-pas/compas-scl-validator.git
.
This will also clone the submodules.
Tip: The URL to the submodules are configured in the file .gitmodules
, but these are using the SSH URL. There is a way
described in the URL above that the URL can be overwritten locally with an HTTPS URL of the GIT Repository.
Check the Development page for more detail information how to work with this repository, because of the mixture with RiseClipse.
Below environment variable(s) can be used to configure the validator.
Environment variable | Java Property | Description | Example |
---|---|---|---|
COMPAS_VALIDATOR_OCL_CUSTOM_DIRECTORY | compas.validator.ocl.custom.directory | Reference to a directory to load custom OCL Files | /data/ocl |
To use most of the endpoints the users needs to be authenticated using JWT in the authorization header. There are 4 environment variables that can be set in the container to configure the validation/processing of the JWT.
Environment variable | Java Property | Description | Example |
---|---|---|---|
JWT_VERIFY_KEY | smallrye.jwt.verify.key.location | Location of certificates to verify the JWT. | http://localhost:8089/auth/realms/compas/protocol/openid-connect/certs |
JWT_VERIFY_ISSUER | mp.jwt.verify.issuer | The issuer of the JWT. | http://localhost:8089/auth/realms/compas |
JWT_VERIFY_CLIENT_ID | mp.jwt.verify.audiences | The Client ID that should be in the "aud" claim. | scl-validator |
JWT_GROUPS_PATH | smallrye.jwt.path.groups | The JSON Path where to find the roles of the user. | resource_access/scl-validator/roles |