File tree Expand file tree Collapse file tree
config/.claude/skills/cloud-functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -402,10 +402,16 @@ manageGateway({
402402 targetName: " myHttpFunction" ,
403403 type: " HTTP" , // "HTTP" for HTTP Function
404404 path: " /api/hello" , // Trigger path
405- // auth: false // Optional gateway auth switch
405+ // auth: false // Optional: only set this when you intentionally need anonymous/public access
406406})
407407```
408408
409+ Notes:
410+ - ` manageFunctions(action="createFunction") ` 只创建 HTTP 云函数本身,不会默认替你创建 HTTP 访问路径。
411+ - 如果用户明确说“不需要配置 HTTP 访问服务”,不要额外调用 ` manageGateway(action="createAccess") ` 。
412+ - 评测、浏览器或其他外部调用方可能会以匿名身份访问,而且失败后不一定会把 ` EXCEED_AUTHORITY ` 再反馈给 AI。只要场景涉及匿名 URL 访问,就要主动确认两件事:访问路径是否已创建,以及函数安全规则是否允许该访问方式。
413+ - 若外部请求已经报 ` EXCEED_AUTHORITY ` ,先调用 ` readSecurityRule(resourceType="function") ` 查看当前规则,再根据实际需求决定是否用 ` writeSecurityRule(resourceType="function", aclTag="CUSTOM", rule="true") ` 或更细粒度规则放开权限。
414+
409415``` bash
410416# Access via default domain
411417curl https://{envId}.{region}.app.tcloudbase.com/{path}
You can’t perform that action at this time.
0 commit comments