This is a buildpack for decrypting arbitrary files with blackbox before running other heroku buildpacks. It allows you to place sensitive credentials under version control in encrypted format, then allow heroku to decrypt them at deploy time.
app.jsonfile such that this runs before your app is built
app.jsonsuch that the
This buildpack makes a lot of assumptions about dependencies, but tries to provide useful errors if assumptions don't hold.
For examaple, it:
blackboxbash scripts in the
/bindir of your build directory (provides workaround if not)
\nchars instead of linebreaks
\scharacters instead of spaces (b/c this format is easier to upload via the
heroku configcli command)
killallavailable on your image
heroku-buildpack-aptto support installing deb packages
psmiscpackages for ubuntu xenial see: https://raw.githubusercontent.com/affinityworks/main/d067a33d4adffa0f87b994e53237d45217ab2f6a/Aptfile
If you want to tinker, almost all of the action happens in
bin/compile. Poke around!
For docs on Heroku's buildpack API, see: https://devcenter.heroku.com/articles/buildpack-api
Copy the snippet above into CLI.