Skip to content

Commit

Permalink
Re-encrypt Creds after setting temp master key
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronskiba committed Jul 4, 2024
1 parent 4fce4b0 commit bef80a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
# generate a default credential file and key
cp config/credentials.yml.postgresql config/credentials.yml.enc
echo $RAILS_MASTER_KEY > config/master.key
EDITOR='echo' bin/rails credentials:edit
# Debug step: Print Rails.application.credentials.db_username
- name: 'Print db_username Credentials'
Expand Down
2 changes: 1 addition & 1 deletion config/credentials.yml.postgresql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ secret_key_base: my_secret_key

# Database credentials
db_username: postgres
db_password:
db_password: db_password

# Devise credentials (used for user password encryption)
secret_key: my_secret_key
Expand Down

0 comments on commit bef80a2

Please sign in to comment.