promptflow icon indicating copy to clipboard operation
promptflow copied to clipboard

[BUG] Workspace CustomConnection secrets cannot be retrieved

Open Anbang-Hu opened this issue 3 years ago • 1 comments

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:

  1. Create a CustomConnection in AML workspace: image
  2. Set default connection to workspace by pf config set connection.provider="azureml:/...
  3. Try to retrieve secrets image

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 avatar Oct 12 '23 22:10 Anbang-Hu

@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.

brynn-code avatar Oct 13 '23 02:10 brynn-code