PowerShell / SecretStore

MIT License
155 stars 23 forks source link

Set-SecretStoreConfiguration failed under Linux #98

Closed stolaf closed 2 years ago

stolaf commented 2 years ago

Prerequisites

Steps to reproduce

Register-SecretVault -Name SecretStore -ModuleName Microsoft.Powershell.SecretStore -DefaultVault -AllowClobber Set-SecretStoreConfiguration -Scope CurrentUser -Authentication None -PasswordTimeout 0 -Confirm:$false

Module Microsoft.PowerShell.SecretStore Version: 1.0.6 Module Microsoft.PowerShell.SecretManagement Version: 1.1.2

Under Windows works fine!

Expected behavior

Vault Microsoft.PowerShell.SecretStore requires no password.

Actual behavior

Vault Microsoft.PowerShell.SecretStore requires a password.

Error details

If password entered:

Set-SecretStoreConfiguration: Store file integrity check failed.
The provided password may be invalid, or store files have become corrupted or have been tampered with.

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Linux 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

1.0

Visuals

No response

stolaf commented 2 years ago

This is the solution: Reset-SecretStore -Force -PassThru