How To Configure WebApp Component Minimal File Access Permissions

The WebApp Component requires access to the following file resources:
It is a good security practice to allow a component to access only the information and resources that are necessary for its purpose. In an environment that uses Apache Tomcat, you can enforce these rules following these steps:

Configuring File Permissions to Custom Locations

There are cases when the Oxygen XML WebApp needs to access files system resources, but due to security reasons, you want to prevent your users from opening them directly in the Oxygen XML WebApp editing page using the file:// protocol.

You can do this by following these steps:
  • Edit the catalina.policy file and add a line such as:
    permission java.io.FilePermission "path/to/yourSecretDir/-", "read,write,delete";
    permission java.io.FilePermission "path/to/yourSecretDir", "read,write,delete";
  • Use the following system property when starting the Tomcat server:
    -Dfile.protocol.blacklist=/path/to/yourSecretDir
    Note: Use the value of path.separator system property to separate more directories. For example, under Linux, the value of path.separator property is a colon punctuation character :.