Actions
Bug #11121
closedwebsockets_encrypt validation fails with settings.yaml on empty DB
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.
- [ 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.
Updated by Dominic Cleal over 9 years ago
- Related to Bug #9603: Setting called websockets_encrypt does not work correctly added
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2550 added
- Pull request deleted (
)
Updated by Dominic Cleal over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset dc3ba8b236d8c91cd613d932797df78126c484b1.
Actions