Not really a bug, more a heads-up about how the application password is stored.
In data.json the plugin keeps encryptedPassword.key, encryptedPassword.vector and encryptedPassword.encrypted next to each other in the same object. So the key needed to decrypt the password sits right beside the ciphertext. Anyone who can read that file can recover the password — the encryption doesn't protect against that, it just makes it non-obvious at a glance.
The reason I think it's worth mentioning: that file lives inside the vault. Plenty of people sync their vault through Dropbox, iCloud or Syncthing, or keep it in a git repo. In those cases the WordPress credentials travel along, and they don't look like a secret to anyone reviewing what's in there. A vault that ends up public would leak them without anybody noticing.
I don't know what the right fix looks like for a cross-platform Obsidian plugin — as far as I can tell there's no OS keychain access from the plugin API, so there may not be a good place to put it. But even just a line in the README saying the password is recoverable from data.json, and that the folder shouldn't be synced or committed, would help. At the moment it reads as if it's encrypted at rest, which is what made me look in the first place.
Checked on 0.18.0. Happy to be corrected if I've misread it.
Not really a bug, more a heads-up about how the application password is stored.
In
data.jsonthe plugin keepsencryptedPassword.key,encryptedPassword.vectorandencryptedPassword.encryptednext to each other in the same object. So the key needed to decrypt the password sits right beside the ciphertext. Anyone who can read that file can recover the password — the encryption doesn't protect against that, it just makes it non-obvious at a glance.The reason I think it's worth mentioning: that file lives inside the vault. Plenty of people sync their vault through Dropbox, iCloud or Syncthing, or keep it in a git repo. In those cases the WordPress credentials travel along, and they don't look like a secret to anyone reviewing what's in there. A vault that ends up public would leak them without anybody noticing.
I don't know what the right fix looks like for a cross-platform Obsidian plugin — as far as I can tell there's no OS keychain access from the plugin API, so there may not be a good place to put it. But even just a line in the README saying the password is recoverable from
data.json, and that the folder shouldn't be synced or committed, would help. At the moment it reads as if it's encrypted at rest, which is what made me look in the first place.Checked on 0.18.0. Happy to be corrected if I've misread it.