Credentials returning nil in console
Spent days on this issue but no luck. Any help, please?
EDITOR="atom --wait" rails credentials:edit --environment=development
# aws:
# access_key_id: 123
# secret_access_key: 345
Edited and saved
aws:
access_key_id: hgggtgggg
secret_access_key: ytyyyyuu
Rails.application.credentials.config
=> {:secret_key_base=>"yuyuuuuuu",
:access_token_encryption_key=>"2IApOWCV5q4EINWdolbeiJOBDCujpdPe8iFOuXZy/7M=",
:omniauth=>
{:aws=>{:access_key_id=>"hgggtgggg", :secret_access_key=>"ytyyyyuu"}
}
Rails.application.credentials.secret_key_base
=> "yuyuuuuuu"
Rails.application.credentials[:aws]
=> nil
Rails.application.credentials.dig(:aws, :access_key_id)
=> nil
EDITOR="atom --wait" rails credentials:edit --environment=development
# aws:
# access_key_id: 123
# secret_access_key: 345
Edited and saved
aws:
access_key_id: hgggtgggg
secret_access_key: ytyyyyuu
Rails.application.credentials.config
=> {:secret_key_base=>"yuyuuuuuu",
:access_token_encryption_key=>"2IApOWCV5q4EINWdolbeiJOBDCujpdPe8iFOuXZy/7M=",
:omniauth=>
{:aws=>{:access_key_id=>"hgggtgggg", :secret_access_key=>"ytyyyyuu"}
}
Rails.application.credentials.secret_key_base
=> "yuyuuuuuu"
Rails.application.credentials[:aws]
=> nil
Rails.application.credentials.dig(:aws, :access_key_id)
=> nil
Notifications
You’re not receiving notifications from this thread.