)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"84d7d59c7b5b00d9002d815699cd02e4f2ef0d42","unresolved":false,"context_lines":[{"line_number":10,"context_line":"arbitrary locations, especially in the context of adding secrets to a"},{"line_number":11,"context_line":"container. Given that we are now checking secret_refs against the"},{"line_number":12,"context_line":"configured hostname of the Barbican instance, this is no longer"},{"line_number":13,"context_line":"possible."},{"line_number":14,"context_line":"Closes-Bug: 1423282"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Ife1d66f234050e3150a879e76142b68f8f72a524"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a80dd14_18b60dda","line":13,"updated":"2015-03-04 21:39:23.000000000","message":"Technically we were just ignoring the host name part of the passed up secret hrefs, just string the UUID of the secret and using that for operations. We did want to validate all the things though, hence the need for this work. I\u0027m trying to downplay this as a security bug/vulnerability.","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"}],"barbican/common/validators.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"84d7d59c7b5b00d9002d815699cd02e4f2ef0d42","unresolved":false,"context_lines":[{"line_number":602,"context_line":"        secret_refs_names \u003d set(secret_ref.get(\u0027name\u0027, \u0027\u0027)"},{"line_number":603,"context_line":"                                for secret_ref in secret_refs)"},{"line_number":604,"context_line":""},{"line_number":605,"context_line":"# Ensure that our secret refs are valid relative to our config, no"},{"line_number":606,"context_line":"# spoofing allowed!"},{"line_number":607,"context_line":"        configured_host_href \u003d CONF.host_href"},{"line_number":608,"context_line":"        for secret_ref in secret_refs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_58da4579","line":605,"updated":"2015-03-04 21:39:23.000000000","message":"I think this entire block of new code should move down to below #635, as I think duplicate secret names or secret UUIDs are more possible failures than the wrong host name...just deferring this processing to a bit later down the line then.","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"7a0b633cb6d4bae7f74411cff0f7166c228056ae","unresolved":false,"context_lines":[{"line_number":602,"context_line":"        secret_refs_names \u003d set(secret_ref.get(\u0027name\u0027, \u0027\u0027)"},{"line_number":603,"context_line":"                                for secret_ref in secret_refs)"},{"line_number":604,"context_line":""},{"line_number":605,"context_line":"# Ensure that our secret refs are valid relative to our config, no"},{"line_number":606,"context_line":"# spoofing allowed!"},{"line_number":607,"context_line":"        configured_host_href \u003d CONF.host_href"},{"line_number":608,"context_line":"        for secret_ref in secret_refs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_ac794695","line":605,"in_reply_to":"9a80dd14_58da4579","updated":"2015-03-04 21:59:56.000000000","message":"comments should start in same column as the code","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"84d7d59c7b5b00d9002d815699cd02e4f2ef0d42","unresolved":false,"context_lines":[{"line_number":603,"context_line":"                                for secret_ref in secret_refs)"},{"line_number":604,"context_line":""},{"line_number":605,"context_line":"# Ensure that our secret refs are valid relative to our config, no"},{"line_number":606,"context_line":"# spoofing allowed!"},{"line_number":607,"context_line":"        configured_host_href \u003d CONF.host_href"},{"line_number":608,"context_line":"        for secret_ref in secret_refs:"},{"line_number":609,"context_line":"            if configured_host_href not in secret_ref:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_d8d55544","line":606,"updated":"2015-03-04 21:39:23.000000000","message":"These first two comment lines (#605 and 606) should move over 4 spaces.","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"84d7d59c7b5b00d9002d815699cd02e4f2ef0d42","unresolved":false,"context_lines":[{"line_number":607,"context_line":"        configured_host_href \u003d CONF.host_href"},{"line_number":608,"context_line":"        for secret_ref in secret_refs:"},{"line_number":609,"context_line":"            if configured_host_href not in secret_ref:"},{"line_number":610,"context_line":"# Houston, we have a problem!"},{"line_number":611,"context_line":"                raise exception.SecretRefValidationErrorException(field\u003d\u0027secret_ref\u0027,"},{"line_number":612,"context_line":"                schema\u003dschema_name,"},{"line_number":613,"context_line":"                reason\u003du._(\"Secret ref does\""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_38af51e5","line":610,"updated":"2015-03-04 21:39:23.000000000","message":"Yeah, as fun as this one is, probably better to get rid of line #610. :)","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"7a0b633cb6d4bae7f74411cff0f7166c228056ae","unresolved":false,"context_lines":[{"line_number":610,"context_line":"# Houston, we have a problem!"},{"line_number":611,"context_line":"                raise exception.SecretRefValidationErrorException(field\u003d\u0027secret_ref\u0027,"},{"line_number":612,"context_line":"                schema\u003dschema_name,"},{"line_number":613,"context_line":"                reason\u003du._(\"Secret ref does\""},{"line_number":614,"context_line":"                \"not match the\""},{"line_number":615,"context_line":"                \"configured hostname, please\""},{"line_number":616,"context_line":"                \"try again\""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_cca59a05","line":613,"updated":"2015-03-04 21:59:56.000000000","message":"need space between \"does and the final closing quote\n\nalso I think there should be underscore between secret and ref.","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"84d7d59c7b5b00d9002d815699cd02e4f2ef0d42","unresolved":false,"context_lines":[{"line_number":611,"context_line":"                raise exception.SecretRefValidationErrorException(field\u003d\u0027secret_ref\u0027,"},{"line_number":612,"context_line":"                schema\u003dschema_name,"},{"line_number":613,"context_line":"                reason\u003du._(\"Secret ref does\""},{"line_number":614,"context_line":"                \"not match the\""},{"line_number":615,"context_line":"                \"configured hostname, please\""},{"line_number":616,"context_line":"                \"try again\""},{"line_number":617,"context_line":"                ))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_5848852d","line":614,"updated":"2015-03-04 21:39:23.000000000","message":"Please add 4 spaces to lines #614, 615 and 616.","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"7a0b633cb6d4bae7f74411cff0f7166c228056ae","unresolved":false,"context_lines":[{"line_number":611,"context_line":"                raise exception.SecretRefValidationErrorException(field\u003d\u0027secret_ref\u0027,"},{"line_number":612,"context_line":"                schema\u003dschema_name,"},{"line_number":613,"context_line":"                reason\u003du._(\"Secret ref does\""},{"line_number":614,"context_line":"                \"not match the\""},{"line_number":615,"context_line":"                \"configured hostname, please\""},{"line_number":616,"context_line":"                \"try again\""},{"line_number":617,"context_line":"                ))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_0cafb2e4","line":614,"in_reply_to":"9a80dd14_5848852d","updated":"2015-03-04 21:59:56.000000000","message":"need space between \"the\" and the closing quote","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"7a0b633cb6d4bae7f74411cff0f7166c228056ae","unresolved":false,"context_lines":[{"line_number":612,"context_line":"                schema\u003dschema_name,"},{"line_number":613,"context_line":"                reason\u003du._(\"Secret ref does\""},{"line_number":614,"context_line":"                \"not match the\""},{"line_number":615,"context_line":"                \"configured hostname, please\""},{"line_number":616,"context_line":"                \"try again\""},{"line_number":617,"context_line":"                ))"},{"line_number":618,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_ac878660","line":615,"updated":"2015-03-04 21:59:56.000000000","message":"need space after \"please\" and before the closing quote","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"6bc53a50055b228c9403207876668c940e47770e","unresolved":false,"context_lines":[{"line_number":631,"context_line":"                \"not match the\""},{"line_number":632,"context_line":"                    \"configured hostname, please\""},{"line_number":633,"context_line":"                    \"try again\""},{"line_number":634,"context_line":"                    ))"},{"line_number":635,"context_line":""},{"line_number":636,"context_line":"        if container_type \u003d\u003d \u0027rsa\u0027:"},{"line_number":637,"context_line":"            self._validate_rsa(secret_refs_names, schema_name)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_8ada9576","line":634,"updated":"2015-03-05 05:40:56.000000000","message":"I believe these should be on separate lines and brought back 4 spaces","commit_id":"0fc8ade89648ab17c7c6945700e7824a93541b37"}],"barbican/tests/common/test_validators.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"84d7d59c7b5b00d9002d815699cd02e4f2ef0d42","unresolved":false,"context_lines":[{"line_number":529,"context_line":""},{"line_number":530,"context_line":"        self.assertEqual(\u0027secret_refs\u0027, exception.invalid_property)"},{"line_number":531,"context_line":""},{"line_number":532,"context_line":"    def test_ensure_unconfigured_secret_ref_hostname_cannot_be_passed_in(self):"},{"line_number":533,"context_line":"# Here goes some bogus secret refs."},{"line_number":534,"context_line":"        secret_refs \u003d ["},{"line_number":535,"context_line":"            {"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_f8ddb943","line":532,"updated":"2015-03-04 21:39:23.000000000","message":"So you could add this as the first line of the test, to override the host_ref:\n    validators.CONF.set_override(\u0027host_href\u0027, \u0027http://kegeratorsarecool.com\u0027)","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"84d7d59c7b5b00d9002d815699cd02e4f2ef0d42","unresolved":false,"context_lines":[{"line_number":530,"context_line":"        self.assertEqual(\u0027secret_refs\u0027, exception.invalid_property)"},{"line_number":531,"context_line":""},{"line_number":532,"context_line":"    def test_ensure_unconfigured_secret_ref_hostname_cannot_be_passed_in(self):"},{"line_number":533,"context_line":"# Here goes some bogus secret refs."},{"line_number":534,"context_line":"        secret_refs \u003d ["},{"line_number":535,"context_line":"            {"},{"line_number":536,"context_line":"                  \u0027name\u0027: \u0027super-secret-beer-ingredient\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_d8bf15cf","line":533,"updated":"2015-03-04 21:39:23.000000000","message":"Add 8 spaces to line #533 please.","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"84d7d59c7b5b00d9002d815699cd02e4f2ef0d42","unresolved":false,"context_lines":[{"line_number":549,"context_line":"        exception \u003d self.assertRaises(excep.SecretRefValidationErrorException,"},{"line_number":550,"context_line":"            self.validator.validate,"},{"line_number":551,"context_line":"            container_req,"},{"line_number":552,"context_line":"            )"},{"line_number":553,"context_line":""},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"class WhenTestingRSAContainerValidator(utils.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_58924558","line":552,"updated":"2015-03-04 21:39:23.000000000","message":"Please remove 4 spaces from line #552.","commit_id":"d32758d3d08db18cfdf9d2b6491632674bf73512"}]}
