Project

General

Profile

Actions

Bug #9775

closed

CR encryption key not loaded before it's checked, encryption is disabled

Added by Dominic Cleal over 9 years ago. Updated about 6 years ago.

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

Description

In Foreman 1.8/nightlies, since #4478, the compute resource password encryption key isn't being used and so CR passwords are stored and loaded only in plain text.

The key is stored in an initialiser (config/initializers/encryption_key.rb, locally generated during package installation) which should be loaded before the Encryptable concern is loaded. The Encryptable concern is a no-op if the key isn't initialised already.

#4478 added config/initializers/apipie.rb which is calling ComputeResource.providers, leading to earlier loading of Encryptable (used in ComputeResource), before the encryption key initialiser is reached (as 'apipie' < 'encryption_key').

Thanks to Daniel Lobato Garcia for reporting this to .


Related issues 3 (0 open3 closed)

Related to Foreman - Feature #4478: API docs need to be localizedClosedMartin Bacovsky02/27/2014Actions
Related to Foreman - Feature #2424: encrypt compute resource passwordClosedJoseph Magen04/24/2013Actions
Has duplicate Foreman - Bug #9771: undefined method `encryptable_fields' during db migrateClosedDominic Cleal03/15/2015Actions
Actions

Also available in: Atom PDF