知识卡片
可信客户端才适合保存密钥
可信的服务器端调用可以保护API密钥、客户端证书或服务账号;不可信手机与网页中的长期秘密却可能被用户提取。设计认证方式时先区分运行环境是否可信,再区分是否有注册用户,而非给所有客户端嵌入同一API密钥。双向TLS还要求客户端提供可信证书,服务账号则承载自动化调用身份。传输加密保护线路,无法让用户控制的程序变成保密环境。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 宏观架构中的安全 · 查看原书依据
When we build an application, security scenarios are driven by two primary considerations: is the client code running in a trusted environment, and does the application or system include users? An example of a trusted environment is an API call done from a secure system, whereas an untrusted environment is a mobile app or web page, where the end user can look at the application and extract the embedded credentials. This leads to the following scenarios, presented as four cases.
参考来源
- 位置:《Software Architecture and Decision-Making》第08章《宏观架构中的安全》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch08.xhtml)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:When we build an application, security scenarios are driven by two primary considerations: is the client code running in a trusted environment, and does the application or system include users? An example of a trusted environment is an API call done from a secure system, whereas an untrusted environment is a mobile app or web page, where the end user can look at the application and extract the embedded credentials. This leads to the following scenarios, presented as four cases.