Skip to content

Commit

Permalink
Merge pull request #908 from ZhyMC/add-6dot25-chinese-translated
Browse files Browse the repository at this point in the history
docs: add translated chinese chapter 6.25
  • Loading branch information
mattjin committed Mar 7, 2021
2 parents f8be5b8 + 3c30bda commit 6529a2b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,18 @@ null == undefined // true

<br/><br/><br/>

## ![] 6.25. 避免将机密信息发布到NPM仓库

<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>

**TL;DR:** 您应该采取预防措施来避免偶然地将机密信息发布到npm仓库的风险。 一个 `.npmignore` 文件可以被用作忽略掉特定的文件或目录, 或者一个在 `package.json` 中的 `files` 数组可以起到一个白名单的作用.

**否则:** 您项目的API密钥、密码或者其它机密信息很容易被任何碰到的人滥用,这可能会导致经济损失、身份冒充以及其它风险。

🔗 [**阅读更多: 避免发布机密信息**](/sections/security/avoid_publishing_secrets.md)

<br/><br/><br/>

<p align="right"><a href="#table-of-contents">⬆ Return to top</a></p>

# `API Practices`
Expand Down

0 comments on commit 6529a2b

Please sign in to comment.