Skip to content

Commit

Permalink
Minimal template for first-time 'rails credentials:edit' (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic authored Dec 5, 2024
1 parent b8c9c52 commit d0e8738
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/templates/rails/credentials/credentials.yml.tt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.
secret_key_base: <%= secret_key_base %>

active_record_encryption:
primary_key: <%= SecureRandom.alphanumeric(32) %>
deterministic_key: <%= SecureRandom.alphanumeric(32) %>
key_derivation_salt: <%= SecureRandom.alphanumeric(32) %>

0 comments on commit d0e8738

Please sign in to comment.