Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.16] [Security Solution] Remove `exceptions_list`, `…
…author` and `license` from Diffable Rule (#196561) (#196903) # Backport This will backport the following commits from `main` to `8.16`: - [[Security Solution] Remove `exceptions_list`, `author` and `license` from Diffable Rule (#196561)](#196561) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Juan Pablo Djeredjian","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T14:50:36Z","message":"[Security Solution] Remove `exceptions_list`, `author` and `license` from Diffable Rule (#196561)\n\nResolves: https://github.com/elastic/kibana/issues/196213\r\n\r\n## Summary\r\n\r\nExcludes the fields `exceptions_list`, `author` and `license` from the\r\n`DiffableRule` definition.\r\n\r\nThis will:\r\n\r\n- prevent them from appearing in the Three Way Diff component\r\n- prevent them from being able to be passed as a value in the `fields`\r\nobject of the `/upgrade/_perform` endpoint to set a specific\r\n`pick_version` for it (NOTE: the current logic already forces\r\n`exceptions_list` to upgrade to the CURRENT version, but removing it\r\nfrom DiffableRule, will completely remove the from the payload schema,\r\nand the endpoint will then throw a validation error if included, rather\r\nthan silently ignoring it)\r\n\r\n## Screenshots\r\n\r\n### Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/aacd0b43-bb29-46d0-990d-c669224c1451)\r\n\r\n\r\n### After\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e568ca7f-03fc-42d6-8879-d3f23558ae9d)\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"716fdb23c7d42c9f7c29525af793ff1594ad67f0","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:prev-minor","v8.16.0"],"title":"[Security Solution] Remove `exceptions_list`, `author` and `license` from Diffable Rule","number":196561,"url":"https://github.com/elastic/kibana/pull/196561","mergeCommit":{"message":"[Security Solution] Remove `exceptions_list`, `author` and `license` from Diffable Rule (#196561)\n\nResolves: https://github.com/elastic/kibana/issues/196213\r\n\r\n## Summary\r\n\r\nExcludes the fields `exceptions_list`, `author` and `license` from the\r\n`DiffableRule` definition.\r\n\r\nThis will:\r\n\r\n- prevent them from appearing in the Three Way Diff component\r\n- prevent them from being able to be passed as a value in the `fields`\r\nobject of the `/upgrade/_perform` endpoint to set a specific\r\n`pick_version` for it (NOTE: the current logic already forces\r\n`exceptions_list` to upgrade to the CURRENT version, but removing it\r\nfrom DiffableRule, will completely remove the from the payload schema,\r\nand the endpoint will then throw a validation error if included, rather\r\nthan silently ignoring it)\r\n\r\n## Screenshots\r\n\r\n### Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/aacd0b43-bb29-46d0-990d-c669224c1451)\r\n\r\n\r\n### After\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e568ca7f-03fc-42d6-8879-d3f23558ae9d)\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"716fdb23c7d42c9f7c29525af793ff1594ad67f0"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196561","number":196561,"mergeCommit":{"message":"[Security Solution] Remove `exceptions_list`, `author` and `license` from Diffable Rule (#196561)\n\nResolves: https://github.com/elastic/kibana/issues/196213\r\n\r\n## Summary\r\n\r\nExcludes the fields `exceptions_list`, `author` and `license` from the\r\n`DiffableRule` definition.\r\n\r\nThis will:\r\n\r\n- prevent them from appearing in the Three Way Diff component\r\n- prevent them from being able to be passed as a value in the `fields`\r\nobject of the `/upgrade/_perform` endpoint to set a specific\r\n`pick_version` for it (NOTE: the current logic already forces\r\n`exceptions_list` to upgrade to the CURRENT version, but removing it\r\nfrom DiffableRule, will completely remove the from the payload schema,\r\nand the endpoint will then throw a validation error if included, rather\r\nthan silently ignoring it)\r\n\r\n## Screenshots\r\n\r\n### Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/aacd0b43-bb29-46d0-990d-c669224c1451)\r\n\r\n\r\n### After\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e568ca7f-03fc-42d6-8879-d3f23558ae9d)\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"716fdb23c7d42c9f7c29525af793ff1594ad67f0"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Juan Pablo Djeredjian <[email protected]>
- Loading branch information