So far our agents act under their own identity. Many real agents act for someone: summarise my inbox, triage tickets assigned to me, draft a reply to this customer. Part 1 called out the shortcut most teams take, forwarding the user’s own Token, and why it makes every agent bug a user compromise. This part replaces it with delegation through OAuth 2.0 Token Exchange, RFC 8693. RFC 8693 distinguishes two semantics.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by using Npgsql
Identity for AI Agents, Part 4: Secretless Bootstrap with Workload Identity Federation
The Token service from Part 3 asks every Agent to authenticate before it gets a token. The obvious way is a client secret per agent. That would bring back exactly what this series is trying to remove: a long-lived credential sitting in an environment variable, readable by any code in the process, including code steered by a prompt injection. The alternative is to let the platform vouch for the process.
Identity for AI Agents, Part 3: A Token Service for Short-Lived Agent Tokens in C#
Share the post Identity for AI Agents, Part 3: A Token Service for Short-Lived Agent Tokens in C# Facebook Pinterest ×
Identity for AI Agents, Part 2: Modelling Agent Identities with a Registry in Postgres and ASP.NET
Part 1 argued that an Agent is its own kind of principal, separate from both the human it may act for and the workload that hosts it. That only means something if there is a system of record that says which agents exist, who owns them, what they are for, and where they are allowed to run. Without it, “agent identity†is just a string someone typed into a config file. The first design decision is what counts as “one agentâ€. There are three useful levels, and they deserve different treatment.
Durable Execution for AI Agent Backends, Part 5: Idempotent Tool Calls and the Outbox Pattern in C#
Part 4 left one gap open. A step calls a tool, the tool does its work, and then the worker dies before writing completed. On the next claim, the step is still started, so it runs again. For a search call that is fine. For “issue a refund†or “email the customer†it is a real incident. No amount of care on the worker side can close this gap, because the failure can happen after the remote side commits and before the response reaches us. The fix has to live where the side effect happens.
Migrate SQL Server multi-result-set procedures to PostgreSQL
A SQL Server stored procedure can return multiple result sets from a single call, a pattern commonly used to populate a business intelligence (BI) dashboard. For example, the result sets might contain sales by region, top customers, and daily sales trends. Each SELECT statement that returns rows to the caller produces a separate result set. PostgreSQL stored procedures do not stream multiple independent result sets directly from a single call in the same way.
Advisory Locks vs SKIP LOCKED: Choosing Your Concurrency Model
The schema from part two stops duplicate data from being written, but it does not stop two workers from reading the same pending workflow at the same time and both deciding to process it. Without a concurrency strategy, you get double-processing: a customer charged twice, an email sent twice, an approval applied twice. Postgres gives you two solid ways to prevent this, and picking the right one matters.
Event-Driven Architecture in Practice, Part 8: CQRS with Event Sourcing
Event sourcing gives you a write Model that is perfectly suited for recording what happened. But reading from an event store is painful for anything beyond a single aggregate. If you want to answer “show me all orders for this customer sorted by date with their current statusâ€, replaying events for every order to reconstruct state is not the answer. CQRS (Command Query Responsibility Segregation) solves this by separating the write model (event store) from the read model (projections).
Supercharge Your IDE: Custom .NET MCP Servers for Amazon Q Developer
.NET on AWS Blog The rise of Generative AI (GenAI) and the new ecosystem around it have fundamentally changed how developers write, debug, and ship software. What once required hours of context-switching between documentation, Stack Overflow, and IDE windows, can now be accomplished in minutes with AI-assisted development.
Building an Intelligent SQL Query Assistant with Neon, .NET, Azure Functions, and Azure OpenAI service
Neon SQL editor provides AI-driven features, such as SQL generation to easily convert natural language requests to SQL. However, there may be situations where you need to build your own AI query assistant for custom needs. For example, you might need tighter integration with your application via query API, add advanced domain-specific logic, hide business-critical data, or support for complex multi-step queries that built-in tools typically don’t handle.
Building a SQL Query Assistant with Neon, .NET, Azure Functions, OpenAI service
Neon SQL editor provides AI-driven features, such as SQL generation to easily convert natural language requests to SQL. However, there may be situations where you need to build your own AI query assistant for custom needs. For example, you might need tighter integration with your application via query API, add advanced domain-specific logic, hide business-critical data, or support for complex multi-step queries that built-in tools typically don’t handle.
Azure Database for PostgreSQL - Latency comparison between PGBouncer and Npgsql
Introduction: Azure Database for PostgreSQL Flexible Server comes with PGBouncer - a built-in connection manager which you can leverage for connections. Npgsql is an open-source ADO .NET Data provider for PostgreSQL, it allows programs written in C# to access Azure Database for PostgreSQL Flexible Server and offers similar functionality as PGBouncer. It is a free and open source resource.
在 PostgreSQL 中,解决图片二进制数据,由于bytea_output参数问题导致显示不正常的问题。
在 PostgreSQL 中,解决图片二进制数据,由于bytea_output参数问题导致显示不正常的问题。 在 PostgreSQL 中,bytea_output 参数控制在查询结果中 bytea 类型的显示格式。默认情况下,bytea_output 的值为 hex,这意味着在查询结果中,bytea 类型的数据以十六进制格式显示。但是,如果你的应用程序期望以二进制格式获取图像数据,则将 bytea_output 设置为 escape 可能更适合。无论 bytea_output 参数设置为 hex 还是 escape,你都可以通过 C# 访问 PostgreSQL 数据库,并且正常获取并显示图片。本篇随笔介绍这个问题的处理过程。 在 PostgreSQL 中,bytea_output 参数控制在查询结果中 bytea 类型的显示格式。默认情况下,bytea_output 的值为 hex,这意味着在查询结果中,bytea 类型的数据以十六进制格式显示。但是,如果你的应用程序期望以二进制格式获取图像数据,则将 bytea_output 设置为 escape 可能更适合。无论...
C#使用Npgsql或SqlClient连接数据库-阿里云开发者社区
目录 SqlConnection SqlCommand 安装Npgsql insert select 总结 安装SqlClient 在vs或rider的nuget包管理器直接下载。nuget包System.Data.SqlClient,SqlClient 是 Microsoft 提供的一种用于连接 SQL Server 和其他关系型数据库的类库。 SqlConnection 在上面的代码中,你需要将 "myServerAddress" 替换为 SQL Server 数据库服务器的 IP 地址或主机名,将 "myDatabase" 替换为要连接的数据库名称,将 "myUsername" 和 "myPassword" 替换为数据库用户的用户名和密码。 SqlCommand 除了 SqlConnection 对象,你还可以使用 SqlCommand 对象连接到 SQL Server 数据库,并执行 SQL 查询操作。以下是使用 SqlCommand 对象连接 SQL Server 数据库的示例代码: 在上面的代码中,你需要将 "myServerAddress" 替换为 SQL...
Getting started with Testcontainers for .NET
Testcontainers is a testing library that provides easy and lightweight APIs for bootstrapping integration tests with real services wrapped in Docker containers. Using Testcontainers, you can write tests that talk to the same type of services you use in production, without mocks or in-memory services. If you are new to Testcontainers, please read What is Testcontainers, and why should you use it? to learn more about it.
CockroachDB TIL: Volume 10
This is my series of articles covering short "today I learned" topics as I work with CockroachDB.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with using
Contact using, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack