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

Policy ruler #233

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion aws-msa-reference/lma/site-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,26 @@ charts:
for: 30m
labels:
severity: critical

- alert: policy-audited
annotations:
Checkpoint: 정책위반이 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})
description: 클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반이 발생했습니다. 메시지 - {{ $labels.violation_msg }}
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }})
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system', violation_enforcement='warn'} == 1
for: 1m
labels:
severity: critical
- alert: policy-blocked
annotations:
Checkpoint: "정책위반이 시도가 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})"
description: "클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반 시도가 발생했습니다. 메시지 - {{ $labels.violation_msg }}"
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }}) 시도
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system',violation_enforcement=''} == 1
for: 1m
labels:
severity: critical
- name: thanos-config
override:
objectStorage:
Expand Down
22 changes: 21 additions & 1 deletion aws-reference/lma/site-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,27 @@ charts:
for: 30m
labels:
severity: critical

- alert: policy-audited
annotations:
Checkpoint: 정책위반이 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})
description: 클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반이 발생했습니다. 메시지 - {{ $labels.violation_msg }}
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }})
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system', violation_enforcement='warn'} == 1
for: 1m
labels:
severity: critical
- alert: policy-blocked
annotations:
Checkpoint: "정책위반이 시도가 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})"
description: "클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반 시도가 발생했습니다. 메시지 - {{ $labels.violation_msg }}"
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }}) 시도
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system',violation_enforcement=''} == 1
for: 1m
labels:
severity: critical

- name: thanos-config
override:
objectStorage:
Expand Down
20 changes: 20 additions & 0 deletions byoh-reference/lma/site-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,26 @@ charts:
for: 30m
labels:
severity: critical
- alert: policy-audited
annotations:
Checkpoint: 정책위반이 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})
description: 클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반이 발생했습니다. 메시지 - {{ $labels.violation_msg }}
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }})
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system', violation_enforcement='warn'} == 1
for: 1m
labels:
severity: critical
- alert: policy-blocked
annotations:
Checkpoint: "정책위반이 시도가 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})"
description: "클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반 시도가 발생했습니다. 메시지 - {{ $labels.violation_msg }}"
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }}) 시도
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system',violation_enforcement=''} == 1
for: 1m
labels:
severity: critical

- name: thanos-config
override:
Expand Down
20 changes: 20 additions & 0 deletions eks-msa-reference/lma/site-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,26 @@ charts:
for: 30m
labels:
severity: critical
- alert: policy-audited
annotations:
Checkpoint: 정책위반이 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})
description: 클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반이 발생했습니다. 메시지 - {{ $labels.violation_msg }}
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }})
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system', violation_enforcement='warn'} == 1
for: 1m
labels:
severity: critical
- alert: policy-blocked
annotations:
Checkpoint: "정책위반이 시도가 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})"
description: "클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반 시도가 발생했습니다. 메시지 - {{ $labels.violation_msg }}"
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }}) 시도
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system',violation_enforcement=''} == 1
for: 1m
labels:
severity: critical

- name: thanos-config
override:
Expand Down
20 changes: 20 additions & 0 deletions eks-reference/lma/site-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,26 @@ charts:
for: 30m
labels:
severity: critical
- alert: policy-audited
annotations:
Checkpoint: 정책위반이 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})
description: 클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반이 발생했습니다. 메시지 - {{ $labels.violation_msg }}
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }})
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system', violation_enforcement='warn'} == 1
for: 1m
labels:
severity: critical
- alert: policy-blocked
annotations:
Checkpoint: "정책위반이 시도가 발생하였습니다.({{ $labels.kind }} / {{ $labels.name }})"
description: "클러스터 ( {{ $labels.taco_cluster }})의 자원({{ $labels.violating_kind }} - {{ $labels.violating_namespace }} / {{ $labels.violating_nam }})에서 정책({{ $labels.kind }} / {{ $labels.name }})위반 시도가 발생했습니다. 메시지 - {{ $labels.violation_msg }}"
discriminative: $labels.kind,$labels.name,$labels.taco_cluster,$labels.violating_kind,$labels.violating_name,$labels.violating_namespace,$labels.violation_msg
message: 정책 위반({{ $labels.kind }} / {{ $labels.name }}) 시도
expr: opa_scorecard_constraint_violations{namespace!='kube-system|taco-system|gatekeeper-system',violation_enforcement=''} == 1
for: 1m
labels:
severity: critical

- name: thanos-config
override:
Expand Down
Loading