-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from Ramon-LibertyPumps/Ramon-LibertyPumps-Kee…
…per-DynamicFolder-Sort Keeper: Sort by name when displaying the folder view.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"Name":"Dynamic Folder Export","Objects":[{"Type":"DynamicFolder","Name":"Keeper (Powershell Core)","Description":"Get dynamic credentials from Keeper Secrets Manager","Notes":"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\t<head>\r\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>\r\n\t\t</title>\r\n\t\t<style type=\"text/css\">\r\n\t\t\t.cs2F633E06{text-align:left;text-indent:0pt;margin:0pt 0pt 12pt 0pt;line-height:1.25;background-color:#FFFFFF}\r\n\t\t\t.cs284A0245{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:24pt;font-weight:bold;font-style:normal;}\r\n\t\t\t.cs274ABB97{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:bold;font-style:normal;}\r\n\t\t\t.cs4AEF82F9{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:normal;font-style:normal;}\r\n\t\t\t.cs4052EF37{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:bold;font-style:normal;text-decoration: none;}\r\n\t\t\t.csB4B5109A{color:#0000FF;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:normal;font-style:normal;text-decoration: underline;}\r\n\t\t\t.cs11DAF544{text-align:left;text-indent:0pt;margin:18pt 0pt 12pt 0pt;line-height:1.25;background-color:#FFFFFF}\r\n\t\t\t.csBA0AB85A{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:18pt;font-weight:bold;font-style:normal;}\r\n\t\t\t.csA4B3A5CA{text-align:left;text-indent:0pt;margin:0pt 0pt 12pt 0pt;background-color:#FFFFFF}\r\n\t\t\t.cs55E59E38{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:14pt;font-weight:bold;font-style:normal;}\r\n\t\t\t.cs213807E6{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:normal;font-style:normal;text-decoration: none;}\r\n\t\t\t.cs2C821426{color:#0366D6;background-color:transparent;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:normal;font-style:normal;}\r\n\t\t\t.csBCD626A0{color:#000000;background-color:#FFFFFF;font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;}\r\n\t\t</style>\r\n\t</head>\r\n\t<body>\r\n\t\t<h1 class=\"cs2F633E06\">\r\n\t\t\t<a name=\"_dx_frag_StartFragment\"></a><span class=\"cs284A0245\">Keeper (Powershell) Dynamic Folder</span></h1>\r\n\t\t<h1 class=\"cs2F633E06\">\r\n\t\t\t<span class=\"cs274ABB97\">Version: </span><span class=\"cs4AEF82F9\">1.0.0</span><span class=\"cs274ABB97\"><br/>Author</span><a name=\"_dx_frag_StartFragment\"></a><a name=\"_dx_frag_EndFragment\"></a><span class=\"cs274ABB97\">: <a class=\"cs4052EF37\" href=\"https://github.com/WillEllis\"><span class=\"csB4B5109A\">https://github.com/WillEllis</span></a></span></h1>\r\n\t\t<h2 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"csBA0AB85A\">How to use</span></h2>\r\n\t\t<p class=\"csA4B3A5CA\"><span class=\"cs4AEF82F9\">Ensure you set the RoyalTS script interpreter as Powershell Core. E.g. "C:\\Program Files\\PowerShell\\7\\pwsh.exe"</span></p><h3 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"cs55E59E38\">Create a Keeper application</span></h3>\r\n\t\t<p class=\"csA4B3A5CA\"><span class=\"cs4AEF82F9\">You will need to create an application in Keeper and get a one time access token. Follow the quick start guide here: <a class=\"cs213807E6\" href=\"https://docs.keeper.io/secrets-manager/secrets-manager/quick-start-guide#create-a-secrets-manager-application\"><span class=\"cs2C821426\">Keeper Create an Application</span></a></span></p><h3 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"cs55E59E38\">Create a Keeper application</span></h3>\r\n\t\t<p class=\"csA4B3A5CA\"><span class=\"cs4AEF82F9\">Setup Keeper Secrets Manager for Powershell (in Powershell core) following this guide <a class=\"cs213807E6\" href=\"https://docs.keeper.io/secrets-manager/secrets-manager/integrations/powershell-plugin#installation\"><span class=\"cs2C821426\">Keeper Powershell Plugin - Installation</span></a></span></p><h3 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"cs55E59E38\">Connect Dynamic Folder to Powershell Keeper Vault</span></h3>\r\n\t\t<h3 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"cs4AEF82F9\">If you've done the above then you'll have a Powershell Vault in place for Keeper. Simply set the name of the vault and the password (if set) within the custom properties of this Dynamic folder.</span></h3>\r\n\t\t<p class=\"csA4B3A5CA\"><span class=\"csBCD626A0\"> </span></p></body>\r\n</html>\r\n","CustomProperties":[{"Name":"PowerShell Vault Name","Type":"Text","Value":"TODO"},{"Name":"PowerShell Vault Password","Type":"Protected","Value":"TODO"}],"Script":"$ErrorActionPreference = 'Stop'\r\n\r\nif ('$CustomProperty.PowerShellVaultName$' -eq '') {\r\n throw 'Vault Name needed'\r\n}\r\nif ('$CustomProperty.PowerShellVaultPassword$' -eq '') {\r\n throw 'Vault password needed'\r\n}\r\n\r\n$Secure = ConvertTo-SecureString -String '$CustomProperty.PowerShellVaultPassword$' -AsPlainText -Force\r\nUnlock-SecretStore -Password $Secure\r\n\r\n$results = Get-SecretInfo -Vault '$CustomProperty.PowerShellVaultName$'\r\n$credentials = @()\r\nforeach ($item in $results) {\r\n $ID,$name = $item.Name -split ' ',2\r\n $credentials += [pscustomobject]@{\r\n Type = 'DynamicCredential'\r\n Name = $name\r\n Username = ''\r\n Password = ''\r\n ID = $ID\r\n }\r\n}\r\n\r\n$final = [pscustomobject]@{\r\n Objects = $credentials\r\n}\r\n$final | ConvertTo-Json -Depth 100 | Write-Output","ScriptInterpreter":"powershell","DynamicCredentialScriptInterpreter":"powershell","DynamicCredentialScript":"$ErrorActionPreference = 'Stop'\r\n\r\nif ('$CustomProperty.PowerShellVaultName$' -eq '') {\r\n throw 'Vault Name needed'\r\n}\r\nif ('$CustomProperty.PowerShellVaultPassword$' -eq '') {\r\n throw 'Vault password needed'\r\n}\r\n\r\n$Secure = ConvertTo-SecureString -String '$CustomProperty.PowerShellVaultPassword$' -AsPlainText -Force\r\nUnlock-SecretStore -Password $Secure\r\n\r\n$results = Get-Secret '$DynamicCredential.EffectiveID$' -AsPlainText\r\n$results | Select-Object @{Name='username';Expression={$_.login}},password | ConvertTo-Json -Depth 100 | Write-Output"}]} | ||
{"Name":"Dynamic Folder Export","Objects":[{"Type":"DynamicFolder","Name":"Keeper (Powershell Core)","Description":"Get dynamic credentials from Keeper Secrets Manager","Notes":"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\t<head>\r\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>\r\n\t\t</title>\r\n\t\t<style type=\"text/css\">\r\n\t\t\t.cs2F633E06{text-align:left;text-indent:0pt;margin:0pt 0pt 12pt 0pt;line-height:1.25;background-color:#FFFFFF}\r\n\t\t\t.cs284A0245{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:24pt;font-weight:bold;font-style:normal;}\r\n\t\t\t.cs274ABB97{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:bold;font-style:normal;}\r\n\t\t\t.cs4AEF82F9{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:normal;font-style:normal;}\r\n\t\t\t.cs4052EF37{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:bold;font-style:normal;text-decoration: none;}\r\n\t\t\t.csB4B5109A{color:#0000FF;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:normal;font-style:normal;text-decoration: underline;}\r\n\t\t\t.cs11DAF544{text-align:left;text-indent:0pt;margin:18pt 0pt 12pt 0pt;line-height:1.25;background-color:#FFFFFF}\r\n\t\t\t.csBA0AB85A{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:18pt;font-weight:bold;font-style:normal;}\r\n\t\t\t.csA4B3A5CA{text-align:left;text-indent:0pt;margin:0pt 0pt 12pt 0pt;background-color:#FFFFFF}\r\n\t\t\t.cs55E59E38{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:14pt;font-weight:bold;font-style:normal;}\r\n\t\t\t.cs213807E6{color:#24292E;background-color:#FFFFFF;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:normal;font-style:normal;text-decoration: none;}\r\n\t\t\t.cs2C821426{color:#0366D6;background-color:transparent;font-family:'Microsoft Sans Serif';font-size:12pt;font-weight:normal;font-style:normal;}\r\n\t\t\t.csBCD626A0{color:#000000;background-color:#FFFFFF;font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;}\r\n\t\t</style>\r\n\t</head>\r\n\t<body>\r\n\t\t<h1 class=\"cs2F633E06\">\r\n\t\t\t<a name=\"_dx_frag_StartFragment\"></a><span class=\"cs284A0245\">Keeper (Powershell) Dynamic Folder</span></h1>\r\n\t\t<h1 class=\"cs2F633E06\">\r\n\t\t\t<span class=\"cs274ABB97\">Version: </span><span class=\"cs4AEF82F9\">1.0.0</span><span class=\"cs274ABB97\"><br/>Author</span><a name=\"_dx_frag_StartFragment\"></a><a name=\"_dx_frag_EndFragment\"></a><span class=\"cs274ABB97\">: <a class=\"cs4052EF37\" href=\"https://github.com/WillEllis\"><span class=\"csB4B5109A\">https://github.com/WillEllis</span></a></span></h1>\r\n\t\t<h2 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"csBA0AB85A\">How to use</span></h2>\r\n\t\t<p class=\"csA4B3A5CA\"><span class=\"cs4AEF82F9\">Ensure you set the RoyalTS script interpreter as Powershell Core. E.g. "C:\\Program Files\\PowerShell\\7\\pwsh.exe"</span></p><h3 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"cs55E59E38\">Create a Keeper application</span></h3>\r\n\t\t<p class=\"csA4B3A5CA\"><span class=\"cs4AEF82F9\">You will need to create an application in Keeper and get a one time access token. Follow the quick start guide here: <a class=\"cs213807E6\" href=\"https://docs.keeper.io/secrets-manager/secrets-manager/quick-start-guide#create-a-secrets-manager-application\"><span class=\"cs2C821426\">Keeper Create an Application</span></a></span></p><h3 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"cs55E59E38\">Create a Keeper application</span></h3>\r\n\t\t<p class=\"csA4B3A5CA\"><span class=\"cs4AEF82F9\">Setup Keeper Secrets Manager for Powershell (in Powershell core) following this guide <a class=\"cs213807E6\" href=\"https://docs.keeper.io/secrets-manager/secrets-manager/integrations/powershell-plugin#installation\"><span class=\"cs2C821426\">Keeper Powershell Plugin - Installation</span></a></span></p><h3 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"cs55E59E38\">Connect Dynamic Folder to Powershell Keeper Vault</span></h3>\r\n\t\t<h3 class=\"cs11DAF544\">\r\n\t\t\t<span class=\"cs4AEF82F9\">If you've done the above then you'll have a Powershell Vault in place for Keeper. Simply set the name of the vault and the password (if set) within the custom properties of this Dynamic folder.</span></h3>\r\n\t\t<p class=\"csA4B3A5CA\"><span class=\"csBCD626A0\"> </span></p></body>\r\n</html>\r\n","CustomProperties":[{"Name":"PowerShell Vault Name","Type":"Text","Value":"TODO"},{"Name":"PowerShell Vault Password","Type":"Protected","Value":"TODO"}],"Script":"$ErrorActionPreference = 'Stop'\r\n\r\nif ('$CustomProperty.PowerShellVaultName$' -eq '') {\r\n throw 'Vault Name needed'\r\n}\r\nif ('$CustomProperty.PowerShellVaultPassword$' -eq '') {\r\n throw 'Vault password needed'\r\n}\r\n\r\n$Secure = ConvertTo-SecureString -String '$CustomProperty.PowerShellVaultPassword$' -AsPlainText -Force\r\nUnlock-SecretStore -Password $Secure\r\n\r\n$results = Get-SecretInfo -Vault '$CustomProperty.PowerShellVaultName$'\r\n$credentials = @()\r\nforeach ($item in $results) {\r\n $ID,$name = $item.Name -split ' ',2\r\n $credentials += [pscustomobject]@{\r\n Type = 'DynamicCredential'\r\n Name = $name\r\n Username = ''\r\n Password = ''\r\n ID = $ID\r\n }\r\n}\r\n\r\n$final = [pscustomobject]@{\r\n Objects = ($credentials | Sort-Object Name)\r\n}\r\n$final | ConvertTo-Json -Depth 100 | Write-Output","ScriptInterpreter":"powershell","DynamicCredentialScriptInterpreter":"powershell","DynamicCredentialScript":"$ErrorActionPreference = 'Stop'\r\n\r\nif ('$CustomProperty.PowerShellVaultName$' -eq '') {\r\n throw 'Vault Name needed'\r\n}\r\nif ('$CustomProperty.PowerShellVaultPassword$' -eq '') {\r\n throw 'Vault password needed'\r\n}\r\n\r\n$Secure = ConvertTo-SecureString -String '$CustomProperty.PowerShellVaultPassword$' -AsPlainText -Force\r\nUnlock-SecretStore -Password $Secure\r\n\r\n$results = Get-Secret '$DynamicCredential.EffectiveID$' -AsPlainText\r\n$results | Select-Object @{Name='username';Expression={$_.login}},password | ConvertTo-Json -Depth 100 | Write-Output"}]} |