当前位置:网站首页>Openshift security (17) - integrate compliance scanning of openshift compliance operator into rhacs
Openshift security (17) - integrate compliance scanning of openshift compliance operator into rhacs
2022-07-22 00:58:00 【dawnsky. liu】
《OpenShift / RHEL / DevSecOps Summary table of contents 》
List of articles
The scene that
OpenShift Built in Compliance Operator, Among them, based on CIS Baseline compliance scan . of OpenShift Compliance Operator Function and configuration of 、 Please refer to the following 2 An article :
- OpenShift 4 - use Compliance Operator Yes OpenShift Conduct a security compliance scan
- OpenShift 4 - use Compliance Operator Fix problems found in compliance inspection
This article introduces how to OpenShift Compliance Operator and RHACS To integrate , So that we can be in RHACS View... In the console OpenShift CIS Baseline compliance scan results .
Integrated configuration
Prepare the environment
- reference OpenShift 4 - use Compliance Operator Yes OpenShift Conduct a security compliance scan install OpenShift Compliance Operator
- reference OpenShift Security (2) - install Red Hat Advanced Cluster Security(RHACS) install RHACS Software .
- visit RHACS Compliance page for , Confirm that there is no
Use OpenShift Compliance Operator Conduct CIS Compliance scanning
- Carry out orders , View supported compliance Profile.
$ oc get profile.compliance -n openshift-compliance
NAME AGE
ocp4-cis 4h27m
ocp4-cis-node 4h27m
ocp4-e8 4h27m
ocp4-high 4h27m
ocp4-high-node 4h27m
ocp4-moderate 4h27m
ocp4-moderate-node 4h27m
ocp4-nerc-cip 4h27m
ocp4-nerc-cip-node 4h27m
ocp4-pci-dss 4h27m
ocp4-pci-dss-node 4h27m
rhcos4-e8 4h27m
rhcos4-high 4h27m
rhcos4-moderate 4h27m
rhcos4-nerc-cip 4h27m
- stay OpenShift Create the following ScanSettingBinding object , It will be called default Of ScanSetting And called ocp4-cis Of Profile binding .
apiVersion: compliance.openshift.io/v1alpha1
kind: ScanSettingBinding
metadata:
name: cis-scan
namespace: openshift-compliance
profiles:
- apiGroup: compliance.openshift.io/v1alpha1
kind: Profile
name: ocp4-cis
settingsRef:
apiGroup: compliance.openshift.io/v1alpha1
kind: ScanSetting
name: default
- Execute the command to check the compliance scanning progress .
$ oc get compliancescan ocp4-cis -n openshift-compliance -w
NAME PHASE RESULT
ocp4-cis RUNNING NOT-AVAILABLE
ocp4-cis AGGREGATING NOT-AVAILABLE
ocp4-cis AGGREGATING NOT-AVAILABLE
ocp4-cis DONE NON-COMPLIANT
$ oc get compliancecheckresult -n openshift-compliance
NAME STATUS SEVERITY
ocp4-cis-accounts-restrict-service-account-tokens MANUAL medium
ocp4-cis-accounts-unique-service-account MANUAL medium
ocp4-cis-api-server-admission-control-plugin-alwaysadmit PASS medium
ocp4-cis-api-server-admission-control-plugin-alwayspullimages PASS high
...
take OpenShift Compliance Operator The scan results are integrated into RHACS Compliance page
- If ACS Is in Compliance Operator Previously installed , You need to execute the following command to restart OpenShift Of ACS Sensors to see these results .
$ oc delete pods -l app.kubernetes.io/component=sensor -n stackrox
- stay RHACS Console Compliance Click in the page “SCAN ENVIRONMENT” You can see below ocp4-cis Statistics of compliance scanning results .
- Enter into ocp4-cis Scan results , You can view the compliance scanning instructions and results of each item .
Reference resources
https://redhat-scholars.github.io/acs-workshop/acs-workshop/08-compliance.html#compliance_operator
边栏推荐
- JS common methods
- 用j s编写红绿灯
- Attack and Defense Technology Part I - know the enemy (attack means)
- About promise
- BT.656接口速率
- 成功安装pyinstaller(解决pip install pyinstaller安装失败问题)
- 策略中心——企业建设数智运营平台的大脑
- ospf综合实验
- Script loads data into JSON file
- Viewing the mid stage value of cloud native technology from the popularity of prefabricated buildings (II)
猜你喜欢
面试官:你确定 Redis 是单线程的进程吗?
Unity学习笔记-热更新相关
云原生与低代码平台成就敏捷企业
The 64 bit version of Visio cannot be installed because the following 32-bit program solution is found on your PC
镜头标定板秩事
Take the interface test in 2 hours - dark horse programmer, master the preparation of interface use cases, interface information analysis, interface information analysis through Oh packet capturing, a
tableau中连接mysql数据库
ospf综合实验
Draw plate layer
整数二分、浮点二分以及STL中的二分函数(lower_bound(),upper_bound())
随机推荐
Comprehensive experiment of mGRE and OSPF
HCIA NAT实验报告 7.14
JUC quick learning notes
[AR Foundation] 开发应用的基础框架流程
Verilog:按位、逻辑
mysql统计表的列数
What platform can accommodate knowledge base, indicator base and rule base at the same time?
从0到1 拿下C语言—程序结构及使用示例
mysql dense_ Rank(), rank() function
scrapy 直接输出json文件
一文读懂 | 数据中台如何支撑企业数字化经营
Oracle VM VirtualBox NAT network Ping failed
Is the Internet midlife crisis really that exaggerated when the same group of "elderly" employees are dismissed?
自动引用计数与循环引用
面试官:你确定 Redis 是单线程的进程吗?
Data and business: pursuit and achievement under the tide of digital transformation
7月13日直播预告:方舟低代码平台直播来袭
Applet sharing how to pass parameters
The 64 bit version of Visio cannot be installed because the following 32-bit program solution is found on your PC
OpenShift 4 - 安装 ODF 并部署红帽 Quay (3 Worker)