tailscale / terraform-provider-tailscale

Terraform provider for Tailscale
https://registry.terraform.io/providers/tailscale/tailscale
MIT License
258 stars 47 forks source link

Deleting tailscale_device_key resources results in key expiry being disabled #401

Open oxtoacart opened 2 months ago

oxtoacart commented 2 months ago

When the resource is deleted, the provider calls the API with an empty tsclient.DeviceKey{}, which results in KeyExpiryDisabled being set to false on the server.

It's not clear that this is the behavior we want when deleting device key resources.