Skip to content

Warning when using rails credentials:edit #145

@marcqualie

Description

@marcqualie

Ruby version: 3.4.2
Rails version: 8.0.1

This doesn't appear to break anything, but the warning shows every time.

Data is encrypted/decrypted as expected.

File encrypted and saved.
/lib/ruby/gems/3.4.0/gems/activesupport-8.0.1/lib/active_support/ordered_options.rb:54:in 'ActiveSupport::OrderedOptions#method_missing': :validate is blank (KeyError)
  from /lib/ruby/gems/3.4.0/gems/activesupport-8.0.1/lib/active_support/delegation.rb:190:in 'Kernel#public_send'
  from /lib/ruby/gems/3.4.0/gems/activesupport-8.0.1/lib/active_support/delegation.rb:190:in 'Diffcrypt::Rails::EncryptedConfiguration#method_missing'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/commands/credentials/credentials_command.rb:111:in 'Rails::Command::CredentialsCommand#warn_if_credentials_are_invalid'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/commands/credentials/credentials_command.rb:102:in 'block in Rails::Command::CredentialsCommand#change_credentials_in_system_editor'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/command/helpers/editor.rb:33:in 'Rails::Command::Helpers::Editor#using_system_editor'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/commands/credentials/credentials_command.rb:98:in 'Rails::Command::CredentialsCommand#change_credentials_in_system_editor'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/commands/credentials/credentials_command.rb:31:in 'Rails::Command::CredentialsCommand#edit'
  from /lib/ruby/gems/3.4.0/gems/thor-1.3.2/lib/thor/command.rb:28:in 'Thor::Command#run'
  from /lib/ruby/gems/3.4.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in 'Thor::Invocation#invoke_command'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/command/base.rb:178:in 'Rails::Command::Base#invoke_command'
  from /lib/ruby/gems/3.4.0/gems/thor-1.3.2/lib/thor.rb:538:in 'Thor.dispatch'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/command/base.rb:73:in 'Rails::Command::Base.perform'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/command.rb:65:in 'block in Rails::Command.invoke'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/command.rb:143:in 'Rails::Command.with_argv'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/command.rb:63:in 'Rails::Command.invoke'
  from /lib/ruby/gems/3.4.0/gems/railties-8.0.1/lib/rails/commands.rb:18:in '<main>'
  from /lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
  from /lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
  from /lib/ruby/gems/3.4.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in 'Kernel#require'
  from bin/rails:4:in '<main>'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions