azure-postgres
配置 Azure PostgreSQL 无密码访问
团队需要安全的 PostgreSQL 访问,而无需共享密码。此技能指导 Azure PostgreSQL 的 Entra ID 设置、托管标识、组权限和迁移。
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "azure-postgres" from https://skillstore.io/skills/microsoft-azure-postgres.md and its manifest at https://skillstore.io/api/skills/microsoft-azure-postgres/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“azure-postgres”。 帮我添加一个具有只读访问权限的开发人员。
预期结果:
- 确认服务器、数据库和 Entra 管理员先决条件。
- 识别开发人员主体并创建映射的 PostgreSQL 角色。
- 应用连接、架构使用和表读取权限。
- 提供用于基于令牌的连接测试的验证清单。
正在使用“azure-postgres”。 为我的 Web 应用设置托管标识访问。
预期结果:
- 查找托管标识对象和客户端标识符。
- 为服务标识创建或复用 PostgreSQL 角色。
- 仅授予请求的数据库权限级别。
- 总结应用程序所需的连接设置。
正在使用“azure-postgres”。 排查密码身份验证失败错误。
预期结果:
- 检查令牌新鲜度、用户名格式和映射角色是否存在。
- 区分数据库权限问题与网络或防火墙故障。
- 建议对 Entra 管理员和组同步状态进行后续检查。
安全审计
高风险Most static findings are false positives caused by Markdown links, portal URL examples, code fences, and legitimate Azure CLI guidance. The skill includes shell scripts that run administrative Azure and PostgreSQL actions; the main confirmed issue is unsafe SQL construction from caller-provided names. No prompt-injection text or hidden exfiltration intent was found.
已确认安全问题 (1)
风险因素
📁 文件系统访问 (12)
⚙️ 外部命令 (69)
🔑 环境变量 (3)
🌐 网络访问 (2)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/microsoft-azure-postgres/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/microsoft-azure-postgres?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/microsoft-azure-postgres?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/microsoft-azure-postgres/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/microsoft-azure-postgres.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
microsoft. (2026). azure-postgres security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/microsoft-azure-postgres/audits/4BibTeX 引用
@techreport{microsoft-microsoft-azure-postgres-2026,
author = {microsoft},
title = {azure-postgres security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/microsoft-azure-postgres/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "azure-postgres security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "microsoft"
date-released: "2026-07-05"
url: "https://skillstore.io/skills/microsoft-azure-postgres/audits/4"
identifiers:
- type: other
value: "skillstore:microsoft-azure-postgres:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
添加开发人员数据库访问权限
通过 Entra ID 用户帐户授予开发人员只读、读写或管理员访问权限。
无需密钥连接应用程序
将托管标识映射到 PostgreSQL 角色,使 Azure 应用无需存储密码即可连接。
将团队迁移到基于组的访问
使用 Entra 组管理 PostgreSQL 权限,并选择合适的组同步模式。
试试这些提示
帮我检查我的 Azure PostgreSQL Flexible Server 是否已准备好使用 Microsoft Entra ID 身份验证。
指导我将服务器 {server_name} 上数据库 {database_name} 的 {permission_level} 访问权限授予 {user_upn}。为应用标识 {identity_name} 规划对 Azure PostgreSQL 数据库 {database_name} 的最小权限托管标识访问。为 Azure PostgreSQL 服务器 {server_name} 创建从密码身份验证迁移到仅 Entra 身份验证的分阶段迁移计划。最佳实践
- 在更改生产身份验证模式之前,先在非生产数据库中测试更改。
- 为每个用户、组或托管标识授予所需的最小权限级别。
- 在使用管理员权限运行脚本之前,审查生成的 SQL 和 Azure 命令。
避免
- 不要将不受信任的名称或数据库标识符直接传入随附脚本。
- 不要在没有记录需求的情况下向应用程序标识授予 azure_pg_admin。
- 在每个已迁移角色都通过 Entra ID 测试之前,不要禁用密码身份验证。
常见问题
此技能会配置什么?
它会创建 PostgreSQL 服务器吗?
它能支持托管标识吗?
它能管理团队访问吗?
脚本必须安装哪些工具?
自动运行脚本安全吗?
开发者详情
作者
microsoft许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
6425ec35f4ac137735cff58cd7877843bba23e3b
维护新鲜度
2026/7/18
使用量
11 次下载 · 175 次浏览
文件结构