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

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Check Point Blog
Hacker News: Ask HN
Hacker News: Ask HN
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
WordPress大学
WordPress大学
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
N
Netflix TechBlog - Medium
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 聂微东
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 叶小钗
Cisco Talos Blog
Cisco Talos Blog
S
Schneier on Security
T
Threat Research - Cisco Blogs
腾讯CDC
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
The Hacker News
The Hacker News
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
GbyAI
GbyAI
N
News | PayPal Newsroom
L
LINUX DO - 最新话题
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Palo Alto Networks Blog
T
Tenable Blog
S
Secure Thoughts
T
Threatpost
V2EX - 技术
V2EX - 技术
大猫的无限游戏
大猫的无限游戏
Martin Fowler
Martin Fowler
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Vercel News
Vercel News
罗磊的独立博客
P
Privacy & Cybersecurity Law Blog
Engineering at Meta
Engineering at Meta
小众软件
小众软件
Google DeepMind News
Google DeepMind News
N
News and Events Feed by Topic
Y
Y Combinator Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
P
Privacy International News Feed
H
Heimdal Security Blog
量子位
B
Blog

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
How to Design an AI Agent That Survives Infrastructure Changes
Artemii Amel · 2026-05-13 · via DEV Community

Most AI agents are more fragile than they look. They work perfectly in staging, pass every test, and then the moment you migrate to a new cloud region, rotate a VM, or shift between Kubernetes nodes, they break silently. Not with a loud error — peers stop recognising them, trust relationships disappear, and connections that took time to establish have to be rebuilt from scratch.

The root cause is almost always the same: the agent's identity is tied to something that changes when infrastructure changes.

Why tying agent identity to IP addresses and hostnames fails

The most common approach is to identify an agent by its network address — the IP, the hostname, the service endpoint. This feels natural because it is how web services work. A server lives at an address, clients reach it there, and if the address changes you update DNS.

Agents are not servers. They are long-running autonomous processes that form relationships with other agents over time. Those relationships are built on trust, not just reachability. When an agent restarts on a new IP, every peer it has worked with sees a stranger at a new address. The relationship is gone.

The second approach, API keys, breaks in a different way. A key proves possession of a secret, not the identity of the entity holding it. Two agents with the same key are indistinguishable. One compromised key affects every relationship using it. And key rotation during infrastructure migrations means propagating new credentials to every dependent system — in a dynamic agent network, that does not scale.

What cryptographic keypair identity gives you that nothing else does

An agent has persistent identity when its identifier survives every change that does not change what the agent fundamentally is. A new IP address does not change what the agent is. A new host does not. A cloud migration does not. A container restart does not.

Ed25519 keypairs make this practical. The keypair is generated once and stored on disk. The public key becomes the agent's canonical address — derived from the key, not from the network, so it survives every infrastructure change automatically. When an agent restarts on a new host, it loads its keypair and presents the same public key it always has. Peers recognise it immediately. No re-registration, no manual update, no downtime for relationship re-establishment.

Ed25519 is standardised in RFC 8032 and is already the default signature algorithm in modern SSH, TLS 1.3, and WireGuard. Key generation takes under a millisecond. Public keys are 32 bytes. There is no practical reason to use anything heavier for agent identity.

Three things that break during infrastructure changes

Trust relationships. When identity is address-based, a new address means a new identity. Every peer that established trust with the old address must re-establish it with the new one. In a large agent network this is not a one-time migration cost — it is a recurring operational burden every time infrastructure moves.

In-flight work. Agents doing long-running tasks hold state that references their current connections and context. A restart that changes the agent's identity does not just interrupt the current task. It can leave tasks permanently incomplete if the agent cannot re-establish the relationships needed to finish them.

Credential scope. If identity is tied to an API key scoped to a specific endpoint, migrating to a new endpoint requires issuing new credentials and propagating them to every dependent system. In a multi-cloud agent deployment, this compounds across every boundary crossing.

How to implement keypair-based agent identity: a step-by-step approach

Step 1: Generate a keypair at agent initialisation and treat the public key as the canonical identifier. Store the private key somewhere that survives restarts — a secrets manager, an encrypted volume, or a hardware-backed keystore depending on your threat model. Never derive the keypair from the host or the environment.

Step 2: Build peer recognition around keys, not addresses. When agent A establishes a relationship with agent B, it records agent B's public key as the identifier. When agent B later appears at a different address, agent A recognises it by key and resumes the relationship without any manual intervention. This is the same model SSH uses for known hosts — the fingerprint persists, the address can change.

Step 3: Treat the keypair like a persistent identity document in your deployment pipeline. A container replacement that generates a new keypair on startup defeats the whole approach. The keypair must be backed up, protected, and carried through every migration the same way a server certificate is carried through a host upgrade. Tools like HashiCorp Vault or cloud-native KMS solutions handle this well at scale.

Step 4: Separate agent discovery from agent identity. Peers should resolve the current address of an agent from its public key, not the other way around. STUN-based NAT traversal combined with a lightweight coordination layer handles address resolution without making the address part of the identity contract.

What operational problems disappear when you get this right

Once agent identity is keypair-based, a large category of operational problems disappears. You stop coordinating credential rotation across fleets during infrastructure migrations. You stop rebuilding trust graphs after cloud region changes. You stop writing custom re-registration logic for agents that restart after failures.

The agent finds its peers by their keys. The peers find the agent by its key. The network layer resolves the current address. This is exactly the separation that makes TCP/IP work at internet scale: the address is a routing detail, the identity is something more stable underneath.

For agent fleets communicating across cloud providers — AWS, GCP, Azure, or on-premise — this separation is not just a nice architectural property. It is the only model that keeps operational complexity from growing linearly with the number of agents and infrastructure changes your system goes through over time.

Pilot Protocol is built on this model. Every agent on the network has a keypair-derived virtual address that persists across restarts, migrations, and cloud changes. The transport layer handles routing. The agent handles logic. Infrastructure changes become invisible to the trust graph.

Frequently asked questions

What happens to an agent's trust relationships when it restarts on new infrastructure?

With keypair-based identity, nothing happens to trust relationships when an agent restarts. Peers recognise the agent by its public key, which does not change when the underlying host or IP changes. Only the network path changes, and that is resolved automatically by the transport layer.

Can I migrate from API key identity to keypair identity without rebuilding my agent network?

Yes, but incrementally. The safest approach is to run both identity systems in parallel during the migration window — keypair for new relationships, API keys for existing ones — then deprecate keys as relationships are re-established on the new model.

What algorithm should I use for agent keypairs?

Ed25519 is the correct choice for almost every agent deployment. It is standardised in RFC 8032, has a strong security track record, generates in under a millisecond, and produces 32-byte public keys that are practical as stable identifiers. For long-lived agents in regulated environments, evaluate ML-DSA (Dilithium) as a post-quantum alternative.

How do I store agent private keys securely across infrastructure changes?

Use a secrets manager that is decoupled from the host lifecycle — AWS Secrets Manager, GCP Secret Manager, Azure Key Vault, or HashiCorp Vault. The private key should be retrievable by the agent on startup regardless of which host it lands on, and should never be embedded in container images or environment variables.

Does keypair identity work for agents behind NAT or corporate firewalls?

Yes. The key is the identity, not the address. NAT traversal is a separate concern handled at the transport layer through techniques like STUN hole-punching. The agent's identity remains stable regardless of how many NAT layers sit between it and its peers.