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

n8n-nodes-secure-webhook

v1.0.4

Published

n8n custom node: Secure Webhook — redacts Authorization, Cookie and other sensitive headers from execution output

Readme

n8n-nodes-secure-webhook

A temporary custom n8n node that works exactly like the built-in Webhook node
but redacts sensitive headers (Authorization, Cookie, etc.) from execution output.

Why? n8n PR #29825 will add this natively.
Until it is merged and released, use this node as a drop-in replacement.


What It Redacts

Always redacted (hardcoded):

| Header | |---------------------| | authorization | | cookie | | x-api-key | | x-auth-token | | proxy-authorization | | sslclientcert |

You can add more via the "Extra Headers to Redact" field in the node settings.


Build

cd n8n-nodes-secure-webhook
npm install
npm run build
# Output is in ./dist/

Deploy — Docker / Kubernetes

Option A: Bake into your Docker image (recommended)

In your Dockerfile (for worker or main image), add:

# Copy the built package
COPY n8n-nodes-secure-webhook /opt/n8n-nodes-secure-webhook

# Install it globally so n8n can find it
RUN cd /opt/n8n-nodes-secure-webhook && npm install --production && \
    npm link && \
    npm link n8n-nodes-secure-webhook

# Tell n8n where to find custom nodes
ENV N8N_CUSTOM_EXTENSIONS="/opt/n8n-nodes-secure-webhook"

Option B: Startup script (no image rebuild)

In your startup.sh, before exec n8n:

# Install custom node
cd /opt/n8n-nodes-secure-webhook && npm install --production
export N8N_CUSTOM_EXTENSIONS="/opt/n8n-nodes-secure-webhook"

Mount the built dist/ folder as a volume to the container, then set:

# In your K8s envs.yaml or docker-compose env section:
- N8N_CUSTOM_EXTENSIONS=/opt/n8n-nodes-secure-webhook

Option C: ~/.n8n/custom directory

Place the built package inside /home/node/.n8n/custom/n8n-nodes-secure-webhook/
n8n auto-discovers packages in that directory.

mkdir -p /home/node/.n8n/custom
cp -r ./dist /home/node/.n8n/custom/n8n-nodes-secure-webhook
cp ./package.json /home/node/.n8n/custom/n8n-nodes-secure-webhook/

Environment Variable

Set this in all main + worker pods:

N8N_CUSTOM_EXTENSIONS=/opt/n8n-nodes-secure-webhook

For your sales server S3 secret paths:

  • prod/secrets/sales/main/ — add N8N_CUSTOM_EXTENSIONS
  • prod/secrets/sales/worker/ — add N8N_CUSTOM_EXTENSIONS

Usage

  1. In your workflow, delete the existing Webhook node
  2. Add a Secure Webhook node (appears in the trigger nodes panel with a 🔒 icon)
  3. Configure the same Path, HTTP Method, and Response Mode
  4. The output format is identical to the built-in Webhook node — no downstream changes needed

Migration Checklist

  • [ ] Build the package (npm run build)
  • [ ] Deploy to all servers (main + workers need the env var)
  • [ ] Replace Webhook nodes in sensitive workflows with Secure Webhook
  • [ ] Test with a real request — confirm [REDACTED] appears for authorization in execution UI
  • [ ] When n8n merges PR #29825 and you upgrade, switch back to the built-in Webhook node

Output Format

Same as the built-in Webhook node:

{
  "headers": {
    "content-type": "application/json",
    "authorization": "[REDACTED]",
    "cookie": "[REDACTED]",
    "user-agent": "PostmanRuntime/7.51.1"
  },
  "params": {},
  "query": {},
  "body": { "name": "Mustafa" },
  "webhookUrl": "https://your-n8n.com/webhook/my-path",
  "executionMode": "production"
}