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

推荐订阅源

C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
Scott Helme
Scott Helme
The Last Watchdog
The Last Watchdog
G
GRAHAM CLULEY
T
Tenable Blog
PCI Perspectives
PCI Perspectives
Simon Willison's Weblog
Simon Willison's Weblog
N
News and Events Feed by Topic
Know Your Adversary
Know Your Adversary
S
Schneier on Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Privacy International News Feed
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
SecWiki News
SecWiki News
S
Securelist
D
Docker
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
T
Troy Hunt's Blog
The Register - Security
The Register - Security
K
Kaspersky official blog
Blog — PlanetScale
Blog — PlanetScale
云风的 BLOG
云风的 BLOG
Hacker News: Ask HN
Hacker News: Ask HN
S
Secure Thoughts
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
博客园 - 司徒正美
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
F
Fortinet All Blogs
T
Threatpost
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
WordPress大学
WordPress大学
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - 聂微东
Attack and Defense Labs
Attack and Defense Labs
B
Blog RSS Feed
Project Zero
Project Zero
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
博客园 - 【当耐特】
V
V2EX
Help Net Security
Help Net Security
P
Proofpoint News Feed
A
Arctic Wolf

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
Admin Panels Are Not Configuration Systems
MATT ROSE · 2026-06-14 · via DEV Community

I learned this the annoying way: admin panels are not configuration systems.

They can become one, but not by accident.

Early on, it feels harmless. Someone needs to change a headline. Someone wants to hide a section for one customer. Sales needs a different value on one account. Support needs to fix something without waiting on engineering.

So a field gets added.

Then another one.

Then another one.

At some point the admin panel becomes the place where “configuration” happens, except nothing about it is really controlled. It is just a form writing into something the product reads.

That is fine until people start forgetting what the original default was. Then nobody knows whether a value is global or customer-specific, whether a saved draft is live, whether a generated record used the old value or the new one, or whether rolling something back is going to affect one account or everyone.

That is when the admin panel stops being useful and starts becoming dangerous.

A default workflow carries more weight than people usually admit. Support has learned it. Documentation points to it. Billing logic was built around it. Other parts of the product assume it will still be there tomorrow.

So I do not treat defaults like casual settings anymore.

The source should stay locked. If a customer needs something different, create an override. Duplicate the thing. Version it. Preview it. Activate it when it is ready. But do not let a customer-level edit mutate the source template.

A rough version looks like this:

const sourceTemplate = {
  id: "default_workflow",
  locked: true,
  sourceOfTruth: true,
  sections: [
    { key: "intro", title: "Welcome", visible: true },
    { key: "setup", title: "Setup", visible: true },
    { key: "review", title: "Review", visible: true }
  ]
};

const customerConfig = {
  customerId: "customer_123",
  sourceTemplateId: "default_workflow",
  status: "draft",
  overrides: {
    sections: {
      setup: {
        title: "Account Setup",
        visible: true
      },
      review: {
        visible: false
      }
    }
  }
};

The original stays intact. The customer gets a different version. The admin panel edits the duplicate or the override, not the source.

The status is where a lot of products get sloppy.

I do not want production reading “whatever was saved last.” Saved and live are not the same thing. A draft can be saved. A preview can be rendered. An archived version can still exist for history. None of those should control production.

I usually want something closer to this:

const CONFIG_STATUS = {
  DRAFT: "draft",
  PREVIEW: "preview",
  ACTIVE: "active",
  ARCHIVED: "archived"
};

Production reads active. Not latest. Not preview. Not the thing someone saved five minutes ago while they were still testing copy.

That sounds strict until you have seen the alternative.

The alternative is a support person saving a draft and accidentally changing what customers see. Or a sales override becoming the new default because it was easier to edit the existing object than create a customer-specific layer. Or a generated document pulling today’s value even though it was supposed to reflect what was approved last week.

Those bugs are not always dramatic. Most of the time they are just messy. And messy bugs waste a lot of time because there is no single failing line of code. The product is doing exactly what it was told to do. The problem is that nobody can explain what it was supposed to do.

That is why I prefer resolving configuration in one place.

Do not make every component figure out which version it should use. Do not scatter account checks, copy overrides, feature flags, pricing rules, and visibility logic all over the app. That turns the product into a junk drawer.

Give the app the effective config and let it render.

function resolveEffectiveConfig(customer) {
  const source = getLockedSourceTemplate();
  const activeConfig = getActiveCustomerConfig(customer.id);

  if (!activeConfig) {
    return source;
  }

  return mergeSourceWithOverrides(source, activeConfig);
}

The resolver should be boring. It checks for an active customer config. It ignores drafts and previews in live paths. It falls back to the locked source when nothing active exists. It merges only the allowed overrides.

Everything else should be able to trust the result.

The tests should be boring too.

I want tests that prove drafts do not leak. I want tests that prove previews do not leak. I want tests that prove archived configs do not suddenly become live because they happened to be the last record created.

expect(resolveLiveConfig(customerWithDraftOnly)).toEqual(sourceDefault);
expect(resolveLiveConfig(customerWithPreviewOnly)).toEqual(sourceDefault);
expect(resolveLiveConfig(customerWithArchivedOnly)).toEqual(sourceDefault);
expect(resolveLiveConfig(customerWithActiveConfig)).toEqual(expectedOverride);

That is the kind of test that looks unimpressive until it saves you from a bad release.

Generated records need the same discipline.

If something gets generated from configuration, and that thing needs to remain historically accurate, snapshot the values. Do not keep pointing back to the live config and assume it will still mean the same thing later.

Invoices, agreements, receipts, audit logs, approvals, customer confirmations — anything like that should preserve the values used when it was created.

const generatedSnapshot = {
  customerId: "customer_123",
  generatedAt: "2026-06-14T00:00:00Z",
  configVersion: "v3",
  values: {
    setupFee: 12000,
    monthlyMinimum: 2500,
    transactionSharePercent: 20
  }
};

The current config can change tomorrow. The record from yesterday should not.

Otherwise history starts moving. A document that was generated with one set of values appears to have another. An invoice no longer matches what was approved. A customer asks why the number changed, and the answer is basically, “because the object was still live.”

That is not a good answer.

I have also become much stricter about what gets sent to the browser. The frontend usually does not need the full internal configuration object. It needs the small part required to render the page.

The full object may contain pricing, internal notes, admin flags, version history, legal variables, draft states, implementation details, or things that are not technically private but still should not be sitting in the browser.

So project it.

function projectPublicConfig(effectiveConfig) {
  return {
    sections: effectiveConfig.sections
      .filter(section => section.visible)
      .map(section => ({
        key: section.key,
        title: section.title,
        body: section.body,
        cta: section.cta
      }))
  };
}

The browser gets rendering data. That is all it needed anyway.

The version I trust looks like this:

const effectiveConfig = resolveEffectiveConfig(customer);
const publicConfig = projectPublicConfig(effectiveConfig);

return publicConfig;

For generated records:

const effectiveConfig = resolveEffectiveConfig(customer);
const snapshot = createImmutableSnapshot(effectiveConfig);

saveGeneratedRecord({
  customerId: customer.id,
  snapshot,
  generatedAt: new Date().toISOString()
});

For production UI:

const config = resolveLiveConfig(customer);

renderWorkflow(config);

For preview:

const previewConfig = resolvePreviewConfig(customer, draftConfigId);

renderPreview(previewConfig);

I do not like live and preview sharing the same loose path. That is how preview work becomes production behavior by accident.

None of this is about making configuration fancy. I am not interested in elaborate admin systems for their own sake. The point is control.

Customers will need different things. Internal teams will need to move quickly. The product will need account-level behavior eventually. That is normal.

The problem starts when every one of those needs is solved by making the default more editable.

If an admin panel can change the source, change what is live, change what gets generated, and expose internal state through the same path, it will eventually create a problem that is harder to unwind than it would have been to model correctly in the first place.

The questions I want the system to answer are simple:

What is the locked default?

What is the active customer override?

What is only a draft?

What values were used when this record was generated?

What is safe to send to the client?

If those answers are not clear, the product does not really have a configuration layer. It has a form connected to production.

That might be acceptable for a while. Early products make tradeoffs. I understand that.

But once the system touches real customers, real billing, generated records, or account-specific behavior, the boundary has to get stricter.

Lock the source. Duplicate before editing. Preview before activation. Resolve active config only. Snapshot generated outputs. Send the client only what it needs.

That is the version I trust.