OpenConext / OpenConext-pdp

OpenConext implementation of a XACML based PDP engine for access policy enforcement
Apache License 2.0
8 stars 8 forks source link

XACML configuration files #21

Open tvdijen opened 5 years ago

tvdijen commented 5 years ago

I have an issue with the xacml.properties-file and the xacml-directory because I can't seem to override the default location of these files from the application.properties..

Setting them as below doesn't work:

xacml.properties.path=file:/some/path/xacml.conext.properties
policy.base.dir=file:/some/path/xacml/policies

The only solution I have right now is to copy my modified files to pdp-server/src/main/resources and run mvn build..

tvdijen commented 1 year ago

I was able to spend a bit of time to investigate this, and the issue is limited to the files in the xacml/attributes directory. Those files are loaded using new ClassPathResource("xacml/attributes/allowed_attributes.json") and therefore they have to build into the jar-file.

It would be great if we could configure a location for the two json-files in application.properties so they can be stored on an alternative location, outside the jar-file.