Sha256: 0e42956ebc8b8d44625d39cf6f42895c1d261f9274e2fe1d5790a835c49ea758

Contents?: true

Size: 775 Bytes

Versions: 15

Compression:

Stored size: 775 Bytes

Contents

Feature: Wrong private key during decrypt
  https://github.com/Nordstrom/chef-vault/issues/43
  If a vault is encrypted for a node and then the node's private
  key is regenerated, the error that comes back from chef-vault
  should be informative, not a lower-level error from OpenSSL
  like 'OpenSSL::PKey::RSAError: padding check failed'

  Scenario: Regenerate node key and attempt decrypt
    Given a local mode chef repo with nodes 'one,two'
    And I create a vault item 'test/item' containing the JSON '{"foo": "bar"}' encrypted for 'one,two'
    And I regenerate the client key for the node 'one'
    And I try to decrypt the vault item 'test/item' as 'one'
    Then the output should match /is encrypted for you, but your private key failed to decrypt the contents/

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
chef-vault-3.4.0.pre.pre417 features/wrong_private_key.feature
chef-vault-3.3.0 features/wrong_private_key.feature
chef-vault-3.3.0.pre.pre415 features/wrong_private_key.feature
chef-vault-3.3.0.pre.pre416 features/wrong_private_key.feature
chef-vault-3.3.0.pre.pre414 features/wrong_private_key.feature
chef-vault-3.2.0.pre.pre408 features/wrong_private_key.feature
chef-vault-3.2.0.pre.pre407 features/wrong_private_key.feature
chef-vault-3.2.0 features/wrong_private_key.feature
chef-vault-3.1.0 features/wrong_private_key.feature
chef-vault-3.0.3 features/wrong_private_key.feature
chef-vault-3.0.2 features/wrong_private_key.feature
chef-vault-3.0.1 features/wrong_private_key.feature
chef-vault-3.0.0 features/wrong_private_key.feature
chef-vault-3.0.0.rc2 features/wrong_private_key.feature
chef-vault-3.0.0.rc1 features/wrong_private_key.feature