Skip to content

Commit

Permalink
Store sensitive data in seeds in env
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 committed Jul 13, 2023
1 parent cdf737f commit 3d68e52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

# rubocop:disable Rails/Output
password = 'go3LS4gvPuuSoq2m0B2n'
otp_secret_key = 'THDBCRGPERS75F7IDDLISUDC6N2YYG3V'
password = ENV.fetch('SEED_USER_PASSWORD', SecureRandom.alphanumeric(20))
otp_secret_key = ENV.fetch('SEED_USER_OTP_SECRET', User.otp_random_secret)

organization = Organization.create_or_find_by(name: '100eyes',
upgrade_discount: 10,
Expand Down

0 comments on commit 3d68e52

Please sign in to comment.