🐞 Bug: Homebox ; extra environment variable needed for 0.26+ versions
Bug Description
After updating Homebox using docker compose pull && docker compose up -d, it stopped working.
Apparently, when going from 0.25 to 0.26+ (now it's at 0.26.2 when using the ghcr.io/sysadminsmedia/homebox:latest image URL), an environment variable HBOX_AUTH_API_KEY_PEPPER is expected.
So, I updated my .env to include it `#version=1.0 #url=https://github.com/2Tiny2Scale/tailscale-docker-sidecar-configs #COMPOSE_PROJECT_NAME= // only use in multiple deployments on the same infra
SERVICE=homebox IMAGE_URL=ghcr.io/sysadminsmedia/homebox:latest SERVICEPORT=7745
TS_AUTHKEY=**** DNS_SERVER=9.9.9.9
HBOX_LOG_LEVEL=info HBOX_LOG_FORMAT=text HBOX_WEB_MAX_UPLOAD_SIZE=10 HBOX_AUTH_API_KEY_PEPPER=some_random_string `
I generated the random string with this command:
openssl rand -base64 48
And I put this line in my docker-compose.yaml:
- HBOX_AUTH_API_KEY_PEPPER=${HBOX_AUTH_API_KEY_PEPPER}
This allowed me to run the latest version of Homebox.
Please also note that the image URL used in your .env is no longer the active version of homebox.
this is now the active image url:
ghcr.io/sysadminsmedia/homebox:latest
Expected Behavior
to work
Actual Behavior
doesn't work without adapting .env and docker-compose.yaml
Screenshots
No response
Operating System
Linux
Tailscale Version
1.98.4
Docker Version
28.3.0
Relevant Logs or Error Messages
Docker Compose Configuration
Environment Configuration (.env file)
Additional Context
No response
Thanks for the report and for including the workaround, @fdbuck0.
I reproduced this: upgrading the stack from Homebox 0.25.0 to 0.26.2 without the new variable puts the container in a restart loop with
panic: auth.api_key_pepper must be set to at least 32 bytes; generate with `openssl rand -base64 48` and provide via HBOX_AUTH_API_KEY_PEPPER
Homebox made HBOX_AUTH_API_KEY_PEPPER mandatory in 0.26.0. This is now fixed on main by #347, which matches your workaround:
.envhas aHBOX_AUTH_API_KEY_PEPPER=entrycompose.yamlpasses it to the container, and Compose stops with a clear error if it is empty- the README lists it as required
With the current files and a generated pepper, the same 0.25.0 data directory starts cleanly on 0.26.2 and the existing data is still there. If you update your copy, keep the pepper you already generated, since changing it invalidates all issued API keys.
On the image URL: the Homebox stack here has used ghcr.io/sysadminsmedia/homebox:latest since it was added, so nothing needed to change there. Your .env header still points at the old 2Tiny2Scale repository, so your copy may come from an older source. The current files are in services/homebox.
Closing this as fixed by #347. Feel free to reopen if it still fails with the current files.