Project

General

Profile

Actions

Bug #11121

closed

websockets_encrypt validation fails with settings.yaml on empty DB

Added by Dominic Cleal almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Settings
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When running a db:migrate and db:seed (only the latter initialises settings) with websockets_* settings in settings.yaml, the initialisation order is such that websockets_encrypt is set to true before the key and certs are initialised. This causes its validation to fail.

  1. [ WARN 2015-07-15 07:39:19 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: Validation failed: Unable to turn on websockets_encrypt, either websockets_ssl_key or websockets_ssl_cert is missing

settings.yaml:

:websockets_encrypt: true
:websockets_ssl_key: /var/lib/puppet/ssl/private_keys/foreman.example.com.pem
:websockets_ssl_cert: /var/lib/puppet/ssl/certs/foreman.example.com.pem

It could probably be avoided by swapping the initialisation order in the Setting::Auth file.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #9603: Setting called websockets_encrypt does not work correctlyClosedLukas Zapletal03/02/2015Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Related to Bug #9603: Setting called websockets_encrypt does not work correctly added
Actions #2

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2550 added
  • Pull request deleted ()
Actions #3

Updated by Dominic Cleal almost 9 years ago

  • Assignee set to Dominic Cleal
Actions #4

Updated by Dominic Cleal almost 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF