Skip to content

Commit

Permalink
mock db key for dev
Browse files Browse the repository at this point in the history
Issue: AAH-2648
  • Loading branch information
jerabekjiri committed Aug 28, 2023
1 parent b5480f4 commit d9506d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/2648.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace the original pulp db key with a fake key to maintain db encryption after environment is reloaded in oci-env
3 changes: 3 additions & 0 deletions profiles/base/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ download_ui() {
# django-admin makemessages --all
# }

# Replace the original db key with fake one to maintain db encrypttion after environment reload
echo "this/is/mock/key/for/encrypting/database123=" > /etc/pulp/certs/database_fields.symmetric.key

setup_webserver_snippets

if [[ "$ENABLE_SIGNING" -eq "1" ]]; then
Expand Down

0 comments on commit d9506d6

Please sign in to comment.