terraform-provider-tailscale icon indicating copy to clipboard operation
terraform-provider-tailscale copied to clipboard

Support for Apps management

Open nairb774 opened this issue 10 months ago • 1 comments
trafficstars

It would be nice to be able to manage the Apps configuration for a Tailnet via Terraform. Specifically, the entries found on https://login.tailscale.com/admin/apps Right now we are managing it via clicking around in the UI.

Additional context Thanks for supporting Terraform!

nairb774 avatar Jan 16 '25 17:01 nairb774

cc: @phinze @kabirsikand

oxtoacart avatar Feb 03 '25 19:02 oxtoacart

Apps for App Connectors are configured directly in the policy file - the Visual Editor in the admin console is just editing your policy file directly.

So, you can use the tailscale_acl resource to manage apps following the nodeAttrs syntax shown at Set up an app connector - e.g.

resource "tailscale_acl" "main" {
  acl = <<EOF
  {
    "nodeAttrs": [
      {
        "target": ["*"],
        "app": {
          "tailscale.com/app-connectors": [
            {
              "name": "GitHub",
              "connectors": ["tag:github-app-connector"],
              "domains": ["github.com", "*.github.com"]
            }
          ]
        }
      }
    ]
  }
  EOF
}

clstokes avatar Jun 24 '25 14:06 clstokes

Thanks @clstokes . I'm closing this for now. @nairb774 please let us know if you run into any issues with the suggested solution.

oxtoacart avatar Aug 25 '25 20:08 oxtoacart