Title: ConvertTo-SecureString leds hanging · Issue #13315 · PowerShell/PowerShell · GitHub
Open Graph Title: ConvertTo-SecureString leds hanging · Issue #13315 · PowerShell/PowerShell
X Title: ConvertTo-SecureString leds hanging · Issue #13315 · PowerShell/PowerShell
Description: Issue comes from Azure/azure-powershell#12264. Below simplified code is hanging. If I use other cmdlet instead of ConvertTo-SecureString, it seems no problem. Steps to reproduce [string] $kvName = "
Open Graph Description: Issue comes from Azure/azure-powershell#12264. Below simplified code is hanging. If I use other cmdlet instead of ConvertTo-SecureString, it seems no problem. Steps to reproduce [string] $kvName = ...
X Description: Issue comes from Azure/azure-powershell#12264. Below simplified code is hanging. If I use other cmdlet instead of ConvertTo-SecureString, it seems no problem. Steps to reproduce [string] $kvName = ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/13315
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ConvertTo-SecureString leds hanging","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6).\r\n\r\n-->\r\n\r\nIssue comes from https://github.com/Azure/azure-powershell/issues/12264. Below simplified code is hanging. If I use other cmdlet instead of `ConvertTo-SecureString`, it seems no problem.\r\n\r\n## Steps to reproduce\r\n\r\n```powershell\r\n[string] $kvName = \"\u003cyour-kv-name>\"\r\n\r\n$block = {\r\n param (\r\n [string]\r\n $kvName,\r\n\r\n [string]\r\n $secretName,\r\n\r\n [string]\r\n $secretValue,\r\n\r\n $dummy\r\n )\r\n $stopwatch = [System.Diagnostics.Stopwatch]::StartNew()\r\n Write-Host \"Setting secret...\"\r\n ConvertTo-SecureString -String secretValue -AsPlainText -Force\r\n Write-Host (\"Elapsed time: {0}\" -f $stopwatch.Elapsed.ToString())\r\n}\r\n\r\n$secretValue = \"TopSecret!\"\r\n# Uncomment the following line to fix the issue\r\n#$dummy = ConvertTo-SecureString -String secretValue -AsPlainText -Force\r\nStart-Job -ScriptBlock $block -ArgumentList @($kvName, \"SecretName1\", $secretValue, $dummy) | Receive-Job -Wait -AutoRemoveJob\r\n```\r\n\r\n## Expected behavior\r\n\r\n```none\r\n\r\n```\r\n\r\n## Actual behavior\r\n\r\n```none\r\n\r\n```\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\n\r\n```\r\n","author":{"url":"https://github.com/dingmeng-xue","@type":"Person","name":"dingmeng-xue"},"datePublished":"2020-07-30T06:54:09Z","url":"https://github.com/PowerShell/PowerShell/issues/13315"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c7d465fe-5c24-7943-513b-eaf35b713f6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1C4:1F2079:1E31AE:2903B0:6AFD44E0 |
| html-safe-nonce | 20bfa3a108a850259080fecd786cf03ca1cd4d7d3bfd35923ce268efe80c85b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUM0OjFGMjA3OToxRTMxQUU6MjkwM0IwOjZBRkQ0NEUwIiwidmlzaXRvcl9pZCI6IjU3NDYwMjY0OTU1NzkzNDIwNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 09e14a65bab6d41f570a4e36f1548183839dea99fa620741b67ba2f5463de169 |
| hovercard-subject-tag | issue:668427012 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/13315/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d21235586b9f2787d0652539ada9e32e9812b826e828199a46b6dbbd4090a112/PowerShell/PowerShell/issues/13315 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d21235586b9f2787d0652539ada9e32e9812b826e828199a46b6dbbd4090a112/PowerShell/PowerShell/issues/13315 |
| og:image:alt | Issue comes from Azure/azure-powershell#12264. Below simplified code is hanging. If I use other cmdlet instead of ConvertTo-SecureString, it seems no problem. Steps to reproduce [string] $kvName = ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dingmeng-xue |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width