lib/symmetric_encryption/cli.rb in symmetric-encryption-4.1.4 vs lib/symmetric_encryption/cli.rb in symmetric-encryption-4.2.0
- old
+ new
@@ -6,11 +6,11 @@
:decrypt, :random_password, :new_keys, :generate, :environment,
:keystore, :re_encrypt, :version, :output_file_name, :compress,
:environments, :cipher_name, :rolling_deploy, :rotate_keys, :rotate_kek, :prompt, :show_version,
:cleanup_keys, :activate_key, :migrate, :regions
- KEYSTORES = %i[aws heroku environment file].freeze
+ KEYSTORES = %i[aws heroku environment file gcp].freeze
def self.run!(argv)
new(argv).run!
end
@@ -129,10 +129,10 @@
opts.on '-g', '--generate', 'Generate a new configuration file and encryption keys for every environment.' do |config|
@generate = config
end
- opts.on '-s', '--keystore heroku|environment|file|aws', 'Which keystore to use during generation or re-encryption.' do |keystore|
+ opts.on '-s', '--keystore heroku|environment|file|aws|gcp', 'Which keystore to use during generation or re-encryption.' do |keystore|
@keystore = (keystore || 'file').downcase.to_sym
end
opts.on '-B', '--regions [us-east-1,us-east-2,us-west-1,us-west-2]', 'AWS KMS Regions to encrypt data key with.' do |regions|
@regions = regions.to_s.split(',').collect(&:strip) if regions