Skip to content
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

Merged
merged 5 commits into from
May 1, 2022
Merged

Conversation

CohenIdo
Copy link
Contributor

No description provided.

@CohenIdo CohenIdo changed the title Update package name [Cloud Security]Update package name Apr 28, 2022
@CohenIdo CohenIdo marked this pull request as ready for review April 28, 2022 13:50
@CohenIdo CohenIdo requested a review from a team as a code owner April 28, 2022 13:50
@CohenIdo CohenIdo requested a review from kfirpeled April 28, 2022 13:51
@CohenIdo CohenIdo added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:Cloud Security Cloud Security team related v8.3.0 labels Apr 28, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cloudSecurityPosture 389.2KB 389.2KB -2.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream


export const AGENT_LOGS_INDEX_PATTERN = '.logs-cis_kubernetes_benchmark.metadata*';
export const AGENT_LOGS_INDEX_PATTERN = '.logs-cloud_security_posture.metadata*';
Copy link
Contributor

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}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use indexName / indexPattern

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename indexName to indexTemplateName

Comment on lines +39 to 42
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`);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`
);

@CohenIdo CohenIdo merged commit 0716332 into elastic:main May 1, 2022
kertal pushed a commit to kertal/kibana that referenced this pull request May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants