Addons configuration page expanding secret in secrets.yaml

I was using “!secret password” for all my addons without problems previously.

However, I just noticed now when I change anything in the addons configuration page, the secrets get expanded as the actual passwords after saving and restarting the addons.

Is there anyway to keep the old behaviour? Thanks.

Do you mean when you look at the config in the add-on the next time, the value is there, not the !secret keyword placeholder?

Yes, it wasn’t this way before.

Oooo, yes. Editing it in the UI did that for me as well.
Well that’s unfortunate.
I just have never edited in the UI before…
I have verified this, so I suggest adding an issue is definitely appropriate…
Now I need to pull a backup to restore the config for like 10 secrets. crap…
Link the issue out here and I will back you up.

Adding an issue now. Please click in and add a thumbs up if it’s happening to you as well…

Edit it in YAML, that kept the secrets for me.

I was hoping to correct it in YAML before posting but I wasn’t able to find the config files for addons. May I ask where the location is?

If you mean using the “Edit in YAML” button in the configuration UI, I tried, but the secrets were also revealed after restarting the addon.

Thanks for submitting an issue on github.

I restored my add-on from backup to get it back.
I didn’t play with it after that.
Monitor the issue, there may be a work-around or repair showing up there as the most likely place.

The same behaviour in all apps. Frontend issue