Igor Wiedler
79c14d697e
only create/allocate GitHub CIDR object once
2016-07-05 13:02:00 +02:00
Igor Wiedler
a210cf8661
support nil ip
2016-07-05 12:46:32 +02:00
Igor Wiedler
0d90c21dbd
require netaddr instead of cidr
2016-07-05 12:39:44 +02:00
Igor Wiedler
7e8b65a311
correct test case for GitHub IP check
2016-07-05 12:39:32 +02:00
Igor Wiedler
e6d7607916
safelist github IP range in Rack::Attack
2016-07-05 12:30:10 +02:00
Konstantin Haase
c1de919852
Don't run Rack::Attack for Enterprise. ( #287 )
...
On enterprise, the reverse proxy is not correctly set up, and therefore the client IP address not passed through properly. For that reason, all requests look like they originate from the same client, and if one gets blocked, everyone gets blocked.
2016-07-05 11:46:33 +02:00
Sven Fuchs
09806a5f93
Merge pull request #285 from travis-ci/igor-deprecate-event-notify
...
Add deprecation notice to Event.notify() that writes to log
2016-07-01 17:55:46 +02:00
Igor Wiedler
b5fe8f1884
Add deprecation notice to Event.notify() that writes to log
2016-07-01 17:48:34 +02:00
Igor
b9d65ff30f
Merge pull request #284 from travis-ci/igor-fix-rate-limit
...
no longer test against user agent for github rate-limit, since it is not consistently github-camo
2016-07-01 16:39:02 +02:00
Igor Wiedler
34fbfc2ccf
no longer test against user agent for github rate-limit, since it is not consistently github-camo
2016-07-01 16:27:41 +02:00
Joe Corcoran
bed317b109
Merge pull request #281 from travis-ci/igor-github-rate-limit
...
safelist build status image requests coming from github
2016-06-30 15:31:57 +02:00
Igor Wiedler
0156671fc8
safelist build status image requests coming from github
...
Currently almost all calls against API are being rate limited, including
build status images. This leads to common requesters such as GitHub's
camo proxy to get rate limited and receive a 429 response code.
This patch attempts to allow those requests.
2016-06-29 10:53:27 +02:00
Igor Wiedler
1f56dcc645
replace WHITELIST terminology with SAFELIST
2016-06-29 10:53:27 +02:00
Ana Rosas
14625ff7cb
Merge pull request #282 from travis-ci/ar-add-enabled-for-all-flag
...
Add enable_for_all? condition on restart and cancel endpoints
2016-06-28 12:27:02 -07:00
Ana Rosas
69f0a9d33e
Add enable_for_all? condition
2016-06-28 11:35:47 -07:00
Ana Rosas
0e5aa2fb7a
Merge pull request #280 from travis-ci/ar-improve-feature-flag
...
[feature flag] Check for repository owner instead of current user
2016-06-24 13:32:26 -05:00
Ana Rosas
bfb68bf931
Merge branch 'master' into ar-improve-feature-flag
2016-06-23 17:07:36 -05:00
Ana Rosas
69cc2eef7d
Check for repository owner instead of current user to validate feature flag
2016-06-23 15:15:31 -05:00
Piotr Sarnacki
16a7da54c2
Merge pull request #278 from travis-ci/ps-more-current-build-work
...
More `current_build` work
2016-06-23 10:05:55 +02:00
Piotr Sarnacki
32dd8d9f93
Mark current_build as experimental
2016-06-22 14:19:31 +02:00
Piotr Sarnacki
fcb0e7cde4
Rename current_build_id sort option to current_build
2016-06-22 14:19:31 +02:00
Sven Fuchs
cf5ea374d4
Merge pull request #277 from travis-ci/sf-cleanup-core
...
cleanup core
2016-06-21 15:28:39 +02:00
Sven Fuchs
dc176e0c0e
remove commented callback code
2016-06-21 15:20:24 +02:00
Sven Fuchs
25f74defe5
try fixing updating github oauth scopes
2016-06-21 14:00:04 +02:00
Sven Fuchs
7250656de0
fix event notification
2016-06-21 12:16:43 +02:00
Sven Fuchs
6603990fe4
trigger sync in the auth endpoint, not the user model
2016-06-20 16:59:55 +02:00
Sven Fuchs
da4c7f26e6
fix auth endpoint
2016-06-20 15:04:38 +02:00
Sven Fuchs
060dd8aced
delete github/find_or_create[org|repo|user] services
2016-06-20 11:26:47 +02:00
Sven Fuchs
84ebb6b24e
move tracking github oauth scopes out of the user model, and into Travis::Github::Oauth
2016-06-19 17:33:03 +02:00
Sven Fuchs
734a7b9566
use travis-settings, remove travis/settings
2016-06-19 16:07:06 +02:00
Sven Fuchs
eb78d9df30
remove overwritable_method_definitions
2016-06-19 15:51:41 +02:00
Sven Fuchs
fb0493a33c
delete commitcommand, request approval, branches, and states
2016-06-19 15:46:30 +02:00
Sven Fuchs
04cd5bea24
move travis.rb and travis/config to lib
2016-06-19 15:20:11 +02:00
Sven Fuchs
c6f6dd5f5a
we can now run all specs in one go
2016-06-19 15:15:52 +02:00
Sven Fuchs
0f1e697abd
delete github/services/sync_user and user_mailer, remove action_mailer
2016-06-19 15:04:39 +02:00
Sven Fuchs
a6658fa4d3
get rid of spec_helper_core
2016-06-19 14:35:54 +02:00
Sven Fuchs
a26c188822
move travis/api/serialize/* from core to lib
2016-06-18 18:01:09 +02:00
Sven Fuchs
51c6c8f58f
move api/serializer to api/serialize/serializer
2016-06-18 17:58:36 +02:00
Sven Fuchs
81d8c64e98
rename api/v[0-2] to api/serialize/v[0-2]
2016-06-18 17:52:48 +02:00
Ana Rosas
4e858e3949
Merge pull request #265 from travis-ci/ar-enqueue-cancelling-jobs-builds
...
Enqueue messages for Hub to cancel Jobs/Builds | Modify restart endpoints
2016-06-15 16:22:05 +02:00
Ana Rosas
bf20506e09
Merge branch 'master' into ar-enqueue-cancelling-jobs-builds
2016-06-15 16:15:05 +02:00
Ana Rosas
41c274b222
Remove 'type' from payload
2016-06-15 14:36:59 +02:00
Tyranja
3cfac6a5c1
Merge pull request #267 from travis-ci/rlh-are-remove-core
...
Move the travis-core dependancy into vendor
2016-06-15 13:59:42 +02:00
Sven Fuchs
3508df01a9
fix rake spec task
2016-06-14 19:12:54 +02:00
Sven Fuchs
c0e57cc890
add dependencies from travis-core
2016-06-14 19:10:34 +02:00
Sven Fuchs
4155c8ebcd
remove travis-core dependency from gemspec
2016-06-14 17:45:10 +02:00
Ana Rosas
5949429f75
Enqueue restart message on job/restart v3 endpoint
2016-06-14 17:39:29 +02:00
Ana Rosas
a2d1322b60
Enqueue cancel message on job/cancel v3 endpoint
2016-06-14 17:24:05 +02:00
Ana Rosas
bb7260bc9e
Enqueue restart message on build restart v3 endpoint
2016-06-14 16:46:29 +02:00
Tyranja
91ca0efe03
Fix gemspec AGAIN
2016-06-14 15:31:07 +02:00