promptflow
promptflow copied to clipboard
[BUG] [VSCode Extension] secrets in CustomConnection are not redacted when we print it
Describe the bug CustomConnection secrets are not redacted when we print it in Python node.
How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug:
- Create a CustomConnection with secret
keyand some value - Create a Python node which takes a CustomConnection as input and prints the CustomConnection secret.
- Add the python node to flow, and choose the CustomConnection as input.
- Run All, you will see the secret is printed as plaintext in terminal.
Screenshots
- On the VSCode primary side bar > the Prompt flow pane > quick access section. Find the "install dependencies" action. Please it and attach the screenshots there.
- Please provide other snapshots about the key steps to repro the issue.
Environment Information
- Promptflow Package Version using
pf -v: [e.g. 0.0.102309906] - Operating System: [e.g. Ubuntu 20.04, Windows 11]
- Python Version using
python --version: [e.g. python==3.10.12] - VS Code version.
- Prompt Flow extension version.
- On the VS Code bottom pane > Output pivot > "prompt flow" channel, find the error message could be relevant to the issue and past them here. That would be helpful for our trouble shooting.
- If your code to repro the issue is public and you want to share us, please share the link.
Additional context Add any other context about the problem here.