Skip to content

--rotate-keys does nothing if using AWS KMS #145

@hovissimo

Description

@hovissimo

Environment

Provide at least:

  • Ruby Version.
ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux]
  • Symmetric Encryption Version.
hovisb@stage1:/usr/local/sites/HiringThing/current$ symmetric-encryption --version
Symmetric Encryption v4.3.2
OpenSSL v2.1.2
Environment: staging
  • Application/framework names and versions (e.g. Rails, Sinatra, Puma, etc.).
hovisb@stage1:/usr/local/sites/HiringThing/current$ bin/rails --version
Rails 5.2.4.3
  • Full Stack Trace, if an exception is being raised.
    No stack trace. See output from gem CLI in screenshot.

Expected Behavior

After running symmetric-encryption --rotate-keys --rolling-deploy --environments staging --app-name hiringthing I expect to find a new cipher value in my config (config/symmetric-encryption.yml) and a new encrypted data key in my key path (~/.symmetric-encryption)
Other than specifying an environment, this is the exact example at Step 1 here: http://encryption.rocketjob.io/key_rotation.html

Actual Behavior

I get a success message from the tool, but there are no new keys on my filesystem and the config file is not updated.
image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions