It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
3 years ago[SOLVED] `op run --` does not conceal value when do writeFile in nodejs
When I do writeFile into stdout/stderr, it just prints out the value. If I just do console.log(process.env.GITHUB_USERNAME), the value is concealed. Here's the source code:
require("dotenv").config();
const process = require("process");
const fs = require("fs");
fs.writeFileSync(0, process.env.GITHUB_USERNAME);
1Password Version: 8.10.6
Extension Version: Not Provided
OS Version: macOS 13.3.1(a)
Browser:_ cli
2 Replies
- Former Member
Glad you figured this out! Let us know if we can help with anything else!
Best,
Horia - Former Member
Turns out it was my mistake, I wrote the value into stdin.