)]}'
{"defaults/main.yml":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"32295aa371ee3a6f365dfa6d5baa1d4fc754dcb6","unresolved":false,"context_lines":[{"line_number":80,"context_line":"keystone_credential_key_repository: /etc/keystone/credential-keys"},{"line_number":81,"context_line":"# Any of the following rotation times are valid:"},{"line_number":82,"context_line":"#   reboot, yearly, annually, monthly, weekly, daily, hourly"},{"line_number":83,"context_line":"keystone_credential_rotation: daily"},{"line_number":84,"context_line":"keystone_credential_auto_rotation_script: /opt/keystone-credential-rotate.sh"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"keystone_assignment_driver: sql"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"9a89bdaa_176fa32b","line":83,"updated":"2016-09-07 13:58:13.000000000","message":"Is daily going to be the default? FWIW - the cipher text is never leaked through the API and is always internal to keystone, unlike fernet tokens. This might make it so that rotations don\u0027t need to be as frequent as rotations for fernet tokens.","commit_id":"1d187c3df71f0511c7d1439a88bf371863cc510e"}],"tasks/keystone_credential_create.yml":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"32295aa371ee3a6f365dfa6d5baa1d4fc754dcb6","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"- name: Rotate credential keys for Keystone"},{"line_number":31,"context_line":"  command: \u003e"},{"line_number":32,"context_line":"    {{ keystone_bin }}/keystone-manage credential_rotate"},{"line_number":33,"context_line":"                                       --keystone-user \"{{ keystone_system_user_name }}\""},{"line_number":34,"context_line":"                                       --keystone-group \"{{ keystone_system_group_name }}\""},{"line_number":35,"context_line":"  become: yes"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"9a89bdaa_ea597636","line":32,"updated":"2016-09-07 13:58:13.000000000","message":"Before doing a `credential_rotate`, we must make sure we have encrypted all credentials with the most recent primary key. We do this using `keystone-manage credential_migrate` which is an idempotent operation to re-encrypt all credentials that have been encrypted with stale primary keys.\n\nI have an example of this documented here - \nhttps://gist.github.com/lbragstad/ddfb10f9f9048414d1f781ba006e95d1#encrypted-credential-key-management","commit_id":"1d187c3df71f0511c7d1439a88bf371863cc510e"}],"tasks/keystone_credentials_setup.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8e9d65b12e396e3bb76e5cacbba6a5c193251674","unresolved":false,"context_lines":[{"line_number":21,"context_line":"    group: \"{{ keystone_system_group_name }}\""},{"line_number":22,"context_line":"    owner: \"{{ keystone_system_user_name }}\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"- name: Setup Keystone credentials"},{"line_number":25,"context_line":"  command: \"{{ keystone_bin }}/keystone-manage credential_setup --keystone-user {{ keystone_system_user_name }} --keystone-group {{ keystone_system_group_name }}\""},{"line_number":26,"context_line":"  become: yes"},{"line_number":27,"context_line":"  become_user: \"{{ keystone_system_user_name }}\""}],"source_content_type":"text/x-yaml","patch_set":2,"id":"9a89bdaa_cd6cded2","line":27,"range":{"start_line":24,"start_character":0,"end_line":27,"end_character":48},"updated":"2016-09-07 09:33:47.000000000","message":"What happens when this is run a second time on an existing implementation?\nWhat data is put into the folder?\nDoes this data need to be replicated to the other keystone servers (like the fernet token folder data)?\nWhat happens if this folder\u0027s data is lost?","commit_id":"6ae6e136fd860c64db7f7735efa0765fdff025cd"}],"templates/keystone-credential-rotate.sh.j2":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"fe72c0495bc8379b2e6bca14f3b9fc2f4cce2c91","unresolved":false,"context_lines":[{"line_number":28,"context_line":"                                       --keystone-group \"{{ keystone_system_group_name }}\""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    # Ensure all credentials are encrypted with the newest primary key"},{"line_number":31,"context_line":"    {{ keystone_bin }}/keystone-manage credential_migrate \\"},{"line_number":32,"context_line":"                                       --keystone-user \"{{ keystone_system_user_name }}\" \\"},{"line_number":33,"context_line":"                                       --keystone-group \"{{ keystone_system_group_name }}\""},{"line_number":34,"context_line":""}],"source_content_type":"text/x-jinja2","patch_set":5,"id":"9a89bdaa_b02266a1","line":31,"updated":"2016-09-07 21:48:42.000000000","message":"This might need to be done before credential_rotate. Only because credential rotation will fail if any credential are encrypted with a stale key.\n\nThe order of operations here might not result in a rotation if the `credential_rotate` command fails due to a credential being encrypted with a stale primary key. This might be a bit redundant but we could do something like: \n\n  - ensure all credentials are encrypted with the current primary\n    with keystone-manage credential_migrate\n  - introduce our new primary keys since we can be sure that we aren\u0027t\n    going to remove a necessary primary key (we can assert because we\n    did the migration step above - forcibly migrating every credential)\n  - migrate all credentials to the new primary key again using\n    keystone-manage credential_migrate\n\nOne thing to remember is that once we hit the third step - we\u0027re essentially doing a lazy migration since the credential will be re-encrypted with the new primary key if it is updated.\n\nThat should make it so that when we do credential rotations, we\u0027re sure we are introducing new keys every time, regardless of which credentials are encrypted with certain primary or secondary keys.\n\nThought?","commit_id":"e26b3a7a515a1bc00c9f6ff2b794631e5ee9b3fd"}],"tests/test-keystone-functional.yml":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"fe72c0495bc8379b2e6bca14f3b9fc2f4cce2c91","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    - name: Run tempest"},{"line_number":82,"context_line":"      shell: |"},{"line_number":83,"context_line":"        . {{ tempest_venv_bin }}/activate"},{"line_number":84,"context_line":"        {{ tempest_venv_bin | dirname }}/run_tempest.sh --no-virtual-env ${RUN_TEMPEST_OPTS} \u0027^tempest.api.identity.*\u0027"},{"line_number":85,"context_line":"      environment:"},{"line_number":86,"context_line":"        RUN_TEMPEST_OPTS: \"--serial\""},{"line_number":87,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":5,"id":"9a89bdaa_906d62ce","line":84,"updated":"2016-09-07 21:48:42.000000000","message":"Nice, so the credential tests were the only ones you were missing?!","commit_id":"e26b3a7a515a1bc00c9f6ff2b794631e5ee9b3fd"}]}
