Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Error in Installation Guide? OPENPROJECT_SECRET_KEY_BASE

Error in Installation Guide? OPENPROJECT_SECRET_KEY_BASE

Added by john shepard over 1 year ago

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 #317]  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


Replies (1)

RE: Error in Installation Guide? OPENPROJECT_SECRET_KEY_BASE - Added by john shepard 29 days ago

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.

  • (1 - 1/1)
Loading...