)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"0d22b3b1fccc4c9c5575754080eace298845ff69","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Ian Cordasco \u003cian.cordasco@rackspace.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-11 12:20:32 -0500"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WIP: Add support for deploying Keystone with Fernet"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I8605e0490a8889d57c6b1b7e03e078fb0da978ab"},{"line_number":10,"context_line":"Closes-bug: 1463569"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"3afb71cf_157333b6","line":7,"updated":"2015-06-11 18:21:50.000000000","message":"and don\u0027t put WIP in commit messages, use Workflow-1!","commit_id":"4f466069db030c173d89214c1c5d195566b0658e"}],"playbooks/defaults/repo_packages/openstack_other.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"0f057a3a5210f01bef63e0ca90a51b3cd9c87f1b","unresolved":false,"context_lines":[{"line_number":42,"context_line":"tempestlib_git_dest: \"/opt/tempest-lib_{{ requirements_git_install_branch | replace(\u0027/\u0027, \u0027_\u0027) }}\""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"## Cryptography"},{"line_number":45,"context_line":"# NOTE(sigmavirus24): Fix this when cryptography 1.0 is released and"},{"line_number":46,"context_line":"# global-requirements.txt allows for it."},{"line_number":47,"context_line":"cryptography_git_repo: https://github.com/pyca/cryptography"},{"line_number":48,"context_line":"cryptography_git_install_branch: 926f8ac4927bdc9977f2d960c7def3f2927d1198  # HEAD of \"master\" as of 16.06.2015"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"fa32b979_268c50d9","line":45,"updated":"2015-06-17 08:46:17.000000000","message":"nit: Should we perhaps be linking the cryptography project github issue link here for tracking purposes? ie: https://github.com/pyca/cryptography/issues/1868","commit_id":"002ae5a9c087bfa1fc4edf8f015e3d8a53b2acd9"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"4abc6ff407ab7bd9e8be6231914f3f47907898c8","unresolved":false,"context_lines":[{"line_number":44,"context_line":"## Cryptography"},{"line_number":45,"context_line":"# NOTE(sigmavirus24): Fix this when cryptography 1.0 is released and"},{"line_number":46,"context_line":"# global-requirements.txt allows for it. See also:"},{"line_number":47,"context_line":"# https://github.com/pyca/cryptography/issues/1868"},{"line_number":48,"context_line":"cryptography_git_repo: https://github.com/pyca/cryptography"},{"line_number":49,"context_line":"cryptography_git_install_branch: 926f8ac4927bdc9977f2d960c7def3f2927d1198  # HEAD of \"master\" as of 16.06.2015"},{"line_number":50,"context_line":"cryptography_git_dest: \"/opt/cryptography_{{ cryptography_git_install_branch | replace(\u0027/\u0027, \u0027_\u0027) }}\""}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_260b97d7","line":47,"updated":"2015-06-18 19:10:51.000000000","message":"alternatively, just run 1 thread of keystone per mod_wsgi process","commit_id":"1f4781a81f8a5c82cb404b195770467d8037ad35"}],"playbooks/roles/os_keystone/defaults/main.yml":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"b21227e24f5fe8b21413fb941a287b786e50b2c5","unresolved":false,"context_lines":[{"line_number":36,"context_line":"keystone_identity_driver: \"keystone.identity.backends.sql.Identity\""},{"line_number":37,"context_line":"# For a sql backed token storage use: \"keystone.token.backends.sql.Token\""},{"line_number":38,"context_line":"keystone_token_driver: \"keystone.token.persistence.backends.memcache.Token\""},{"line_number":39,"context_line":"keystone_token_provider: \"keystone.token.providers.uuid.Provider\""},{"line_number":40,"context_line":"keystone_token_expiration: 43200"},{"line_number":41,"context_line":"keystone_token_cache_time: 3600"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":18,"id":"fa32b979_812b3833","line":39,"updated":"2015-06-19 21:07:50.000000000","message":"Can this be changed to use fernet by default? IE `keystone.token.providers.fernet.Provider`","commit_id":"685c62c531a3f40db7c3f27bcd073953d048492b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"74813bcd4853ff77a930a08c03af5bea9a7dfa69","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"## Fernet config vars"},{"line_number":49,"context_line":"keystone_fernet_tokens_key_repository: \"/etc/keystone/fernet-keys\""},{"line_number":50,"context_line":"keystone_fernet_tokens_max_active_keys: 3"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"keystone_cache_expiration_time: 5400"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":18,"id":"fa32b979_a8e67fae","line":50,"updated":"2015-06-19 09:00:56.000000000","message":"While this is the OpenStack default, I don\u0027t think this value is suitable for production environments. The value should be higher.","commit_id":"685c62c531a3f40db7c3f27bcd073953d048492b"},{"author":{"_account_id":425,"name":"Darren Birkett","email":"darren.birkett@gmail.com","username":"darren-birkett"},"change_message_id":"13f3866bfd6b6b1037f5319016b592588d447978","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"## Fernet config vars"},{"line_number":49,"context_line":"keystone_fernet_tokens_key_repository: \"/etc/keystone/fernet-keys\""},{"line_number":50,"context_line":"keystone_fernet_tokens_max_active_keys: 3"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"keystone_cache_expiration_time: 5400"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":18,"id":"fa32b979_bd223800","line":50,"in_reply_to":"fa32b979_a8e67fae","updated":"2015-06-19 13:01:18.000000000","message":"it\u0027s all tied in to how often you rotate the keys, and how long your token expiration is.  Get this wrong, and you end up prematurely revoking valid tokens for users.\n\n\"It is important to note that it is possible to prematurely revoke a valid token if key rotation happens too often, or the number of  max_active_keys  is set to an integer too low. For example, if you plan to rotate your primary key every 30 minutes and each Keystone token has a lifespan of six hours,  max_active_keys should be set to 12 or more.\"\n\nFrom http://lbragstad.com/?p\u003d133","commit_id":"685c62c531a3f40db7c3f27bcd073953d048492b"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"f39c54af99b8e7054266ec5b45d34f9bf955752a","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"## Fernet config vars"},{"line_number":49,"context_line":"keystone_fernet_tokens_key_repository: \"/etc/keystone/fernet-keys\""},{"line_number":50,"context_line":"keystone_fernet_tokens_max_active_keys: 3"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"keystone_cache_expiration_time: 5400"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":18,"id":"fa32b979_90338bf6","line":50,"in_reply_to":"fa32b979_bd223800","updated":"2015-06-19 17:48:00.000000000","message":"why should it be higher?","commit_id":"685c62c531a3f40db7c3f27bcd073953d048492b"},{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"3190e53dadea9c5fb3226fbee378fa0253d1ee04","unresolved":false,"context_lines":[{"line_number":165,"context_line":"  - libldap2-dev"},{"line_number":166,"context_line":"  - libsasl2-dev"},{"line_number":167,"context_line":"  - libxslt1.1"},{"line_number":168,"context_line":"  - rsync"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"# Common pip packages"},{"line_number":171,"context_line":"keystone_pip_packages:"}],"source_content_type":"text/x-yaml","patch_set":19,"id":"fa32b979_d854d1cb","line":168,"updated":"2015-06-19 23:44:08.000000000","message":"a bit of a nit but you are no longer using this so shouldn\u0027t install it","commit_id":"ecee1fbbbe567ef56135d0cee41377cfbbdc327e"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"7ee5135f01dda1a6854dd7257475202a6e43124c","unresolved":false,"context_lines":[{"line_number":165,"context_line":"  - libldap2-dev"},{"line_number":166,"context_line":"  - libsasl2-dev"},{"line_number":167,"context_line":"  - libxslt1.1"},{"line_number":168,"context_line":"  - rsync"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"# Common pip packages"},{"line_number":171,"context_line":"keystone_pip_packages:"}],"source_content_type":"text/x-yaml","patch_set":19,"id":"fa32b979_8bc80a76","line":168,"in_reply_to":"fa32b979_50b631dd","updated":"2015-06-22 14:32:40.000000000","message":"+1 the synchronize module does require rsysnc.","commit_id":"ecee1fbbbe567ef56135d0cee41377cfbbdc327e"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"1848a5e6b9dc90e34571991f03435ef6a06a27da","unresolved":false,"context_lines":[{"line_number":165,"context_line":"  - libldap2-dev"},{"line_number":166,"context_line":"  - libsasl2-dev"},{"line_number":167,"context_line":"  - libxslt1.1"},{"line_number":168,"context_line":"  - rsync"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"# Common pip packages"},{"line_number":171,"context_line":"keystone_pip_packages:"}],"source_content_type":"text/x-yaml","patch_set":19,"id":"fa32b979_50b631dd","line":168,"in_reply_to":"fa32b979_d854d1cb","updated":"2015-06-22 14:18:55.000000000","message":"The synchronize module requires it if I remember correctly and that\u0027s how we copy the keys between keystone containers.","commit_id":"ecee1fbbbe567ef56135d0cee41377cfbbdc327e"}],"playbooks/roles/os_keystone/tasks/keystone_fernet.yml":[{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"4abc6ff407ab7bd9e8be6231914f3f47907898c8","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    inventory_hostname !\u003d groups[\u0027keystone_all\u0027][0] and"},{"line_number":27,"context_line":"    inventory_hostname in groups[\u0027keystone_all\u0027]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"- include: keystone_fernet_cleanup.yml"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_86238355","line":29,"updated":"2015-06-18 19:10:51.000000000","message":"nice","commit_id":"1f4781a81f8a5c82cb404b195770467d8037ad35"}],"playbooks/roles/os_keystone/tasks/keystone_fernet_keys_create.yml":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"a38fab1501bdb09621e683d8ca0361f32df1ed49","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Create fernet keys for Keystone"},{"line_number":17,"context_line":"  command: keystone-manage fernet_setup"},{"line_number":18,"context_line":"  sudo: yes"},{"line_number":19,"context_line":"  sudo_user: \"{{ keystone_system_user_name }}\""},{"line_number":20,"context_line":"  tags:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3afb71cf_de0e373a","line":17,"updated":"2015-06-10 03:55:33.000000000","message":"The `keystone-manage fernet_setup` command requires the addition of the \"--keystone-user\" and \"--keystone-group\" flags.\n\nI\u0027d image that the command could be run like this which will ensure proper permissions as the keys are created and nothing is assumed as to what users/groups are used.\n\n# keystone-manage fernet_setup --keystone-user \"{{ keystone_system_user_name }}\" --keystone-group \"{{ keystone_system_group_name }}\"","commit_id":"540b9b3d87eeda8555a9b20c98f4cf703752cb5c"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"4abc6ff407ab7bd9e8be6231914f3f47907898c8","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Check if fernet keys already exist"},{"line_number":17,"context_line":"  stat:"},{"line_number":18,"context_line":"    path: \"{{ keystone_fernet_tokens_key_repository }}/0\""},{"line_number":19,"context_line":"  register: _fernet_keys"},{"line_number":20,"context_line":"  tags:"},{"line_number":21,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_46c7bb63","line":18,"updated":"2015-06-18 19:10:51.000000000","message":"++","commit_id":"1f4781a81f8a5c82cb404b195770467d8037ad35"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"4abc6ff407ab7bd9e8be6231914f3f47907898c8","unresolved":false,"context_lines":[{"line_number":24,"context_line":"  command: keystone-manage fernet_setup --keystone-user \"{{ keystone_system_user_name }}\" --keystone-group \"{{ keystone_system_group_name }}\""},{"line_number":25,"context_line":"  sudo: yes"},{"line_number":26,"context_line":"  sudo_user: \"{{ keystone_system_user_name }}\""},{"line_number":27,"context_line":"  when: not _fernet_keys.stat.exists"},{"line_number":28,"context_line":"  tags:"},{"line_number":29,"context_line":"    - keystone-setup"},{"line_number":30,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_46c33b38","line":27,"updated":"2015-06-18 19:10:51.000000000","message":"++","commit_id":"1f4781a81f8a5c82cb404b195770467d8037ad35"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"4abc6ff407ab7bd9e8be6231914f3f47907898c8","unresolved":false,"context_lines":[{"line_number":33,"context_line":"  command: keystone-manage fernet_rotate --keystone-user \"{{ keystone_system_user_name }}\" --keystone-group \"{{ keystone_system_group_name }}\""},{"line_number":34,"context_line":"  sudo: yes"},{"line_number":35,"context_line":"  sudo_user: \"{{ keystone_system_user_name }}\""},{"line_number":36,"context_line":"  when: _fernet_keys.stat.exists"},{"line_number":37,"context_line":"  tags:"},{"line_number":38,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_86cdc367","line":36,"updated":"2015-06-18 19:10:51.000000000","message":"++","commit_id":"1f4781a81f8a5c82cb404b195770467d8037ad35"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"74813bcd4853ff77a930a08c03af5bea9a7dfa69","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    - keystone-setup"},{"line_number":30,"context_line":"    - keystone-fernet"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"- name: Rotate fernet keys for Keystone"},{"line_number":33,"context_line":"  command: keystone-manage fernet_rotate --keystone-user \"{{ keystone_system_user_name }}\" --keystone-group \"{{ keystone_system_group_name }}\""},{"line_number":34,"context_line":"  sudo: yes"},{"line_number":35,"context_line":"  sudo_user: \"{{ keystone_system_user_name }}\""}],"source_content_type":"text/x-yaml","patch_set":18,"id":"fa32b979_68dab7eb","line":32,"updated":"2015-06-19 09:00:56.000000000","message":"So the rotation happens whenever the play/role is executed. My understanding is that the rotation should happen regularly, which is not the case here.","commit_id":"685c62c531a3f40db7c3f27bcd073953d048492b"},{"author":{"_account_id":425,"name":"Darren Birkett","email":"darren.birkett@gmail.com","username":"darren-birkett"},"change_message_id":"13f3866bfd6b6b1037f5319016b592588d447978","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    - keystone-setup"},{"line_number":30,"context_line":"    - keystone-fernet"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"- name: Rotate fernet keys for Keystone"},{"line_number":33,"context_line":"  command: keystone-manage fernet_rotate --keystone-user \"{{ keystone_system_user_name }}\" --keystone-group \"{{ keystone_system_group_name }}\""},{"line_number":34,"context_line":"  sudo: yes"},{"line_number":35,"context_line":"  sudo_user: \"{{ keystone_system_user_name }}\""}],"source_content_type":"text/x-yaml","patch_set":18,"id":"fa32b979_dd813cc5","line":32,"in_reply_to":"fa32b979_68dab7eb","updated":"2015-06-19 13:01:18.000000000","message":"This probably needs to be set up in a cron job, along with the distribution of the rotated key repository.","commit_id":"685c62c531a3f40db7c3f27bcd073953d048492b"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"f39c54af99b8e7054266ec5b45d34f9bf955752a","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    - keystone-setup"},{"line_number":30,"context_line":"    - keystone-fernet"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"- name: Rotate fernet keys for Keystone"},{"line_number":33,"context_line":"  command: keystone-manage fernet_rotate --keystone-user \"{{ keystone_system_user_name }}\" --keystone-group \"{{ keystone_system_group_name }}\""},{"line_number":34,"context_line":"  sudo: yes"},{"line_number":35,"context_line":"  sudo_user: \"{{ keystone_system_user_name }}\""}],"source_content_type":"text/x-yaml","patch_set":18,"id":"fa32b979_70784790","line":32,"in_reply_to":"fa32b979_dd813cc5","updated":"2015-06-19 17:48:00.000000000","message":"agree, but i don\u0027t think that needs to be done in this patchset.","commit_id":"685c62c531a3f40db7c3f27bcd073953d048492b"}],"playbooks/roles/os_keystone/tasks/keystone_fernet_keys_distribute.yml":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"a38fab1501bdb09621e683d8ca0361f32df1ed49","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    - keystone-setup"},{"line_number":25,"context_line":"    - keystone-fernet"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"- name: Uncompress the fernet keys"},{"line_number":28,"context_line":"  command: tar xf fernet-keys.tar chdir\u003d/etc/keystone/fernet-keys"},{"line_number":29,"context_line":"  tags:"},{"line_number":30,"context_line":"    - keystone-setup"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3afb71cf_9ec67f66","line":27,"updated":"2015-06-10 03:55:33.000000000","message":"I\u0027d like to see this task use the dictionary syntax IE:\n\n- name: Uncompress the fernet keys\n  command: tar xf fernet-keys.tar\n  args:\n    chdir: \"/etc/keystone/fernet-keys\"\n  tags:\n    - keystone-setup\n    - keystone-fernet","commit_id":"540b9b3d87eeda8555a9b20c98f4cf703752cb5c"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"a38fab1501bdb09621e683d8ca0361f32df1ed49","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    - keystone-setup"},{"line_number":31,"context_line":"    - keystone-fernet"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- name: Delete the compressed fernet keys information"},{"line_number":34,"context_line":"  command: rm -f fernet-keys.tar chdir\u003d/etc/keystone/fernet-keys"},{"line_number":35,"context_line":"  tags:"},{"line_number":36,"context_line":"    - keystone-setup"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3afb71cf_7ec3c357","line":33,"updated":"2015-06-10 03:55:33.000000000","message":"This task can be replaced with the use of the ansible file module.\n\n- name: Delete the compressed fernet keys information\n  file:\n    path: \"/etc/keystone/fernet-keys/fernet-keys.tar\"\n    state: \"absent\"\n  tags:\n    - keystone-setup\n    - keystone-fernet","commit_id":"540b9b3d87eeda8555a9b20c98f4cf703752cb5c"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"c35552e8bf2e4b31257cfb7576c78d2b49ddcd6a","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Uncompress the fernet keys"},{"line_number":17,"context_line":"  unarchive:"},{"line_number":18,"context_line":"    src: /tmp/fernet-keys.tar"},{"line_number":19,"context_line":"    dest: \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":20,"context_line":"    copy: yes"},{"line_number":21,"context_line":"  tags:"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3afb71cf_9a4ab226","line":18,"updated":"2015-06-11 18:21:17.000000000","message":"this should be cleaned up from the ansible host afterwords -- even if there\u0027s only one keystone_all host (in which case, you fetch them, but never run this play, so the cleanup doesn\u0027t belong here)","commit_id":"4f466069db030c173d89214c1c5d195566b0658e"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"4abc6ff407ab7bd9e8be6231914f3f47907898c8","unresolved":false,"context_lines":[{"line_number":17,"context_line":"  synchronize:"},{"line_number":18,"context_line":"    src: \"/tmp/{{ keystone_fernet_tokens_key_repository|basename }}\""},{"line_number":19,"context_line":"    dest: \"{{ keystone_fernet_tokens_key_repository|dirname }}\""},{"line_number":20,"context_line":"    recursive: yes"},{"line_number":21,"context_line":"  tags:"},{"line_number":22,"context_line":"    - keystone-setup"},{"line_number":23,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_c633cb60","line":20,"updated":"2015-06-18 19:10:51.000000000","message":"delete: yes ? otherwise, this looks like you\u0027ll only be adding keys to secondary nodes","commit_id":"1f4781a81f8a5c82cb404b195770467d8037ad35"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"d110d83518ccddc1502306e0bee4b64947b93155","unresolved":false,"context_lines":[{"line_number":17,"context_line":"  synchronize:"},{"line_number":18,"context_line":"    src: \"/tmp/{{ keystone_fernet_tokens_key_repository|basename }}\""},{"line_number":19,"context_line":"    dest: \"{{ keystone_fernet_tokens_key_repository|dirname }}\""},{"line_number":20,"context_line":"    recursive: yes"},{"line_number":21,"context_line":"  tags:"},{"line_number":22,"context_line":"    - keystone-setup"},{"line_number":23,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_010bdd24","line":20,"in_reply_to":"fa32b979_c633cb60","updated":"2015-06-18 19:20:19.000000000","message":"+1 for cleaning up the sync\u0027d keys.","commit_id":"1f4781a81f8a5c82cb404b195770467d8037ad35"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"8a45e8596f7fef703fd1bffa6ffdc0c10fa9b619","unresolved":false,"context_lines":[{"line_number":17,"context_line":"  synchronize:"},{"line_number":18,"context_line":"    src: \"/tmp/{{ keystone_fernet_tokens_key_repository|basename }}\""},{"line_number":19,"context_line":"    dest: \"{{ keystone_fernet_tokens_key_repository|dirname }}\""},{"line_number":20,"context_line":"    recursive: yes"},{"line_number":21,"context_line":"  tags:"},{"line_number":22,"context_line":"    - keystone-setup"},{"line_number":23,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_410b25d6","line":20,"in_reply_to":"fa32b979_c633cb60","updated":"2015-06-18 19:27:27.000000000","message":"Done","commit_id":"1f4781a81f8a5c82cb404b195770467d8037ad35"}],"playbooks/roles/os_keystone/tasks/keystone_fernet_keys_fetch.yml":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"a38fab1501bdb09621e683d8ca0361f32df1ed49","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Generate a tar of the fernet keys directory"},{"line_number":17,"context_line":"  command: tar cf /root/fernet-keys.tar * chdir\u003d/etc/keystone/fernet-keys"},{"line_number":18,"context_line":"  tags:"},{"line_number":19,"context_line":"    - keystone-setup"},{"line_number":20,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3afb71cf_5ed5a719","line":17,"updated":"2015-06-10 03:55:33.000000000","message":"I\u0027d like to see this bit using the dictionary syntax IE:\n\n- name: Generate a tar of the fernet keys directory\n  command: tar cf /root/fernet-keys.tar *\n  args:\n    chdir: \"/etc/keystone/fernet-keys\"\n  tags:\n    - keystone-setup\n    - keystone-fernet","commit_id":"540b9b3d87eeda8555a9b20c98f4cf703752cb5c"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"c35552e8bf2e4b31257cfb7576c78d2b49ddcd6a","unresolved":false,"context_lines":[{"line_number":16,"context_line":"- name: Generate a tar of the fernet keys directory"},{"line_number":17,"context_line":"  command: tar cf /root/fernet-keys.tar *"},{"line_number":18,"context_line":"  args:"},{"line_number":19,"context_line":"    chdir: \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":20,"context_line":"  tags:"},{"line_number":21,"context_line":"    - keystone-setup"},{"line_number":22,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3afb71cf_9a0bd22b","line":19,"updated":"2015-06-11 18:21:17.000000000","message":"as mentioned in another file, it\u0027d be better if this tar\u0027d up the directory itself rather than it\u0027s contents to avoid a race in a live system","commit_id":"4f466069db030c173d89214c1c5d195566b0658e"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"20559d4364b39ed9e25a36d21e8c004fbbbd27f4","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Generate a tar of the fernet keys directory"},{"line_number":17,"context_line":"  command: tar cf /root/fernet-keys.tar \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":18,"context_line":"  tags:"},{"line_number":19,"context_line":"    - keystone-setup"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"fa32b979_a92c0c4b","line":16,"updated":"2015-06-15 16:07:50.000000000","message":"It\u0027s probably better to make use of the synchronise module here, with mode\u003d\u0027pull\u0027 and \u0027delegate_to: source-server\u0027.\nhttp://docs.ansible.com/synchronize_module.html","commit_id":"1568e1fcf293ee6731fbe7bda4c087f0601c77ae"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"0f057a3a5210f01bef63e0ca90a51b3cd9c87f1b","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Fetch the fernet key repository"},{"line_number":17,"context_line":"  synchronize:"},{"line_number":18,"context_line":"    src: \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":19,"context_line":"    dest: /tmp/"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"fa32b979_e62d08a9","line":16,"updated":"2015-06-17 08:46:17.000000000","message":"Do we really need to pull the keys to the deployment host, copy them from there, then remove them? Can\u0027s we just synchronise them directly from groups[\u0027keystone_all\u0027][0] to all other keystone containers using delegation to the host? Also, it would seem that the keys are fetched, synchronised and then removed on every play/role execution. This isn\u0027t great, although that\u0027s hardly a fatal issue.","commit_id":"002ae5a9c087bfa1fc4edf8f015e3d8a53b2acd9"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"64b9c6d1fc11e8ad2f8b92a03d4ab9c7a8369bd6","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Fetch the fernet key repository"},{"line_number":17,"context_line":"  synchronize:"},{"line_number":18,"context_line":"    src: \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":19,"context_line":"    dest: /tmp/"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"fa32b979_02332615","line":16,"in_reply_to":"fa32b979_e62d08a9","updated":"2015-06-17 14:29:41.000000000","message":"We cannot synchronize from keystone container to keystone container. Each container doesn\u0027t have its own ssh key (or at least doesn\u0027t by this point in time) so it can\u0027t ssh to the other containers with the information. I\u0027m also not sure what delegation to the host would look like.\n\n\u003e Also, it would seem that the keys are fetched, synchronised and then removed on every play/role execution.\n\nI didn\u0027t notice that, but I wasn\u0027t watching the output very closely.","commit_id":"002ae5a9c087bfa1fc4edf8f015e3d8a53b2acd9"}],"playbooks/roles/os_keystone/tasks/keystone_post_install.yml":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"a38fab1501bdb09621e683d8ca0361f32df1ed49","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    owner: \"{{ keystone_system_user_name }}\""},{"line_number":35,"context_line":"    group: \"{{ keystone_system_group_name }}\""},{"line_number":36,"context_line":"    mode: \"{{ item.mode|default(\u00270644\u0027) }}\""},{"line_number":37,"context_line":"  with_items:"},{"line_number":38,"context_line":"    - { src: \"keystone-paste.ini\", dest: \"/etc/keystone/keystone-paste.ini\" }"},{"line_number":39,"context_line":"    - { src: \"keystone-wsgi.py\", dest: \"/var/www/cgi-bin/keystone/admin\", mode: \"0755\" }"},{"line_number":40,"context_line":"    - { src: \"keystone-wsgi.py\", dest: \"/var/www/cgi-bin/keystone/main\", mode: \"0755\" }"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3afb71cf_fee9f3b7","line":37,"updated":"2015-06-10 03:55:33.000000000","message":"The keystone-paste.ini is being dropped here. Why is it being copied to the local box too on line 61.","commit_id":"540b9b3d87eeda8555a9b20c98f4cf703752cb5c"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"a38fab1501bdb09621e683d8ca0361f32df1ed49","unresolved":false,"context_lines":[{"line_number":58,"context_line":"  tags:"},{"line_number":59,"context_line":"    - keystone-config"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"- name: Fetch keystone fernet-keys directory"},{"line_number":62,"context_line":"  copy:"},{"line_number":63,"context_line":"    src: \"{{ item.src }}\""},{"line_number":64,"context_line":"    dest: \"{{ item.dest }}\""}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3afb71cf_bef7fb89","line":61,"updated":"2015-06-10 03:55:33.000000000","message":"Why is the keystone-paste.ini being copied from the local box ?","commit_id":"540b9b3d87eeda8555a9b20c98f4cf703752cb5c"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"4abc6ff407ab7bd9e8be6231914f3f47907898c8","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    - Restart Apache"},{"line_number":58,"context_line":"  tags:"},{"line_number":59,"context_line":"    - keystone-config"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":16,"id":"fa32b979_267f17e1","side":"PARENT","line":60,"updated":"2015-06-18 19:10:51.000000000","message":"remove?","commit_id":"86b6e8e6409f76c46551becdac783a76bb853980"}],"playbooks/roles/os_keystone/tasks/keystone_pre_install.yml":[{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"c35552e8bf2e4b31257cfb7576c78d2b49ddcd6a","unresolved":false,"context_lines":[{"line_number":50,"context_line":"  tags:"},{"line_number":51,"context_line":"    - keystone-dirs"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"- name: Remove old key file(s) if found"},{"line_number":54,"context_line":"  file:"},{"line_number":55,"context_line":"    path: \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":56,"context_line":"    state: \"absent\""}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3afb71cf_da394af4","line":53,"updated":"2015-06-11 18:21:17.000000000","message":"not that it\u0027s necessary here, but just leaving food for thought: this can\u0027t be done in a live system due the the race between dropping new keys and keystone loading them, so it\u0027d be best to atomically replace the key dir itself rather than it\u0027s contents.","commit_id":"4f466069db030c173d89214c1c5d195566b0658e"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"0f057a3a5210f01bef63e0ca90a51b3cd9c87f1b","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- name: Remove old key file(s) if found"},{"line_number":54,"context_line":"  file:"},{"line_number":55,"context_line":"    path: \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":56,"context_line":"    state: \"absent\""},{"line_number":57,"context_line":"  tags:"},{"line_number":58,"context_line":"    - keystone-setup"},{"line_number":59,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"fa32b979_493ac7cd","line":56,"updated":"2015-06-17 08:46:17.000000000","message":"Won\u0027t this result in the key files being regenerated every single time the playbook/role is executed? I should think that we need to only do this when the appropriate directory and files don\u0027t exist in the keystone container.","commit_id":"002ae5a9c087bfa1fc4edf8f015e3d8a53b2acd9"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"aa81d7154de446d4fc3e79eedabfb4ed828b2052","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- name: Remove old key file(s) if found"},{"line_number":54,"context_line":"  file:"},{"line_number":55,"context_line":"    path: \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":56,"context_line":"    state: \"absent\""},{"line_number":57,"context_line":"  tags:"},{"line_number":58,"context_line":"    - keystone-setup"},{"line_number":59,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"fa32b979_419b3e66","line":56,"in_reply_to":"fa32b979_3d1bef74","updated":"2015-06-18 11:34:54.000000000","message":"Yes, I think it would be better to implement ssh keys (using the same mechanism as nova) for the keystone containers to enable direct folder synchronisation from keystone[0] to the other keystone containers. This will definitely be cleaner.\nI also don\u0027t think that the existing keys should be removed as it will cause existing auth tokens to fail. Instead the keys should be properly rotated using \u0027keystone-manage fernet_rotate\u0027.\nThe rotation should be done on a schedule, so I guess it should be done with cron? See http://lbragstad.com/?p\u003d133 for some info on this. We need to ensure that we use an appropriate max_active_keys value to match our default key expiry time. Perhaps this could be automatically calculated somehow?","commit_id":"002ae5a9c087bfa1fc4edf8f015e3d8a53b2acd9"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"64b9c6d1fc11e8ad2f8b92a03d4ab9c7a8369bd6","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- name: Remove old key file(s) if found"},{"line_number":54,"context_line":"  file:"},{"line_number":55,"context_line":"    path: \"{{ keystone_fernet_tokens_key_repository }}\""},{"line_number":56,"context_line":"    state: \"absent\""},{"line_number":57,"context_line":"  tags:"},{"line_number":58,"context_line":"    - keystone-setup"},{"line_number":59,"context_line":"    - keystone-fernet"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"fa32b979_3d1bef74","line":56,"in_reply_to":"fa32b979_493ac7cd","updated":"2015-06-17 14:29:41.000000000","message":"Kevin wants key rotation of the fernet keys similar to how nova the nova playbooks currently implement key rotation.\n\nWhile I was talking to Dolph about the cryptography bug on Monday night, however, he mentioned that generating the keys with `keystone-manage fernet_setup` should rotate the keys for us so this might not be necessary.","commit_id":"002ae5a9c087bfa1fc4edf8f015e3d8a53b2acd9"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"6249e078838df7a8c65a2f45afe332fc53ff2494","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    path: \"{{ item.path }}\""},{"line_number":64,"context_line":"    state: directory"},{"line_number":65,"context_line":"    owner: \"{{ item.owner|default(keystone_system_user_name) }}\""},{"line_number":66,"context_line":"    group: \"{{ item.group|default(keystone_system_group_name) }}\""},{"line_number":67,"context_line":"  with_items:"},{"line_number":68,"context_line":"    - { path: \"{{ keystone_fernet_tokens_key_repository }}\" }"},{"line_number":69,"context_line":"  when: \u003e"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"fa32b979_38469a4f","line":66,"updated":"2015-06-17 15:33:13.000000000","message":"Need to add the proper mode here so Keystone does not log warnings about the directory being world readable.","commit_id":"002ae5a9c087bfa1fc4edf8f015e3d8a53b2acd9"}]}
