self-hosted
self-hosted copied to clipboard
GitHub OAuth token must be able to be passed through environment variables not configs
Problem Statement
In documentation it is written that you need to pass the following parameters by yaml file.
github-app.id: <App ID>
github-app.name: '<GitHub App name>'
github-app.webhook-secret: '<Webhook secret>' # Use only if configured in GitHub
github-app.client-id: '<Client ID>'
github-app.client-secret: '<Client secret>'
github-app.private-key: |
-----BEGIN RSA PRIVATE KEY-----
privatekeyprivatekeyprivatekeyprivatekey
privatekeyprivatekeyprivatekeyprivatekey
privatekeyprivatekeyprivatekeyprivatekey
privatekeyprivatekeyprivatekeyprivatekey
privatekeyprivatekeyprivatekeyprivatekey
-----END RSA PRIVATE KEY-----
This is not ideal where you want to automate provisions especially on cloud or kubernetes. Is it possible to provide a way to pass those variables from environment variables not config.yaml?
Solution Brainstorm
No response
What do other people do here? Presumably you're not the only one with this pain point. My hunch is people are auto-generating the yml file but I'm not sure.
Auto-generation does not solve this problem from the product side and my opinion is that this should be solved by the product because it's absolutely based on a bad design.
I haven't revisited our configuration story in a while but I'm sure it could use a cleanup. Putting this on the backlog for now.