popularity question answers views user  
0
Chef Server API Caching

Is there are way to do caching on the Server API side with something like an if-modified-since header. I find myself requesting alot of information from databags, most of which only change a few times a day.

more →
0 288  
0
Storing ssh keys in encrypted data bags

Hello there.

I’m trying to find out information about data bag limits. I’m trying to create an encrypted data bag item to hold an ssh private key, but the error I get from knife almost suggests that the value is too large:

$ knife data bag create my_data_bag ssh_pvt_rsakey —secret-file ~/.chef/my_secret_file Data bag my_data_bag already exists ERROR: JSON::ParserError: 743: unexpected token at ‘{ “id”: “ssh_pvt_rsakey”, “key”: “——-BEGIN RSA PRIVATE KEY——– MIIEoQIBAAKCAQEAo5RCd+X4nMspD/hQ0slerP6xTu+BDworAPkxUHrRrDh8aMjT …

(displays about half of the key, then goes back to os prompt.)

$

Can anybody point me to where I could find info about any data bag limits? Or has anyone been able to store an ssh key in an encrypted data bag item?

Thanks, Daniel

more →
0 82