Documentation

Everything you need to secure your software supply chain

Getting Started with Hextrap

Hextrap protects your software supply chain by filtering and monitoring package installations. This guide will help you set up your first firewall and start protecting your projects.

Prerequisites

  • A Hextrap account (free tier available)
  • A project using pip, npm, or Go modules
  • Access to your CI/CD configuration

Step 1: Create Your First Firewall

A firewall is a security boundary for your package installations. You might create one per project, per team, or per environment depending on your needs.

  1. Log in to your Hextrap dashboard
  2. Click "New Firewall" in the top right
  3. Enter a name (e.g., "Production API")
  4. Click "Create Firewall"

Step 2: Generate Credentials

Credentials allow your builds to authenticate with hextrap. Each firewall can have its own credentials.

Navigate to Credentials tab

Click "Generate Credentials" to create a new username/password pair. Store these securely - the password is only shown once.

Step 3: Configure Your Package Manager

For pip (Python)

pip.conf or environment variable
pip install --index-url https://USERNAME:PASSWORD@pypi.hextrap.com/simple/ requests

For npm (JavaScript)

.npmrc
registry=https://npm.hextrap.com/
//npm.hextrap.com/:_authToken=YOUR_TOKEN

For Go

Environment variable
GOPROXY=https://USERNAME:PASSWORD@go.hextrap.com,direct go get

Step 4: Test Your Setup

Try installing a package to verify everything is working:

pip install requests

Check your dashboard - you should see the installation attempt in your activity log.

Next Steps