Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Use openssl to generate db key
Browse files Browse the repository at this point in the history
ref #8704
  • Loading branch information
David Davis committed Jun 11, 2021
1 parent 85b19e8 commit 9a7291f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions roles/pulp_api/tasks/generate_database_fields_key.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
shell: >-
set -o pipefail &&
umask 0077 &&
dd if=/dev/urandom bs=32 count=1 2>/dev/null
| openssl base64 > {{ __pulp_db_fields_key_path }}
openssl rand -base64 32 > {{ __pulp_db_fields_key_path }}
args:
# Debian defaults to bourne, but it doesn't understand pipefail.
executable: /bin/bash
Expand Down

0 comments on commit 9a7291f

Please sign in to comment.