I need to store user credentials in my app. I can store and retrieve the password with protectdata. But as soon as I push a new revision of my app I loose the credentials. It seems like appharbor cleans the ProtectedData Store.
Is this behavior on purpose? Is there a better way to store user credentials on appharbor. OAuth is not an options since it’s a ftp account.
System.Security.Cryptography.ProtectedData
Changes to the local instance file system are not persisted across deploys on AppHarbor, so you’ll have to store the data someplace else. We generally recommend using Amazon S3. You can use
System.Security.Cryptography.ProtectedData.Protect()from the same API to encrypt data written there. Here’s some sample code: protect bytes data .netI’m not super familiar with this API, but you might get into trouble if you app us running on multiple AppHarbor instances using different user accounts.