requarks / wiki-heroku

Heroku deploy manifest for Wiki.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't set SSH private key through environment variable

jeffbr13 opened this issue · 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.

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.

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