-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cloud Security]Update package name #131137
Conversation
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
|
||
export const AGENT_LOGS_INDEX_PATTERN = '.logs-cis_kubernetes_benchmark.metadata*'; | ||
export const AGENT_LOGS_INDEX_PATTERN = '.logs-cloud_security_posture.metadata*'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit remove - no usages
@@ -65,7 +65,7 @@ export const createIndexIfNotExists = async ( | |||
} | |||
} catch (err) { | |||
const error = transformError(err); | |||
logger.error(`Failed to create ${LATEST_FINDINGS_INDEX_PATTERN}`); | |||
logger.error(`Failed to create ${LATEST_FINDINGS_INDEX_DEFAULT_NS}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use indexName
/ indexPattern
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename indexName
to indexTemplateName
if (packagePolicies[0].package?.name !== CLOUD_SECURITY_POSTURE_PACKAGE_NAME) { | ||
// TODO: improve this validator to support any future CSP package | ||
throw new Error(`Package Policy Id '${packagePolicyId}' is not CSP package`); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (packagePolicies[0].package?.name !== CLOUD_SECURITY_POSTURE_PACKAGE_NAME) { | |
// TODO: improve this validator to support any future CSP package | |
throw new Error(`Package Policy Id '${packagePolicyId}' is not CSP package`); | |
} | |
if (packagePolicies[0].package?.name !== CLOUD_SECURITY_PACKAGE_NAME) { | |
throw new Error( | |
`Package Policy Id '${packagePolicyId}' is not of type cloud security posture package` | |
); |
No description provided.