From a98649b71085bcd21af674a47d6a746336c56a65 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 27 Nov 2019 15:06:45 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/rails.gitlab-ci.yml | 4 +- CHANGELOG-EE.md | 24 +++ CHANGELOG.md | 33 ++-- .../environments/components/environment_item.vue | 5 +- .../javascripts/lib/utils/datetime_utility.js | 140 ++++++++--------- .../stores/mr_widget_store.js | 6 +- app/graphql/resolvers/issues_resolver.rb | 1 + app/models/ci/build.rb | 4 +- app/models/ci/build_need.rb | 1 + app/models/milestone_release.rb | 3 - .../34958-update-timeago-to-the-latest-release.yml | 5 + ...5-create-a-rake-task-to-gather-license-info.yml | 5 + ...merge-dependencies-and-artifacts-with-needs.yml | 5 + changelogs/unreleased/feat-increase-start-in.yml | 5 + .../unreleased/fix-job-log-default-colors.yml | 5 + changelogs/unreleased/issue_34226.yml | 5 + .../security-394-path-traversal-package-bug.yml | 5 + ...0191112090226_add_artifacts_to_ci_build_need.rb | 20 +++ db/schema.rb | 1 + doc/ci/yaml/README.md | 48 +++++- lib/gitlab/ci/ansi2json/parser.rb | 5 +- lib/gitlab/ci/ansi2json/style.rb | 4 +- lib/gitlab/ci/config/entry/job.rb | 2 +- lib/gitlab/ci/config/entry/need.rb | 30 +++- lib/gitlab/ci/config/normalizer.rb | 2 +- locale/gitlab.pot | 3 + package.json | 2 +- spec/frontend/lib/utils/datetime_utility_spec.js | 43 ++--- spec/graphql/resolvers/issues_resolver_spec.rb | 18 ++- .../environments/environment_item_spec.js | 5 +- spec/lib/gitlab/ci/ansi2json/style_spec.rb | 4 + spec/lib/gitlab/ci/config/entry/job_spec.rb | 12 +- spec/lib/gitlab/ci/config/entry/need_spec.rb | 168 ++++++++++++++++++-- spec/lib/gitlab/ci/config/entry/needs_spec.rb | 101 +++++++++++- spec/lib/gitlab/ci/config/normalizer_spec.rb | 10 +- spec/lib/gitlab/ci/yaml_processor_spec.rb | 77 ++++++++- spec/models/ci/build_need_spec.rb | 7 + spec/models/ci/build_spec.rb | 45 +++++- .../ci/create_pipeline_service/needs_spec.rb | 175 +++++++++++++++++++++ yarn.lock | 15 +- 40 files changed, 855 insertions(+), 198 deletions(-) create mode 100644 changelogs/unreleased/34958-update-timeago-to-the-latest-release.yml create mode 100644 changelogs/unreleased/36905-create-a-rake-task-to-gather-license-info.yml create mode 100644 changelogs/unreleased/ci-merge-dependencies-and-artifacts-with-needs.yml create mode 100644 changelogs/unreleased/feat-increase-start-in.yml create mode 100644 changelogs/unreleased/fix-job-log-default-colors.yml create mode 100644 changelogs/unreleased/issue_34226.yml create mode 100644 changelogs/unreleased/security-394-path-traversal-package-bug.yml create mode 100644 db/migrate/20191112090226_add_artifacts_to_ci_build_need.rb create mode 100644 spec/services/ci/create_pipeline_service/needs_spec.rb diff --git a/.gitlab/ci/rails.gitlab-ci.yml b/.gitlab/ci/rails.gitlab-ci.yml index acee30867d9..78645f48b6f 100644 --- a/.gitlab/ci/rails.gitlab-ci.yml +++ b/.gitlab/ci/rails.gitlab-ci.yml @@ -94,11 +94,11 @@ setup-test-env: rspec unit pg9: extends: .rspec-base-pg9 - parallel: 20 + parallel: 24 rspec unit pg9-foss: extends: .rspec-base-pg9-foss - parallel: 20 + parallel: 24 rspec integration pg9: extends: .rspec-base-pg9 diff --git a/CHANGELOG-EE.md b/CHANGELOG-EE.md index b468d266c07..b409dc3df4b 100644 --- a/CHANGELOG-EE.md +++ b/CHANGELOG-EE.md @@ -1,5 +1,17 @@ Please view this file on the master branch, on stable branches it's out of date. +## 12.5.1 + +### Security (6 changes) + +- Protect Jira integration endpoints from guest users. +- Fix private comment Elasticsearch leak on project search scope. +- Filter snippet search results by feature visibility. +- Hide AWS secret on Admin Integration page. +- Fail pull mirror when mirror user is blocked. +- Prevent IDOR when adding users to protected environments. + + ## 12.5.0 ### Security (5 changes) @@ -224,6 +236,18 @@ Please view this file on the master branch, on stable branches it's out of date. - Docs for protected branch code owner approval API. !17132 +## 12.3.7 + +### Security (6 changes) + +- Protect Jira integration endpoints from guest users. +- Fix private comment Elasticsearch leak on project search scope. +- Filter snippet search results by feature visibility. +- Hide AWS secret on Admin Integration page. +- Fail pull mirror when mirror user is blocked. +- Prevent IDOR when adding users to protected environments. + + ## 12.3.4 ### Fixed (2 changes) diff --git a/CHANGELOG.md b/CHANGELOG.md index bea21092b43..f22601325d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,16 +4,19 @@ entry. ## 12.5.1 -### Security (8 changes) +### Security (11 changes) -- Check permissions before showing a forked project's source. +- Do not create todos for approvers without access. !1442 +- Hide commit counts from guest users in Cycle Analytics. - Encrypt application setting tokens. - Update Workhorse and Gitaly to fix a security issue. -- Hide commit counts from guest users in Cycle Analytics. +- Add maven file_name regex validation on incoming files. +- Check permissions before showing a forked project's source. - Limit potential for DNS rebind SSRF in chat notifications. - Ensure are cleaned by ImportExport::AttributeCleaner. - Remove notes regarding Related Branches from Issue activity feeds for guest users. - Escape namespace in label references to prevent XSS. +- Add authorization to using filter vulnerable in Dependency List. ## 12.5.0 @@ -367,21 +370,6 @@ entry. - Change selects from default browser style to custom style. -## 12.4.4 - -### Security (9 changes) - -- Check permissions before showing a forked project's source. -- Encrypt application setting tokens. -- Update Workhorse and Gitaly to fix a security issue. -- Hide commit counts from guest users in Cycle Analytics. -- Limit potential for DNS rebind SSRF in chat notifications. -- Fix 500 error caused by invalid byte sequences in links. -- Ensure are cleaned by ImportExport::AttributeCleaner. -- Remove notes regarding Related Branches from Issue activity feeds for guest users. -- Escape namespace in label references to prevent XSS. - - ## 12.4.3 ### Fixed (2 changes) @@ -752,17 +740,20 @@ entry. ## 12.3.7 -### Security (9 changes) +### Security (12 changes) -- Check permissions before showing a forked project's source. +- Do not create todos for approvers without access. !1442 +- Limit potential for DNS rebind SSRF in chat notifications. - Encrypt application setting tokens. - Update Workhorse and Gitaly to fix a security issue. +- Add maven file_name regex validation on incoming files. - Hide commit counts from guest users in Cycle Analytics. -- Limit potential for DNS rebind SSRF in chat notifications. +- Check permissions before showing a forked project's source. - Fix 500 error caused by invalid byte sequences in links. - Ensure are cleaned by ImportExport::AttributeCleaner. - Remove notes regarding Related Branches from Issue activity feeds for guest users. - Escape namespace in label references to prevent XSS. +- Add authorization to using filter vulnerable in Dependency List. ## 12.3.4 diff --git a/app/assets/javascripts/environments/components/environment_item.vue b/app/assets/javascripts/environments/components/environment_item.vue index dfd4d5474ff..748673f05bb 100644 --- a/app/assets/javascripts/environments/components/environment_item.vue +++ b/app/assets/javascripts/environments/components/environment_item.vue @@ -1,7 +1,7 @@