Comments (4)
When running the command to get the installed versions of the Module, this is what I get. There aren't older versions, but there are versions installed into multiple folders:
Get-module -Name Microsoft.PowerShell.Secret* -list
Directory: C:\Users\Administrator\Documents\PowerShell\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Binary 1.1.1 Microsoft.PowerShell.SecretManagem… Core {Register-SecretVault, Unregister-SecretVault, Get-SecretVault, Se…
Binary 1.0.5 Microsoft.PowerShell.SecretStore Core {Unlock-SecretStore, Set-SecretStorePassword, Get-SecretStoreConfi…
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Binary 1.1.1 Microsoft.PowerShell.SecretManagem… Core {Register-SecretVault, Unregister-SecretVault, Get-SecretVault, Se…
Binary 1.0.5 Microsoft.PowerShell.SecretStore Core {Unlock-SecretStore, Set-SecretStorePassword, Get-SecretStoreConfi…
I started getting the error Padding is invalid and cannot be removed
today, and it affected many scripts that I had running in Task Scheduler. After entering in the credentials again for one task, all of the others that used that account started working, however they stopped working again a couple of hours later.
I am going to take your advice and recreate the secret store, which I imagine will remedy this situation since it is now manifesting in exactly the way described in #62 .
I appreciate your attention to this and will update again.
from secretstore.
This sounds like it might be related to issue #62, which has to do with how SecretStore encrypts one layer using the current user account name. Windows can provide the user name in different cases, and this affects the ability to decrypt. The problem has been fixed in the latest version of SecretStore. What version are you using?
Keep in mind that SecretStore currently stores secrets for the current user account. 'AllUser' scope is not yet supported, so to access secrets means logging in with the account that stored the secrets.
from secretstore.
I think this is related to issue #62 , as I am not getting an error:
Padding is invalid and cannot be removed
I received this after updating the modules to latest versions:
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Binary 1.1.1 Microsoft.PowerShell.SecretManagem… Core {Register-SecretVault, Unregister-SecretVault, Get-SecretVault, Set-SecretVaultDefault…}
Binary 1.0.5 Microsoft.PowerShell.SecretStore Core {Unlock-SecretStore, Set-SecretStorePassword, Get-SecretStoreConfiguration, Set-SecretStoreConfiguration…}
I am logged in as the same user via the Remote-SSH session, so it shouldn't be an issue of 'AllUser' scope, but I definitely understand what you mean about Windows not presenting the user in a fashion that the Module is able to decrypt.
I would say the issues could be merged, however #62 looks like it is closed.
from secretstore.
Yes, the issue #62 has been fixed, but there is a chance that if you have a SecretStore database from before the fix, you will see this error. That is why I recommended to original author of #62 to reset and re-store secrets after installing the latest SecretStore with the fix.
There is a small chance that you may have older versions of the module. Please run:
Get-module -Name Microsoft.PowerShell.Secret* -list
to ensure any older versions have been removed.
from secretstore.
Related Issues (20)
- Rfc2898DeriveBytes obsolete constructor
- Utilize the Windows Credential Manager as the secret store HOT 11
- Add better error message for failure when running under Windows built-in accounts HOT 1
- SecretStore requires Full Language mode HOT 5
- need documentation on backup/restore operation of the vaults HOT 2
- Passswordless SecretManagement
- How to use SecretStore for automatic pwd PSSession to linux? HOT 2
- Registering an additional store just creates another reference to the first store HOT 5
- There is no possibility to choose a custom file path HOT 6
- Set-SecretStoreConfiguration -Authentication None often fails HOT 7
- Request - Lock-SecretStore cmdlet HOT 1
- Windows 11 Upgrade: Store File Corruption HOT 2
- Unable to register SecretStore without supplying a password HOT 4
- Set-SecretStoreConfiguration doesn't properly support Confirm:$false HOT 4
- Cannot use Set-SecretStorePassword with parameter arguments to set a new password, without an existing password HOT 1
- Updating module in pwsh 7.2
- Reset-SecretStore doesn't respect-Confirm:$false
- Set-SecretStoreConfiguration failed under Linux HOT 1
- Unlock-SecretStore randomly fails after running Reset-SecretStore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secretstore.