Sha256: 478015973f8ced780bad468802d3110d9b23e4334b86fb0e1fd2233bb2be5517

Contents?: true

Size: 1.33 KB

Versions: 15

Compression:

Stored size: 1.33 KB

Contents

Feature: clean client keys
  When updating a vault item, chef-vault normally performs the
  saved or specified query and encrypts the item for all nodes
  returned.  It does not remove old client keys from the vault
  item keys data bag, which will grow over time.  Using the
  --clean switch will cause all client keys to be removed from
  the data bag before encrypting the item for all clients
  returned by the query

  Scenario: Do not clean client keys on update
    Given a local mode chef repo with nodes 'one,two,three'
    And I create a vault item 'test/item' containing the JSON '{"foo": "bar"}' encrypted for 'one,two'
    Then the vault item 'test/item' should be encrypted for 'one,two'
    And I update the vault item 'test/item' to be encrypted for 'two,three'
    Then the vault item 'test/item' should be encrypted for 'one,two,three'

  Scenario: Clean client keys on update
    Given a local mode chef repo with nodes 'one,two,three'
    And I create a vault item 'test/item' containing the JSON '{"foo": "bar"}' encrypted for 'one,two'
    Then the vault item 'test/item' should be encrypted for 'one,two'
    And I update the vault item 'test/item' to be encrypted for 'two,three' with the clean option
    Then the vault item 'test/item' should be encrypted for 'two,three'
    And the vault item 'test/item' should not be encrypted for 'one'

Version data entries

15 entries across 15 versions & 1 rubygems

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