Commit 2341692c authored by Stan Hu's avatar Stan Hu

Drop Webhooks from project import/export config

Webhook URLs were recently encrypted in the database via
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21645, and as a
result they are no longer exported. When an exported project with
Webhooks is imported, the project import service will fail with
`URI::InvalidURIError: bad URI(is not URI?)` due to a blank URL.
We avoid this by disabling the export/import of Webhooks in
the first place.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53513
parent 420442c5
---
title: Drop Webhooks from project import/export config
merge_request: 24121
author:
type: fixed
...@@ -71,6 +71,7 @@ The following items will NOT be exported: ...@@ -71,6 +71,7 @@ The following items will NOT be exported:
- Build traces and artifacts - Build traces and artifacts
- Container registry images - Container registry images
- CI variables - CI variables
- Webhooks
- Any encrypted tokens - Any encrypted tokens
## Exporting a project and its data ## Exporting a project and its data
......
...@@ -63,7 +63,6 @@ project_tree: ...@@ -63,7 +63,6 @@ project_tree:
- :triggers - :triggers
- :pipeline_schedules - :pipeline_schedules
- :services - :services
- :hooks
- protected_branches: - protected_branches:
- :merge_access_levels - :merge_access_levels
- :push_access_levels - :push_access_levels
...@@ -156,12 +155,6 @@ excluded_attributes: ...@@ -156,12 +155,6 @@ excluded_attributes:
- :reference - :reference
- :reference_html - :reference_html
- :epic_id - :epic_id
hooks:
- :token
- :encrypted_token
- :encrypted_token_iv
- :encrypted_url
- :encrypted_url_iv
runners: runners:
- :token - :token
- :token_encrypted - :token_encrypted
......
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