NOTE This repo is archived. This is still available under the licensing terms, but is not being actively developed or updated any further. Please see DelineaXPM for active projects.
Provides a new resources: dsv_secret, as well as a sample cookbook. This resource allows integration into Thycotic's DSV.
- All platforms supported
- Chef 15+
:read- Retrieves secret from Thycotic's DSV
name- Name of the attributeclient_id- Thycotic DSV Client IDclient_secret- Thycotic DSV Client Secrettenant- Thycotic DSV Tenanttld- Thycotic DSV Top Level Domainsecret_path- The secret path to query for
Retrives a credential the /test/sdk/simple credential from the dsv vault and stores that value in /tmp/dsv-test.txt.
gem_package "dsv-sdk" do
version "0.0.6"
end
dsv_data_bag = data_bag_item("thycotic", "thycotic_dsv")
dsv_secret "dsv-secret" do
client_id dsv_data_bag["thycotic_client_id"]
client_secret dsv_data_bag["thycotic_client_secret"]
tenant dsv_data_bag["thycotic_tenant"]
tld dsv_data_bag["thycotic_tld"]
secret_path dsv_data_bag["thycotic_secret_path"]
end
file "/tmp/dsv-test.txt" do
sensitive true
content lazy { node.run_state["dsv-secret"].to_s }
only_if { node.run_state.key?("dsv-secret") }
end- Install chef workstation
- Create a
databagsfolder containing your testing secrets kitchen convergewill build the resourceskitchen loginwill login to the instance where you can verify that the secret contents have been written to the files.