Skip to content

tailscale_tailnet_key resource expires in terraform at the same time that the key expires in tailscale.Β #465

@rowanmoul

Description

@rowanmoul

Describe the bug
A clear and concise description of what the bug is.

The tailscale_tailnet_key resource expires in terraform at the same time that the key becomes invalid for use in the tailnet. On the surface this would seem to make sense, but it means terraform will not automatically re-generate the key prior to it's expiry, which can cause down time for nodes relying on the key.

To Reproduce
Steps to reproduce the behaviour:

  1. Create a tailscale_tailnet_key with terraform (set a short expiry for the sake of testing)
  2. Observe that terraform apply will not prompt to re-create the key until after expiry, at which point the key also becomes invalid on the tailnet.

Expected behaviour
A clear and concise description of what you expected to happen.

terraform apply should trigger the re-generation of the key if it is within some fraction of the exprity time. Alternatively, there should be a configuration setting to specify how long before expiry the terraform resource should become invalid.

Desktop (please complete the following information):

  • OS: Linux
  • Terraform Version: 1.10.2
  • Provider Version: 0.17.2

Additional context
Add any other context about the problem here.

Calling this a bug might be a stretch, but this really does have the potential to cause down time (as it has in my company's setup).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions