Skip to content

Execute Startup Hook always after Pipeline Deployment #748

@kwin

Description

@kwin

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

  1. content has been modified which is being looped over with the YAML configuration or
  2. ACEs have been manually modified/deleted/created which affect authorizables managed by ACTool
  3. Authorizables have been manually modified/deleted which are managed by ACTool
  4. Newer version of ACTool has been installed which treats config files differently
  5. OSGi configuration changed which has an impact on ACTool execution (e.g. configuration PID biz.netcentric.cq.tools.actool.ims.IMSUserManagement or biz.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions