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

推荐订阅源

WordPress大学
WordPress大学
J
Java Code Geeks
Martin Fowler
Martin Fowler
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
博客园 - 【当耐特】
Y
Y Combinator Blog
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
博客园 - 司徒正美

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
Should my code agent use my credentials?
baltz · 2026-04-25 · via DEV Community

At first, it feels harmless.

If the agent is just reading files, editing local code, running tests, or helping me understand something inside my editor, using my own environment makes sense.

In that situation, the agent is still under my supervision. It is helping me work. I still review what it does. I still decide what leaves my machine.

The problem starts when the agent stops only helping and starts acting.

Pushing code is not the same as suggesting code.

Opening pull requests is not the same as editing a file locally.

Reading logs, triggering workflows, accessing private repositories, touching secrets, or deploying something is a completely different level of responsibility.

And this is where credentials become a real design decision.

If the agent uses my credentials, every action looks like mine

That is the part that bothers me the most.

If the agent uses my account, the audit log will probably say that I did the action.

And technically, yes, I gave it access.

But operationally, it is not the same thing as me manually doing every step with full context.

There is a difference between a human making a decision and an agent executing a chain of actions because it interpreted a task in a certain way.

That difference matters.

Not because agents are bad.

Because they are powerful.

A code agent with broad access can move very fast in the wrong direction.

The agent should not be a ghost user

I do not think a code agent should silently borrow human authority forever.

If it is doing autonomous or repeatable work, it probably needs its own identity.

But creating a dedicated credential does not automatically make the setup safer.

If I create a user called ai-agent and give it admin access to everything, I did not solve anything.

I just created a robot with too much power.

The value of a dedicated credential is not the fact that it belongs to an agent.

The value is that it can be smaller, more limited, easier to audit, and easier to revoke.

That is the real point.

Dedicated credentials make more sense when the agent has responsibility

If the agent is doing automated reviews, dependency updates, issue triage, pull request comments, repository maintenance, scheduled tasks, or CI/CD automation, then a dedicated identity starts to make a lot more sense.

Not because it is fancy.

Because it makes things clearer.

You can see what the agent did.

You can limit what it can do.

You can rotate the token.

You can revoke access without touching a human account.

And most importantly, you can separate human actions from agent actions.

That separation is important if we want agents to become a serious part of the engineering workflow.

The simple rule

For now, this is how I think about it:

If the agent is helping me work, using my credentials can be ok.

If the agent is working on my behalf, it needs its own limited identity.

And if the action is risky, like deploying, changing infrastructure, touching production data, or accessing secrets, the agent should not be free to do it alone.

It needs approval, limited access, and a clear audit trail.

The goal is not to make AI-assisted development harder.

The goal is to make it safe enough to scale.

Code agents are becoming part of how we build software.

And if they are going to act like real workers, they also need real boundaries.

OWASP GenAI Security Project: Excessive Agency

OWASP Secrets Management Cheat Sheet

GitHub Docs: GitHub credential types

GitHub Docs: Authenticating as a GitHub App installation

GitHub Docs: OpenID Connect

NIST AI Risk Management Framework Core