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

fix(aws-backup): avoid duplicated and ill-routed alerts #508

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

NSenaud
Copy link
Contributor

@NSenaud NSenaud commented Oct 19, 2023

No description provided.

@NSenaud NSenaud changed the title fix(aws-backup): use common filters WIP: fix(aws-backup): use common filters Oct 19, 2023
@NSenaud NSenaud force-pushed the fix/aws-backup-missing-filtering branch from c80107a to 9b0770c Compare October 20, 2023 14:03
@NSenaud NSenaud changed the title WIP: fix(aws-backup): use common filters fix(aws-backup): avoid duplicated and ill-routed alerts Oct 20, 2023
@NSenaud NSenaud force-pushed the fix/aws-backup-missing-filtering branch from 9b0770c to 35b9d3d Compare October 20, 2023 14:26
@NSenaud NSenaud force-pushed the fix/aws-backup-missing-filtering branch from 35b9d3d to 62fafbf Compare February 29, 2024 12:49
@@ -0,0 +1,3 @@
variable "aws_account_id" {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think forcing aws_account_id is a good idea, not everyone wants to filter by aws_account_id
It's best to let people choose if they want to by setting the appropriate filter in their own terraform

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello, we don't have much choice because recovery points are not automatically tagged according to the convention used with the detectors (see comment in common-filters.tf).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Variable removed after further discussions.

filters = format("filter('namespace', 'AWS/Backup') and filter('stat', 'sum') and filter('BackupVaultName', '*', match_missing=False) and filter('ResourceType', '*', match_missing=False) and filter('aws_account_id', '%s')", var.aws_account_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't signals already filtered with most of these variables in the detector conf ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed the filtering field in the detectors conf 👍

@NSenaud NSenaud force-pushed the fix/aws-backup-missing-filtering branch from 4a89a21 to a3918fe Compare March 1, 2024 15:30
@haedri haedri merged commit cdd61f7 into master Mar 4, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants