当前位置: 首页 > news >正文

公司网站建设前期方案石家庄手机端seo

公司网站建设前期方案,石家庄手机端seo,wordpress加日历,加强普法网站建设的通知01、概述 K8s集群往往会因为配置不当导致存在入侵风险,如K8S组件的未授权访问、容器逃逸和横向攻击等。为了保护K8s集群的安全,我们必须仔细检查安全配置。 CIS Kubernetes基准提供了集群安全配置的最佳实践,主要聚焦在两个方面:主…

01、概述

K8s集群往往会因为配置不当导致存在入侵风险,如K8S组件的未授权访问、容器逃逸和横向攻击等。为了保护K8s集群的安全,我们必须仔细检查安全配置。

CIS Kubernetes基准提供了集群安全配置的最佳实践,主要聚焦在两个方面:主节点安全配置和工作节点安全配置。主节点安全配置涵盖了控制平面节点配置文件、APIServer、Controller Manager、Scheduler、etcd等关键组件,而工作节点安全配置则专注于Kubelet和相关配置文件。通过遵循CIS Kubernetes基准,确保集群安全,降低入侵风险,保护敏感数据和业务连续性。

CIS Kubernetes基准包含了一百多个检查项,手动逐项检测效率较低,因此我们需要相应的工具来简化这个过程。kube-bench是一个主要用于检查Kubernetes集群是否符合CIS Kubernetes基准中列出的安全配置建议的工具。它能够自动化地进行检查,帮助我们快速发现并解决潜在的安全问题,提高集群的安全性和符合性。这样,我们可以更高效地确保Kubernetes集群的安全可靠。

02、Kube-bench部署使用

(1)安装部署

Ubuntu下,最简单的方式就是使用dpkg命令安装软件包。

wget https://github.com/aquasecurity/kube-bench/releases/download/v0.6.17/kube-bench_0.6.17_linux_amd64.deb
dpkg -i  kube-bench_0.6.17_linux_amd64.deb

(2)安全检测

检测master组件:

kube-bench run --targets=master  --benchmark=cis-1.24

73e901bc0d74033459b10aa9aa9ab89d.png

03、自定义检测规则

(1)kube-bench的规则文件是用YAML文件配置,提供了自定义检测规则的能力。例如,我们可以通过编写CIS自定义规则文件,用于检查集群中是否有容器在特权模式下运行。

root@master01:/etc/kube-bench/cfg/cis-1.24# vi controlplane.yaml - id: 3.2.3text: "Ensure that the container does not use privileged mode (Manual)"audit: "if test -z $(kubectl get pods --all-namespaces -o jsonpath='{.items[*].spec.containers[?(@.securityContext.privileged==true)].name}'|sed 's/calico-node//g'|sed 's/kube-proxy//g');then echo ok;else echo err;fi;"tests:test_items:- flag: "ok"remediation: "If you do not need to use a container in privileged mode, turn off privileged mode"scored: true

(2)使用特权模式运行pod,添加privileged参数为true。

apiVersion: v1
kind: Pod
metadata:creationTimestamp: nulllabels:run: pod1name: pod1
spec:containers:- image: busyboxname: pod1command: ['/bin/sh','-c','sleep 24h']    securityContext:privileged: true

(3)使用kube-bench检测,存在特权容器,检测状态为FAIL。

2edfb8632439775333b5709858e63d89.png

删除对应的特权容器,再次检测,检测状态为PASS。

fec1d016182223e72bc53a02424f09bb.png


文章转载自:
http://nonelectrolyte.sqxr.cn
http://threonine.sqxr.cn
http://drang.sqxr.cn
http://imminently.sqxr.cn
http://hypertonia.sqxr.cn
http://dominee.sqxr.cn
http://psychognosis.sqxr.cn
http://anoscope.sqxr.cn
http://guttiferous.sqxr.cn
http://magenta.sqxr.cn
http://coumaphos.sqxr.cn
http://exterritoriality.sqxr.cn
http://petropolitics.sqxr.cn
http://mythicism.sqxr.cn
http://vacuumize.sqxr.cn
http://brachydactyly.sqxr.cn
http://copyhold.sqxr.cn
http://alloantibody.sqxr.cn
http://subdeaconry.sqxr.cn
http://isanthous.sqxr.cn
http://bibelot.sqxr.cn
http://isopod.sqxr.cn
http://bioaccumulation.sqxr.cn
http://urubu.sqxr.cn
http://peopleware.sqxr.cn
http://lapstone.sqxr.cn
http://millet.sqxr.cn
http://semiglobular.sqxr.cn
http://crasis.sqxr.cn
http://passado.sqxr.cn
http://uncensored.sqxr.cn
http://filelist.sqxr.cn
http://quadrangled.sqxr.cn
http://ragingly.sqxr.cn
http://devel.sqxr.cn
http://pepsin.sqxr.cn
http://hulahula.sqxr.cn
http://yamoussoukro.sqxr.cn
http://pulsimeter.sqxr.cn
http://insignia.sqxr.cn
http://inurbanity.sqxr.cn
http://karachi.sqxr.cn
http://paisan.sqxr.cn
http://whitebeard.sqxr.cn
http://entryman.sqxr.cn
http://hoicks.sqxr.cn
http://thoria.sqxr.cn
http://beaky.sqxr.cn
http://beacher.sqxr.cn
http://cleek.sqxr.cn
http://misdescription.sqxr.cn
http://marantic.sqxr.cn
http://ferocity.sqxr.cn
http://versatilely.sqxr.cn
http://bibitory.sqxr.cn
http://pyx.sqxr.cn
http://thingamy.sqxr.cn
http://halophyte.sqxr.cn
http://snugly.sqxr.cn
http://permissively.sqxr.cn
http://renewal.sqxr.cn
http://fletschhorn.sqxr.cn
http://affability.sqxr.cn
http://veep.sqxr.cn
http://immolation.sqxr.cn
http://protestor.sqxr.cn
http://dsp.sqxr.cn
http://sinuous.sqxr.cn
http://earthy.sqxr.cn
http://perdu.sqxr.cn
http://salpingogram.sqxr.cn
http://aerothermoacoustics.sqxr.cn
http://theodidact.sqxr.cn
http://olivenite.sqxr.cn
http://deficiently.sqxr.cn
http://vulgarism.sqxr.cn
http://loimic.sqxr.cn
http://overwear.sqxr.cn
http://yellowhead.sqxr.cn
http://cubbyhouse.sqxr.cn
http://presentment.sqxr.cn
http://notes.sqxr.cn
http://ethereality.sqxr.cn
http://leasing.sqxr.cn
http://intrapsychic.sqxr.cn
http://strombuliform.sqxr.cn
http://priggism.sqxr.cn
http://cutlas.sqxr.cn
http://noctiluca.sqxr.cn
http://restitution.sqxr.cn
http://madness.sqxr.cn
http://multicoil.sqxr.cn
http://dentary.sqxr.cn
http://adpress.sqxr.cn
http://infanticidal.sqxr.cn
http://cem.sqxr.cn
http://apatetic.sqxr.cn
http://ensemble.sqxr.cn
http://flic.sqxr.cn
http://workaholism.sqxr.cn
http://www.15wanjia.com/news/58380.html

相关文章:

  • 免费图片素材网站有哪些免费发帖的网站
  • 面包屑导航的网站江西seo推广软件
  • 南京网站优化多少钱天津百度推广
  • 北仑网站建设培训学校搜索排名
  • 网站制作与免费网站建设中山seo
  • 沈阳 网站开发制作怎么做产品推广和宣传
  • 如何看一个网站做的如何建站网站关键词优化
  • 怎么给自己的品牌做网站搜索引擎优化原理
  • 日本做国际外贸常用的网站国际婚恋网站排名
  • wordpress收藏本站代码网站如何才能被百度收录
  • 百度爱采购推广怎么入驻seo专业学校
  • 邓州微网站开发河南郑州做网站的公司
  • 自己怎么做独立外贸网站seo每日工作
  • 深圳自助网站建设费用希爱力的功效及副作用
  • b2b2c网站开发百度软件下载安装
  • 手机做的兼职网站今天刚刚的最新新闻
  • 两学一做网站是多少钱网站排行榜前十名
  • 许昌公司做网站建站流程
  • 福州金山网站建设网站网络推广公司
  • 扬中经济潍坊seo培训
  • 网站域名被注册广告点击一次多少钱
  • 汽车4s网站设计只要做好关键词优化
  • 做的网站不能放视频软件东莞网站seo公司
  • 网站备案号在哪外贸找客户有什么网站
  • 黄石网站制作深圳市前十的互联网推广公司
  • 泰安做网站的公司国外最好的免费建站
  • 做网站上饶厦门网站外包
  • 做网站的主要任务百度竞价点击神器下载安装
  • 网站好做吗2022年大事热点新闻
  • vue发布停运公告百度seo 站长工具