Title: [SecretManagement] Get-SecretVaultRegistrationSettings · Issue #89 · PowerShell/Modules · GitHub
Open Graph Title: [SecretManagement] Get-SecretVaultRegistrationSettings · Issue #89 · PowerShell/Modules
X Title: [SecretManagement] Get-SecretVaultRegistrationSettings · Issue #89 · PowerShell/Modules
Description: Add a cmdlet to get expected registration setting for a certain provider. Currently, when you register an external vault, you have to use the -VaultParameters settings, which is great because it is flexible. For that same reason, it make...
Open Graph Description: Add a cmdlet to get expected registration setting for a certain provider. Currently, when you register an external vault, you have to use the -VaultParameters settings, which is great because it is...
X Description: Add a cmdlet to get expected registration setting for a certain provider. Currently, when you register an external vault, you have to use the -VaultParameters settings, which is great because it is...
Opengraph URL: https://github.com/PowerShell/Modules/issues/89
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[SecretManagement] Get-SecretVaultRegistrationSettings","articleBody":"# Add a cmdlet to get expected registration setting for a certain provider.\r\n\r\nCurrently, when you register an external vault, you have to use the `-VaultParameters` settings, which is great because it is flexible. For that same reason, it make it impossible to know what parameter to pass without referring to some documentation. \r\n\r\n# Proposed technical implementation details (optional)\r\n\r\nIt would be nice to be able to get a vault parameter hashtable of all the available settings that can be passed down. Something like\r\n\r\n```Powershell\r\n# Return a hashtable of the expected VaultParameters\r\n$Settings = Get-SecretVaultRegistrationSettings -Module 'Az.Keyvault' \r\n```\r\ncould return for instance the parameters expected for a new vault registration for that provider.\r\nFor an az keyvault, you would get the following hashtables stored in the `$settings` variable \r\n```Powershell\r\n@{ AZKVaultName = ''; SubscriptionId = '' }\r\n```\r\n\r\nThen, all you would do is : \r\n```\r\n$Settings.AZKVaultName = 'MyKeyvault'\r\n$Settings.SubscriptionId = 'cd7e3201-fa28-4283-8289-8c3bd66f62cf'\r\nRegister-SecretVault -Name 'MyAzKeyVault' -ModuleName 'Az.Keyvault' -VaultParameters $Settings\r\n```\r\n\r\nThat way, you wouldn't have to necessarily check the documentation for each providers (provided you are familiar with the parameter name) to register a new vault. \r\n\r\nAs this module gain interest and the number of secret providers grow, it might be a useful addition. \r\n\r\nedit: \r\nJust an additional thought.\r\nMaybe the object retunned could be a class so parameter types could be enforced The class could be implemented with an interface to force a [Hashtable]Settings property, that the provider would use to convert the class property values to the proper hashtable format accepted by `Register-SecretVault`\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/itfranck","@type":"Person","name":"itfranck"},"datePublished":"2020-06-16T11:34:24Z","url":"https://github.com/PowerShell/Modules/issues/89"}
| 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:e689cf47-a6f2-95d7-0cb9-58550e3230b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2D2:3A8D7F:2B1EE6:3997B8:6AFD35CA |
| html-safe-nonce | 0c96026bc5faeb253fa388b34f3afc91a8c4014b054a3df0faf7f632a447e49a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkQyOjNBOEQ3RjoyQjFFRTY6Mzk5N0I4OjZBRkQzNUNBIiwidmlzaXRvcl9pZCI6IjEyMjAwODY4NzkyODY1Mzk3MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 30317a8e9e49532ccac5a9ce966c217cab8dc46b50a3bb2e01a1116efaab7114 |
| hovercard-subject-tag | issue:639592456 |
| 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/Modules/89/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4b50154310aa56c6086fae255d8508d3af44289149dee2548d62b07fa6aebeb/PowerShell/Modules/issues/89 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4b50154310aa56c6086fae255d8508d3af44289149dee2548d62b07fa6aebeb/PowerShell/Modules/issues/89 |
| og:image:alt | Add a cmdlet to get expected registration setting for a certain provider. Currently, when you register an external vault, you have to use the -VaultParameters settings, which is great because it is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | itfranck |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/Modules git https://github.com/PowerShell/Modules.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 197814114 |
| octolytics-dimension-repository_nwo | PowerShell/Modules |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 197814114 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/Modules |
| 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 | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width