Skip to content

Commit

Permalink
Monitor the ACS certificate bundle with our certificate controller
Browse files Browse the repository at this point in the history
The OPP policy set should monitor the certificates it creates for the
ACS init bundle.  This adds that monitoring.

Refs:
 - https://issues.redhat.com/browse/ACM-8540

Signed-off-by: Gus Parvin <gparvin@redhat.com>
  • Loading branch information
gparvin authored and openshift-merge-bot[bot] committed Nov 13, 2023
1 parent 906671e commit 0f2d997
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: policy.open-cluster-management.io/v1
kind: CertificatePolicy
metadata:
name: acs-bundle-certificates
spec:
namespaceSelector:
include: ["policies"]
remediationAction: inform
severity: high
minimumDuration: 720h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ data:
ca.pem: '{{ fromSecret "stackrox" "admission-control-tls" "ca.pem" }}'
kind: Secret
metadata:
labels:
certificate_key_name: admission-control-cert.pem
name: admission-control-tls
namespace: policies
type: Opaque
Expand All @@ -40,6 +42,8 @@ data:
ca.pem: '{{ fromSecret "stackrox" "collector-tls" "ca.pem" }}'
kind: Secret
metadata:
labels:
certificate_key_name: collector-cert.pem
name: collector-tls
namespace: policies
type: Opaque
Expand All @@ -52,6 +56,8 @@ data:
acs-host: '{{ fromSecret "stackrox" "sensor-tls" "acs-host" }}'
kind: Secret
metadata:
labels:
certificate_key_name: sensor-cert.pem
name: sensor-tls
namespace: policies
type: Opaque
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ policies:
- name: policy-acs-central-status
manifests:
- path: input-sensor/policy-acs-sync-resources.yaml
- name: policy-acs-monitor-certs
categories:
- SC System and Communications Protection
controls:
- SC-8 Transmission Confidentiality and Integrity
dependencies:
- name: policy-acs-sync-resources
manifests:
- path: input-sensor/acs-check-certificates.yaml
- name: policy-advanced-managed-cluster-security
categories:
- SI System and Information Integrity
Expand Down

0 comments on commit 0f2d997

Please sign in to comment.