| ... | @@ -313,29 +313,25 @@ class ApplicationSetting < ApplicationRecord |
... | @@ -313,29 +313,25 @@ class ApplicationSetting < ApplicationRecord |
|
|
algorithm: 'aes-256-cbc',
|
|
algorithm: 'aes-256-cbc',
|
|
|
insecure_mode: true
|
|
insecure_mode: true
|
|
|
|
|
|
|
|
attr_encrypted :external_auth_client_key,
|
|
private_class_method def self.encryption_options_base_truncated_aes_256_gcm
|
|
|
mode: :per_attribute_iv,
|
|
{
|
|
|
key: Settings.attr_encrypted_db_key_base_truncated,
|
|
|
|
|
algorithm: 'aes-256-gcm',
|
|
|
|
|
encode: true
|
|
|
|
|
|
|
|
|
|
attr_encrypted :external_auth_client_key_pass,
|
|
|
|
|
mode: :per_attribute_iv,
|
|
|
|
|
key: Settings.attr_encrypted_db_key_base_truncated,
|
|
|
|
|
algorithm: 'aes-256-gcm',
|
|
|
|
|
encode: true
|
|
|
|
|
|
|
|
|
|
attr_encrypted :lets_encrypt_private_key,
|
|
|
|
|
mode: :per_attribute_iv,
|
|
mode: :per_attribute_iv,
|
|
|
key: Settings.attr_encrypted_db_key_base_truncated,
|
|
key: Settings.attr_encrypted_db_key_base_truncated,
|
|
|
algorithm: 'aes-256-gcm',
|
|
algorithm: 'aes-256-gcm',
|
|
|
encode: true
|
|
encode: true
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
attr_encrypted :eks_secret_access_key,
|
|
attr_encrypted :external_auth_client_key, encryption_options_base_truncated_aes_256_gcm
|
|
|
mode: :per_attribute_iv,
|
|
attr_encrypted :external_auth_client_key_pass, encryption_options_base_truncated_aes_256_gcm
|
|
|
key: Settings.attr_encrypted_db_key_base_truncated,
|
|
attr_encrypted :lets_encrypt_private_key, encryption_options_base_truncated_aes_256_gcm
|
|
|
algorithm: 'aes-256-gcm',
|
|
attr_encrypted :eks_secret_access_key, encryption_options_base_truncated_aes_256_gcm
|
|
|
encode: true
|
|
attr_encrypted :akismet_api_key, encryption_options_base_truncated_aes_256_gcm
|
|
|
|
attr_encrypted :elasticsearch_aws_secret_access_key, encryption_options_base_truncated_aes_256_gcm
|
|
|
|
attr_encrypted :recaptcha_private_key, encryption_options_base_truncated_aes_256_gcm
|
|
|
|
attr_encrypted :recaptcha_site_key, encryption_options_base_truncated_aes_256_gcm
|
|
|
|
attr_encrypted :slack_app_secret, encryption_options_base_truncated_aes_256_gcm
|
|
|
|
attr_encrypted :slack_app_verification_token, encryption_options_base_truncated_aes_256_gcm
|
|
|
|
|
|
|
|
before_validation :ensure_uuid!
|
|
before_validation :ensure_uuid!
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |