Help to recovery chef-validator user with old keys


#1

Hi Chefs,

the users chef-validator and chef-webui disappeared, I have created them
but I am suffering to recover the keys of chef-validator, I need to to it
because I have a lot of system that are configure to deploy system.

Anyone has a tip to do it?

Thanks.

Regards

Eduardo


#2

The validator is stored here on your chef-server /etc/chef/validation.pem

If you want to regenerate it you can do this:

ls -l /etc/chef/validation.pem -rw-r--r-- 1 root root 1676 2011-07-14 11:44 /etc/chef/validation.pem sudo rm /etc/chef/validation.pem
$ sudo /etc/init.d/chef-server restart

  • Restarting chef-server
    ~ Killing pid 10783 with INT
    ~ In 12051
    …done.
    $ ls -l /etc/chef/validation.pem
    -rw------- 1 chef chef 1679 2011-07-14 11:55 /etc/chef/validation.pem

If you are on hosted chef you will need to regenerate it via the webUI.

On Tue, Nov 12, 2013 at 10:36 AM, Eduardo Dias eduardodiasbr@gmail.comwrote:

Hi Chefs,

the users chef-validator and chef-webui disappeared, I have created them
but I am suffering to recover the keys of chef-validator, I need to to it
because I have a lot of system that are configure to deploy system.

Anyone has a tip to do it?

Thanks.

Regards

Eduardo


#3

Have they disappeared or are they only appearing as clients rather than
users, I noticed this with a migration from chef 10 to 11.

if they are still there as clients for an set them as admins.

On 12 November 2013 16:36, Eduardo Dias eduardodiasbr@gmail.com wrote:

Hi Chefs,

the users chef-validator and chef-webui disappeared, I have created them
but I am suffering to recover the keys of chef-validator, I need to to it
because I have a lot of system that are configure to deploy system.

Anyone has a tip to do it?

Thanks.

Regards

Eduardo


#4

Hi Mat and Nic,

I have recreated the chef-validator client, but I am trying to avoid to use
a new validator key because I have many servers that deploys system in chef.
Now I have restarted the server.

Regards,

Eduardo

2013/11/12 Mat Davies ashmere@gmail.com

Have they disappeared or are they only appearing as clients rather than
users, I noticed this with a migration from chef 10 to 11.

if they are still there as clients for an set them as admins.

On 12 November 2013 16:36, Eduardo Dias eduardodiasbr@gmail.com wrote:

Hi Chefs,

the users chef-validator and chef-webui disappeared, I have created them
but I am suffering to recover the keys of chef-validator, I need to to it
because I have a lot of system that are configure to deploy system.

Anyone has a tip to do it?

Thanks.

Regards

Eduardo

Atenciosamente,

Eduardo