crossplane-contrib / provider-azure

Crossplane Azure Provider
Apache License 2.0
93 stars 65 forks source link

Please support ARM object locks as a resource #290

Open rbtcollins opened 2 years ago

rbtcollins commented 2 years ago

https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json

These locks alter the behaviour of the locked object's control plane. This provides a belt-and-braces approach to manage preservation of critical resources such as databases or storage accounts

In the event of crossplane failure, or even deliberate removal of crossplane, this would help prevent unintended negative consequences and also prevent manual deletion of the resource outside of crossplane.

https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#managed-applications-and-locks has a specific example of how this might be used.

Jonatan-V commented 1 year ago

looks like it was added in an earlier release too so hope to see it soon https://doc.crds.dev/github.com/crossplane-contrib/provider-jet-azure/management.azure.jet.crossplane.io/Lock/v1alpha1@v0.3.0-preview