Updated for coming BitBucket IP network changes.
4 files changed, 54 insertions(+), 3 deletions(-)

A => CHANGELOG
M README.rst
M trello_broker/__init__.py
M trello_broker/settings.py
A => CHANGELOG +10 -0
@@ 0,0 1,10 @@ 
+Changes
+-------
+
+0.2
+
+- Update IP addresses of BitBucket outgoing hook servers. See: https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html
+
+0.1
+
+- Initial version

          
M README.rst +1 -1
@@ 2,7 2,7 @@ 
 django-trello-broker
 ====================
 :Info: Django app to integrate BitBucket POST hooks and Trello boards
-:Version: 0.1
+:Version: 0.2
 :Author: Peter Sanchez <peter@netlandish.com> - Netlandish Inc. (http://www.netlandish.com)
 
 Dependencies

          
M trello_broker/__init__.py +1 -1
@@ 1,4 1,4 @@ 
-VERSION = (0, 1, 0, 'beta', 0)
+VERSION = (0, 2, 0, 'beta', 0)
 
 
 # taken from django-registration

          
M trello_broker/settings.py +42 -1
@@ 1,6 1,47 @@ 
 from django.conf import settings
 
 
+# Hard coded for now to avoid external requirement. Will change
+# if the list becomes unmanageable or once we're all moved over to Py3 :)
+
+# https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html
+
+BITBUCKET_IP_ADDRESSES = [
+    '131.103.20.165',  # Remove after 1/10/2016
+    '131.103.20.166',  # Remove after 1/10/2016
+
+    '104.192.143.193', # 104.192.143.192/28
+    '104.192.143.194',
+    '104.192.143.195',
+    '104.192.143.196',
+    '104.192.143.197',
+    '104.192.143.198',
+    '104.192.143.199',
+    '104.192.143.200',
+    '104.192.143.201',
+    '104.192.143.202',
+    '104.192.143.203',
+    '104.192.143.204',
+    '104.192.143.205',
+    '104.192.143.206',
+
+    '104.192.143.209', # 104.192.143.208/28
+    '104.192.143.210',
+    '104.192.143.211',
+    '104.192.143.212',
+    '104.192.143.213',
+    '104.192.143.214',
+    '104.192.143.215',
+    '104.192.143.216',
+    '104.192.143.217',
+    '104.192.143.218',
+    '104.192.143.219',
+    '104.192.143.220',
+    '104.192.143.221',
+    '104.192.143.222',
+]
+
+
 USE_CELERY = getattr(settings, 'TRELLO_BROKER_USE_CELERY', False)
 
 RESTRICT_IPS = getattr(settings, 'TRELLO_BROKER_RESTRICT_IPS', False)

          
@@ 10,5 51,5 @@ RESTRICT_IPS = getattr(settings, 'TRELLO
 BITBUCKET_IPS = getattr(
     settings,
     'TRELLO_BROKER_BITBUCKET_IPS',
-    ['131.103.20.165', '131.103.20.166'],
+    BITBUCKET_IP_ADDRESSES,
 )