Project

General

Profile

Actions

Feature #33733

closed

need to generate private db key for pulpcore 3.15

Added by Justin Sherrill over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

The pulp installer runs:

openssl rand -base64 32    | tr '+/' '-_' > /etc/pulp/certs/database_fields.symmetric.key

and sets ownership to pulp

https://github.com/pulp/pulp_installer/blob/120942e1cb98ad3fb47c63ac9568f2fda09f25f5/roles/pulp_database_config/tasks/generate_database_fields_key.yml

Actions #1

Updated by Justin Sherrill over 2 years ago

foreman does something similar by running a rake task in an rpm script, i could see doing this either in:
1) the installer
2) the pulpcore rpm post script

Actions #2

Updated by Evgeni Golov over 2 years ago

  • Description updated (diff)
Actions #3

Updated by Ewoud Kohl van Wijngaarden over 2 years ago

  • Target version set to 3.1.0

Justin Sherrill wrote:

The pulp installer runs:

[...]

and sets ownership to pulp

Does it need to own it or should it really be read-only to the pulp user? If so I'd prefer to set the owner to root and group to pulp.

Actions #4

Updated by Justin Sherrill over 2 years ago

  • Target version deleted (3.1.0)

I think what you suggest with regard to ownership makes sense, edit isn't needed

Actions #5

Updated by Justin Sherrill over 2 years ago

  • Target version set to 3.1.0
Actions #6

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/theforeman/puppet-pulpcore/pull/235 added
Actions #7

Updated by Justin Sherrill over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #8

Updated by Ewoud Kohl van Wijngaarden over 2 years ago

  • Triaged changed from No to Yes
  • Fixed in Releases 3.1.0 added
Actions

Also available in: Atom PDF