cloud-functions
安全构建 CloudBase 云函数
CloudBase 云函数使用不同的运行时模型、打包规则和权限步骤。此技能会指导代理完成 Event、HTTP 和 Custom Image 工作流。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "cloud-functions" from https://skillstore.io/skills/tencentcloudbase-cloud-functions.md and its manifest at https://skillstore.io/api/skills/tencentcloudbase-cloud-functions/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“cloud-functions”。 我需要一个用于 Web 应用表单提交的端点。
预期结果:
- 推荐路径:HTTP Function,因为该工作负载面向浏览器。
- 响应应包含方法检查、CORS 头、请求体解析和明确的状态码。
- 部署应先创建函数,然后仅在需要公开访问时配置权限。
正在使用“cloud-functions”。 我的函数日志显示部署后出现授权失败。
预期结果:
- 在修改代码之前,先检查函数权限配置。
- 如果端点必须公开访问,请有意地更新函数安全规则。
- 然后验证网关路径并重试外部请求。
正在使用“cloud-functions”。 我需要在函数运行时中使用系统库。
预期结果:
- 如果它仍然是请求驱动并监听端口 9000,请使用 Custom Image HTTP Function。
- 当服务必须长期运行或需要更广泛的容器行为时,请改用 CloudRun。
- 保持镜像标签唯一,并确保注册表、构建和函数区域一致。
安全审计
安全The static findings are false positives from Markdown documentation, CloudBase endpoint examples, and runtime skeletons. I found no prompt injection, secret exfiltration, unauthorized command execution, or malicious intent in the reviewed files.
风险因素
⚡ 包含脚本 (8)
🌐 网络访问 (18)
🔑 环境变量 (8)
📁 文件系统访问 (6)
⚙️ 外部命令 (50)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/tencentcloudbase-cloud-functions/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/tencentcloudbase-cloud-functions?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/tencentcloudbase-cloud-functions?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/tencentcloudbase-cloud-functions/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/tencentcloudbase-cloud-functions.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 引用
tencentcloudbase. (2026). cloud-functions security audit report (audit version 2) [Author version 2.23.8]. Skillstore. https://skillstore.io/skills/tencentcloudbase-cloud-functions/audits/2BibTeX 引用
@techreport{tencentcloudbase-tencentcloudbase-cloud-functions-2026,
author = {tencentcloudbase},
title = {cloud-functions security audit report (audit version 2)},
institution = {Skillstore},
year = {2026},
number = {2},
url = {https://skillstore.io/skills/tencentcloudbase-cloud-functions/audits/2},
note = {Author version 2.23.8}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "cloud-functions security audit report (audit version 2)"
version: "2.23.8"
type: report
authors:
- name: "tencentcloudbase"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/tencentcloudbase-cloud-functions/audits/2"
identifiers:
- type: other
value: "skillstore:tencentcloudbase-cloud-functions:audit:2"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
创建 Serverless 后端
选择正确的 CloudBase 函数类型,并生成可部署的运行时结构。
发布浏览器 API
构建包含路由、CORS、权限检查和网关暴露步骤的 HTTP Function。
调试函数运维问题
检查日志,安全更新环境变量,并转换旧版 CloudBase 工具名称。
试试这些提示
判断我的 CloudBase 任务应该使用 Event Function、HTTP Function、Custom Image HTTP Function 还是 CloudRun。说明原因。
为一个小型 JSON API 创建 CloudBase HTTP Function。包含路由、CORS 处理、scf_bootstrap 指导和部署步骤。
在不丢失现有值的情况下更新我的 CloudBase 函数环境变量。展示安全的读取、合并和更新工作流。
规划一次 Custom Image HTTP Function 部署,从源码打包到 CloudApp 构建、TCR 镜像标记、SCF 部署和验证。
最佳实践
- 在编写代码或部署配置之前,先选择 CloudBase 运行时模型。
- 优先使用 MCP 函数和网关工具,再考虑原始 Cloud API 回退方案。
- 在合并环境变量变更之前,先读取当前配置。
避免
- 不要将 Event Function 处理程序与 HTTP Function 服务器代码混用。
- 不要在确认预期权限模型之前公开暴露函数。
- 不要凭记忆猜测原始 Cloud API 操作或载荷。
常见问题
什么时候应该使用 Event Function?
什么时候应该使用 HTTP Function?
这个技能会自行部署代码吗?
它涵盖容器镜像函数吗?
它如何处理公开访问?
它能帮助处理日志和配置吗?
开发者详情
许可证
MIT
作者版本
v2.23.8
Skillstore 修订
r1
引用
24b2fe42a456262f3fd0fb3df72e12d9ed2c32ec
维护新鲜度
2026/7/18
使用量
1 次下载 · 0 次浏览