Giter Club home page Giter Club logo

iap-tunnel-helper's Introduction

IAP Tunnel Helper

A GUI wrapper for gcloud command to manage IAP tunnels.

It's a poc for Tauri GUI application development

Introduction

IAP(Identity-Aware Proxy) is a security feature of Google Cloud Platform.

It can create a tunnel to forward local port to remote GCE instance port.

Document: https://cloud.google.com/iap/docs/tcp-forwarding-overview

It's useful in debug or maintenance. The command looks like:

gcloud compute start-iap-tunnel \
  --project <GCP_PROJECT_ID> \
  --zone <GCE_INSTANCE_ZONE> \
  --local-host-port localhost:<LOCAL_PORT> \
  <GCE_INSTANCE_NAME> \
  <GCE_INSTANCE_PORT>

When your instances are located multi-zone. It's annoying to specific <GCE_INSTANCE_PORT>.

You can create multi tunnels to forward different GCE Instance in different projects.

Initial project

Install rust

https://www.rust-lang.org/tools/install

In MacOS

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

Install node npm, and yarn

https://nodejs.org/en/download/

npm install --global yarn

Install node packages

In project directory

yarn

Development mode

In project directory

yarn tauri dev

# or 

make

Build

Debug mode

yarn run tauri build --debug

# or

make build

Application will be created in src-tauri/target/debug.

Release mode

yarn run tauri build

# or

make release

Application will be created in src-tauri/target/release.

Notice

If you're build on the MacOS platform, it would mount a volume to create dmg.

If it does not unmount automatically, you should unmount the volume before build, or you will build fail.

Application Usage

  1. Install gcloud CLI, follow the official document: https://cloud.google.com/sdk/docs/install
  2. Init gcloud command, login your google account.
  3. Open the application, it will load your environment variable and call gcloud automatically.

iap-tunnel-helper's People

Contributors

timfanda35 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.