惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
G
Google Developers Blog
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
小众软件
小众软件
月光博客
月光博客
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
P
Proofpoint News Feed
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
The Cloudflare Blog
博客园_首页
美团技术团队
大猫的无限游戏
大猫的无限游戏
B
Blog
IT之家
IT之家
Jina AI
Jina AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - prodgate-dev/prodgate: Access control regression...
anans04 · 2026-06-15 · via Hacker News: Show HN

Access control regression detection for Express APIs.

Prodgate diffs the middleware chain of your Express backend across two versions of a codebase and produces a deterministic pass/fail verdict.

Installation

Usage

prodgate check --before <path> --after <path>

Example output

Prodgate Access Control Report
──────────────────────────────────────────────────
Routes scanned: 28
[CRITICAL] Access control regression: POST /impersonate/:userId
  File:   src/api/admin.ts:12
  Before: requireSuperuser
  After:  (none)
  Impact: POST /impersonate/:userId no longer enforces any access control. This endpoint is now publicly accessible.
──────────────────────────────────────────────────
Authorization changes detected:
  CRITICAL
    POST /impersonate/:userId   requireSuperuser -> (none)
Verdict: FAIL

What Prodgate detects

CRITICAL (fails CI):

  • Route lost auth middleware
  • Router mount lost auth middleware (all child routes affected)
  • New unprotected POST, PUT, DELETE, or PATCH route
  • Unprotected route shadows a protected route on the same path

WARNING (informational by default, fails CI with --strict):

  • New unprotected GET route
  • Inconsistent protection across sibling routes

Flags

Flag Description
--json Output raw JSON
--github Output GitHub markdown for PR comments
--output <file> Write output to a file
--strict Fail CI on warnings as well as criticals

CI Integration

Add this to your repository at .github/workflows/prodgate.yml:

name: Prodgate Access Control Check

on:
  pull_request:
    branches: [main, master]

jobs:
  prodgate:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
      issues: write

    steps:
      - name: Checkout PR branch
        uses: actions/checkout@v6
        with:
          path: after

      - name: Checkout base branch
        uses: actions/checkout@v6
        with:
          ref: ${{ github.base_ref }}
          path: before

      - name: Setup Node.js
        uses: actions/setup-node@v6
        with:
          node-version: '22'

      - name: Install prodgate
        run: npm install -g prodgate

      - name: Run prodgate check
        run: prodgate check --before ./before --after ./after --json --output prodgate-result.json
        continue-on-error: true

      - name: Post PR comment
        if: always()
        continue-on-error: true
        uses: actions/github-script@v9
        with:
          script: |
            try {
              const fs = require('fs')
              if (!fs.existsSync('prodgate-result.json')) return
              const result = JSON.parse(fs.readFileSync('prodgate-result.json', 'utf8'))
              const verdict = result.verdict === 'pass' ? 'PASS' : 'FAIL'
              let body = `## Prodgate Access Control Check: ${verdict}\n\n`
              body += `**${result.stats.routesScanned} routes scanned**\n\n`
              const criticals = result.findings.filter(f => f.severity === 'CRITICAL')
              const warnings = result.findings.filter(f => f.severity === 'WARNING')
              if (criticals.length === 0 && warnings.length === 0) {
                body += `No access control issues detected.\n`
              }
              if (criticals.length > 0) {
                body += `### Critical Issues\n\n`
                for (const f of criticals) {
                  body += `**\`${f.route.method.toUpperCase()} ${f.route.path}\`**: ${f.summary}\n`
                  body += `- Before: \`${f.auth.beforeEffective.join(' -> ') || '(none)'}\`\n`
                  body += `- After: \`${f.auth.afterEffective.join(' -> ') || '(none)'}\`\n`
                  if (f.affectedRoutes && f.affectedRoutes.length > 0) {
                    body += `- Affected routes: ${f.affectedRoutes.join(', ')}\n`
                  }
                  body += `\n`
                }
              }
              if (warnings.length > 0) {
                body += `### Warnings\n\n`
                for (const f of warnings) {
                  body += `- \`${f.route.method.toUpperCase()} ${f.route.path}\`: ${f.summary}\n`
                }
              }
              await github.rest.issues.createComment({
                issue_number: context.issue.number,
                owner: context.repo.owner,
                repo: context.repo.repo,
                body
              })
            } catch (e) {
              console.log('Could not post PR comment:', e.message)
            }

      - name: Fail if critical issues detected
        run: |
          node -e "
            const fs = require('fs');
            const result = JSON.parse(fs.readFileSync('prodgate-result.json', 'utf8'));
            if (result.verdict === 'fail') {
              console.log('Prodgate detected critical access control regressions.');
              process.exit(1);
            }
            console.log('Prodgate check passed.');
          "

Zero config

Prodgate auto-detects Express route files by scanning your repository. No configuration required.

If auto-detection doesn't work for your project structure, create a prodgate.config.json at the repo root:

{
  "routesDir": "src/routes",
  "authPatterns": ["requireAuth", "requireAdmin"],
  "ignore": ["/health", "/metrics"]
}

Limitations

  • Express only. NestJS, FastAPI, and Rails support is planned.
  • Static analysis only. It does not execute code or make network requests.
  • Middleware identity is based on name and structure. Renamed or wrapped middleware may not be detected correctly.
  • Dynamic route registration patterns may be missed.
  • Router-to-route matching uses naming conventions. Unusual naming may require routesDir configuration.

Demo

See prodgate-demo for two worked examples with real CLI output.