npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@stacksolo/plugin-zero-trust

v0.1.1

Published

Zero Trust plugin for StackSolo - provides Identity-Aware Proxy (IAP) resources for secure access without VPNs

Readme

@stacksolo/plugin-zero-trust

Zero Trust network access for StackSolo using Google Cloud's Identity-Aware Proxy (IAP). Secure your internal resources without VPNs - users authenticate with their Google identity.

Features

  • No VPN required - Access based on identity, not network location
  • No public IPs needed - Keep internal resources truly internal
  • Google identity integration - Use existing Google Workspace accounts
  • Fine-grained access control - By user, group, or entire domain
  • Free tier - IAP itself has no additional cost on GCP

Installation

pnpm add @stacksolo/plugin-zero-trust

Resources

IAP Tunnel (zero-trust:iap_tunnel)

Secure SSH/TCP tunneling to VMs and internal services without exposing public IPs.

{
  type: 'zero-trust:iap_tunnel',
  name: 'dev-ssh-access',
  config: {
    targetInstance: 'my-vm',
    targetZone: 'us-central1-a',
    network: 'default',
    allowedMembers: [
      'user:[email protected]',
      'group:[email protected]'
    ],
    allowedPorts: [22, 3306]  // SSH and MySQL
  }
}

After deployment, users access via:

# SSH access
gcloud compute ssh my-vm --zone=us-central1-a --tunnel-through-iap

# Database tunnel (MySQL on port 3306)
gcloud compute start-iap-tunnel my-vm 3306 --zone=us-central1-a --local-host-port=localhost:3306

# Then connect locally
mysql -h localhost -P 3306 -u root -p

IAP Web Backend (zero-trust:iap_web_backend)

Protect web applications with Google login. Users visiting the URL are prompted to authenticate.

{
  type: 'zero-trust:iap_web_backend',
  name: 'admin-panel-protection',
  config: {
    backendService: 'admin-backend',
    allowedMembers: [
      'domain:mycompany.com',
      'user:[email protected]'
    ],
    supportEmail: '[email protected]',
    applicationTitle: 'Admin Panel'
  }
}

After deployment, users access via:

Just visit the URL in a browser. Google login appears automatically. Only allowed members can access.

Access Control

The allowedMembers field supports three formats:

| Type | Format | Example | Scope | |------|--------|---------|-------| | Individual | user:email | user:[email protected] | Single person | | Group | group:email | group:[email protected] | Everyone in the Google Group | | Domain | domain:name | domain:example.com | Anyone with @example.com Google account |

Examples

// Single developer
allowedMembers: ['user:[email protected]']

// Team via Google Group
allowedMembers: ['group:[email protected]']

// Entire company
allowedMembers: ['domain:mycompany.com']

// Mixed access (internal team + external contractor)
allowedMembers: [
  'group:[email protected]',
  'user:[email protected]'
]

Architecture: Mixing Public and Protected Resources

You can have both public and IAP-protected services behind the same load balancer:

                    Internet
                        │
                        ▼
              ┌─────────────────┐
              │  Load Balancer  │
              │  (path routing) │
              └────────┬────────┘
                       │
        ┌──────────────┼──────────────┐
        │              │              │
        ▼              ▼              ▼
   /api/*         /admin/*       /docs/*
   (public)      (IAP protected)  (public)
// Public API - no IAP protection
{ type: 'gcp-cdktf:cloud_run', name: 'api', config: { ... } }

// Protected admin panel
{ type: 'gcp-cdktf:cloud_run', name: 'admin', config: { ... } }
{
  type: 'zero-trust:iap_web_backend',
  name: 'admin-protection',
  config: {
    backendService: 'admin-backend',
    allowedMembers: ['domain:mycompany.com'],
    supportEmail: '[email protected]'
  }
}

// Public docs - no IAP protection
{ type: 'gcp-cdktf:storage_website', name: 'docs', config: { ... } }

Multi-Tenant Applications

For SaaS applications where each customer needs isolated access to their admin panel:

// Customer A's admin access
{
  type: 'zero-trust:iap_web_backend',
  name: 'customer-a-admin',
  config: {
    backendService: 'admin-backend',
    allowedMembers: ['domain:customer-a.com'],
    supportEmail: '[email protected]',
    applicationTitle: 'Customer A Admin'
  }
}

// Customer B's admin access
{
  type: 'zero-trust:iap_web_backend',
  name: 'customer-b-admin',
  config: {
    backendService: 'admin-backend',
    allowedMembers: ['domain:customer-b.com'],
    supportEmail: '[email protected]',
    applicationTitle: 'Customer B Admin'
  }
}

Prerequisites

  1. Google Cloud CLI installed and authenticated

    gcloud auth login
    gcloud auth application-default login
  2. Terraform installed

Note: OAuth consent screen and client are automatically created during deployment - no manual GCP Console configuration needed.

User Access (No StackSolo Required)

After you deploy with StackSolo, users access resources using standard Google Cloud tools:

| Resource | Access Method | |----------|---------------| | SSH to VM | gcloud compute ssh INSTANCE --tunnel-through-iap | | TCP tunnel | gcloud compute start-iap-tunnel INSTANCE PORT | | Web app | Visit URL in browser (Google login prompt) |

Users only need:

  • A Google account (in the allowed members list)
  • gcloud CLI (for SSH/TCP tunnels only)

Cost

| Resource | Monthly Cost | |----------|-------------| | IAP Tunnel | Free | | IAP Web Backend | Free |

Note: Standard charges apply for underlying resources (VMs, Load Balancers, etc.)

License

MIT