tailscale / terraform-provider-tailscale

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

Deleting tailscale_device_key resources results in key expiry being disabled #401

Open oxtoacart opened 3 months ago

oxtoacart commented 3 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.