Closed breu closed 10 years ago
Hi @rackerjoe,
In the setup recipe that runs on ha-controller1, we actually save the contents of the key/cert/cacert to node attributes:
https://github.com/rcbops-cookbooks/keystone/blob/master/recipes/setup.rb#L94-L102
These attributes are then used on the node running ha-controller2 to populate the files under /etc/keystone/ssl.
I've just done a test run w/ an ha-controller1/ha-controller2 node (running master cookbooks) and this worked as expected.
I'l ping you later today to see if we can track the cause of the error you encountered.
-Matt
Closing. Can't reproduce.
using ha-controller1 and ha-controller2 roles auth_token fails to verify PKI tokens because the cert used to sign the token is not the same across multiple keystone servers.
After talking to @dolph he says that pki_setup should not be used in production and those wishing to use PKI tokens should get either a legitimately signed certificate from either a corporate/external CA or generate the CA and certs and copy them to the servers by hand.
This block should be removed: https://github.com/rcbops-cookbooks/keystone/blob/master/recipes/keystone-common.rb#L127-L132
and token_format should default to the older UUID format. default["keystone"]["pki"]["enabled"] = true https://github.com/rcbops-cookbooks/keystone/blob/master/attributes/default.rb#L157
We should also document the steps necessary to configure the CA for PKI tokens.