AdaptiveConsulting / nexus-casc-plugin

Configuration as code plugin for Sonatype Nexus Repository Manager
MIT License
48 stars 21 forks source link

Add option to prune roles not specified in CASC #31

Closed hWorblehat closed 2 years ago

hWorblehat commented 3 years ago

This PR adds an additional option to the security config: pruneRolesBySource. If this is set to true, then for each role source that has at least one role specified in the CASC file, the plugin will delete any roles not specified in the casc file.

This allows for certain scenarios that were not easily catered for by the old behaviour of the plugin, such as changing the name of a role in the CASC file, then reapplying.