Skip to content

Commit 6529a2b

Browse files
authored
Merge pull request #908 from ZhyMC/add-6dot25-chinese-translated
docs: add translated chinese chapter 6.25
2 parents f8be5b8 + 3c30bda commit 6529a2b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.chinese.md

+12
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,18 @@ null == undefined // true
938938

939939
<br/><br/><br/>
940940

941+
## ![] 6.25. 避免将机密信息发布到NPM仓库
942+
943+
<a href="https://www.owasp.org/index.php/Top_10-2017_A6-Security_Misconfiguration" target="_blank"><img src="https://img.shields.io/badge/%E2%9C%94%20OWASP%20Threats%20-%20A6:Security%20Misconfiguration%20-green.svg" alt=""/></a>
944+
945+
**TL;DR:** 您应该采取预防措施来避免偶然地将机密信息发布到npm仓库的风险。 一个 `.npmignore` 文件可以被用作忽略掉特定的文件或目录, 或者一个在 `package.json` 中的 `files` 数组可以起到一个白名单的作用.
946+
947+
**否则:** 您项目的API密钥、密码或者其它机密信息很容易被任何碰到的人滥用,这可能会导致经济损失、身份冒充以及其它风险。
948+
949+
🔗 [**阅读更多: 避免发布机密信息**](/sections/security/avoid_publishing_secrets.md)
950+
951+
<br/><br/><br/>
952+
941953
<p align="right"><a href="#table-of-contents">⬆ Return to top</a></p>
942954

943955
# `API Practices`

0 commit comments

Comments
 (0)