[8.13] [Cloud Security] Fix authorization issue (#183799)

# Backport

This will backport the following commits from `main` to `8.13`:
- [[Cloud Security] Fix authorization
issue](https://github.com/elastic/kibana/pull/183630)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ido
Cohen","email":"90558359+CohenIdo@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-05-16T13:35:50Z","message":"[Cloud
Security] Fix authorization
issue","sha":"4caefbc460335f4fd66428bfb126442f235a2268","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","auto-backport","Team:Cloud
Security","v8.14.0","v8.15.0","v8.13.5"],"number":183630,"url":"https://github.com/elastic/kibana/pull/183630","mergeCommit":{"message":"[Cloud
Security] Fix authorization
issue","sha":"4caefbc460335f4fd66428bfb126442f235a2268"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/183642","number":183642,"state":"OPEN"},{"branch":"main","label":"v8.15.0","labelRegex":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/183630","number":183630,"mergeCommit":{"message":"[Cloud
Security] Fix authorization
issue","sha":"4caefbc460335f4fd66428bfb126442f235a2268"}},{"branch":"8.13","label":"v8.13.5","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Ido Cohen <90558359+CohenIdo@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-05-19 12:45:28 -04:00 committed by GitHub
parent 046f404d53
commit 2465d50af2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ import { savedObjectTypes } from '../../saved_objects';
// Same as the saved-object type for rules defined by Cloud Security Posture
const CLOUD_POSTURE_SAVED_OBJECT_RULE_TYPE = 'csp_rule';
const CLOUD_SECURITY_POSTURE_SETTINGS = 'cloud-security-posture-settings';
export const securityDefaultSavedObjects = [
'exception-list',
@ -18,4 +19,5 @@ export const securityDefaultSavedObjects = [
DATA_VIEW_SAVED_OBJECT_TYPE,
...savedObjectTypes,
CLOUD_POSTURE_SAVED_OBJECT_RULE_TYPE,
CLOUD_SECURITY_POSTURE_SETTINGS,
];