Liran Tal 3/5/2019

How to avoid leaking secrets to the npm registry

Read Original

This technical article details the risks and common mistakes that lead to secrets (API keys, passwords) being leaked when publishing npm packages. It explains how npm uses .gitignore and .npmignore files, recommends using the 'files' property in package.json as a whitelist, and suggests using the --dry-run flag to safely review packages before publication.

How to avoid leaking secrets to the npm registry

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week