[BUG] Workspace CustomConnection secrets cannot be retrieved
Describe the bug Unable to retrieve secrets in a CustomConnection created in AML workspace.
How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug:
- Create a CustomConnection in AML workspace:
- Set default connection to workspace by
pf config set connection.provider="azureml:/... - Try to retrieve secrets
Expected behavior Secrets in CustomConnection can be retrieved.
Screenshots If applicable, add screenshots to help explain your problem.
Running Information(please complete the following information):
- Promptflow Package Version using
pf -v: 0.1.0b7.post1 - Operating System: Windows 10
- Python Version using
python --version: Python 3.9.18
Additional context Add any other context about the problem here.
@Anbang-Hu This is a by-design behavior, when list and get connection from workspace, secrets (the whole key-value pairs) will not be returned by service thus can't be shown, but it will not block the flow execution, when execute the flow, promptflow will call the ARM api to get the connections with secrets, this call requires user action permission.