)]}'
{"doc/source/developer-notes/V-38500.rst":[{"author":{"_account_id":7307,"name":"Matt Thompson","email":"mattt@defunct.ca","username":"mattt416"},"change_message_id":"9114ec50bd12d0b2ad9bdd0e4320963593c6cf41","unresolved":false,"context_lines":[{"line_number":1,"context_line":"The Ansible tasks will search for accounts in ``/etc/passwd`` that have UID 0"},{"line_number":2,"context_line":"that aren\u0027t the normal root account. If any matching acocunts are found, a"},{"line_number":3,"context_line":"warning is printed to stdout."},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"No action is taken on those accounts as that action may disrupt a production"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7a2fa921_e40e428b","line":2,"updated":"2015-10-08 15:51:25.000000000","message":"Typo: \u0027accounts\u0027","commit_id":"37ea36b719d9098c880c7ac12f19150d5c41838a"},{"author":{"_account_id":14288,"name":"Matthew Thode","display_name":"prometheanfire","email":"mthode@mthode.org","username":"prometheanfire"},"change_message_id":"7884818086825a7b5b571692669c8f352600723c","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"No action is taken on those accounts as that action may disrupt a production"},{"line_number":6,"context_line":"environment.  Deployers are strongly urged to use ``sudo`` for these types of"},{"line_number":7,"context_line":"actions."}],"source_content_type":"text/x-rst","patch_set":1,"id":"7a2fa921_a4ae0ae4","line":7,"updated":"2015-10-08 15:46:07.000000000","message":"Maybe something stronger then a warning being printed.  I think fully erroring out might be good.","commit_id":"37ea36b719d9098c880c7ac12f19150d5c41838a"}],"openstack-ansible-security/tasks/auditd.yml":[{"author":{"_account_id":14288,"name":"Matthew Thode","display_name":"prometheanfire","email":"mthode@mthode.org","username":"prometheanfire"},"change_message_id":"7884818086825a7b5b571692669c8f352600723c","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    - cat2"},{"line_number":93,"context_line":"    - V-38495"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"# Ubuntu 14.04 sets these to 0400 by default, so we will stick with that since"},{"line_number":96,"context_line":"# it exceeds the STIG\u0027s requirements."},{"line_number":97,"context_line":"- name: V-38498 - Audit log files must have mode 0640 or less"},{"line_number":98,"context_line":"  command: find /var/log/audit/ -type f -exec chmod -v 0400 {} \\;"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7a2fa921_04601ea4","line":95,"updated":"2015-10-08 15:46:07.000000000","message":"should this be part of another review?","commit_id":"37ea36b719d9098c880c7ac12f19150d5c41838a"},{"author":{"_account_id":7307,"name":"Matt Thompson","email":"mattt@defunct.ca","username":"mattt416"},"change_message_id":"08f36b7633e9a447e4ca760865cb49bc6998dd4a","unresolved":false,"context_lines":[{"line_number":95,"context_line":"# Ubuntu 14.04 sets these to 0400 by default, so we will stick with that since"},{"line_number":96,"context_line":"# it exceeds the STIG\u0027s requirements."},{"line_number":97,"context_line":"- name: V-38498 - Audit log files must have mode 0640 or less"},{"line_number":98,"context_line":"  command: find /var/log/audit/ -type f -exec chmod -v 0400 {} \\;"},{"line_number":99,"context_line":"  register: v38498_result"},{"line_number":100,"context_line":"  changed_when: \"\u0027changed\u0027 in v38498_result.stdout\""},{"line_number":101,"context_line":"  tags:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7a2fa921_840e6e39","line":98,"updated":"2015-10-08 15:55:42.000000000","message":"Agreed, this looks out of place.  I\u0027d also try to use file module if possible.","commit_id":"37ea36b719d9098c880c7ac12f19150d5c41838a"}],"openstack-ansible-security/tasks/auth.yml":[{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"ed40850cedd0adf521fda63c64377979e6149bea","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    - V-38480"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"- name: Check for default system accounts other than root that aren\u0027t locked (for V-38496)"},{"line_number":61,"context_line":"  shell: \"awk -F: \u0027$1 !~ /^root$/ \u0026\u0026 $2 !~ /^[!*]/ {print $1 \\\":\\\" $2}\u0027 /etc/shadow | wc -l\""},{"line_number":62,"context_line":"  register: v38496_result"},{"line_number":63,"context_line":"  changed_when: v38496_result.stdout !\u003d \u00270\u0027"},{"line_number":64,"context_line":"  tags:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"7a2fa921_b8928e4a","line":61,"updated":"2015-10-09 08:44:04.000000000","message":"maybe preface this line with a comment to explain what shell is doing?","commit_id":"5bf4c1972f716715699928cee318c366c3333a62"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"0db8d130bbf4ad9a3230181a2311586ebb7f4f27","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"- name: V-38496 - Default operating system accounts (other than root) must be locked"},{"line_number":77,"context_line":"  debug:"},{"line_number":78,"context_line":"    msg: \"FAILED: Lock default system user accounts (other than root)\""},{"line_number":79,"context_line":"  when: v38496_result.stdout !\u003d \u00270\u0027"},{"line_number":80,"context_line":"  tags:"},{"line_number":81,"context_line":"    - auth"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"7a2fa921_19713676","line":78,"updated":"2015-10-09 14:25:18.000000000","message":"will the debug message be seen accross all these tasks?\nOr should we set a failed_when? Or using the fail module?","commit_id":"6436314d1162d5ae42214315f111e18054dcf606"}],"tasks/auth.yml":[{"author":{"_account_id":7307,"name":"Matt Thompson","email":"mattt@defunct.ca","username":"mattt416"},"change_message_id":"db58f8654d6915ec8457bf8d22a1221f28d56d0a","unresolved":false,"context_lines":[{"line_number":122,"context_line":"  debug:"},{"line_number":123,"context_line":"    msg: \"FAILED: Another account besides root has UID 0\""},{"line_number":124,"context_line":"  when: v38500_result.stdout !\u003d \u00270\u0027"},{"line_number":125,"context_line":"  failed_when: v38500_result.stdout !\u003d \u00270\u0027"},{"line_number":126,"context_line":"  tags:"},{"line_number":127,"context_line":"    - auth"},{"line_number":128,"context_line":"    - cat2"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7a2fa921_ad0f8a35","line":125,"updated":"2015-10-09 21:27:15.000000000","message":"Could use http://docs.ansible.com/ansible/fail_module.html here instead.","commit_id":"e95a3793cb5f3230bd78fea009c47072c55ae7ec"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"4a724c463160846418714a59f6af18352958317a","unresolved":false,"context_lines":[{"line_number":122,"context_line":"  debug:"},{"line_number":123,"context_line":"    msg: \"FAILED: Another account besides root has UID 0\""},{"line_number":124,"context_line":"  when: v38500_result.stdout !\u003d \u00270\u0027"},{"line_number":125,"context_line":"  failed_when: v38500_result.stdout !\u003d \u00270\u0027"},{"line_number":126,"context_line":"  tags:"},{"line_number":127,"context_line":"    - auth"},{"line_number":128,"context_line":"    - cat2"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7a2fa921_fd09a695","line":125,"in_reply_to":"7a2fa921_ad0f8a35","updated":"2015-10-10 19:17:31.000000000","message":"Patch inbound.","commit_id":"e95a3793cb5f3230bd78fea009c47072c55ae7ec"},{"author":{"_account_id":15313,"name":"Toby Oxborrow","email":"tobyox@cisco.com","username":"toby.oxborrow"},"change_message_id":"1c0fc782c199797ce7c6c82cf723317d0407e0a9","unresolved":false,"context_lines":[{"line_number":110,"context_line":"    - V-38491"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"- name: Check for accounts with UID 0 other than root (for V-38500)"},{"line_number":113,"context_line":"  shell: \"awk -F: \u0027($3 \u003d\u003d 0) {print}\u0027 /etc/passwd | grep -v ^root | wc -l\""},{"line_number":114,"context_line":"  register: v38500_result"},{"line_number":115,"context_line":"  changed_when: v38500_result.stdout !\u003d \u00270\u0027"},{"line_number":116,"context_line":"  tags:"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"7a2fa921_68e7d2ac","line":113,"updated":"2015-10-13 07:44:16.000000000","message":"This only matches users who\u0027s name doesn\u0027t start with \"root\", so users such as \"root2\" will go unnoticed.\n\nHow about:\n\nawk -F: \u0027($1 !\u003d \"root\") \u0026\u0026 ($3 \u003d\u003d 0) {print}\u0027 | wc -l","commit_id":"b9bfe785a32fcc7542f7871bd57f31aa4196e6f7"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"331d6f4a00f17e7d9c90f93c5df4335670193840","unresolved":false,"context_lines":[{"line_number":110,"context_line":"    - V-38491"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"- name: Check for accounts with UID 0 other than root (for V-38500)"},{"line_number":113,"context_line":"  shell: \"awk -F: \u0027($3 \u003d\u003d 0) {print}\u0027 /etc/passwd | grep -v ^root | wc -l\""},{"line_number":114,"context_line":"  register: v38500_result"},{"line_number":115,"context_line":"  changed_when: v38500_result.stdout !\u003d \u00270\u0027"},{"line_number":116,"context_line":"  tags:"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5a2ca52d_140a2dd3","line":113,"in_reply_to":"7a2fa921_68e7d2ac","updated":"2015-10-13 12:37:39.000000000","message":"That works great. Fix coming.","commit_id":"b9bfe785a32fcc7542f7871bd57f31aa4196e6f7"}]}
