Giter Club home page Giter Club logo

pulumi-twingate's Introduction

Twingate Resource Provider

The Twingate Resource Provider lets you manage Twingate resources.

Installing

This package is available for several languages/platforms:

Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

npm install @twingate/pulumi-twingate

or yarn:

yarn add @twingate/pulumi-twingate

Python

To use from Python, install using pip:

pip install pulumi-twingate

Go

To use from Go, use go get to grab the latest version of the library:

go get github.com/pulumi/pulumi-twingate/sdk/go/...

.NET

To use from .NET, install using dotnet add package:

dotnet add package Twingate.Twingate

Configuration

The following configuration points are available for the twingate provider:

  • twingate:apiToken - The access key for API operations. You can retrieve this from the Twingate Admin Console (documentation). Alternatively, this can be specified using the TWINGATE_API_TOKEN environment variable.
  • twingate:network - Your Twingate network ID for API operations. You can find it in the Admin Console URL, for example: autoco.twingate.com, where autoco is your network ID. Alternatively, this can be specified using the TWINGATE_NETWORK environment variable.
  • twingate:url - The default is 'twingate.com'. This is optional and shouldn't be changed under normal circumstances.

Reference

For detailed reference documentation, please visit the Pulumi registry.

pulumi-twingate's People

Contributors

twingate-blee avatar dependabot[bot] avatar bertekintw avatar vmanilo avatar ekampf avatar

Stargazers

 avatar Mohammed Almusaddar avatar Daniel avatar masx200 avatar

Watchers

 avatar Lior Rozner avatar Roman Romm avatar  avatar sagie shamay avatar  avatar

Forkers

vmanilo

pulumi-twingate's Issues

MacOS root user is not able to use Twingate (MacOS: 12.6.6)

I have been using your application twingate for MacOS which I download over the AppStore. It works fine on the user account. However when I try to use twingate as the Root user using the root login on MacOS it fails.

I have troubleshooted the issue and this is the error:

2024-04-20 20:52:15.744+0200 [ERROR] [client] Unable to evaluate DeviceOwnerAuthenticationWithBiometrics policy, code: -8, exception: Biometry is locked out.
2024-04-20 20:52:15.803+0200 [ERROR] [client] -[VPNManager finishStartWithError:] [Line 374] Start finished with error Error Domain=com.anchorfree.hydra.manager Code=4 "failed_to_connect" UserInfo={NSLocalizedDescription=failed_to_connect}
2024-04-20 20:52:15.803+0200 [ERROR] [client] Connect failed: failed_to_connect

While digging into it deeper the error is all about the fact that twingate checks the biometry and if its locked out it dose not allow the connection to the network. While this is ok for most cases in the case of the root user the biometry is always locked out cause biometry is not needed.

Hope someone can reach out and offer a fix for this.

Issues when trying to use the provider in golang

Hi,

I'm getting the error go: module github.com/Twingate/pulumi-twingate@upgrade found (v3.0.4+incompatible), but does not contain package github.com/Twingate/pulumi-twingate/sdk/go/twingate when trying to install the provider in my Pulumi project using the golang sdk. Can someone help with this?

Thanks!

Update Twingate Pulumi User Agent

Right now the user agent is as follows:

TwingateTF/$VERSION-pulumi
e.g. TwingateTF/3.0.2-pulumi

Can we change it to:
TwingatePulumi/$VERSION
e.g. TwingatePulumi/3.0.2

It is controlled here:

provider := twingate.New(fmt.Sprintf("%s-pulumi", version.Version))()

provider := twingate.New(fmt.Sprintf("%s-pulumi", version.Version))()

MacOS root user is not able to use Twingate

I have been using your application twingate for MacOS which I download over the AppStore. It works fine on the user account. However when I try to use twingate as the Root user using the root login on MacOS it fails.

I have troubleshooted the issue and this is the error:

2024-04-20 20:52:15.744+0200 [ERROR] [client] Unable to evaluate DeviceOwnerAuthenticationWithBiometrics policy, code: -8, exception: Biometry is locked out.
2024-04-20 20:52:15.803+0200 [ERROR] [client] -[VPNManager finishStartWithError:] [Line 374] Start finished with error Error Domain=com.anchorfree.hydra.manager Code=4 "failed_to_connect" UserInfo={NSLocalizedDescription=failed_to_connect}
2024-04-20 20:52:15.803+0200 [ERROR] [client] Connect failed: failed_to_connect

While digging into it deeper the error is all about the fact that twingate checks the biometry and if its locked out it dose not allow the connection to the network. While this is ok for most cases in the case of the root user the biometry is always locked out cause biometry is not needed.

Hope someone can reach out and offer a fix for this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.