Commit 0469cf18 authored by GitLab Release Tools Bot's avatar GitLab Release Tools Bot

Merge branch 'security-fix-to-not-export-pipeline-triggers' into 'master'

Disable exporting pipeline triggers on project export

See merge request gitlab-org/security/gitlab!1752
parents ff898cae 4195b918
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
%li= _('Job logs and artifacts') %li= _('Job logs and artifacts')
%li= _('Container registry images') %li= _('Container registry images')
%li= _('CI variables') %li= _('CI variables')
%li= _('Pipeline triggers')
%li= _('Webhooks') %li= _('Webhooks')
%li= _('Any encrypted tokens') %li= _('Any encrypted tokens')
- if project.export_status == :finished - if project.export_status == :finished
......
...@@ -135,6 +135,7 @@ The following items are **not** exported: ...@@ -135,6 +135,7 @@ The following items are **not** exported:
- Build traces and artifacts - Build traces and artifacts
- Container registry images - Container registry images
- CI/CD variables - CI/CD variables
- Pipeline triggers
- Webhooks - Webhooks
- Any encrypted tokens - Any encrypted tokens
- Merge Request Approvers - Merge Request Approvers
......
...@@ -88,7 +88,6 @@ tree: ...@@ -88,7 +88,6 @@ tree:
- :external_pull_request - :external_pull_request
- :merge_request - :merge_request
- :auto_devops - :auto_devops
- :triggers
- :pipeline_schedules - :pipeline_schedules
- :container_expiration_policy - :container_expiration_policy
- protected_branches: - protected_branches:
......
...@@ -7579,23 +7579,6 @@ ...@@ -7579,23 +7579,6 @@
} }
} }
], ],
"triggers": [
{
"id": 123,
"token": "cdbfasdf44a5958c83654733449e585",
"project_id": 5,
"owner_id": 1,
"created_at": "2017-01-16T15:25:28.637Z",
"updated_at": "2017-01-16T15:25:28.637Z"
},
{
"id": 456,
"token": "33a66349b5ad01fc00174af87804e40",
"project_id": 5,
"created_at": "2017-01-16T15:25:29.637Z",
"updated_at": "2017-01-16T15:25:29.637Z"
}
],
"pipeline_schedules": [ "pipeline_schedules": [
{ {
"id": 1, "id": 1,
......
{"id":123,"token":"cdbfasdf44a5958c83654733449e585","project_id":5,"owner_id":1,"created_at":"2017-01-16T15:25:28.637Z","updated_at":"2017-01-16T15:25:28.637Z"} {"id":123,"token":"cdbfasdf44a5958c83654733449e585","project_id":5,"owner_id":1,"created_at":"2017-01-16T15:25:28.637Z","updated_at":"2017-01-16T15:25:28.637Z"}
{"id":456,"token":"33a66349b5ad01fc00174af87804e40","project_id":5,"created_at":"2017-01-16T15:25:29.637Z","updated_at":"2017-01-16T15:25:29.637Z"} {"id":456,"token":"33a66349b5ad01fc00174af87804e40","project_id":5,"created_at":"2017-01-16T15:25:29.637Z","updated_at":"2017-01-16T15:25:29.637Z"}
\ No newline at end of file
...@@ -445,8 +445,8 @@ RSpec.describe Gitlab::ImportExport::Project::TreeRestorer do ...@@ -445,8 +445,8 @@ RSpec.describe Gitlab::ImportExport::Project::TreeRestorer do
expect(@project.merge_requests.size).to eq(9) expect(@project.merge_requests.size).to eq(9)
end end
it 'only restores valid triggers' do it 'does not restore triggers' do
expect(@project.triggers.size).to eq(1) expect(@project.triggers.size).to eq(0)
end end
it 'has the correct number of pipelines and statuses' do it 'has the correct number of pipelines and statuses' do
......
...@@ -401,15 +401,6 @@ Ci::Variable: ...@@ -401,15 +401,6 @@ Ci::Variable:
- encrypted_value - encrypted_value
- encrypted_value_salt - encrypted_value_salt
- encrypted_value_iv - encrypted_value_iv
Ci::Trigger:
- id
- token
- project_id
- created_at
- updated_at
- owner_id
- description
- ref
Ci::PipelineSchedule: Ci::PipelineSchedule:
- id - id
- description - description
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment