Commit Graph

366 Commits

Author SHA1 Message Date
Bob Van Landuyt 93d56eb2a5 Use better higher threshold settings for storage access in tests
`failure_count_threshold`: We should never need this, but we don't
want to block access in tests because of this.

`failure_wait_time`: Setting it to 0 now allows each storage attempt

`storage_timeout`: Try a bit longer to access storage on CI in case
the slow machines take a bit longer to spin up the process to perfom
the check
2017-08-16 14:15:50 +02:00
Paweł Chojnacki 746f0ec367 Add sidekiq metrics endpoint and add http server to sidekiq 2017-08-07 17:13:02 +00:00
Bob Van Landuyt 3598e60bf2 Add a Circuitbreaker for storage paths 2017-08-04 15:38:48 +02:00
Michael Kozono 7b5a96b53c Fix LDAP documentation and example config 2017-07-31 08:43:27 -07:00
Michael Kozono 26ee3a2802 Mention how to test LDAP connections 2017-07-26 02:43:41 -07:00
Michael Kozono 951bd2a431 Update more examples 2017-07-26 02:43:40 -07:00
Michael Kozono e0fe34778d Copy comment improvements from documentation 2017-07-26 02:43:38 -07:00
Michael Kozono 6dbff9663d Add LDAP config options 2017-07-26 02:43:32 -07:00
Rémy Coutable 0579a89fb9 Merge branch 'authentiq-updates' into 'master'
Added authentiq provider to tests and updated documentation, gem and config file.

See merge request !12952
2017-07-19 12:16:58 +00:00
Alexandros Keramidas 6bd94f20e3 Added authentiq provider to tests and updated documentation, gem and config file. 2017-07-18 00:12:50 +03:00
Sean McGivern 25d241ae97 Merge branch '33949-remove-healthcheck-access-token' into 'master'
Remove the need to use health check token by adding ability to whitelist hosts

Closes #33949

See merge request !12612
2017-07-11 08:51:27 +00:00
Douwe Maan c5e11d0405 Merge branch '34737-authentiq-oauth-feature-spec' into 'master'
Test logging in via the Authentiq OAuth provider in a feature spec

Closes #34737

See merge request !12694
2017-07-07 17:09:58 +00:00
Sean McGivern 5c0d8d59ff Merge branch 'gitaly-mandatory' into 'master'
Remove option to disable Gitaly in Rails

See merge request !12677
2017-07-07 12:30:31 +00:00
Jacob Vosmaer 78089d1153 Remove option to disable Gitaly completely 2017-07-07 12:48:34 +02:00
Timothy Andrew d53690b6e5 Test logging in via the Authentiq OAuth provider in a feature spec.
- The `migration:path-pg` build was previously failing when the Authentiq
  feature spec was enabled by placing Authentiq configuration in the `test`
  section of `gitlab.yml`

- The `migration:path-pg` task checks out an old revision of the
  codebase (`v8.14.10`) and runs a `schema:load`. It then checks out the commit
  under test, and runs `db:migrate`, to verify that migrations run without
  errors.

- The problem here is that `v8.14.10` does not have the Authentiq module
  installed, but is run with the `gitlab.yml` for `master`, which would contain
  the `Authentiq` configuration in the `test` section.

- The solution was to use the `v8.14.10` `gitlab.yml` for the `schema:load`,
  rather than the `gitlab.yml` from master.
2017-07-07 04:54:30 +00:00
Douwe Maan a33fb2132c Merge branch '18000-remember-me-for-oauth-login' into 'master'
Fix `migration:path` build for "Honor the 'Remember me' parameter for OAuth-based login"

Closes #34713

See merge request !12668
2017-07-06 12:59:21 +00:00
Timothy Andrew 89b0c987fc Remove Authentiq from the OAuth login integration tests.
- This is causing autoload-related errors in the `migration:path` builds. We
  need to find a better way of testing this provider.
2017-07-06 06:30:08 +00:00
Timothy Andrew 7c2f5bb48d Fix build for !11963.
- Don't use `request.env['omniauth.params']` if it isn't present.

- Remove the `saml` section from the `gitlab.yml` test section. Some tests
  depend on this section not being initially present, so it can be overridden
  in the test. This MR doesn't add any tests for SAML, so we didn't really need
  this in the first place anyway.

- Clean up the test -> omniauth section of `gitlab.yml`
2017-07-06 06:30:07 +00:00
Timothy Andrew 15dba34c9a Add Omniauth OAuth config to the test section of `gitlab.yml`
- I tried to get this to work by stubbing out portions of the config within the
  test. This didn't work as expected because Devise/Omniauth loaded before the
  stub could run, and the stubbed config was ignored.

- I attempted to fix this by reloading Devise/Omniauth after stubbing the
  config. This successfully got Devise to load the stubbed providers, but failed
  while trying to access a route such as `user_gitlab_omniauth_authorize_path`.

- I spent a while trying to figure this out (even trying
  `Rails.application.reload_routes!`), but nothing seemed to work.

- I settled for adding this config directly to `gitlab.yml` rather than go down
  this path any further.
2017-07-06 06:30:06 +00:00
Sean McGivern 8a3022a698 Revert "Merge branch '18000-remember-me-for-oauth-login' into 'master'"
This reverts merge request !11963
2017-07-05 16:01:40 +00:00
Sean McGivern 6df61942e9 Merge branch '18000-remember-me-for-oauth-login' into 'master'
Honor the "Remember me" parameter for OAuth-based login

Closes #18000

See merge request !11963
2017-07-05 12:41:06 +00:00
Pawel Chojnacki 1eca48819a Merge prometheus unicorn sampler settigns within monitoring settings 2017-07-05 00:51:01 +02:00
Pawel Chojnacki c1b043bdb7 Bring back healthcheck token access to monitoring resources, but mark this as deprecated 2017-07-05 00:46:11 +02:00
Pawel Chojnacki 18521584bd Remove the need to use health check token
in favor of whitelist that will be used to
control the access to monitoring resources
2017-07-05 00:46:11 +02:00
Paweł Chojnacki 26ac691a68 Instrument Unicorn with Ruby exporter 2017-07-04 15:28:34 +00:00
Timothy Andrew 9a0f5bd55b Fix build for !11963.
- Don't use `request.env['omniauth.params']` if it isn't present.

- Remove the `saml` section from the `gitlab.yml` test section. Some tests
  depend on this section not being initially present, so it can be overridden
  in the test. This MR doesn't add any tests for SAML, so we didn't really need
  this in the first place anyway.

- Clean up the test -> omniauth section of `gitlab.yml`
2017-07-03 19:37:37 +00:00
Timothy Andrew a931ead00c Add Omniauth OAuth config to the test section of `gitlab.yml`
- I tried to get this to work by stubbing out portions of the config within the
  test. This didn't work as expected because Devise/Omniauth loaded before the
  stub could run, and the stubbed config was ignored.

- I attempted to fix this by reloading Devise/Omniauth after stubbing the
  config. This successfully got Devise to load the stubbed providers, but failed
  while trying to access a route such as `user_gitlab_omniauth_authorize_path`.

- I spent a while trying to figure this out (even trying
  `Rails.application.reload_routes!`), but nothing seemed to work.

- I settled for adding this config directly to `gitlab.yml` rather than go down
  this path any further.
2017-07-03 16:25:10 +00:00
Jacob Vosmaer 218da88e1a Enable gitaly token auth when testing 2017-06-20 17:42:54 +02:00
Jacob Vosmaer 4f8af50b61 Rubocop and comment fixes 2017-06-20 17:31:49 +02:00
Jacob Vosmaer 76bafc00e6 Pass Gitaly token on Ruby gRPC requests 2017-06-19 11:07:46 +02:00
Robin Bobbitt 469acd190e Sync email address from specified omniauth provider 2017-06-07 11:13:57 -04:00
Sean McGivern 97d6085fb5 Merge branch 'dm-gravatar-username' into 'master'
Add username parameter to gravatar URL

Closes #24472

See merge request !11741
2017-06-01 17:19:17 +00:00
Douwe Maan dcd002a15b Add username parameter to gravatar URL 2017-06-01 10:07:24 -05:00
Jacob Vosmaer 28590e8854 Enable Gitaly by default in GitLab 9.3 2017-05-30 16:09:44 +02:00
Z.J. van de Weg 59ff3af593 Update gitlab.yml with default setting 2017-05-22 21:31:47 +02:00
Zeger-Jan van de Weg 8df3997a92 Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
Sean McGivern faf2ce89cd Merge branch 'mrchrisw-import-shell-timeout' 2017-05-05 14:40:52 +01:00
Chris Wilson 0f1273fa44 Add configurable timeout for git fetch and clone operations
GitLab uses the import_project method in GitLab Shell,
This method uses a timeout for the operation, hardcoded to 800 seconds.
With this MR the timeout is now configurable in the gitlab_shell
settings.
2017-04-27 10:51:35 +10:00
Jakub Jirutka 6cb65c8c34 Make location of gitlab_workhorse_secret configurable
Hard-coding location of configuration files is very bad practice. This
patch applies the same approach as currently used for
gitlab_shell_secret file.
2017-04-19 20:04:31 +02:00
Alejandro Rodríguez d6cc8feb6c Setup and run a Gitaly server for testing if GitalyClient is enabled 2017-04-11 16:00:44 -03:00
Shinya Maeda 36ee487778 Change configuration in gitlab.com as trigger_schedule_worker will perform twice a day 2017-04-06 23:46:58 +09:00
Shinya Maeda c426763c42 Rename ScheduledTrigger to TriggerSchedule. Because table structure changed. 2017-04-06 23:46:58 +09:00
Shinya Maeda 531af92dd3 Add config for worker 2017-04-06 23:46:58 +09:00
Ahmad Sherif 09751c75eb Add support for Gitaly calls over TCP connection
Closes gitaly#166
2017-04-03 18:45:36 +02:00
Rémy Coutable 60c0c0f3d0 Merge branch '29843-project-subgroup-transfer' into 'security'
Use full path for moving directories when changing namespace path

See merge request !2078
2017-03-29 19:16:50 -07:00
Jacob Vosmaer 1904c80f3d Change socket_path to gitaly_address 2017-03-29 14:48:05 +02:00
Jacob Vosmaer 275b7797c1 Add gitaly source installation instructions 2017-03-21 14:55:41 +01:00
Kamil Trzciński 8a7c822dcc Merge branch 'pages-multiple-ips-doc' into 'master'
The GitLab Pages external-http and external-https arguments can be specified multiple times

See merge request !9812
2017-03-16 18:38:55 +00:00
Stan Hu 29c5b31c19 Remove unused satellites config
Note that the old migrations depend on 1_settings.rb, so we can't
quite remove those completely.
2017-03-13 22:16:29 -07:00
Douwe Maan c17f260473 Merge branch 'enable-snippets-by-default' into 'master'
Enable snippets for new projects by default

Closes #28192

See merge request !9857
2017-03-10 15:56:59 +00:00