知识卡片
租户凭证限制资源访问
使用宽权限客户端时,错误查询可能读到其他租户数据。可根据已验证租户上下文取得受限凭证,用它建立访问客户端,使资源系统拒绝范围外请求。策略要真正约束相关表、键与操作,不能把会话名字等标签本身误认为隔离条件。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Building Multi-Tenant Services · 查看原书依据
our DynamoDB client (as we did before). However, the client is now created using the tenant_scoped_session variable. This essentially tells Boto3 to initialize the client with the credential values that we set up in the prior steps. Now, when we invoke the query command using this client, it will inherit the scoping policies and apply these to any call made
参考来源
- 位置:《Building Multi-Tenant SaaS Architectures》第07章《Building Multi-Tenant Services》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch07.html)
- 结论依据:原文具体说明使用宽权限客户端时,错误查询可能读到其他租户数据;本卡据此归纳机制及适用边界。
- 原始内容:our DynamoDB client (as we did before). However, the client is now created using the tenant_scoped_session variable. This essentially tells Boto3 to initialize the client with the credential values that we set up in the prior steps. Now, when we invoke the query command using this client, it will inherit the scoping policies and apply these to any call made