lib/rails/generators/symmetric_encryption/config/templates/symmetric-encryption.yml in symmetric-encryption-3.8.0 vs lib/rails/generators/symmetric_encryption/config/templates/symmetric-encryption.yml in symmetric-encryption-3.8.1

- old
+ new

@@ -3,15 +3,16 @@ # --- # For the development and test environments the test symmetric encryption keys # can be placed directly in the source code. # And therefore no RSA private key is required -development: &development_defaults - key: 1234567890ABCDEF1234567890ABCDEF - iv: 1234567890ABCDEF - cipher_name: aes-128-cbc - encoding: :base64strict +development: &development_defaults + key: 1234567890ABCDEF1234567890ABCDEF + iv: 1234567890ABCDEF + cipher_name: aes-128-cbc + encoding: :base64strict + always_add_header: true test: <<: *development_defaults release: @@ -24,16 +25,16 @@ # List Symmetric Key files in the order of current / latest first ciphers: - # Filename containing Symmetric Encryption Key encrypted using the # RSA public key derived from the private key above - key_filename: <%= File.join(key_path, "#{app_name}_release.key") %> - iv_filename: <%= File.join(key_path, "#{app_name}_release.iv") %> - cipher_name: aes-256-cbc - # Base64 encode encrypted data without newlines - encoding: :base64strict - version: 1 + key_filename: <%= File.join(key_path, "#{app_name}_release.key") %> + iv_filename: <%= File.join(key_path, "#{app_name}_release.iv") %> + cipher_name: aes-256-cbc + encoding: :base64strict + version: 1 + always_add_header: true production: # Since the key to encrypt and decrypt with must NOT be stored along with the # source code, we only hold a RSA key that is used to unlock the file # containing the actual symmetric encryption key @@ -43,11 +44,11 @@ # List Symmetric Key files in the order of current / latest first ciphers: - # Filename containing Symmetric Encryption Key encrypted using the # RSA public key derived from the private key above - key_filename: <%= File.join(key_path, "#{app_name}_production.key") %> - iv_filename: <%= File.join(key_path, "#{app_name}_production.iv") %> - cipher_name: aes-256-cbc - # Base64 encode encrypted data without newlines - encoding: :base64strict - version: 1 + key_filename: <%= File.join(key_path, "#{app_name}_production.key") %> + iv_filename: <%= File.join(key_path, "#{app_name}_production.iv") %> + cipher_name: aes-256-cbc + encoding: :base64strict + version: 1 + always_add_header: true