知识卡片
路由授权保护函数入口
网关授权策略可禁止租户调用其他租户函数的路由,与函数访问数据时的权限共同形成分层隔离。只保护网关路径不能代替资源权限,反之正确数据库权限也不代表所有不该公开的函数入口都被关闭。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Serverless SaaS: Architecture Patterns and Strategies · 查看原书依据
from Tenant 1, I’d like to ensure that this request is only routed to valid Tenant 1 functions. It’s here that my authorizer policy is configured to block access to the routes that are accessing the paths that belong to other tenants (step 3).
参考来源
- 位置:《Building Multi-Tenant SaaS Architectures》第11章《Serverless SaaS: Architecture Patterns and Strategies》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch11.html)
- 结论依据:原文具体说明网关授权策略可禁止租户调用其他租户函数的路由,与函数访问数据时的权限共同形成分层隔离;本卡据此归纳机制及适用边界。
- 原始内容:from Tenant 1, I’d like to ensure that this request is only routed to valid Tenant 1 functions. It’s here that my authorizer policy is configured to block access to the routes that are accessing the paths that belong to other tenants (step 3).