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

推荐订阅源

Hacker News: Ask HN
Hacker News: Ask HN
C
Cisco Blogs
The Hacker News
The Hacker News
T
Tor Project blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The Register - Security
The Register - Security
云风的 BLOG
云风的 BLOG
Simon Willison's Weblog
Simon Willison's Weblog
P
Palo Alto Networks Blog
Vercel News
Vercel News
C
CERT Recently Published Vulnerability Notes
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
I
Intezer
aimingoo的专栏
aimingoo的专栏
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
P
Proofpoint News Feed
P
Proofpoint News Feed
B
Blog
T
Threat Research - Cisco Blogs
博客园 - 叶小钗
Recorded Future
Recorded Future
Last Week in AI
Last Week in AI
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Engineering at Meta
Engineering at Meta
G
Google Developers Blog
PCI Perspectives
PCI Perspectives
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Schneier on Security
Schneier on Security
N
News | PayPal Newsroom
C
Cybersecurity and Infrastructure Security Agency CISA
H
Help Net Security
博客园 - 聂微东
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
GRAHAM CLULEY

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
I built an AI incident copilot that does not store your production logs
Bart Holden · 2026-06-25 · via DEV Community

I built an AI incident copilot that does not store your production logs

Every engineer has done some version of this:

  1. Something breaks in production.
  2. You grab the logs.
  3. You paste them into an AI chat app.
  4. You ask: “What is going on here?”
  5. The model gives you a useful answer.
  6. Everyone pretends this was normal.

It is not normal.

It is insane.

Production logs are not harmless text. They can contain customer IDs, stack traces, auth errors, request paths, internal service names, database fields, infrastructure details, feature flags, API responses, payment metadata, and occasionally secrets that should never have been logged in the first place.

And yet the fastest debugging workflow in 2026 is still:

Paste sensitive production context into a chat box and hope the privacy policy is friendly.

I wanted the AI help without turning incident response into a data leak waiting to happen.

So I built a small internal app for debugging incidents where the main product requirement was simple:

The app should be useful even if we refuse to store the user’s prompts.

The app: an incident copilot for messy production failures

The app is basically an AI “war room” for debugging.

You paste in logs, traces, errors, alerts, or incident notes. Then it helps with things like:

  • Summarizing what changed
  • Finding the likely failure point
  • Grouping noisy logs into themes
  • Explaining stack traces
  • Suggesting rollback or mitigation steps
  • Turning messy Slack updates into clean incident notes
  • Drafting a postmortem timeline

The obvious way to build this would be:

User input → backend → database → LLM provider → database → UI

That is also the terrifying way to build it.

Because now my app owns a durable archive of every production failure someone pasted into it.

That means I have to worry about admin access, debug logs, database backups, support tooling, analytics, retention policies, deletion flows, and breach impact.

I did not want that.

I wanted the app to be closer to a private scratchpad than a SaaS dashboard.

The privacy rule: do not store the damn logs

This became the core design rule:

Incident data should be processed, not collected.

The app does not need to remember what happened last month unless the user explicitly exports it.

It does not need a searchable backend history.

It does not need to store raw logs “for analytics.”

It does not need to keep prompts so I can maybe build some future feature.

It just needs to help the user reason through the current mess.

So the architecture became:

  • Chat history lives locally in the browser.
  • The backend does not persist raw prompts.
  • The backend does not persist raw model responses.
  • Each request is treated as disposable.
  • Users can export a postmortem if they want a durable record.
  • Sensitive cleanup happens before the model call where possible.
  • The UI is explicit about what is local and what is sent for inference.

This is not perfect privacy.

But it is a much better default than quietly storing everything forever.

Where the Icelake API fits in

For the model layer, I used the Icelake AI API because it gave me an OpenAI-compatible interface while fitting the privacy posture I wanted for the app.

That mattered because I did not want the model provider integration to become the whole project.

I wanted to keep the product architecture simple:

const response = await fetch("/api/analyze-incident", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    messages,
    redactionMode: "strict",
  }),
});

Then the server endpoint does three things:

  1. Redacts obvious sensitive values.
  2. Sends the minimized prompt to the model API.
  3. Returns the answer without storing the raw request or response.

The important part is not that this is technically fancy.

It is not.

The important part is that the app is designed around data restraint.

Most AI apps start with:

What can we collect?

This app starts with:

What can we avoid collecting?

That one question changes a lot.

The basic architecture

Here is the rough flow:

Browser
  |
  | 1. User pastes logs
  v
Local session state
  |
  | 2. Optional client-side redaction preview
  v
Backend API route
  |
  | 3. Server-side redaction and prompt shaping
  v
LLM API
  |
  | 4. Response returned
  v
Browser
  |
  | 5. Local-only chat history

The backend is deliberately boring.

No incident_messages table.

No chat_history table.

No “save everything now, figure out privacy later.”

Just request in, request out.

Redaction is useful, but it is not a privacy strategy

A lot of developers treat redaction like a magic shield.

It is not.

Redaction helps, but it will never catch everything.

You can strip obvious things:

function redact(input: string) {
  return input
    .replace(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/gi, "[EMAIL]")
    .replace(/\b(?:\d[ -]*?){13,16}\b/g, "[CARD_NUMBER]")
    .replace(/\bsk-[a-zA-Z0-9]{20,}\b/g, "[API_KEY]")
    .replace(/\bAKIA[0-9A-Z]{16}\b/g, "[AWS_ACCESS_KEY]")
    .replace(/\b\d{1,3}(?:\.\d{1,3}){3}\b/g, "[IP_ADDRESS]");
}

That is better than nothing.

But it is not enough.

Production data is messy. Sensitive values do not always look like secrets. Internal service names can be sensitive. Customer IDs can be sensitive. Database fields can be sensitive. Even a stack trace can reveal more than you intended.

So the real privacy win is not redaction.

The real privacy win is reducing how much data your app keeps after the request is done.

Redaction lowers risk during inference.

Not storing the logs lowers risk forever.

I also stopped pretending analytics needed message content

This is where a lot of AI apps quietly go wrong.

They say:

We need logs for product analytics.

No, you probably do not.

For this app, I care about events like:

  • User ran an analysis
  • User used strict redaction
  • User copied a mitigation plan
  • User exported a postmortem
  • Model response failed
  • Request took too long

I do not need the actual production logs.

I do not need the exact prompt.

I do not need the model’s full answer.

Product analytics should tell me how the product is used, not capture the private contents of the work.

So the event payload looks more like this:

track("incident_analysis_completed", {
  redactionMode: "strict",
  inputLengthBucket: "10k-50k",
  latencyMs: duration,
  model: selectedModel,
});

Not this:

track("incident_analysis_completed", {
  rawLogs: logs,
  prompt: fullPrompt,
  response: modelResponse,
});

The second version is easier.

It is also reckless.

Local-first history made the UX better

I expected local-first history to be a compromise.

It ended up making the product feel better.

Users understood the mental model immediately:

This is your temporary incident workspace. It lives on your machine unless you export it.

That changed how people used it.

They were more willing to paste messy logs. They were more willing to think out loud. They were more willing to use it during real incidents instead of only sanitized demos.

Privacy was not just a compliance feature.

It improved the product.

Because the user did not feel like every half-baked debugging thought was being permanently filed away in my backend.

The annoying parts

Local-first is not free.

Some things got harder:

  • Cross-device sync
  • Shared incident rooms
  • Long-term search
  • Support debugging
  • Recovery after clearing browser storage
  • Collaboration during larger incidents

But those features should require explicit user intent.

If someone wants to create a shared incident room, fine. Store that room.

If someone wants to export a postmortem, fine. Save the postmortem.

If someone wants cloud sync, fine. Make it opt-in.

But do not use those edge cases as an excuse to store every private debugging session by default.

The default matters.

The principle I keep coming back to

AI makes it incredibly easy to build products that feel magical.

It also makes it incredibly easy to build products that collect horrifying amounts of sensitive context.

The dangerous part is that the data does not look scary at first.

It just looks like text.

But that text might be a production outage, a security issue, a customer escalation, a legal concern, a private business plan, or a personal question someone would never want sitting in your admin panel.

So my rule now is simple:

If the user would be uncomfortable seeing the prompt in your database, maybe it should not be in your database.

This sounds obvious.

But most AI apps violate it on day one.

The bigger lesson

The next wave of AI apps should not compete only on model quality.

They should compete on restraint.

Not just:

  • How smart is the model?
  • How fast is the response?
  • How good is the UX?

But also:

  • What do you refuse to store?
  • What do you refuse to log?
  • What do you make impossible for yourself to access?
  • What does the user control?
  • What disappears when the session ends?

For an incident copilot, this is not some abstract privacy ideal.

It is the difference between a useful engineering tool and a production data liability.

AI apps are going to sit directly on top of our most sensitive workflows.

Debugging. Legal. Finance. Health. Hiring. Strategy. Personal writing. Security.

If we build all of them with the default SaaS instinct of “store everything,” we are going to create a surveillance layer over work itself.

I do not want that.

I want AI tools that are useful precisely because they are designed not to remember everything.