wiki-heroku icon indicating copy to clipboard operation
wiki-heroku copied to clipboard

Can't set SSH private key through environment variable

Open jeffbr13 opened this issue 7 years ago • 2 comments

The only supported GitHub authentication method is via username/password or personal token, which isn't ideal - I don't want Wiki.js to have full access to every repository in my account, and I don't want my personal credentials available to everyone with access to the Heroku app's settings.

It'd be better to be able to set the SSH private key as an environment variable, so I can give Wiki.js a specific deploy key.

jeffbr13 avatar Jun 23 '17 15:06 jeffbr13

I'd like to second this. I use bitbucket cloud as my git provider and they don't even support PAT's. Furthermore, the wiki.js docs here say that the git.auth.privateKey value should be

(ssh only) The full path to the private key (.pem) to use when authenticating with your Git repository

but yeah ... I don't want to commit my private key to the repo either.

grugknuckle avatar Dec 20 '18 21:12 grugknuckle

So there is no way to install the SSH key on the Heroku environment ?

koxon avatar Jul 08 '19 23:07 koxon