-
Notifications
You must be signed in to change notification settings - Fork 92
Description
Currently there is a simple logic in the Startup Hook which prevents it from being executed with each start of the Kubernetes pod
To avoid overhead for the case a configuration has already been applied, an MD5 checksum is created over all configuration files and the configuration is only applied for the case the checksum has changed.
(https://github.com/Netcentric/accesscontroltool/blob/develop/docs/ApplyConfig.md#startup-hook)
Unfortunately that does also prevent reinstalling/cleaning up the relevant ACLs/authorizables from the YAML config after each Cloud Manager deployment
The installation incorrectly does not occur in case the YAML configuration was not touched but
- content has been modified which is being looped over with the YAML configuration or
- ACEs have been manually modified/deleted/created which affect authorizables managed by ACTool
- Authorizables have been manually modified/deleted which are managed by ACTool
- Newer version of ACTool has been installed which treats config files differently
- OSGi configuration changed which has an impact on ACTool execution (e.g. configuration PID
biz.netcentric.cq.tools.actool.ims.IMSUserManagementorbiz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl)
Instead of leveraging a hash over the config files to check if reinstallation is necessary one should rely on something else.