Plaintext API tokens in dotfiles pose silent security risks, developer warns
A developer discovered long-exposed plaintext tokens for GitHub and npm sitting in their shell and config files, despite already having a secrets management tool installed. For GitHub CLI users, the 1Password CLI offers a native plugin that injects credentials at runtime without storing them in plain text. npm lacks a native plugin, requiring a manual workaround where the shell fetches the secret on demand and the .npmrc file references an environment variable instead of a hardcoded token. A key debugging lesson emerged: setting an environment variable has no effect if the config file still contains a hardcoded literal value that overrides it. The incident highlights the gap between having security tools available and actually integrating them into everyday workflows.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in