juju / terraform-provider-juju

A Terraform provider for Juju
Apache License 2.0
19 stars 37 forks source link

Allow terraform to execute on models which have disable-command all #483

Closed dparv closed 3 months ago

dparv commented 4 months ago

Requirements

A usecase for this is when we want to force people to use GitOps approach to modify settings on a juju model and prevent them from using juju XXX commands.

We have noticed that if disable-command all is set on a model terraform can't apply changes.

Not sure if this is for terraform or juju to be able to disable by user.

Urgency

Casually wishlisting

Notes & References

No response

cderici commented 3 months ago

@dparv Thanks for bringing to our attention! Though this is about the implementation of the disable-command on the Juju side. I need to double check the codes but it sounds like the disable-command is blocking the API for all the clients instead of just blocking the juju-cli. Please file a bug on the LP so it's fixed on the Juju side.