Sha256: 20a485787b27ce19a7c7dd185be2eac5252c1628e3a002001a386244ddef5ba2
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
Feature: clean unknown clients on key rotation When removing a client from a vault item, chef-vault normally removes the key and then rotates the key. If a client has been deleted in the meantime from the Chef server but not the vault, the rotation will fail due to that client's public key missing. Using the --clean-unknown-clients switch will cause any clients that have been removed to be removed from the vault item's access list as well Scenario: Prune clients when removing a client 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,three' Then the vault item 'test/item' should be encrypted for 'one,two,three' And I delete client 'one' from the Chef server And I remove client 'two' from vault item 'test/item' with the 'clean-unknown-clients' option Then the vault item 'test/item' should be encrypted for 'three' Scenario: Prune clients when rotating keys 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,three' Then the vault item 'test/item' should be encrypted for 'one,two,three' And I delete client 'one' from the Chef server And I rotate the keys for vault item 'test/item' with the 'clean-unknown-clients' option Then the vault item 'test/item' should be encrypted for 'two,three' Scenario: Prune clients when rotating all keys 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,three' Then the vault item 'test/item' should be encrypted for 'one,two,three' And I delete clients 'one,two' from the Chef server And I rotate all keys with the 'clean-unknown-clients' option Then the vault item 'test/item' should be encrypted for 'three'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chef-vault-2.4.0 | features/clean_unknown_clients.feature |