@monokle/validation
Advanced tools
export * from './cis.js'; | ||
export * from './nsa.js'; | ||
export * from './psp.js'; | ||
export * from './pss.js'; |
export * from './cis.js'; | ||
export * from './nsa.js'; | ||
export * from './psp.js'; | ||
export * from './pss.js'; |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -11,3 +11,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -14,0 +14,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -10,3 +10,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -13,0 +13,0 @@ help: "Do not set 'spec.host(Network|PID|IPC)'.", |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -11,3 +11,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -14,0 +14,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -27,3 +27,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -30,0 +30,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -11,3 +11,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -14,0 +14,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { NSA_RELATIONS, PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { NSA_RELATIONS, PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -12,3 +12,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted'], NSA_RELATIONS['kubernetes-pod-security']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted'], NSA_RELATIONS['kubernetes-pod-security']], | ||
}, | ||
@@ -15,0 +15,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -11,3 +11,3 @@ import { validatePodTemplate } from '../../custom/utils.js'; | ||
severity: 5, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -14,0 +14,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -13,3 +13,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 5, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -16,0 +16,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -11,3 +11,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 5, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -14,0 +14,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -13,3 +13,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 5, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -16,0 +16,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -19,3 +19,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 5, | ||
relationships: [PSP_RELATIONS['baseline'], PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['baseline'], PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -22,0 +22,0 @@ validate({ resources }, { report }) { |
import { defineRule } from '../../custom/config.js'; | ||
import { validatePodSpec } from '../../custom/utils.js'; | ||
import { PSP_RELATIONS } from '../../../taxonomies/psp.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/pss.js'; | ||
const ALLOWED = [ | ||
@@ -23,3 +23,3 @@ 'configMap', | ||
severity: 3, | ||
relationships: [PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -26,0 +26,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { CIS_RELATIONS, NSA_RELATIONS, PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { CIS_RELATIONS, NSA_RELATIONS, PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -12,3 +12,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['restricted'], NSA_RELATIONS['kubernetes-pod-security'], CIS_RELATIONS['general']], | ||
relationships: [PSS_RELATIONS['restricted'], NSA_RELATIONS['kubernetes-pod-security'], CIS_RELATIONS['general']], | ||
}, | ||
@@ -15,0 +15,0 @@ validate({ resources }, { report }) { |
import { NSA_RELATIONS } from '../../../taxonomies/nsa.js'; | ||
import { PSP_RELATIONS } from '../../../taxonomies/psp.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/pss.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -13,3 +13,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['restricted'], NSA_RELATIONS['kubernetes-pod-security']], | ||
relationships: [PSS_RELATIONS['restricted'], NSA_RELATIONS['kubernetes-pod-security']], | ||
}, | ||
@@ -16,0 +16,0 @@ validate({ resources }, { report }) { |
import { NSA_RELATIONS } from '../../../taxonomies/nsa.js'; | ||
import { PSP_RELATIONS } from '../../../taxonomies/psp.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/pss.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -13,3 +13,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['restricted'], NSA_RELATIONS['kubernetes-pod-security']], | ||
relationships: [PSS_RELATIONS['restricted'], NSA_RELATIONS['kubernetes-pod-security']], | ||
}, | ||
@@ -16,0 +16,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/psp.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/pss.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -14,3 +14,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 5, | ||
relationships: [PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -17,0 +17,0 @@ validate({ resources }, { report }) { |
@@ -1,2 +0,2 @@ | ||
import { PSP_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { PSS_RELATIONS } from '../../../taxonomies/index.js'; | ||
import { defineRule } from '../../custom/config.js'; | ||
@@ -14,3 +14,3 @@ import { validatePodSpec } from '../../custom/utils.js'; | ||
severity: 8, | ||
relationships: [PSP_RELATIONS['restricted']], | ||
relationships: [PSS_RELATIONS['restricted']], | ||
}, | ||
@@ -17,0 +17,0 @@ validate({ resources }, { report }) { |
@@ -20,3 +20,3 @@ import { definePlugin } from '../custom/config.js'; | ||
name: 'practices', | ||
displayName: 'Practices', | ||
displayName: 'Common Practices', | ||
description: 'Common practices you can use to further improve your Kubernetes deployments.', | ||
@@ -23,0 +23,0 @@ rules: { |
{ | ||
"name": "@monokle/validation", | ||
"version": "0.23.4", | ||
"version": "0.23.5", | ||
"description": "Kubernetes resource validation", | ||
@@ -5,0 +5,0 @@ "author": "Kubeshop", |
490983
0