summaryrefslogtreecommitdiff
path: root/spec/services/web_hook_service_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42GitLab Bot2022-01-201-9/+130
|
* Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42GitLab Bot2021-10-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42GitLab Bot2021-07-201-13/+0
|
* Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42GitLab Bot2021-06-161-40/+56
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-191-19/+225
|
* Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42Robert Speicher2021-01-201-0/+9
|
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-191-0/+1
|
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-201-0/+10
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-061-10/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-171-11/+0
|
* Use `stub_full_request` to fix spec failure66641-broken-master-real-http-connections-are-disabled-unregistered-requestHeinrich Lee Yu2019-08-271-13/+20
| | | | Also change test URL sequest to .test TLD
* Refactor SystemHookUrlValidator and specsGeorge Koltsov2019-08-021-5/+5
| | | | | | Simplify SystemHookUrlValidator to inherit from PublicUrlValidator Refactor specs to move out shared examples to be used in both system hooks and public url validators.
* Update security/webhooks.md doc page & specsGeorge Koltsov2019-08-021-29/+21
| | | | | | Updating security/webhooks.md to match new behaviour as well as drying up few specs to extract shared examples
* Add outbound requests setting for system hooksGeorge Koltsov2019-08-021-8/+36
| | | | | | | This MR adds new application setting to network section `allow_local_requests_from_system_hooks`. Prior to this change system hooks were allowed to do local network requests by default and we are adding an ability for admins to control it.
* Protect Gitlab::HTTP against DNS rebinding attackDouwe Maan2019-05-301-4/+6
| | | | | | Gitlab::HTTP now resolves the hostname only once, verifies the IP is not blocked, and then uses the same IP to perform the actual request, while passing the original hostname in the `Host` header and SSL SNI field.
* Add frozen_string_literal to spec/servicesfrozen_string_literal_spec_servicesThong Kuah2019-04-121-0/+2
| | | | Probably useful as we often move these files to "new" files.
* Fix WebHookService spec failing in Ruby 2.6Stan Hu2019-02-161-1/+1
| | | | | | | | Ruby 2.6 changed Net::ReadTimeout#message to include the reason for the socket error (https://bugs.ruby-lang.org/issues/14832). However, WebHookService was failing in Ruby 2.6 because it expected Exception#message to match Exception#to_s, which isn't always the case. Fix this by just checking Exception#to_s.
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Catch `RedirectionTooDeep` Exception in webhooksHeinrich Lee Yu2018-10-191-1/+1
|
* Resolve "WebHookService doesn't handle user info with nil passwords"Jan Beckmann2018-06-251-0/+30
|
* Ensure web hook 'blocked URL' errors are stored in as web hook logs and ↵Douwe Maan2018-05-041-1/+1
| | | | properly surfaced to the user
* Merge branch 'fj-15329-services-callbacks-ssrf' into 'security-10-6'Douwe Maan2018-03-211-0/+14
| | | | | Server Side Request Forgery in Services and Web Hooks See merge request gitlab/gitlabhq!2337
* Consistently schedule Sidekiq jobsdm-application-workerDouwe Maan2017-12-051-1/+1
|
* Fix a wrong `X-Gitlab-Event` header when testing webhooks37288-fix-wrong-header-when-testing-webhookRémy Coutable2017-09-071-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher2017-08-151-1/+1
|
* Enable the RSpec/HookArgument cop and auto-correct offensesRobert Speicher2017-08-101-1/+1
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-1/+1
|
* Fix encoding error for WebHook loggingAlexander Randa2017-08-011-0/+17
|
* Merge branch 'log_webhook_timeout' into 'master'Rémy Coutable2017-07-281-1/+1
|\ | | | | | | | | Log web hook execution timeout events See merge request !13134
| * Log web hook execution timeout eventsAlex Lossent2017-07-271-1/+1
| | | | | | | | | | | | | | | | | | If a web hook HTTP request is sent but no response comes within a certain time (10s by default), the hook execution fails and will be retried. This commit makes such timeouts visible in the web hook log, like connection timeouts already are. Also log "no route to host" errors.
* | Use described_class when possibleRémy Coutable2017-07-271-3/+3
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-271-1/+1
|/ | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Wrong data type when testing webhooksAlexander Randa2017-07-201-3/+3
|
* Implement web hooks loggingAlexander Randa2017-05-251-0/+137
* implemented logging of project and system web hooks * implemented UI for user area (project hooks) * implemented UI for admin area (system hooks) * implemented retry of logged webhook * NOT imeplemented log remover