Product: PowerShell Universal
Version: 5.6.12
After some thinking I decided I didn’t want to store variables in my variables.ps1 file anymore, and I wanted this to persist in the database. I updated the Persistence object in my appsettings.json file as follows:
"Persistence": {
"Schedule": "Database",
"ScheduleParameter": "Database",
"Variable": "Database"
}
Next I simply deleted the Variables.ps1 file in my repo and restarted the PSU service. Sure enough, I was able to create and edit variables in the admin UI again. However, when I went to create a secret, everything is grayed out. I checked the following possible culprits:
- variables.ps1 is removed
- I set Variables to Database in the appsettings.json file
- I ensured that the default Database vault is the only active vault
- I tried setting Git from OneWay to TwoWay and disabling it
- I restarted the PSU service
- Ensured my account had the appropriate permissions
The new secret window is grayed out like so. Did I do something wrong or is this another bug?
EDIT: So just an update, it looks like I was able to work around this by creating the PSCredential secret in the database directly. Then refreshing the UI I could add the username/password values in the UI. Is this by design???
Actually, while I was able to create the credential this way I am getting a strange error when trying to use it this way: Error executing job: Value cannot be null. (Parameter 's')
I also updated to 5.6.13 in case this was a known bug with 5.6.12 but the behavior persists…

