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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
P
Privacy & Cybersecurity Law Blog
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Project Zero
Project Zero
S
Security @ Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
A
Arctic Wolf
Webroot Blog
Webroot Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Security Latest
Security Latest
H
Heimdal Security Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
T
Tor Project blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
The Last Watchdog
The Last Watchdog
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
A
About on SuperTechFans
M
MIT News - Artificial intelligence
V
V2EX
V
Visual Studio Blog
Recorded Future
Recorded Future
博客园 - 叶小钗
F
Fortinet All Blogs
L
Lohrmann on Cybersecurity
The GitHub Blog
The GitHub Blog
博客园 - Franky
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Secure Thoughts
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
I
InfoQ
SecWiki News
SecWiki News
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
J
Java Code Geeks
B
Blog RSS Feed
AWS News Blog
AWS News Blog
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
H
Help Net Security

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
Add cryptographic authorization to AI agents in 5 minutes
All For Scie · 2026-04-23 · via DEV Community
<p>You have AI agents calling each other. You're using API keys or mTLS. You're worried it's not enough.</p> <p>API keys authenticate. They don't authorize. They don't scope. They don't audit delegation chains.</p> <p>Here's how to add all four in under 5 minutes using <strong>Codios</strong> — an A2A security layer built on signed capability contracts.</p> <p><a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcodios.midlantics.com%2F_next%2Fimage%3Furl%3D%252Fimages%252Flogo.png%26w%3D256%26q%3D75" class="article-body-image-wrapper"><img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcodios.midlantics.com%2F_next%2Fimage%3Furl%3D%252Fimages%252Flogo.png%26w%3D256%26q%3D75" alt="codios" width="256" height="208"></a></p> <h2> What you'll build </h2> <ul> <li>Two agents with cryptographic identities (Ed25519 keypairs)</li> <li>A signed contract granting specific permissions</li> <li>A protected API endpoint that verifies contracts offline</li> <li>Full audit logs of every authorization decision</li> </ul> <p><strong>Time:</strong> ~5 minutes</p> <p><strong>What you need:</strong> Node.js and a Codios account (free at codios.midlantics.com)</p> <h2> Step 1: Install the SDK </h2> <div class="highlight js-code-highlight"> <pre class="highlight shell"><code>npm <span class="nb">install</span> @codios/sdk </code></pre> </div> <h2> Step 2: Generate keypairs using the CLI (easiest) </h2> <p>The Codios CLI can generate a keypair and save it to your .env file automatically:<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight shell"><code>bash codios keygen <span class="nt">--save</span> .env </code></pre> </div> <p>This appends CODIOS_PUBLIC_KEY and CODIOS_PRIVATE_KEY to your .env file.</p> <p><strong>To generate manually in TypeScript:</strong><br> </p> <div class="highlight js-code-highlight"> <pre class="highlight typescript"><code><span class="k">import</span> <span class="p">{</span> <span class="nx">generateAgentKeyPair</span> <span class="p">}</span> <span class="k">from</span> <span class="dl">"</span><span class="s2">@codios/sdk</span><span class="dl">"</span> <span class="kd">const</span> <span class="nx">agent</span> <span class="o">=</span> <span class="k">await</span> <span class="nf">generateAgentKeyPair</span><span class="p">()</span> <span class="nx">console</span><span class="p">.</span><span class="nf">log</span><span class="p">(</span><span class="dl">"</span><span class="s2">DID:</span><span class="dl">"</span><span class="p">,</span> <span class="nx">agent</span><span class="p">.</span><span class="nx">did</span><span class="p">)</span> <span class="nx">console</span><span class="p">.</span><span class="nf">log</span><span class="p">(</span><span class="dl">"</span><span class="s2">Public key:</span><span class="dl">"</span><span class="p">,</span> <span class="nx">agent</span><span class="p">.</span><span class="nx">publicKey</span><span class="p">)</span> <span class="nx">console</span><span class="p">.</span><span class="nf">log</span><span class="p">(</span><span class="dl">"</span><span class="s2">Private key:</span><span class="dl">"</span><span class="p">,</span> <span class="nx">agent</span><span class="p">.</span><span class="nx">privateKey</span><span class="p">)</span> <span class="c1">// Save this securely</span> </code></pre> </div> <h2> Step 3: Register your agent in the dashboard </h2> <p>Log into the <a href="https://codios.midlantics.com/dashboard" rel="noopener noreferrer">Codios dashboard</a></p> <ol> <li>Go to the Agents tab</li> <li>Click <strong>Register agent</strong> </li> <li>Enter a name (e.g., "billing-agent")</li> <li>Optional: Add capabilities (e.g., transfer, quote)</li> <li> <strong>Leave Public key blank</strong> — Codios generates a keypair for you</li> <li>Click Register <strong>Important:</strong> The private key is shown once. Copy and store it immediately. It cannot be recovered.</li> </ol> <p><strong>Alternative using CLI:</strong><br> </p> <div class="highlight js-code-highlight"> <pre class="highlight shell"><code>codios register <span class="nt">--name</span> billing-agent <span class="nt">--public-key</span> <span class="nv">$CODIOS_PUBLIC_KEY</span> </code></pre> </div> <h2> Step 4: Issue a contract using the 4-step wizard </h2> <ol> <li>Go to the Contracts tab in the dashboard</li> <li>Click Connect agents</li> <li>Issuer — Select the agent that will make requests (or choose Codios Platform to have Codios sign on your behalf)</li> <li>Targets — Select one or more agents that will receive requests (each gets its own independent contract)</li> <li>Permissions — Define allowed actions (e.g., <code>transfer</code> ). Set duration (1h / 1d / 7d / 30d) and optional max calls</li> <li>Review — Confirm the flow, then click Issue contract After issuance, each target's <strong>contract token</strong> is shown. Copy each token — you'll pass it as the <code>X-Codios-Contract</code> header.</li> </ol> <p><strong>Contract status:</strong> <code>active</code> → <code>expired</code> (TTL elapsed) or <code>revoked</code> (manually revoked)</p> <h2> Step 5: Protect your service with middleware </h2> <div class="highlight js-code-highlight"> <pre class="highlight typescript"><code><span class="k">import</span> <span class="nx">express</span> <span class="k">from</span> <span class="dl">"</span><span class="s2">express</span><span class="dl">"</span> <span class="k">import</span> <span class="p">{</span> <span class="nx">codiosGuard</span> <span class="p">}</span> <span class="k">from</span> <span class="dl">"</span><span class="s2">@codios/sdk</span><span class="dl">"</span> <span class="kd">const</span> <span class="nx">app</span> <span class="o">=</span> <span class="nf">express</span><span class="p">()</span> <span class="nx">app</span><span class="p">.</span><span class="nf">post</span><span class="p">(</span> <span class="dl">"</span><span class="s2">/transfer</span><span class="dl">"</span><span class="p">,</span> <span class="nf">codiosGuard</span><span class="p">({</span> <span class="na">action</span><span class="p">:</span> <span class="dl">"</span><span class="s2">transfer</span><span class="dl">"</span><span class="p">,</span> <span class="c1">// Must match contract's allowed action</span> <span class="na">publicKey</span><span class="p">:</span> <span class="nx">process</span><span class="p">.</span><span class="nx">env</span><span class="p">.</span><span class="nx">SERVICE_AGENT_PUBLIC_KEY</span><span class="p">,</span> <span class="na">gatewayUrl</span><span class="p">:</span> <span class="dl">"</span><span class="s2">https://codios-api.midlantics.com</span><span class="dl">"</span><span class="p">,</span> <span class="p">}),</span> <span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">res</span><span class="p">)</span> <span class="o">=&gt;</span> <span class="p">{</span> <span class="c1">// Only reaches here if the contract is valid</span> <span class="nx">res</span><span class="p">.</span><span class="nf">json</span><span class="p">({</span> <span class="na">ok</span><span class="p">:</span> <span class="kc">true</span> <span class="p">})</span> <span class="p">}</span> <span class="p">)</span> <span class="nx">app</span><span class="p">.</span><span class="nf">listen</span><span class="p">(</span><span class="mi">3000</span><span class="p">)</span> </code></pre> </div> <h2> Step 6: Call the protected service </h2> <div class="highlight js-code-highlight"> <pre class="highlight typescript"><code><span class="kd">const</span> <span class="nx">response</span> <span class="o">=</span> <span class="k">await</span> <span class="nf">fetch</span><span class="p">(</span><span class="dl">"</span><span class="s2">http://localhost:3000/transfer</span><span class="dl">"</span><span class="p">,</span> <span class="p">{</span> <span class="na">method</span><span class="p">:</span> <span class="dl">"</span><span class="s2">POST</span><span class="dl">"</span><span class="p">,</span> <span class="na">headers</span><span class="p">:</span> <span class="p">{</span> <span class="dl">"</span><span class="s2">Content-Type</span><span class="dl">"</span><span class="p">:</span> <span class="dl">"</span><span class="s2">application/json</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">X-Codios-Contract</span><span class="dl">"</span><span class="p">:</span> <span class="nx">contractToken</span><span class="p">,</span> <span class="c1">// The token from Step 4</span> <span class="p">},</span> <span class="na">body</span><span class="p">:</span> <span class="nx">JSON</span><span class="p">.</span><span class="nf">stringify</span><span class="p">({</span> <span class="na">amount</span><span class="p">:</span> <span class="mi">100</span> <span class="p">}),</span> <span class="p">})</span> </code></pre> </div> <h2> What happens on every request </h2> <div class="table-wrapper-paragraph"><table> <thead> <tr> <th>Step</th> <th>Time</th> </tr> </thead> <tbody> <tr> <td>Verify Ed25519 signature (offline)</td> <td>~0ms</td> </tr> <tr> <td>Check expiry, actions, max_calls</td> <td>~0ms</td> </tr> <tr> <td>Nonce check (Redis SET NX)</td> <td>~1ms</td> </tr> <tr> <td>Async audit log write</td> <td>Non-blocking</td> </tr> </tbody> </table></div> <p><strong>Total overhead:</strong> 1-2ms</p> <p>If a contract is expired, out of calls, or already used → HTTP 403 or 409.</p> <h2> Dashboard features you'll use </h2> <div class="table-wrapper-paragraph"><table> <thead> <tr> <th>Tab</th> <th>What it does</th> </tr> </thead> <tbody> <tr> <td>Overview</td> <td>Stats: registered agents, active contracts, audit entries (24h), denied requests</td> </tr> <tr> <td>Agents</td> <td>Register agents, view DID/public key, see heartbeat status (green/yellow/red)</td> </tr> <tr> <td>Contracts</td> <td>Issue contracts via wizard, revoke, check status</td> </tr> <tr> <td>Audit Log</td> <td>Filter by outcome, action, agent. Retention: Free=7d, Starter=30d, Pro=90d</td> </tr> <tr> <td>Threat Detection (Pro)</td> <td>Scans for off-hours access, action bursts, unknown agents, repeated denials</td> </tr> <tr> <td>Alert Rules (Starter+)</td> <td>Email on denial spikes, rate limit exceeded, agent inactive</td> </tr> <tr> <td>API Keys</td> <td>Create codios_sk_... keys for backend services</td> </tr> </tbody> </table></div> <h2> Next steps </h2> <ul> <li> <strong>Add heartbeat</strong> – Have your agent call <code>POST /agents/{id}/heartbeat</code> every minute to keep status green</li> <li> <strong>Set up alert rules</strong> – Get email notifications when something goes wrong</li> <li> <strong>Review the audit log</strong> – See every allow/deny decision</li> <li> <strong>Try the Python SDK</strong> – FastAPI middleware also available</li> </ul> <p><strong>Get your API key:</strong> <a href="https://codios.midlantics.com" rel="noopener noreferrer">codios.midlantics.com</a></p> <p><strong>Full documentation:</strong> <a href="https://codios.midlantics.com/docs" rel="noopener noreferrer">codios.midlantics.com/docs</a></p> <h2> Why this matters </h2> <p>API keys were designed for humans. AI agents are different — autonomous, fast, and chained.</p> <p>Codios gives you the security model agents actually need, without adding latency to your hot path.</p> <p><a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcodios.midlantics.com%2F_next%2Fimage%3Furl%3D%252Fimages%252Flogo.png%26w%3D256%26q%3D75" class="article-body-image-wrapper"><img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcodios.midlantics.com%2F_next%2Fimage%3Furl%3D%252Fimages%252Flogo.png%26w%3D256%26q%3D75" alt="codios" width="256" height="208"></a></p>