Open link in a new tab

Content

Expand project menu

Error in Installation Guide? OPENPROJECT_SECRET_KEY_BASE

Hi OpenProject Team 

Thank you for this Wonderful piece of Open Source Software!

I have an on premise installation on Kubernetes running at the moment.  I use the following Docker image: "docker.io/openproject/community:13.0.7"

I am not sure if the Installation Guide is wrong or if i misconfigured something, i appreciate the input: 

In the Installation Guide for Docker (https://www.openproject.org/docs/installation-and-operations/installation/docker/), it says you should generate a random key and implement the "OPENPROJECT_SECRET_KEY_BASE" Variable in Production. 

I set the "OPENPROJECT_SECRET_KEY_BASE" = xxxxxx Variable via Kubernetes Secrets. In the deployed OpenProject Container it looks like this: 

env | grep -i secret_key_base
SECRET_KEY_BASE=OVERWRITE_ME
OPENPROJECT_SECRET_KEY_BASE="xxxxxx"

When i check via Rails Console what Secret Key is active, it looks like this: 

bundle exec rails console

I, [2023-11-03T22:05:19.286132 OF-21]  INFO -- : Using schema cache file /app/db/schema_cache.yml
Loading production environment (Rails 7.0.7)
irb(main):001:0> Rails.application.secrets.secret_key_base
=> "OVERWRITE_ME"

That looks wrong to me, as i understand it the Rails Secret key base should not be  "OVERWRITE_ME" anymore. 

What went wrong here? 

Regards
john

Message actions

Update 25.04.2025: 

I move the kubernets openproject installation to the docker all in one, there the issue seams fixed, the correct env is in the openproject container and in rails.