From 47579e24f3f9f29d5b8093f54e6958fefd7f2057 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 27 May 2020 21:08:05 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- CHANGELOG-EE.md | 27 ++ GITLAB_WORKHORSE_VERSION | 2 +- .../javascripts/clusters/clusters_bundle.js | 16 - app/assets/javascripts/issue.js | 6 +- .../components/duplicate_dashboard_form.vue | 3 +- .../pipelines/pipeline_details_bundle.js | 7 +- app/assets/javascripts/profile/profile.js | 4 +- .../releases/components/asset_links_form.vue | 8 +- .../page_bundles/_ide_theme_overrides.scss | 326 +++++++++++------- .../page_bundles/ide_themes/README.md | 14 +- .../admin/application_settings_controller.rb | 8 +- .../concerns/membership_actions.rb | 12 +- .../oauth/authorizations_controller.rb | 11 + .../projects/deploy_keys_controller.rb | 8 +- app/models/notification_setting.rb | 8 + app/models/user.rb | 30 +- app/services/clusters/update_service.rb | 6 + .../admin/application_settings/_eks.html.haml | 2 +- .../clusters/_provider_details_form.html.haml | 14 +- app/views/profiles/_email_settings.html.haml | 2 +- .../notifications/_email_settings.html.haml | 2 +- .../notifications/_group_settings.html.haml | 2 +- app/views/projects/deploy_keys/edit.html.haml | 4 +- .../_close_reopen_report_toggle.html.haml | 2 +- .../personal_access_tokens/expiring_worker.rb | 4 +- ...piry-is-notifying-a-for-impersonation-.yml | 5 + .../unreleased/docs-firefox-u2f-api.yml | 5 + .../nfriend-fix-release-button-alignment.yml | 5 + config/locales/doorkeeper.en.yml | 1 + ..._to_personal_access_token_impersonation.rb | 26 ++ db/structure.sql | 3 + .../operations/fast_ssh_key_lookup.md | 2 +- doc/api/projects.md | 2 +- doc/development/documentation/styleguide.md | 64 ++-- doc/public_access/public_access.md | 2 + doc/user/group/index.md | 5 +- .../account/two_factor_authentication.md | 4 +- .../project/issues/issue_data_and_actions.md | 6 + doc/user/project/quick_actions.md | 1 + doc/user/project/status_page/index.md | 7 +- lib/api/group_import.rb | 17 +- lib/api/projects.rb | 2 + lib/api/repositories.rb | 4 + lib/gitlab/bitbucket_import/importer.rb | 2 +- lib/gitlab/gl_repository.rb | 17 +- lib/gitlab/gl_repository/identifier.rb | 74 ++++ lib/gitlab/gl_repository/repo_type.rb | 27 +- lib/gitlab/static_site_editor/config.rb | 6 +- lib/gitlab/url_sanitizer.rb | 9 +- locale/gitlab.pot | 24 +- .../application_settings_controller_spec.rb | 40 +++ .../oauth/authorizations_controller_spec.rb | 102 +++--- .../profiles/notifications_controller_spec.rb | 4 +- .../projects/deploy_keys_controller_spec.rb | 38 +- spec/factories/users.rb | 4 + spec/features/groups/clusters/user_spec.rb | 2 +- .../features/oauth_provider_authorize_spec.rb | 21 ++ spec/features/projects/clusters/user_spec.rb | 2 +- .../frontend/clusters/clusters_bundle_spec.js | 22 -- .../static/issue_with_mermaid_graph.html | 82 +++++ spec/frontend/issue_spec.js | 27 ++ .../duplicate_dashboard_form_spec.js | 36 +- .../gitlab/bitbucket_import/importer_spec.rb | 5 +- .../gitlab/gl_repository/identifier_spec.rb | 102 ++++++ .../gitlab/gl_repository/repo_type_spec.rb | 22 +- spec/lib/gitlab/gl_repository_spec.rb | 7 +- .../gitlab/static_site_editor/config_spec.rb | 18 + spec/lib/gitlab/url_sanitizer_spec.rb | 24 ++ spec/models/group_spec.rb | 5 + spec/models/notification_setting_spec.rb | 27 ++ spec/models/personal_access_token_spec.rb | 9 + spec/models/user_spec.rb | 167 ++++++++- .../alerts/create_alert_issue_spec.rb | 74 ++++ spec/requests/api/group_import_spec.rb | 33 +- .../api/notification_settings_spec.rb | 2 +- spec/requests/api/projects_spec.rb | 11 + spec/requests/api/repositories_spec.rb | 6 + spec/requests/openid_connect_spec.rb | 13 +- .../profiles/notifications_controller_spec.rb | 4 +- spec/services/clusters/update_service_spec.rb | 33 ++ spec/services/notification_service_spec.rb | 4 + ...re_oauth_authorizations_shared_examples.rb | 19 + .../lib/gitlab/repo_type_shared_examples.rb | 20 -- .../mailers/notify_shared_examples.rb | 1 + .../uncached_response_shared_examples.rb | 12 + .../_eks.html.haml_spec.rb | 34 ++ .../expiring_worker_spec.rb | 22 +- spec/workers/post_receive_spec.rb | 2 +- 88 files changed, 1474 insertions(+), 430 deletions(-) create mode 100644 changelogs/unreleased/216103-personal-access-token-pat-expiry-is-notifying-a-for-impersonation-.yml create mode 100644 changelogs/unreleased/docs-firefox-u2f-api.yml create mode 100644 changelogs/unreleased/nfriend-fix-release-button-alignment.yml create mode 100644 db/migrate/20200518091745_add_index_to_personal_access_token_impersonation.rb create mode 100644 lib/gitlab/gl_repository/identifier.rb create mode 100644 spec/features/oauth_provider_authorize_spec.rb create mode 100644 spec/frontend/fixtures/static/issue_with_mermaid_graph.html create mode 100644 spec/lib/gitlab/gl_repository/identifier_spec.rb create mode 100644 spec/requests/api/graphql/mutations/alert_management/alerts/create_alert_issue_spec.rb create mode 100644 spec/support/shared_examples/features/secure_oauth_authorizations_shared_examples.rb create mode 100644 spec/support/shared_examples/uncached_response_shared_examples.rb create mode 100644 spec/views/admin/application_settings/_eks.html.haml_spec.rb diff --git a/CHANGELOG-EE.md b/CHANGELOG-EE.md index 401f4008a5f..547da1cff1e 100644 --- a/CHANGELOG-EE.md +++ b/CHANGELOG-EE.md @@ -1,5 +1,14 @@ Please view this file on the master branch, on stable branches it's out of date. +## 13.0.1 (2020-05-27) + +### Security (3 changes) + +- Change the mirror user along with pull mirror settings. +- Allow only users with a verified email to be member of a group when the group has restricted membership based on email domain. +- Do not auto-confirm email in Trial registration. + + ## 13.0.0 (2020-05-22) ### Security (1 change) @@ -326,6 +335,15 @@ Please view this file on the master branch, on stable branches it's out of date. - Translate unauthenticated user string for Audit Event. !31856 (Sashi Kumar) +## 12.10.7 (2020-05-27) + +### Security (3 changes) + +- Change the mirror user along with pull mirror settings. +- Allow only users with a verified email to be member of a group when the group has restricted membership based on email domain. +- Do not auto-confirm email in Trial registration. + + ## 12.10.6 (2020-05-15) - No changes. @@ -400,6 +418,15 @@ Please view this file on the master branch, on stable branches it's out of date. - Add health status counts to usage data. !28964 +## 12.9.8 (2020-05-27) + +### Security (3 changes) + +- Change the mirror user along with pull mirror settings. +- Allow only users with a verified email to be member of a group when the group has restricted membership based on email domain. +- Do not auto-confirm email in Trial registration. + + ## 12.9.6 (2020-05-05) - No changes. diff --git a/GITLAB_WORKHORSE_VERSION b/GITLAB_WORKHORSE_VERSION index 9a717a55ed1..4a4f12812c7 100644 --- a/GITLAB_WORKHORSE_VERSION +++ b/GITLAB_WORKHORSE_VERSION @@ -1 +1 @@ -8.32.0 +8.32.1 diff --git a/app/assets/javascripts/clusters/clusters_bundle.js b/app/assets/javascripts/clusters/clusters_bundle.js index 3699a3b8b2b..d8bfbdb458c 100644 --- a/app/assets/javascripts/clusters/clusters_bundle.js +++ b/app/assets/javascripts/clusters/clusters_bundle.js @@ -108,7 +108,6 @@ export default class Clusters { }); this.installApplication = this.installApplication.bind(this); - this.showToken = this.showToken.bind(this); this.errorContainer = document.querySelector('.js-cluster-error'); this.successContainer = document.querySelector('.js-cluster-success'); @@ -119,7 +118,6 @@ export default class Clusters { ); this.errorReasonContainer = this.errorContainer.querySelector('.js-error-reason'); this.successApplicationContainer = document.querySelector('.js-cluster-application-notice'); - this.showTokenButton = document.querySelector('.js-show-cluster-token'); this.tokenField = document.querySelector('.js-cluster-token'); this.ingressDomainHelpText = document.querySelector('.js-ingress-domain-help-text'); this.ingressDomainSnippet = @@ -258,7 +256,6 @@ export default class Clusters { } addListeners() { - if (this.showTokenButton) this.showTokenButton.addEventListener('click', this.showToken); eventHub.$on('installApplication', this.installApplication); eventHub.$on('updateApplication', data => this.updateApplication(data)); eventHub.$on('saveKnativeDomain', data => this.saveKnativeDomain(data)); @@ -275,7 +272,6 @@ export default class Clusters { } removeListeners() { - if (this.showTokenButton) this.showTokenButton.removeEventListener('click', this.showToken); eventHub.$off('installApplication', this.installApplication); eventHub.$off('updateApplication', this.updateApplication); eventHub.$off('saveKnativeDomain'); @@ -344,18 +340,6 @@ export default class Clusters { } } - showToken() { - const type = this.tokenField.getAttribute('type'); - - if (type === 'password') { - this.tokenField.setAttribute('type', 'text'); - this.showTokenButton.textContent = s__('ClusterIntegration|Hide'); - } else { - this.tokenField.setAttribute('type', 'password'); - this.showTokenButton.textContent = s__('ClusterIntegration|Show'); - } - } - hideAll() { this.errorContainer.classList.add('hidden'); this.successContainer.classList.add('hidden'); diff --git a/app/assets/javascripts/issue.js b/app/assets/javascripts/issue.js index d567f34fa9d..4167b938148 100644 --- a/app/assets/javascripts/issue.js +++ b/app/assets/javascripts/issue.js @@ -119,7 +119,11 @@ export default class Issue { } else { this.disableCloseReopenButton($button); - const url = $button.attr('href'); + const url = $button.data('close-reopen-url'); + if (!url) { + return; + } + return axios .put(url) .then(({ data }) => { diff --git a/app/assets/javascripts/monitoring/components/duplicate_dashboard_form.vue b/app/assets/javascripts/monitoring/components/duplicate_dashboard_form.vue index 58eb8a9df8e..001cd0d47f1 100644 --- a/app/assets/javascripts/monitoring/components/duplicate_dashboard_form.vue +++ b/app/assets/javascripts/monitoring/components/duplicate_dashboard_form.vue @@ -1,6 +1,7 @@