Skip to content

Commit

Permalink
chore: migrate from rails secrets to rails credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
adi-herwana-nus committed Sep 16, 2024
1 parent 96f3778 commit ba64801
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ playwright/.cache/
coverage/

dump.rdb

/config/credentials/*.key
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ class Application < Rails::Application
config.x.default_user_time_zone = 'Singapore'
config.x.public_download_folder = 'downloads'
config.x.temp_folder = config.root.join('tmp')

p({ env: Rails.env, secret_key_base: Rails.application.secret_key_base})
end
end
1 change: 1 addition & 0 deletions config/credentials/development.yml.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cpFVpuK16dpiu5+pMhjCp2acLOuK/s3flbhMx6vRG+wXLfoGt+RyNkdO1wXI8s/S9MPWpz0OYDLKOx+WlYfp/11z4pl59DbO4dMGVvpHOJxvRRGmcIvmNgAOFUUDOESFzBYu+WIdbGQqUthuJXzBb7CiNtOxhFiXu6uvnH3qfVZBXjFBpqjO/5Us2irVG7NJNOpMp9Dkh4PEye4d4kS1BjppcVe9wwMI1qZBZggW0VOBATisrAQGwJnoQY4eH7dNw6NfkoEKC4LpVH74xhrtL/tNYmNRmiQ2gvb/y0P0MGDBsdP+vakhGmS1ZDbAxwnMXUMhPQhEmFAphUuX2t9imSty/G2pKiaQA5ltAgpxwJbhT8MFyH8ZlBN+07NrJClYxLZMcujMToJjbyNNl3E2FRZRcLRIYCydVXCyyO0+oBSGIxJDbl7gYlbVd0U+6r4NtxNCmHU8m68IlESmXoomtFqAO+BYO4Xuutj/QavX1s7wDR7HBTpRK8vBDIDV1953kWoAj4Ck/3fgQjAAu7px47rlIN8S38ZoJXb8j5ShRLAwwQ46ZoIngzM=--De0M4cyIsF6pIvXU--2DxvDZDez7Q9AZcNkJFCzQ==
1 change: 1 addition & 0 deletions config/credentials/production.yml.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MXk5f8JYOC/87JGkhBbLrC7dOaZpo9FG/ZnjgTAkj4kysNI0/QkJs+P6HwUKWFOclSEgmchSkhlZoc7faWe55tHxzUXZA1cuWkfHtakbcHoMPll+imJNNRt2GkFyIVp6j4/WWcpyCZbpYGc7Yq1tzIXOxSWPpDXxNbaIIwvw5dsPyzydO3ACVuaoKYu9n7B8Q0HNCePGN5w=--QizJ3r93+f3SGTwL--9BI1T2f2lAJp5KfW939UgA==
1 change: 1 addition & 0 deletions config/credentials/staging.yml.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fvn1FPdAVmQktmAJOt22/eIq2JYMAkRGF+gEFHbn+y8IXq67--+jQ4CleTOdt+41q5--kHU/yazfeXcDbHiDFMmmpw==
1 change: 1 addition & 0 deletions config/credentials/test.yml.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Os8x0dJeIe65MOnAk0gFzYpdoRmLUPm5FtE3EyWuf1HZuOXqEGvSSvRmGyHkSynTBJ1dcR1zOKr0WY0lCJr++Q23Vrx1mqTnoA+p3aqdjE26x+vdvyAYAJ2OAgPARSeiO4I8h0rbTVkSpJMTjiBoHMj3ehKTkexr3sYnnjM/5CST6ytwSJhV4uWMuc1JPkTFlBI2FCO8EQ==--VLikj22h5LPwB5hI--lo1VepV16EWRIhkByrtyhw==
22 changes: 0 additions & 22 deletions config/secrets.yml

This file was deleted.

0 comments on commit ba64801

Please sign in to comment.