cloud-functions
安全建置 CloudBase Functions
CloudBase functions 採用不同的執行階段模型、封裝規則和權限步驟。此技能會引導代理完成 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 app 表單提交的 endpoint。
預期結果:
- 建議路徑:HTTP Function,因為此工作負載面向瀏覽器。
- 回應應包含 method checks、CORS headers、body parsing 和明確的 status codes。
- 部署應先建立 function,然後只有在需要公開存取時才設定權限。
正在使用「cloud-functions」。 我的 function logs 顯示部署後出現授權失敗。
預期結果:
- 先檢查 function permission configuration,再變更程式碼。
- 如果 endpoint 必須公開,請有意識地更新 function security rule。
- 然後驗證 gateway path,並重試外部請求。
正在使用「cloud-functions」。 我需要在 function runtime 中使用系統函式庫。
預期結果:
- 如果它仍是 request-driven 並監聽 port 9000,請使用 Custom Image HTTP Function。
- 當服務必須長時間執行或使用更廣泛的 container 行為時,改用 CloudRun。
- 保持 image tag 唯一,並讓 registry、build 和 function regions 保持一致。
安全審計
安全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 function 類型,並產生可部署的 runtime 結構。
發布瀏覽器 API
建置具備 routing、CORS、權限檢查和 gateway exposure 步驟的 HTTP Function。
偵錯 Function 操作
檢查 logs、安全更新 environment variables,並翻譯 legacy CloudBase tool names。
試試這些提示
判斷我的 CloudBase 任務應使用 Event Function、HTTP Function、Custom Image HTTP Function 還是 CloudRun。請說明原因。
為小型 JSON API 建立 CloudBase HTTP Function。包含 routing、CORS handling、scf_bootstrap guidance 和 deployment steps。
在不遺失現有值的情況下,更新我的 CloudBase function environment variables。展示安全的 read、merge 和 update 工作流程。
規劃從 source packaging 到 CloudApp build、TCR image tagging、SCF deploy 和 verification 的 Custom Image HTTP Function 部署。
最佳實務
- 在撰寫程式碼或部署設定前,先選擇 CloudBase runtime model。
- 在使用原始 Cloud API fallback 前,先使用 MCP function 和 gateway tools。
- 合併 environment variable 變更前,先讀取目前設定。
避免
- 不要將 Event Function handlers 與 HTTP Function server code 混用。
- 在確認預期的 permission model 前,不要公開暴露 functions。
- 不要憑記憶猜測原始 Cloud API actions 或 payloads。
常見問題
我什麼時候應該使用 Event Function?
我什麼時候應該使用 HTTP Function?
這個技能會自行部署程式碼嗎?
它涵蓋 container image functions 嗎?
它如何處理公開存取?
它能協助處理 logs 和 configuration 嗎?
開發者詳細資訊
授權
MIT
作者版本
v2.23.8
Skillstore 修訂
r1
引用
24b2fe42a456262f3fd0fb3df72e12d9ed2c32ec
維護新鮮度
2026/7/18
使用量
1 次下載 · 0 次瀏覽