diff --git a/.gitattributes b/.gitattributes
index 1acd32fc5ce02e4c916c7eece1ead77fd7f59c9b..1d66a91ee41b80bab2ffe853969e15ce365c457e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -65,3 +65,4 @@ source_data/indexes/gene-ontology/go-2026-08-05+goa238/terms.jsonl filter=lfs di
source_data/indexes/gene-ontology/go-2026-08-05+goa238/units.jsonl filter=lfs diff=lfs merge=lfs -text
source_data/indexes/reactome/release-98/reactome.db filter=lfs diff=lfs merge=lfs -text
source_data/pinned/gatekeeper-library-repin-1946bc28/1946bc28e133/gatekeeper-library-1946bc28e1337b90b7e675e3f0fa94aa2e92fd6e/website/static/img/favicon.ico filter=lfs diff=lfs merge=lfs -text
+source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/img/favicon.ico filter=lfs diff=lfs merge=lfs -text
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf.files.sha256.json b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf.files.sha256.json
new file mode 100644
index 0000000000000000000000000000000000000000..26b0556d56cb2ad58d19f2e92588166598a40e83
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf.files.sha256.json
@@ -0,0 +1,2458 @@
+{
+ ".github/CODEOWNERS": "fa08b48eee8a7639bcea660fc444d84c8c4398f7630948ec3f60f7baf211033b",
+ ".github/PULL_REQUEST_TEMPLATE.md": "14c94618376a360fc3660b2dba11c6a52d2dcb21f2814a6b50be41317dcd9d85",
+ ".github/dependabot.yml": "431a0c90a9983e582e4b0dce9947485a6744b8f9cc31747c595b24081df8d8e2",
+ ".github/stale.yml": "0d4dfd1936f8b4f82e99aaa0ac8bd6d3899bbba4265a0ced6fe44cf101540647",
+ ".github/workflows/codeql.yml": "930d3bd8cf0c193ef869a6f5c394f169347286816bcfd87cf652b84791a09549",
+ ".github/workflows/dependency-review.yml": "f140fd35f1e2e72175c330207f390e7b27beb3b6e0ef923f6a32e0d37c3837af",
+ ".github/workflows/generate-catalog.yaml": "33f47099c0db5e21de922a5e7a4eb89ddd006f4b2f9b24ae732c64ed8740c350",
+ ".github/workflows/scorecards.yml": "ae9daf6eb1d71239c5ec3e39b28839e1a6c68e855889eb01d511c4a0f7aa8da3",
+ ".github/workflows/scripts.yaml": "5553e990b33b49d6a54538cad3c8ff02603b062cbcd09c3bfb8288872c78da4b",
+ ".github/workflows/website.yaml": "8eb0b3243e90c9e51ea934e86310573f08e07e6548b12b0dead31efc1cc14d4d",
+ ".github/workflows/workflow.yaml": "9dd578864c1ac2c8656196cd9bd00eaf79905a0f3afb3503b7637484fb4ade69",
+ ".gitignore": "6ea6bbaccfdfbdb40f7b19955c6617e8c212be2b3a6310afaee5d49502197fea",
+ ".golangci.yaml": "a81249594bbbe7ea38621bfc6f8c707fbdafa14ac469e44cd87bbf22ae37da88",
+ "AGENTS.md": "fd5266751155b3a25e30e21c6c97eadb17c186dbdf54ca639c57e06b287ffcd4",
+ "LICENSE": "58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd",
+ "Makefile": "8001831833b20c816ba17e099db682cbe01aafcb75e9bb972d4040dc769051a7",
+ "NOTICE": "c9649e2af6499a1427b515dd0fd1d6ebe80e5c6a31d655a3a4a17917fd53cb75",
+ "README.md": "a69184ec88d096818b9886bb0add6042ab81c65cfb2dbe3861fcb75fe81ee6ce",
+ "SECURITY.md": "47d6c0aba18cea4f92c2ac40d8e190ab194f8086c8a964ba70ebf0ed1d6c2de8",
+ "artifacthub/artifacthub-repo.yml": "a784c999fa71d0477889e6684c13fcce004a2192ffb14a1b86670395065e1000",
+ "artifacthub/library/general/allowedrepos/1.0.0/artifacthub-pkg.yml": "94ac95a7e43e9ad0779ece3f0e6f9485e486db873c530e618b97ab47cff7d633",
+ "artifacthub/library/general/allowedrepos/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/allowedrepos/1.0.0/samples/repo-must-be-openpolicyagent/constraint.yaml": "4299b6441e30f2edac98450402e8172fc19fcc5b70f3da1abd6089e9e2e6907a",
+ "artifacthub/library/general/allowedrepos/1.0.0/samples/repo-must-be-openpolicyagent/disallowed_all.yaml": "4174e021697d5150068fa1d3e711586f41decbc3b93e0adcdddfc6f1ae41f221",
+ "artifacthub/library/general/allowedrepos/1.0.0/samples/repo-must-be-openpolicyagent/example_allowed.yaml": "d7e3d16b3993f64252bd65a1d24a46f6fa24e78b2490d8f925a0fb80322374a1",
+ "artifacthub/library/general/allowedrepos/1.0.0/samples/repo-must-be-openpolicyagent/example_disallowed_both.yaml": "e6bb425b10085d720cefc2a1e00e4cae3844cde07d101472db4b8774dda3675a",
+ "artifacthub/library/general/allowedrepos/1.0.0/samples/repo-must-be-openpolicyagent/example_disallowed_container.yaml": "4e63f6a9d88eb6ed17eed0a4ed4e529c8d24eedfd28dec746b48867d9f1fc4db",
+ "artifacthub/library/general/allowedrepos/1.0.0/samples/repo-must-be-openpolicyagent/example_disallowed_initcontainer.yaml": "111a7d7e78293da2b388caa820019a8baf7f63a33ed59163b0aece0c987496c7",
+ "artifacthub/library/general/allowedrepos/1.0.0/suite.yaml": "bd3bf22c20e257ca70ff48d041d352f9ac0f3c50dda4dd91cce130d3ca572914",
+ "artifacthub/library/general/allowedrepos/1.0.0/template.yaml": "0a05f6fcc65cd844ecf031feb535f3a5306d6e95ebffe477d793be108f028413",
+ "artifacthub/library/general/allowedrepos/1.0.1/artifacthub-pkg.yml": "69f99f28e0294d44aed8f248c889e418aed28391c1ec47baf1508cbe8b1a58e1",
+ "artifacthub/library/general/allowedrepos/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/allowedrepos/1.0.1/samples/repo-must-be-openpolicyagent/constraint.yaml": "4299b6441e30f2edac98450402e8172fc19fcc5b70f3da1abd6089e9e2e6907a",
+ "artifacthub/library/general/allowedrepos/1.0.1/samples/repo-must-be-openpolicyagent/disallowed_all.yaml": "4174e021697d5150068fa1d3e711586f41decbc3b93e0adcdddfc6f1ae41f221",
+ "artifacthub/library/general/allowedrepos/1.0.1/samples/repo-must-be-openpolicyagent/example_allowed.yaml": "d7e3d16b3993f64252bd65a1d24a46f6fa24e78b2490d8f925a0fb80322374a1",
+ "artifacthub/library/general/allowedrepos/1.0.1/samples/repo-must-be-openpolicyagent/example_disallowed_both.yaml": "e6bb425b10085d720cefc2a1e00e4cae3844cde07d101472db4b8774dda3675a",
+ "artifacthub/library/general/allowedrepos/1.0.1/samples/repo-must-be-openpolicyagent/example_disallowed_container.yaml": "4e63f6a9d88eb6ed17eed0a4ed4e529c8d24eedfd28dec746b48867d9f1fc4db",
+ "artifacthub/library/general/allowedrepos/1.0.1/samples/repo-must-be-openpolicyagent/example_disallowed_initcontainer.yaml": "111a7d7e78293da2b388caa820019a8baf7f63a33ed59163b0aece0c987496c7",
+ "artifacthub/library/general/allowedrepos/1.0.1/suite.yaml": "bd3bf22c20e257ca70ff48d041d352f9ac0f3c50dda4dd91cce130d3ca572914",
+ "artifacthub/library/general/allowedrepos/1.0.1/template.yaml": "194603c0370f90e80a5f97b68e8ec68a95c245fe14116d0a15613e00d84529e2",
+ "artifacthub/library/general/allowedrepos/1.0.2/artifacthub-pkg.yml": "198d8fec6f545228f8e04559de5665b9f7309d54fbe766c7230e9242b4ba415e",
+ "artifacthub/library/general/allowedrepos/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/allowedrepos/1.0.2/samples/repo-must-be-openpolicyagent/constraint.yaml": "4299b6441e30f2edac98450402e8172fc19fcc5b70f3da1abd6089e9e2e6907a",
+ "artifacthub/library/general/allowedrepos/1.0.2/samples/repo-must-be-openpolicyagent/disallowed_all.yaml": "4174e021697d5150068fa1d3e711586f41decbc3b93e0adcdddfc6f1ae41f221",
+ "artifacthub/library/general/allowedrepos/1.0.2/samples/repo-must-be-openpolicyagent/example_allowed.yaml": "d7e3d16b3993f64252bd65a1d24a46f6fa24e78b2490d8f925a0fb80322374a1",
+ "artifacthub/library/general/allowedrepos/1.0.2/samples/repo-must-be-openpolicyagent/example_disallowed_both.yaml": "e6bb425b10085d720cefc2a1e00e4cae3844cde07d101472db4b8774dda3675a",
+ "artifacthub/library/general/allowedrepos/1.0.2/samples/repo-must-be-openpolicyagent/example_disallowed_container.yaml": "4e63f6a9d88eb6ed17eed0a4ed4e529c8d24eedfd28dec746b48867d9f1fc4db",
+ "artifacthub/library/general/allowedrepos/1.0.2/samples/repo-must-be-openpolicyagent/example_disallowed_initcontainer.yaml": "111a7d7e78293da2b388caa820019a8baf7f63a33ed59163b0aece0c987496c7",
+ "artifacthub/library/general/allowedrepos/1.0.2/suite.yaml": "bd3bf22c20e257ca70ff48d041d352f9ac0f3c50dda4dd91cce130d3ca572914",
+ "artifacthub/library/general/allowedrepos/1.0.2/template.yaml": "d1f3ef966057634a364261dcc8a7306a4d18bb3fbf466d17ffb3f889c3a3f8b2",
+ "artifacthub/library/general/allowedreposv2/1.0.0/artifacthub-pkg.yml": "85fed025bacf393c52063bbc72a75b76d672fcaeba792cd543ba88d56f4b97da",
+ "artifacthub/library/general/allowedreposv2/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/constraint.yaml": "56894134f15806396672fb43cf9170fdfb92c7ea695a23dfe34573bf5c0f4ae6",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/disallowed_all.yaml": "4174e021697d5150068fa1d3e711586f41decbc3b93e0adcdddfc6f1ae41f221",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/example_allowed.yaml": "d7e3d16b3993f64252bd65a1d24a46f6fa24e78b2490d8f925a0fb80322374a1",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/example_allowed_images.yaml": "f1540b5a28c79603eda7720331a2e1bf957362de574db3ac638e198e5d7139d6",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/example_disallowed_both.yaml": "e6bb425b10085d720cefc2a1e00e4cae3844cde07d101472db4b8774dda3675a",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/example_disallowed_container.yaml": "4e63f6a9d88eb6ed17eed0a4ed4e529c8d24eedfd28dec746b48867d9f1fc4db",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/example_disallowed_images.yaml": "6ef7206496df734775431b43bb98325166321920fe90cba90f8b43e7ec115b91",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/example_disallowed_initcontainer.yaml": "111a7d7e78293da2b388caa820019a8baf7f63a33ed59163b0aece0c987496c7",
+ "artifacthub/library/general/allowedreposv2/1.0.0/samples/repo-must-be-openpolicyagent/example_disallowed_registry_and_repository.yaml": "acc9b2f1fabc2f8419ef4c50820ab64365bc69bde5f3cb71438d6d2910cd0885",
+ "artifacthub/library/general/allowedreposv2/1.0.0/suite.yaml": "fc3ec07ce6755d6494d332b747f10ef00e7563c9b376125dac2d7e056b2555b9",
+ "artifacthub/library/general/allowedreposv2/1.0.0/template.yaml": "e545f8b8e8608030abaaa6e3069252f2fb709c77e456912f1022df5a0d0201eb",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.0/artifacthub-pkg.yml": "2f691723ef215f9a4cce7fadfc69713a883a1bfc991886eb1eaf630bf52a9f79",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.0/samples/automount-serviceaccount-token/constraint.yaml": "ea1b763dd556a67e644e6202e9d4541b69d8d4304a8cf832718a4261dc4aa645",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.0/samples/automount-serviceaccount-token/example_allowed.yaml": "02f98c24a8fda49ff6e3cfcef6ea11a7e9c3bd94a5e55c963efe923724695613",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.0/samples/automount-serviceaccount-token/example_disallowed.yaml": "5373849495c153661a27877a8f828caf08a4a2855afedebe347ff929aad8072a",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.0/suite.yaml": "9de2926356385fe72616615c1caa5031f0b794a4fb83b5b3a09ec2dfa415839d",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.0/template.yaml": "eed47b27cfa93f8b900fc28e7e824a892297300a675ea43a1979717299614a25",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.1/artifacthub-pkg.yml": "5eeb965f81517cba2d44a0930a4831a2321c6485990b2845eed2a106bfec569a",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.1/samples/automount-serviceaccount-token/constraint.yaml": "ea1b763dd556a67e644e6202e9d4541b69d8d4304a8cf832718a4261dc4aa645",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.1/samples/automount-serviceaccount-token/example_allowed.yaml": "02f98c24a8fda49ff6e3cfcef6ea11a7e9c3bd94a5e55c963efe923724695613",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.1/samples/automount-serviceaccount-token/example_disallowed.yaml": "5373849495c153661a27877a8f828caf08a4a2855afedebe347ff929aad8072a",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.1/samples/automount-serviceaccount-token/update.yaml": "b6896d93cc28b98fe49ad115aeaa3b5694d712e5e0fa5b9df9e2692d334bd10a",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.1/suite.yaml": "db3bb95ee4c9f40ae7e2154950030d371bfb8120ae5445b9a44af952825b2f59",
+ "artifacthub/library/general/automount-serviceaccount-token/1.0.1/template.yaml": "269bca182f32bff585fe75f51afc20cc17f452102b5aa650779e099708c7ede5",
+ "artifacthub/library/general/block-endpoint-edit-default-role/1.0.0/artifacthub-pkg.yml": "e7f1c14f74db6e70b831fbbb25076d808bcd796f0680f8c5777e637fc615ea75",
+ "artifacthub/library/general/block-endpoint-edit-default-role/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/block-endpoint-edit-default-role/1.0.0/samples/block-endpoint-edit-default-role/constraint.yaml": "4a308c7b60164bff1ba4028568eff79658e427fc2c1f5efc3116f3678d1409d1",
+ "artifacthub/library/general/block-endpoint-edit-default-role/1.0.0/samples/block-endpoint-edit-default-role/example_allowed.yaml": "e82aac613ed1e6484009b5e843eb584a17d53e030f07f1f71143273c7ce07ac7",
+ "artifacthub/library/general/block-endpoint-edit-default-role/1.0.0/samples/block-endpoint-edit-default-role/example_disallowed.yaml": "9ddf7f1c42394fe62902d2c58ecab44e3c918bd8ea8b66c98fa2c00c21c169d6",
+ "artifacthub/library/general/block-endpoint-edit-default-role/1.0.0/suite.yaml": "2fb3b84d4be42515ea3e4ce5ca55948055e3480469ce8b2a125dabf9156f3cd5",
+ "artifacthub/library/general/block-endpoint-edit-default-role/1.0.0/template.yaml": "654fffc58d81fae1e69f4e0e7113829b81181be8c9a73c00f0d16a8cf44427af",
+ "artifacthub/library/general/block-loadbalancer-services/1.0.0/artifacthub-pkg.yml": "34fa5f06949a58feb46375c5e7709b53afeebe0acf9e4cd46b3fce14d0d45c9f",
+ "artifacthub/library/general/block-loadbalancer-services/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/block-loadbalancer-services/1.0.0/samples/block-load-balancer/constraint.yaml": "0c75aa66105a222a7c0ed91ae6e7504b375929d050d68dd0613eb1bfddb469f7",
+ "artifacthub/library/general/block-loadbalancer-services/1.0.0/samples/block-load-balancer/example_allowed.yaml": "12c6f5d99f4cdadc3109a11c33cc2afaeab9685385e388765d06e6bbdac6a6c6",
+ "artifacthub/library/general/block-loadbalancer-services/1.0.0/samples/block-load-balancer/example_disallowed.yaml": "27a9d2d7a772892c0ffa6f670a5d8cc6e33ebd7097c9ecba1b31d0c0ff0374e4",
+ "artifacthub/library/general/block-loadbalancer-services/1.0.0/suite.yaml": "c5b3652ad30b5501b464959ee236efa80815d45dc83de25e0dfed9692058b96d",
+ "artifacthub/library/general/block-loadbalancer-services/1.0.0/template.yaml": "598d2fb2974fccbd8d04531a618cacae40b96637387539e4a0d98b3b005ac31b",
+ "artifacthub/library/general/block-nodeport-services/1.0.0/artifacthub-pkg.yml": "1f180e3d7519d55cbd819a0b235ced979107919bc35510ede517e2391dfcea2b",
+ "artifacthub/library/general/block-nodeport-services/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/block-nodeport-services/1.0.0/samples/block-node-port/constraint.yaml": "5d06a87249063c19fcf1929bdaeebbfa4d1f9b2cba143d923c3d46a17d4bb9a6",
+ "artifacthub/library/general/block-nodeport-services/1.0.0/samples/block-node-port/example_disallowed.yaml": "7493712cbad7cdfdc3727526b04488993f7865703951d63783a9044b4a1415a5",
+ "artifacthub/library/general/block-nodeport-services/1.0.0/suite.yaml": "2806dab98a1f565eb42151a8434b0a400ef3ca3c967a4efa1ed47f8a8c83251b",
+ "artifacthub/library/general/block-nodeport-services/1.0.0/template.yaml": "2bfb70ee4809c5e6af141ec555410d4961ec160bc96670e596683f31bcadd7d0",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/artifacthub-pkg.yml": "b1667dce9710d61ab67782b4fded5e5175f1bde01dba9331293d7f627b69333e",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/samples/block-wildcard-ingress/constraint.yaml": "ebb22cbc2562f8d869fbe96cf5713b6d5bb69d5791babe7e51de7cd31faca72e",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/samples/block-wildcard-ingress/disallowed/blank_host.yaml": "9e1414433b15a69f04e0c70fadd11b52fa1c301b7c52826f55c205b7f6a4ca3c",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/samples/block-wildcard-ingress/disallowed/host_omitted.yaml": "d36bc5af37c78478bcb91c8dfcbbfbcafa1fd3888c19ac219cedfa4ec33999be",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/samples/block-wildcard-ingress/disallowed/wildcard_host.yaml": "7504d143ff77cdc3f764c88da51733d75bd5bad1cb863173f92681db5b2164d7",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/samples/block-wildcard-ingress/example_allowed.yaml": "f2ee70c0dd0a0568d08c020665afefc1d9fe8e2782471b0cf597252506add36f",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/suite.yaml": "b650acfe59d1088c8fe544e07d592e5ed5d244be3e4c01768eff26e6f52dbf28",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.0/template.yaml": "1f0ddc9347c1e42815315e2cc05104581554e7d61ac34b49f091fbe0f5066305",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/artifacthub-pkg.yml": "b48666745dbca640f6d17ef5da7fddfbf5d422a2ca1e8c7f3a80a4cf6fac0473",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/samples/block-wildcard-ingress/constraint.yaml": "ebb22cbc2562f8d869fbe96cf5713b6d5bb69d5791babe7e51de7cd31faca72e",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/samples/block-wildcard-ingress/disallowed/blank_host.yaml": "9e1414433b15a69f04e0c70fadd11b52fa1c301b7c52826f55c205b7f6a4ca3c",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/samples/block-wildcard-ingress/disallowed/host_omitted.yaml": "d36bc5af37c78478bcb91c8dfcbbfbcafa1fd3888c19ac219cedfa4ec33999be",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/samples/block-wildcard-ingress/disallowed/wildcard_host.yaml": "7504d143ff77cdc3f764c88da51733d75bd5bad1cb863173f92681db5b2164d7",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/samples/block-wildcard-ingress/example_allowed.yaml": "f2ee70c0dd0a0568d08c020665afefc1d9fe8e2782471b0cf597252506add36f",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/suite.yaml": "b650acfe59d1088c8fe544e07d592e5ed5d244be3e4c01768eff26e6f52dbf28",
+ "artifacthub/library/general/block-wildcard-ingress/1.0.1/template.yaml": "34481abf3c911bd23304e300a5281e7d37a9d98e34e9569fabdd46ce4e92fdd2",
+ "artifacthub/library/general/containerlimits/1.0.0/artifacthub-pkg.yml": "15f5007d238912527a919019b7ab2a186d88ae3f3f7251ef1e552dff42e2b073",
+ "artifacthub/library/general/containerlimits/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerlimits/1.0.0/samples/container-must-have-limits/constraint.yaml": "71a081ef79ac7bbeae73a5f499302ef1ab2c03b51bbea19fb0cff416e006ab63",
+ "artifacthub/library/general/containerlimits/1.0.0/samples/container-must-have-limits/example_allowed.yaml": "e3a358e009375ea0e1ae4d0ff597c518afa8ecb2058002cb5b1ec0fc8aac10a8",
+ "artifacthub/library/general/containerlimits/1.0.0/samples/container-must-have-limits/example_disallowed.yaml": "8491edd9dd01311e27c573d86193149df4704f813abe58a019ef75dc2a2d01e2",
+ "artifacthub/library/general/containerlimits/1.0.0/suite.yaml": "72e7a910f037ddcca69ba6dd3b82767bb66775c486ed60dc9ab32f3bb36f05d2",
+ "artifacthub/library/general/containerlimits/1.0.0/template.yaml": "ac4dede5a7f350588dbae5e34fe986cc7ea0c06661acfec68d12c57f785122d3",
+ "artifacthub/library/general/containerlimits/1.0.1/artifacthub-pkg.yml": "d0bc7f790509386bd705a08934ffad158be662253b06ab222cd99536b6c5fb99",
+ "artifacthub/library/general/containerlimits/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerlimits/1.0.1/samples/container-must-have-limits/constraint.yaml": "71a081ef79ac7bbeae73a5f499302ef1ab2c03b51bbea19fb0cff416e006ab63",
+ "artifacthub/library/general/containerlimits/1.0.1/samples/container-must-have-limits/example_allowed.yaml": "e3a358e009375ea0e1ae4d0ff597c518afa8ecb2058002cb5b1ec0fc8aac10a8",
+ "artifacthub/library/general/containerlimits/1.0.1/samples/container-must-have-limits/example_disallowed.yaml": "8491edd9dd01311e27c573d86193149df4704f813abe58a019ef75dc2a2d01e2",
+ "artifacthub/library/general/containerlimits/1.0.1/suite.yaml": "72e7a910f037ddcca69ba6dd3b82767bb66775c486ed60dc9ab32f3bb36f05d2",
+ "artifacthub/library/general/containerlimits/1.0.1/template.yaml": "29f444af31a6397876d3d240b02e20dcb2ed3f9328809f0d3ee7a3cc344f3c90",
+ "artifacthub/library/general/containerlimits/1.1.0/artifacthub-pkg.yml": "3d000f790269c73b055b21f94af5fba7217f45203865c52500322a51cabdb466",
+ "artifacthub/library/general/containerlimits/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerlimits/1.1.0/samples/container-ignore-cpu-limits/constraint.yaml": "9f571542668004f4a4ba3b09472e7c61cc7787fd999f66eba9c2d0136bddb71f",
+ "artifacthub/library/general/containerlimits/1.1.0/samples/container-ignore-cpu-limits/example_allowed.yaml": "eba32e2b1ef0f4984e185a03e9a475502057fb396ebb1de1d853c68b90cf97dd",
+ "artifacthub/library/general/containerlimits/1.1.0/samples/container-ignore-cpu-limits/example_disallowed.yaml": "0d867e0922bd8def9bee7ea9cc38371060b5ee08e8645e2b9601335b17e2d5cb",
+ "artifacthub/library/general/containerlimits/1.1.0/samples/container-must-have-limits/constraint.yaml": "71a081ef79ac7bbeae73a5f499302ef1ab2c03b51bbea19fb0cff416e006ab63",
+ "artifacthub/library/general/containerlimits/1.1.0/samples/container-must-have-limits/example_allowed.yaml": "e3a358e009375ea0e1ae4d0ff597c518afa8ecb2058002cb5b1ec0fc8aac10a8",
+ "artifacthub/library/general/containerlimits/1.1.0/samples/container-must-have-limits/example_disallowed.yaml": "8491edd9dd01311e27c573d86193149df4704f813abe58a019ef75dc2a2d01e2",
+ "artifacthub/library/general/containerlimits/1.1.0/suite.yaml": "5fe32afb1e7faf8d66259b51e6a6720c9b61e9c81397f5fa156e119a1843f050",
+ "artifacthub/library/general/containerlimits/1.1.0/template.yaml": "270efc1c5a270124e2a3153f706e758026d48e7ac3b59814f31a1822e49f8967",
+ "artifacthub/library/general/containerrequests/1.0.0/artifacthub-pkg.yml": "3dd09795f84810ae408ab8169e85e4a5ae2e7135c76e4dbc903ffe4f33a23517",
+ "artifacthub/library/general/containerrequests/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerrequests/1.0.0/samples/container-must-have-requests/constraint.yaml": "c9fb552332847f9d8550ad336d250f9595ef556d68e04b1cd18184547748d0e7",
+ "artifacthub/library/general/containerrequests/1.0.0/samples/container-must-have-requests/example_allowed.yaml": "fd292f4c54c88d3519eebe97ff0c6113d9667e8ebb39a3c05444baea62599669",
+ "artifacthub/library/general/containerrequests/1.0.0/samples/container-must-have-requests/example_disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "artifacthub/library/general/containerrequests/1.0.0/suite.yaml": "a3c1d86dd2b946e186f81f5a2a847f34e7012a3f39d7eed3f2dcd356c3a12f2e",
+ "artifacthub/library/general/containerrequests/1.0.0/template.yaml": "f8634680cbcec4a9cfd455583ad255cadb223aa6094bb0025e54890e956d3472",
+ "artifacthub/library/general/containerrequests/1.0.1/artifacthub-pkg.yml": "aa3b53499bdf3e689b062a0d943541f72583a7b100f222f3bc7e5cf4df2e3f1b",
+ "artifacthub/library/general/containerrequests/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerrequests/1.0.1/samples/container-must-have-requests/constraint.yaml": "c9fb552332847f9d8550ad336d250f9595ef556d68e04b1cd18184547748d0e7",
+ "artifacthub/library/general/containerrequests/1.0.1/samples/container-must-have-requests/example_allowed.yaml": "fd292f4c54c88d3519eebe97ff0c6113d9667e8ebb39a3c05444baea62599669",
+ "artifacthub/library/general/containerrequests/1.0.1/samples/container-must-have-requests/example_disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "artifacthub/library/general/containerrequests/1.0.1/suite.yaml": "a3c1d86dd2b946e186f81f5a2a847f34e7012a3f39d7eed3f2dcd356c3a12f2e",
+ "artifacthub/library/general/containerrequests/1.0.1/template.yaml": "e1a2e80865685decdbc6159a112a693911aec17837c172014d818508dd4eee79",
+ "artifacthub/library/general/containerresourceratios/1.0.0/artifacthub-pkg.yml": "be356f77a2eb3ceb78298bdc5f4f2ff8c61a6d9c9d6ff2e64bdab95440055c72",
+ "artifacthub/library/general/containerresourceratios/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerresourceratios/1.0.0/samples/container-must-meet-memory-and-cpu-ratio/constraint.yaml": "c3dc4b3bd8c508de89d134bf38a2a13eab058fcf968cb96fa916ba2a8d8abf12",
+ "artifacthub/library/general/containerresourceratios/1.0.0/samples/container-must-meet-memory-and-cpu-ratio/example_allowed.yaml": "32c5c6e061feb414c686ffb6cb0455c83c7db8b09f27a7805910cb8598d4efb1",
+ "artifacthub/library/general/containerresourceratios/1.0.0/samples/container-must-meet-memory-and-cpu-ratio/example_disallowed.yaml": "ac52cd1504acca139e2fa59a18e691605ab5b4db152866a614ef816cd40ce209",
+ "artifacthub/library/general/containerresourceratios/1.0.0/samples/container-must-meet-ratio/constraint.yaml": "5b1b3488631350726f640a9649dd8b52cf35cea06916797f277dfd29f616f1ee",
+ "artifacthub/library/general/containerresourceratios/1.0.0/samples/container-must-meet-ratio/example_allowed.yaml": "922799481a7f3739aaf184693eec12ebf6cf6d98549509a7217ecccefe5d4088",
+ "artifacthub/library/general/containerresourceratios/1.0.0/samples/container-must-meet-ratio/example_disallowed.yaml": "8158c59e581ae2d14de78d15d30cb24bc392e545a4de7675cdb0727b33977045",
+ "artifacthub/library/general/containerresourceratios/1.0.0/suite.yaml": "420d43fd8ea612212eb0be7eb25518b8076ba30a07e297a441c6a727f12c2832",
+ "artifacthub/library/general/containerresourceratios/1.0.0/template.yaml": "51646449b06918c75074ceb9f4d927877983c5f624d7b22f1a3c66de7ed6857e",
+ "artifacthub/library/general/containerresourceratios/1.0.1/artifacthub-pkg.yml": "b41dd85f6f64810bb89c90a0abb6de47682290493feb2db3f9e277e91119ef3b",
+ "artifacthub/library/general/containerresourceratios/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerresourceratios/1.0.1/samples/container-must-meet-memory-and-cpu-ratio/constraint.yaml": "c3dc4b3bd8c508de89d134bf38a2a13eab058fcf968cb96fa916ba2a8d8abf12",
+ "artifacthub/library/general/containerresourceratios/1.0.1/samples/container-must-meet-memory-and-cpu-ratio/example_allowed.yaml": "32c5c6e061feb414c686ffb6cb0455c83c7db8b09f27a7805910cb8598d4efb1",
+ "artifacthub/library/general/containerresourceratios/1.0.1/samples/container-must-meet-memory-and-cpu-ratio/example_disallowed.yaml": "ac52cd1504acca139e2fa59a18e691605ab5b4db152866a614ef816cd40ce209",
+ "artifacthub/library/general/containerresourceratios/1.0.1/samples/container-must-meet-ratio/constraint.yaml": "5b1b3488631350726f640a9649dd8b52cf35cea06916797f277dfd29f616f1ee",
+ "artifacthub/library/general/containerresourceratios/1.0.1/samples/container-must-meet-ratio/example_allowed.yaml": "922799481a7f3739aaf184693eec12ebf6cf6d98549509a7217ecccefe5d4088",
+ "artifacthub/library/general/containerresourceratios/1.0.1/samples/container-must-meet-ratio/example_disallowed.yaml": "8158c59e581ae2d14de78d15d30cb24bc392e545a4de7675cdb0727b33977045",
+ "artifacthub/library/general/containerresourceratios/1.0.1/suite.yaml": "420d43fd8ea612212eb0be7eb25518b8076ba30a07e297a441c6a727f12c2832",
+ "artifacthub/library/general/containerresourceratios/1.0.1/template.yaml": "48016ac143c986c67814869ed387054f695fc5de42c0558a3405a997f4f5544c",
+ "artifacthub/library/general/containerresources/1.0.0/artifacthub-pkg.yml": "fa6e7de14654151e663999f87825b10ee9fe86cac4b29d8915d08e52e2b07991",
+ "artifacthub/library/general/containerresources/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-cpu-requests-memory-limits-and-requests/constraint.yaml": "c8b197996bf426ec80f80488a03f3663d3d38995cc7be91d6b8631facf6bc806",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-cpu-requests-memory-limits-and-requests/empty-resources-disallowed.yaml": "479bbdb9734c2f0002851762128b5cec78ab27a93dbe3fb88e84e0a3fcb76088",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-cpu-requests-memory-limits-and-requests/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-cpu-requests-and-memory-limits-and-requests-defined-allowed.yaml": "5471417d1cc3dcfe17f9ba95c9a0f7a0475653eea030e66f6c2eda1e8c3fd400",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-memory-limits-defined-disallowed.yaml": "7193a0d9e0c337bea6091c7100048acc1116bcb480811e1c8a53fa3f22d0aa54",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-requests-defined-disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-limits-and-requests/constraint.yaml": "f44df7640f37511eff426aa559d1b153bd61330c41395893c2843d47310e8015",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-limits-and-requests/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-limits-and-requests/only-cpu-requests-and-memory-limits-defined-disallowed.yaml": "4e86d10b4d49d5fd8445c25e08f34e325525f7b61d0a40721bc7992a4a549afa",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-limits-and-requests/only-memory-limits-defined-disallowed.yaml": "7193a0d9e0c337bea6091c7100048acc1116bcb480811e1c8a53fa3f22d0aa54",
+ "artifacthub/library/general/containerresources/1.0.0/samples/container-must-have-limits-and-requests/only-requests-defined-disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "artifacthub/library/general/containerresources/1.0.0/samples/no-enforcements/constraint.yaml": "242fbb5c5f322cf85bee58e86d7d3f48496d7e7754c1b40fd40d67a8dce272de",
+ "artifacthub/library/general/containerresources/1.0.0/samples/no-enforcements/empty-resources-allowed.yaml": "479bbdb9734c2f0002851762128b5cec78ab27a93dbe3fb88e84e0a3fcb76088",
+ "artifacthub/library/general/containerresources/1.0.0/samples/no-enforcements/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "artifacthub/library/general/containerresources/1.0.0/samples/no-enforcements/only-cpu-requests-and-memory-limits-defined-allowed.yaml": "4e86d10b4d49d5fd8445c25e08f34e325525f7b61d0a40721bc7992a4a549afa",
+ "artifacthub/library/general/containerresources/1.0.0/samples/no-enforcements/only-requests-defined-allowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "artifacthub/library/general/containerresources/1.0.0/suite.yaml": "cb1715859dfe6797a05f55f70f2a50fe08b255c4d38e35da0feeec2fae8e39df",
+ "artifacthub/library/general/containerresources/1.0.0/template.yaml": "729ba724df0b83f42e447ce333bf91170fa8ab781bb3eb89ec887467732f9a30",
+ "artifacthub/library/general/containerresources/1.0.1/artifacthub-pkg.yml": "5e702976833247945891f13f721ef61a69c403106a090d89e850a222f59bc9f7",
+ "artifacthub/library/general/containerresources/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-cpu-requests-memory-limits-and-requests/constraint.yaml": "c8b197996bf426ec80f80488a03f3663d3d38995cc7be91d6b8631facf6bc806",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-cpu-requests-memory-limits-and-requests/empty-resources-disallowed.yaml": "479bbdb9734c2f0002851762128b5cec78ab27a93dbe3fb88e84e0a3fcb76088",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-cpu-requests-memory-limits-and-requests/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-cpu-requests-and-memory-limits-and-requests-defined-allowed.yaml": "5471417d1cc3dcfe17f9ba95c9a0f7a0475653eea030e66f6c2eda1e8c3fd400",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-memory-limits-defined-disallowed.yaml": "7193a0d9e0c337bea6091c7100048acc1116bcb480811e1c8a53fa3f22d0aa54",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-requests-defined-disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-limits-and-requests/constraint.yaml": "f44df7640f37511eff426aa559d1b153bd61330c41395893c2843d47310e8015",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-limits-and-requests/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-limits-and-requests/only-cpu-requests-and-memory-limits-defined-disallowed.yaml": "4e86d10b4d49d5fd8445c25e08f34e325525f7b61d0a40721bc7992a4a549afa",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-limits-and-requests/only-memory-limits-defined-disallowed.yaml": "7193a0d9e0c337bea6091c7100048acc1116bcb480811e1c8a53fa3f22d0aa54",
+ "artifacthub/library/general/containerresources/1.0.1/samples/container-must-have-limits-and-requests/only-requests-defined-disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "artifacthub/library/general/containerresources/1.0.1/samples/no-enforcements/constraint.yaml": "242fbb5c5f322cf85bee58e86d7d3f48496d7e7754c1b40fd40d67a8dce272de",
+ "artifacthub/library/general/containerresources/1.0.1/samples/no-enforcements/empty-resources-allowed.yaml": "479bbdb9734c2f0002851762128b5cec78ab27a93dbe3fb88e84e0a3fcb76088",
+ "artifacthub/library/general/containerresources/1.0.1/samples/no-enforcements/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "artifacthub/library/general/containerresources/1.0.1/samples/no-enforcements/only-cpu-requests-and-memory-limits-defined-allowed.yaml": "4e86d10b4d49d5fd8445c25e08f34e325525f7b61d0a40721bc7992a4a549afa",
+ "artifacthub/library/general/containerresources/1.0.1/samples/no-enforcements/only-requests-defined-allowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "artifacthub/library/general/containerresources/1.0.1/suite.yaml": "cb1715859dfe6797a05f55f70f2a50fe08b255c4d38e35da0feeec2fae8e39df",
+ "artifacthub/library/general/containerresources/1.0.1/template.yaml": "5efa3078bbf1b5c943b1a9d97f7ac3d614ca80edc506d3c91d9484a7a00d98b3",
+ "artifacthub/library/general/disallowanonymous/1.0.0/artifacthub-pkg.yml": "ad9aae7e447142201e1aae82d274e5cdab5fc666e60a135b3a8a4db71d962d8d",
+ "artifacthub/library/general/disallowanonymous/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/disallowanonymous/1.0.0/samples/no-anonymous-bindings/constraint.yaml": "a8786739081668b0bea12810cf4c81c2627fd7ec023e257f5181dc5f3c22c7c2",
+ "artifacthub/library/general/disallowanonymous/1.0.0/samples/no-anonymous-bindings/example_allowed.yaml": "1ef82abe232b7cea592d9e24da6b4fee8cb88b141e40e2a061fadc29fea821a1",
+ "artifacthub/library/general/disallowanonymous/1.0.0/samples/no-anonymous-bindings/example_disallowed.yaml": "5d003e30873703526d357e76108f4ce846886edc0c8be30e1c8f9cf777bde7de",
+ "artifacthub/library/general/disallowanonymous/1.0.0/suite.yaml": "9485c78304fdfd7f7619490f5fac0f81d124caa79e707570b7701e03866938d4",
+ "artifacthub/library/general/disallowanonymous/1.0.0/template.yaml": "6ceafefcfd2492b3c632cc88f109ef52228afe7100ce96e3ecb1d5da2e9f2eb0",
+ "artifacthub/library/general/disallowanonymous/1.0.1/artifacthub-pkg.yml": "4cb43cacf7a642e2a04413b849185e87133f56cdd87536e275423e3097b3185b",
+ "artifacthub/library/general/disallowanonymous/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/disallowanonymous/1.0.1/samples/no-anonymous-bindings/constraint.yaml": "a8786739081668b0bea12810cf4c81c2627fd7ec023e257f5181dc5f3c22c7c2",
+ "artifacthub/library/general/disallowanonymous/1.0.1/samples/no-anonymous-bindings/example_allowed.yaml": "1ef82abe232b7cea592d9e24da6b4fee8cb88b141e40e2a061fadc29fea821a1",
+ "artifacthub/library/general/disallowanonymous/1.0.1/samples/no-anonymous-bindings/example_disallowed.yaml": "5d003e30873703526d357e76108f4ce846886edc0c8be30e1c8f9cf777bde7de",
+ "artifacthub/library/general/disallowanonymous/1.0.1/suite.yaml": "9485c78304fdfd7f7619490f5fac0f81d124caa79e707570b7701e03866938d4",
+ "artifacthub/library/general/disallowanonymous/1.0.1/template.yaml": "16628f4483b24da76ef5d2ae30564e9815260e90f5cddc2dc954500668cfe72a",
+ "artifacthub/library/general/disallowanonymous/1.1.0/artifacthub-pkg.yml": "519d8e2fd563633dc218c85cd50200ce5e54b9b354303a78d811d36cd0c9f1a9",
+ "artifacthub/library/general/disallowanonymous/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/disallowanonymous/1.1.0/samples/no-anonymous-bindings/constraint.yaml": "a8786739081668b0bea12810cf4c81c2627fd7ec023e257f5181dc5f3c22c7c2",
+ "artifacthub/library/general/disallowanonymous/1.1.0/samples/no-anonymous-bindings/example_allowed.yaml": "1ef82abe232b7cea592d9e24da6b4fee8cb88b141e40e2a061fadc29fea821a1",
+ "artifacthub/library/general/disallowanonymous/1.1.0/samples/no-anonymous-bindings/example_disallowed.yaml": "1d17c438a82e968780af02f99ffda03e20d20dc517d1a0a139b70b51d5b6f872",
+ "artifacthub/library/general/disallowanonymous/1.1.0/samples/no-authenticated/constraint.yaml": "4f4aaf9b975d88b9c6a63e3ce649a3a9ca4276ae389136a6dfaef9c504aa926a",
+ "artifacthub/library/general/disallowanonymous/1.1.0/samples/no-authenticated/example_disallowed.yaml": "79a8c234e1d50633f5bca3aa607540d63698fc7ea0ca009179c1b47f85aad32a",
+ "artifacthub/library/general/disallowanonymous/1.1.0/suite.yaml": "88ccdfd1e46689ffb44a531cfce4b21300646848bb83fdbfd3cb47e03181ccdd",
+ "artifacthub/library/general/disallowanonymous/1.1.0/template.yaml": "104b948ce4fd793ec1c3105bbaeeaee3b6979ac020d4d97d1e1cbb2967158a84",
+ "artifacthub/library/general/disallowedrepos/1.0.0/artifacthub-pkg.yml": "c4da723db39632bdeff22c10dd2430e493dac2c69fc2c7546ce68fa92ce29291",
+ "artifacthub/library/general/disallowedrepos/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/disallowedrepos/1.0.0/samples/repo-must-not-be-k8s-gcr-io/constraint.yaml": "b7ca7bc8160cb45cd28eee8598cfe98d23a9eac1a014af54c8a62cff6593c56b",
+ "artifacthub/library/general/disallowedrepos/1.0.0/samples/repo-must-not-be-k8s-gcr-io/disallowed_all.yaml": "d1b877b67ff39357758c0aa172effa155a687e27669acf6f6f40cf1b15cdc5f0",
+ "artifacthub/library/general/disallowedrepos/1.0.0/samples/repo-must-not-be-k8s-gcr-io/example_allowed.yaml": "123b3515b9af32237ec8b22e367ddf917db77776c7df2e4bc958492a2459f22b",
+ "artifacthub/library/general/disallowedrepos/1.0.0/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_both.yaml": "fa3a27ca86e0decacd40925f6ff2b2fb853dc5bf5fd556f925329f3febc62637",
+ "artifacthub/library/general/disallowedrepos/1.0.0/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_container.yaml": "eb428f8d51a5259683c7e22f99cf11b0f2505ae172c5ee0355dabb617749ee33",
+ "artifacthub/library/general/disallowedrepos/1.0.0/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_initcontainer.yaml": "1ae2bff2b8d5df69b7fcd91a30f31eacffd05922a83ab5e31592e9992f2aece1",
+ "artifacthub/library/general/disallowedrepos/1.0.0/suite.yaml": "57df9230d3f909db9c2c2db1bbc8c9bfb0b1187e9c318a2b46acc7a3d3df35a7",
+ "artifacthub/library/general/disallowedrepos/1.0.0/template.yaml": "413786c958b87d56b915bc7b19b71e839455a71f5be53af09b1625dfa6cb7419",
+ "artifacthub/library/general/disallowedtags/1.0.0/artifacthub-pkg.yml": "32ed7d5dcfa9d28078f685e45d8d842d6e39246ccecc16ee3fde3dd210acf6df",
+ "artifacthub/library/general/disallowedtags/1.0.0/kustomization.yaml": "a289682ee66bb61fcf211c5f49793d470bf04aa6aea6871ccb77be829660d29c",
+ "artifacthub/library/general/disallowedtags/1.0.0/samples/container-image-must-not-have-latest-tag/constraint.yaml": "bd817d73db918faaabd6cadf5ab0e52efa130c28c7992aa9294ddf58dc2387eb",
+ "artifacthub/library/general/disallowedtags/1.0.0/samples/container-image-must-not-have-latest-tag/disallowed_tag_ephemeral.yaml": "fb69ad6c8ab2b2ad42ea6d4700b552c07e0d1f8b4a488b3ea6277a394828fd3b",
+ "artifacthub/library/general/disallowedtags/1.0.0/samples/container-image-must-not-have-latest-tag/example_allowed.yaml": "53f39eced83af4ee024da1b33e3e51be28ef919fd61cfecfc44342f36c5c1b90",
+ "artifacthub/library/general/disallowedtags/1.0.0/samples/container-image-must-not-have-latest-tag/example_disallowed_tag.yaml": "7c82a59e59ebe06173840c061c5bfac516fb735e2fe9598f4d56bef2bfc3dbc5",
+ "artifacthub/library/general/disallowedtags/1.0.0/samples/container-image-must-not-have-latest-tag/example_exempt_image_w_disallowed_tag.yaml": "79bfa5276b2afc5737c4259c1aaf2a592fcf36e0da8b14b2a205da2d6c28a466",
+ "artifacthub/library/general/disallowedtags/1.0.0/samples/container-image-must-not-have-latest-tag/example_no_tag.yaml": "440640397ecd78e5f6aeb8c462c2f5b5db12def1c28ab8270bf6849ffb055b7e",
+ "artifacthub/library/general/disallowedtags/1.0.0/samples/container-image-must-not-have-latest-tag/example_some_disallowed_tags.yaml": "08f11aefc9e7bfb235e00a7bbc45090c9b3d21c8ee100102de36ce516eaa7beb",
+ "artifacthub/library/general/disallowedtags/1.0.0/suite.yaml": "60cee7b4a05875a21d2072401c53f8015d5fc32cac3da7199d4bbf81c81b0474",
+ "artifacthub/library/general/disallowedtags/1.0.0/template.yaml": "93b25378e7819aa8f19b891e9dcdec50307b2a8e53b5c8ae492a2a70ebd312c9",
+ "artifacthub/library/general/disallowedtags/1.0.1/artifacthub-pkg.yml": "bf7dba96cc60d88086276d0a0c628951c883d99c6e42d00f945527e876ac1b94",
+ "artifacthub/library/general/disallowedtags/1.0.1/kustomization.yaml": "a289682ee66bb61fcf211c5f49793d470bf04aa6aea6871ccb77be829660d29c",
+ "artifacthub/library/general/disallowedtags/1.0.1/samples/container-image-must-not-have-latest-tag/constraint.yaml": "bd817d73db918faaabd6cadf5ab0e52efa130c28c7992aa9294ddf58dc2387eb",
+ "artifacthub/library/general/disallowedtags/1.0.1/samples/container-image-must-not-have-latest-tag/disallowed_tag_ephemeral.yaml": "fb69ad6c8ab2b2ad42ea6d4700b552c07e0d1f8b4a488b3ea6277a394828fd3b",
+ "artifacthub/library/general/disallowedtags/1.0.1/samples/container-image-must-not-have-latest-tag/example_allowed.yaml": "53f39eced83af4ee024da1b33e3e51be28ef919fd61cfecfc44342f36c5c1b90",
+ "artifacthub/library/general/disallowedtags/1.0.1/samples/container-image-must-not-have-latest-tag/example_disallowed_tag.yaml": "7c82a59e59ebe06173840c061c5bfac516fb735e2fe9598f4d56bef2bfc3dbc5",
+ "artifacthub/library/general/disallowedtags/1.0.1/samples/container-image-must-not-have-latest-tag/example_exempt_image_w_disallowed_tag.yaml": "79bfa5276b2afc5737c4259c1aaf2a592fcf36e0da8b14b2a205da2d6c28a466",
+ "artifacthub/library/general/disallowedtags/1.0.1/samples/container-image-must-not-have-latest-tag/example_no_tag.yaml": "440640397ecd78e5f6aeb8c462c2f5b5db12def1c28ab8270bf6849ffb055b7e",
+ "artifacthub/library/general/disallowedtags/1.0.1/samples/container-image-must-not-have-latest-tag/example_some_disallowed_tags.yaml": "08f11aefc9e7bfb235e00a7bbc45090c9b3d21c8ee100102de36ce516eaa7beb",
+ "artifacthub/library/general/disallowedtags/1.0.1/suite.yaml": "60cee7b4a05875a21d2072401c53f8015d5fc32cac3da7199d4bbf81c81b0474",
+ "artifacthub/library/general/disallowedtags/1.0.1/template.yaml": "b5f432f03f04db0f4b648dcdf08a8ace8a0c822b5d73f12dba521433a56942a7",
+ "artifacthub/library/general/disallowedtags/1.0.2/artifacthub-pkg.yml": "b675076c86d471a8bbe34f290f43e6eec03b914b4882b541e0aac48f483d9d93",
+ "artifacthub/library/general/disallowedtags/1.0.2/kustomization.yaml": "a289682ee66bb61fcf211c5f49793d470bf04aa6aea6871ccb77be829660d29c",
+ "artifacthub/library/general/disallowedtags/1.0.2/samples/container-image-must-not-have-latest-tag/constraint.yaml": "bd817d73db918faaabd6cadf5ab0e52efa130c28c7992aa9294ddf58dc2387eb",
+ "artifacthub/library/general/disallowedtags/1.0.2/samples/container-image-must-not-have-latest-tag/disallowed_tag_ephemeral.yaml": "fb69ad6c8ab2b2ad42ea6d4700b552c07e0d1f8b4a488b3ea6277a394828fd3b",
+ "artifacthub/library/general/disallowedtags/1.0.2/samples/container-image-must-not-have-latest-tag/example_allowed.yaml": "53f39eced83af4ee024da1b33e3e51be28ef919fd61cfecfc44342f36c5c1b90",
+ "artifacthub/library/general/disallowedtags/1.0.2/samples/container-image-must-not-have-latest-tag/example_disallowed_tag.yaml": "7c82a59e59ebe06173840c061c5bfac516fb735e2fe9598f4d56bef2bfc3dbc5",
+ "artifacthub/library/general/disallowedtags/1.0.2/samples/container-image-must-not-have-latest-tag/example_exempt_image_w_disallowed_tag.yaml": "79bfa5276b2afc5737c4259c1aaf2a592fcf36e0da8b14b2a205da2d6c28a466",
+ "artifacthub/library/general/disallowedtags/1.0.2/samples/container-image-must-not-have-latest-tag/example_no_tag.yaml": "440640397ecd78e5f6aeb8c462c2f5b5db12def1c28ab8270bf6849ffb055b7e",
+ "artifacthub/library/general/disallowedtags/1.0.2/samples/container-image-must-not-have-latest-tag/example_no_tag_w_port.yaml": "197b34d4bf1d5fbf219b28d3ce10e0ad89d26c587da7db0d09f91c972efa11a2",
+ "artifacthub/library/general/disallowedtags/1.0.2/samples/container-image-must-not-have-latest-tag/example_some_disallowed_tags.yaml": "08f11aefc9e7bfb235e00a7bbc45090c9b3d21c8ee100102de36ce516eaa7beb",
+ "artifacthub/library/general/disallowedtags/1.0.2/suite.yaml": "77f4cb60937f0b73c3cee070fb5762f55a939a75358dbaedd79aea824828b97b",
+ "artifacthub/library/general/disallowedtags/1.0.2/template.yaml": "13cd18b8ab2c816e1a01cfdbc26ac490b725a314dea4b69fa0a9aa48546199f2",
+ "artifacthub/library/general/disallowinteractive/1.0.0/artifacthub-pkg.yml": "9b2cc1d23b85e2cb2867143f992729605e4e5c58cdde6cea02bda5fb9bd4e766",
+ "artifacthub/library/general/disallowinteractive/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/disallowinteractive/1.0.0/samples/no-interactive-containers/constraint.yaml": "32fc9b00f8d8efc4671b9773382d0c242b6f02cc6fa1cbe4ef682b7d93b03aad",
+ "artifacthub/library/general/disallowinteractive/1.0.0/samples/no-interactive-containers/example_allowed.yaml": "dd9130e9a8ea34e72800f2925d4e4d687774c9868cdf1a1a9c39d8dc260d7fbb",
+ "artifacthub/library/general/disallowinteractive/1.0.0/samples/no-interactive-containers/example_disallowed.yaml": "2bfe160836f62b1703eb8695425395c5c73f9fa04657fbf7d5ae821189707153",
+ "artifacthub/library/general/disallowinteractive/1.0.0/suite.yaml": "6b9d985b626865ee87917c74e52a22fc64f9f2e8728133b9de559e4c726c59c5",
+ "artifacthub/library/general/disallowinteractive/1.0.0/template.yaml": "495943c4597c954ea0426b37fe88fe6b8c498e89dceddfcbde25705e60879fbb",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/artifacthub-pkg.yml": "2a882bea952773535202ba0400d4ed330afb755b0ef744391a8ba05bd40d9e92",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/samples/container-must-have-ephemeral-storage-limit/constraint.yaml": "a6be1908ea078792cee878bf46497774d522081c2d32227186cf7d8d1ac615c1",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage-initContainer.yaml": "69f09c68f6d6547f84581bf103f0be016895e5a506bdd661ff27d5bc93368601",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage.yaml": "a700bcf8ac12c2ab2abc4e316ca773eaaaf71cc66fa270ce99e6b48e667065c5",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi-initContainer.yaml": "6929b9c7dd6184db342e2c83ab4699ace1d5d7db7ebc035b266f0d750a239c23",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi.yaml": "71c6065cd471e308088bc4354012822e8b627533544db01b318e65d23692bb79",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_unspecified.yaml": "4ce6c2d5614f52cdd1ceb494d3ebc55db9fd66998c64fac40b178d5d073637e7",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/suite.yaml": "d8daf6fec3ad14f0d48ee668ce68038c7411e0ac70c6fbe1fbdc5938fdf2169b",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.0/template.yaml": "030f69b8112fc44dea3261d793b80b8508444d714e4cdb21e078d5472533f5d8",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/artifacthub-pkg.yml": "5291483b7b7ed34ca58ecdcb99582881452826b5b4d7f59d5b0935c80f268d47",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/samples/container-must-have-ephemeral-storage-limit/constraint.yaml": "a6be1908ea078792cee878bf46497774d522081c2d32227186cf7d8d1ac615c1",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage-initContainer.yaml": "69f09c68f6d6547f84581bf103f0be016895e5a506bdd661ff27d5bc93368601",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage.yaml": "a700bcf8ac12c2ab2abc4e316ca773eaaaf71cc66fa270ce99e6b48e667065c5",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi-initContainer.yaml": "6929b9c7dd6184db342e2c83ab4699ace1d5d7db7ebc035b266f0d750a239c23",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi.yaml": "71c6065cd471e308088bc4354012822e8b627533544db01b318e65d23692bb79",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_unspecified.yaml": "4ce6c2d5614f52cdd1ceb494d3ebc55db9fd66998c64fac40b178d5d073637e7",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/samples/container-must-have-ephemeral-storage-limit/update.yaml": "518e06c9305a201c268769884151846cd5a5a49b53916d16694a39ff82dd3375",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/suite.yaml": "45fa06fad7a6ad894ecbaf85a4e26c4c16c0d0ccb5701845d62bc9f1de6ca34d",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.1/template.yaml": "eea7429e4f6797d1cce6d68456912e67b1e0455b656f5127114fe6ec9e83a194",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/artifacthub-pkg.yml": "310b10ac599c11b68fb86b13745ccfefe9516c80de7e668a7e4763e993ce21c3",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/samples/container-must-have-ephemeral-storage-limit/constraint.yaml": "a6be1908ea078792cee878bf46497774d522081c2d32227186cf7d8d1ac615c1",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage-initContainer.yaml": "69f09c68f6d6547f84581bf103f0be016895e5a506bdd661ff27d5bc93368601",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage.yaml": "a700bcf8ac12c2ab2abc4e316ca773eaaaf71cc66fa270ce99e6b48e667065c5",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi-initContainer.yaml": "6929b9c7dd6184db342e2c83ab4699ace1d5d7db7ebc035b266f0d750a239c23",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi.yaml": "71c6065cd471e308088bc4354012822e8b627533544db01b318e65d23692bb79",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_unspecified.yaml": "4ce6c2d5614f52cdd1ceb494d3ebc55db9fd66998c64fac40b178d5d073637e7",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/samples/container-must-have-ephemeral-storage-limit/update.yaml": "518e06c9305a201c268769884151846cd5a5a49b53916d16694a39ff82dd3375",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/suite.yaml": "45fa06fad7a6ad894ecbaf85a4e26c4c16c0d0ccb5701845d62bc9f1de6ca34d",
+ "artifacthub/library/general/ephemeralstoragelimit/1.0.2/template.yaml": "5aa2a53912ef76c61bbb8fb5fed17579de9d0c17ec5294dcb062f0d3b0c10fbb",
+ "artifacthub/library/general/externalip/1.0.0/artifacthub-pkg.yml": "c661b843bdd7deec67cb194ac857d3c2c8579225f8d1daf6d0a0abc8c1e1eac7",
+ "artifacthub/library/general/externalip/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/externalip/1.0.0/samples/allowed-ip/constraint.yaml": "c54162d63d1501d5fa83f9262d081043aeb421228f20cee99f1c097fd9c565c1",
+ "artifacthub/library/general/externalip/1.0.0/samples/allowed-ip/example_allowed.yaml": "3ff02eed377901e773ec1eaa91e0af32e2530cc42ca59a9039e1c82a62770690",
+ "artifacthub/library/general/externalip/1.0.0/samples/allowed-ip/example_disallowed.yaml": "6ab2ca36708512235a98e47488d5b3706fc96c43b82da0856fa80e5943c35acb",
+ "artifacthub/library/general/externalip/1.0.0/suite.yaml": "0faf2d7bf055cebc19d184d4211977e257d2b9e57d618ed66a248019a91bd36b",
+ "artifacthub/library/general/externalip/1.0.0/template.yaml": "84d20c7ef7198b7ec6dcb6cd0d7fe756f3e1f72b773ce3a688ea9744dc60ad66",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/artifacthub-pkg.yml": "60599714deaf8917106202f1d2dfc68fe98e2f1a9027294d158cf9b19223a09d",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/samples/horizontalpodautoscaler/constraint.yaml": "7e4e3d757cde3eec626467a58a22de548dd79ea4c91a0fa62ee9cbdeadd9c8f3",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/samples/horizontalpodautoscaler/example_allowed_hpa.yaml": "d8676bef36a78f7231776d606ad10c098017b030c916da6fd45a08348dc95faf",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/samples/horizontalpodautoscaler/example_disallowed_hpa_replicas.yaml": "cbdae315250cd11656f4c2cb2cb4089a14ee1c5ef4179cfaddbc8e3ea1fc3563",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/samples/horizontalpodautoscaler/example_disallowed_hpa_replicaspread.yaml": "187a949347eb2731da6eb6c5bc8f368362d859e6a875104a8bf62b85459de971",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/samples/horizontalpodautoscaler/example_disallowed_hpa_scaletarget.yaml": "28992e52ced3252766c748cfca205e4a45227acbbabd7079e37264a096ac75c5",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/samples/horizontalpodautoscaler/example_inventory.yaml": "ce641929e99bd4876caa1e8335a1d1bd621420e79ae10505e2d6a3fd5bf1e2e1",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/suite.yaml": "e15696a7bc013467cd4a099ba3f00ef4a123094f70ce06d2317a52e5a18bd6e0",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/sync.yaml": "e67bad834d8b1f23051d67dec932e944f4ee9f530b9cb5c41a85cbe3d76977a7",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.0/template.yaml": "95a980acf96e92377977b2587aec26702b4e491d8e1ef536c4e49149be5f0749",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/artifacthub-pkg.yml": "a4d7b63e684f30cd6b42db3fed4fa7d5a75c8deeb392fa43cf171cabdf86a953",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/samples/horizontalpodautoscaler/constraint.yaml": "7e4e3d757cde3eec626467a58a22de548dd79ea4c91a0fa62ee9cbdeadd9c8f3",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/samples/horizontalpodautoscaler/example_allowed_hpa.yaml": "d8676bef36a78f7231776d606ad10c098017b030c916da6fd45a08348dc95faf",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/samples/horizontalpodautoscaler/example_disallowed_hpa_replicas.yaml": "cbdae315250cd11656f4c2cb2cb4089a14ee1c5ef4179cfaddbc8e3ea1fc3563",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/samples/horizontalpodautoscaler/example_disallowed_hpa_replicaspread.yaml": "187a949347eb2731da6eb6c5bc8f368362d859e6a875104a8bf62b85459de971",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/samples/horizontalpodautoscaler/example_disallowed_hpa_scaletarget.yaml": "28992e52ced3252766c748cfca205e4a45227acbbabd7079e37264a096ac75c5",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/samples/horizontalpodautoscaler/example_inventory.yaml": "ce641929e99bd4876caa1e8335a1d1bd621420e79ae10505e2d6a3fd5bf1e2e1",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/suite.yaml": "e15696a7bc013467cd4a099ba3f00ef4a123094f70ce06d2317a52e5a18bd6e0",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/sync.yaml": "e67bad834d8b1f23051d67dec932e944f4ee9f530b9cb5c41a85cbe3d76977a7",
+ "artifacthub/library/general/horizontalpodautoscaler/1.0.1/template.yaml": "a23b0997bda95036c062f3defb87a15482ef5ecd60186ea2061404ccb8873d05",
+ "artifacthub/library/general/httpsonly/1.0.0/artifacthub-pkg.yml": "092d782f58aa03bd937478321ca9d18ddd0e9c0f884fbdb99f620297deaed6fb",
+ "artifacthub/library/general/httpsonly/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/httpsonly/1.0.0/samples/ingress-https-only-tls-optional/constraint.yaml": "52868949f9dcd7bdbddb4168ae1c4d45faa2e766cefc2881d9ffb8c66d37412c",
+ "artifacthub/library/general/httpsonly/1.0.0/samples/ingress-https-only-tls-optional/example_allowed.yaml": "cdced13d40307a509679beb059b8c81da44d3124e6a61ee73856a28bc51b1436",
+ "artifacthub/library/general/httpsonly/1.0.0/samples/ingress-https-only-tls-optional/example_disallowed.yaml": "3c1e2d57a490bfe320bb31fd0d20f8a44060aec11ab6263a96dee556759b9619",
+ "artifacthub/library/general/httpsonly/1.0.0/samples/ingress-https-only/constraint.yaml": "1bb3c3f11a2469dbd02dfadf687f177a7d7802ba4ae3d9a969fba72011b7ccc3",
+ "artifacthub/library/general/httpsonly/1.0.0/samples/ingress-https-only/example_allowed.yaml": "a9376945b531cb56582ff68f50f82f12fa7ba131414e880e9904e84ae1ae7b6a",
+ "artifacthub/library/general/httpsonly/1.0.0/samples/ingress-https-only/example_disallowed.yaml": "62ea1e1955202df3c7c40aa940265b90cab0a6d5361a3e0e0a5198b43e5b1c15",
+ "artifacthub/library/general/httpsonly/1.0.0/suite.yaml": "7d90884868209b5b04ba70c125f532256e8ee6c6e7a6e4391463d81232703e04",
+ "artifacthub/library/general/httpsonly/1.0.0/sync.yaml": "399cbc13a1fc41c087fbccfad998ad6646640f66ccd37bc19e354b7c806aabed",
+ "artifacthub/library/general/httpsonly/1.0.0/template.yaml": "546b1b2d5c6adee2a51973aabfea363bd28a75b98ed126c1aba288ae7b90f5d9",
+ "artifacthub/library/general/httpsonly/1.0.1/artifacthub-pkg.yml": "e561ba584320cd8a7e6f3bf4269f0b705305d7da6610bb217377f34430541267",
+ "artifacthub/library/general/httpsonly/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/httpsonly/1.0.1/samples/ingress-https-only-tls-optional/constraint.yaml": "52868949f9dcd7bdbddb4168ae1c4d45faa2e766cefc2881d9ffb8c66d37412c",
+ "artifacthub/library/general/httpsonly/1.0.1/samples/ingress-https-only-tls-optional/example_allowed.yaml": "cdced13d40307a509679beb059b8c81da44d3124e6a61ee73856a28bc51b1436",
+ "artifacthub/library/general/httpsonly/1.0.1/samples/ingress-https-only-tls-optional/example_disallowed.yaml": "3c1e2d57a490bfe320bb31fd0d20f8a44060aec11ab6263a96dee556759b9619",
+ "artifacthub/library/general/httpsonly/1.0.1/samples/ingress-https-only/constraint.yaml": "1bb3c3f11a2469dbd02dfadf687f177a7d7802ba4ae3d9a969fba72011b7ccc3",
+ "artifacthub/library/general/httpsonly/1.0.1/samples/ingress-https-only/example_allowed.yaml": "a9376945b531cb56582ff68f50f82f12fa7ba131414e880e9904e84ae1ae7b6a",
+ "artifacthub/library/general/httpsonly/1.0.1/samples/ingress-https-only/example_disallowed.yaml": "62ea1e1955202df3c7c40aa940265b90cab0a6d5361a3e0e0a5198b43e5b1c15",
+ "artifacthub/library/general/httpsonly/1.0.1/suite.yaml": "7d90884868209b5b04ba70c125f532256e8ee6c6e7a6e4391463d81232703e04",
+ "artifacthub/library/general/httpsonly/1.0.1/sync.yaml": "399cbc13a1fc41c087fbccfad998ad6646640f66ccd37bc19e354b7c806aabed",
+ "artifacthub/library/general/httpsonly/1.0.1/template.yaml": "26a285c1a0bef94a1467b9f4dde1c5f039e4b367b609e446abbad5da5bb6cdd4",
+ "artifacthub/library/general/httpsonly/1.0.2/artifacthub-pkg.yml": "6cc8fa5d674736e7bc8326c64f3b231b39a262975d559f0770be73b309abff5c",
+ "artifacthub/library/general/httpsonly/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/httpsonly/1.0.2/samples/ingress-https-only-tls-optional/constraint.yaml": "52868949f9dcd7bdbddb4168ae1c4d45faa2e766cefc2881d9ffb8c66d37412c",
+ "artifacthub/library/general/httpsonly/1.0.2/samples/ingress-https-only-tls-optional/example_allowed.yaml": "cdced13d40307a509679beb059b8c81da44d3124e6a61ee73856a28bc51b1436",
+ "artifacthub/library/general/httpsonly/1.0.2/samples/ingress-https-only-tls-optional/example_disallowed.yaml": "3c1e2d57a490bfe320bb31fd0d20f8a44060aec11ab6263a96dee556759b9619",
+ "artifacthub/library/general/httpsonly/1.0.2/samples/ingress-https-only/constraint.yaml": "1bb3c3f11a2469dbd02dfadf687f177a7d7802ba4ae3d9a969fba72011b7ccc3",
+ "artifacthub/library/general/httpsonly/1.0.2/samples/ingress-https-only/example_allowed.yaml": "a9376945b531cb56582ff68f50f82f12fa7ba131414e880e9904e84ae1ae7b6a",
+ "artifacthub/library/general/httpsonly/1.0.2/samples/ingress-https-only/example_disallowed.yaml": "62ea1e1955202df3c7c40aa940265b90cab0a6d5361a3e0e0a5198b43e5b1c15",
+ "artifacthub/library/general/httpsonly/1.0.2/suite.yaml": "7d90884868209b5b04ba70c125f532256e8ee6c6e7a6e4391463d81232703e04",
+ "artifacthub/library/general/httpsonly/1.0.2/sync.yaml": "399cbc13a1fc41c087fbccfad998ad6646640f66ccd37bc19e354b7c806aabed",
+ "artifacthub/library/general/httpsonly/1.0.2/template.yaml": "b9630881d8c485d43af1489557c57e1aa83e71bbcf2e24ef1545e8b5eec41ea9",
+ "artifacthub/library/general/imagedigests/1.0.0/artifacthub-pkg.yml": "7a1333542fce45252da1791f365491a5fd232fa4dedb26e72d095dfbcd85b8d6",
+ "artifacthub/library/general/imagedigests/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/imagedigests/1.0.0/samples/container-image-must-have-digest/constraint.yaml": "090ef9eec374552cfd15dad376093fc88f8b549d6b1356cf4019482d30f83e78",
+ "artifacthub/library/general/imagedigests/1.0.0/samples/container-image-must-have-digest/disallowed_all.yaml": "2af67706b6f34fa8838eb48af4fc10cd4a7f0a54bab7da60a85583777e6d4064",
+ "artifacthub/library/general/imagedigests/1.0.0/samples/container-image-must-have-digest/example_allowed.yaml": "c22ce5ce2fa974ebf7677e71aac252f991027c2c09d00077fb2cd8084028d646",
+ "artifacthub/library/general/imagedigests/1.0.0/samples/container-image-must-have-digest/example_disallowed.yaml": "02d0811b4ae5edf99abc75681f5f760d5f8bdc4f6726cf1e57b49e048a35002e",
+ "artifacthub/library/general/imagedigests/1.0.0/suite.yaml": "66bb79dae4108ae65f7b2f1df4aa7ba16482a0709863ae7449cb0c77164e83b6",
+ "artifacthub/library/general/imagedigests/1.0.0/template.yaml": "89914f486402b2070a526be87a471ad763a6b778fc28ad7fe1460a6a8b1977fb",
+ "artifacthub/library/general/imagedigests/1.0.1/artifacthub-pkg.yml": "3510eafa21a6f556f10feca2b70421a572cb9f90483bf1bf04520ee3a022c0d0",
+ "artifacthub/library/general/imagedigests/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/imagedigests/1.0.1/samples/container-image-must-have-digest/constraint.yaml": "090ef9eec374552cfd15dad376093fc88f8b549d6b1356cf4019482d30f83e78",
+ "artifacthub/library/general/imagedigests/1.0.1/samples/container-image-must-have-digest/disallowed_all.yaml": "2af67706b6f34fa8838eb48af4fc10cd4a7f0a54bab7da60a85583777e6d4064",
+ "artifacthub/library/general/imagedigests/1.0.1/samples/container-image-must-have-digest/example_allowed.yaml": "c22ce5ce2fa974ebf7677e71aac252f991027c2c09d00077fb2cd8084028d646",
+ "artifacthub/library/general/imagedigests/1.0.1/samples/container-image-must-have-digest/example_disallowed.yaml": "02d0811b4ae5edf99abc75681f5f760d5f8bdc4f6726cf1e57b49e048a35002e",
+ "artifacthub/library/general/imagedigests/1.0.1/suite.yaml": "66bb79dae4108ae65f7b2f1df4aa7ba16482a0709863ae7449cb0c77164e83b6",
+ "artifacthub/library/general/imagedigests/1.0.1/template.yaml": "89979298c5e8bbac821de2dd56eb4249394f02fce91f53d6f0e5b6c1b7a70168",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.0/README.md": "a80fbc67f71ddf5035d6ed7a1d87e3747c66253594648a812b2ce4cc9e7853cb",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.0/artifacthub-pkg.yml": "4dc2a95cb83ea010496b10d0e2e023ffd80298700e4b30d6d81b2ad8f2c7c31b",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.0/samples/noupdateserviceaccount/constraint.yaml": "7df06938ad655fb65db0fe4678be4bfb2f16850f871cfc81f55b470e4dd9f9f3",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.0/samples/noupdateserviceaccount/example_allowed.yaml": "c004659c8c5484ca521941b97b4849deb5b7a6a0354a7690b2a30aa33e94b2ed",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.0/suite.yaml": "ba15be20297333a47bc10b20fc714fa089ba1f9e6c93a9395015766c751728bc",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.0/template.yaml": "98696c15e48452c722bb3dbd9c44f87bfcbb47bf3842c235ae67fe8a8e46a9d5",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.1/README.md": "a80fbc67f71ddf5035d6ed7a1d87e3747c66253594648a812b2ce4cc9e7853cb",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.1/artifacthub-pkg.yml": "a04849f483d28f40295faf8569dca73942dda316bf9568ec66cec799217ede0d",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.1/samples/noupdateserviceaccount/constraint.yaml": "7df06938ad655fb65db0fe4678be4bfb2f16850f871cfc81f55b470e4dd9f9f3",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.1/samples/noupdateserviceaccount/example_allowed.yaml": "c004659c8c5484ca521941b97b4849deb5b7a6a0354a7690b2a30aa33e94b2ed",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.1/suite.yaml": "ba15be20297333a47bc10b20fc714fa089ba1f9e6c93a9395015766c751728bc",
+ "artifacthub/library/general/noupdateserviceaccount/1.0.1/template.yaml": "cb3187044492d4767cb2db04ae13a534af0260625222ac73b95bf885adf72462",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/artifacthub-pkg.yml": "4fd29a1d814ab44e430af52f31dd3bdf17d8016354e4a612ac44eda29b197974",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/constraint.yaml": "4dbd1042b11c5ae17cf2a8d1bb97a1ec9032e56095f697869ea967b9261011fc",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/example_allowed_deployment1.yaml": "e8e66200f3994513f9dc6d42427d032a5978e3f8f4a613b1735c8c547d12d9f2",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/example_allowed_deployment2.yaml": "fb9b293a2dcef8c51413e9adc2b7e1a01d5b4f66c5613eb6d5b31b6e5cd85b1e",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/example_allowed_pdb.yaml": "c466d32539147407457029c5732c2cafcf976d9e4c1cd4984095d6055986a932",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/example_disallowed_deployment.yaml": "2f49f6650241648f9b7ed590a91b1e0be935a2cf5e972298d83d55827e63cfa5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/example_disallowed_pdb.yaml": "ade767fc033ee17884fd5a59d3fe2f856edf1e920104a3acbab76cb2cada41e9",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/example_inventory_allowed1.yaml": "0793cd649c0fabe072a10b42f5f2e28e5b42db6177edfec537a4ed9d1aa7c498",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/example_inventory_allowed2.yaml": "ab112e57f982e26b5f4dc8caeefa35451293b10913d4bdae5c0d06b2df66a460",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/samples/poddisruptionbudget/example_inventory_disallowed.yaml": "9c8cbb369957d1a7e0665b0ba0403952d7a3d6ec07a105a84ce3f13832103bb7",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/suite.yaml": "7179d4fa541806c1a0a9e81a4000d71d5ac617ff7b9abac1e0bdfbd285057e67",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/sync.yaml": "0d8032054e9da4246a4650d18a51851ea7fff623d12934295de83d38d13de4d5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.0/template.yaml": "b6223bfc8734064de38a46569355ba20e7a7ac1907c048a8fd4b2695ac965c63",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/artifacthub-pkg.yml": "a1e6a50e72756579d188143f85e80f80e6e457ec37b2932d1d9375c65f292d62",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/constraint.yaml": "4dbd1042b11c5ae17cf2a8d1bb97a1ec9032e56095f697869ea967b9261011fc",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/example_allowed_deployment1.yaml": "e8e66200f3994513f9dc6d42427d032a5978e3f8f4a613b1735c8c547d12d9f2",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/example_allowed_deployment2.yaml": "fb9b293a2dcef8c51413e9adc2b7e1a01d5b4f66c5613eb6d5b31b6e5cd85b1e",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/example_allowed_pdb.yaml": "c466d32539147407457029c5732c2cafcf976d9e4c1cd4984095d6055986a932",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/example_disallowed_deployment.yaml": "2f49f6650241648f9b7ed590a91b1e0be935a2cf5e972298d83d55827e63cfa5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/example_disallowed_pdb.yaml": "ade767fc033ee17884fd5a59d3fe2f856edf1e920104a3acbab76cb2cada41e9",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/example_inventory_allowed1.yaml": "0793cd649c0fabe072a10b42f5f2e28e5b42db6177edfec537a4ed9d1aa7c498",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/example_inventory_allowed2.yaml": "ab112e57f982e26b5f4dc8caeefa35451293b10913d4bdae5c0d06b2df66a460",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/samples/poddisruptionbudget/example_inventory_disallowed.yaml": "9c8cbb369957d1a7e0665b0ba0403952d7a3d6ec07a105a84ce3f13832103bb7",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/suite.yaml": "7179d4fa541806c1a0a9e81a4000d71d5ac617ff7b9abac1e0bdfbd285057e67",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/sync.yaml": "0d8032054e9da4246a4650d18a51851ea7fff623d12934295de83d38d13de4d5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.1/template.yaml": "183764e5960a6fda5f4dc573ca4034ef69bf9d9dd0268e35ff606c028d0c6179",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/artifacthub-pkg.yml": "c991bb7e2079b382f5b0fa4f98340abe39ce97561a1a7d2168293390dcdc7862",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/constraint.yaml": "4dbd1042b11c5ae17cf2a8d1bb97a1ec9032e56095f697869ea967b9261011fc",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_allowed_deployment1.yaml": "e8e66200f3994513f9dc6d42427d032a5978e3f8f4a613b1735c8c547d12d9f2",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_allowed_deployment2.yaml": "fb9b293a2dcef8c51413e9adc2b7e1a01d5b4f66c5613eb6d5b31b6e5cd85b1e",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_allowed_deployment3.yaml": "dfe153760bbaa449e78c6a8d0f766ee55f7bbf29aa86549f7a0184b330de4bcf",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_allowed_deployment4.yaml": "344e1e0e00c93ad2cfa020ca7f28212bb172149b8f3cd4daf5977c5f9e7d99f9",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_allowed_pdb.yaml": "c466d32539147407457029c5732c2cafcf976d9e4c1cd4984095d6055986a932",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_disallowed_deployment.yaml": "2f49f6650241648f9b7ed590a91b1e0be935a2cf5e972298d83d55827e63cfa5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_disallowed_pdb.yaml": "ade767fc033ee17884fd5a59d3fe2f856edf1e920104a3acbab76cb2cada41e9",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_inventory_allowed1.yaml": "0793cd649c0fabe072a10b42f5f2e28e5b42db6177edfec537a4ed9d1aa7c498",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_inventory_allowed2.yaml": "ab112e57f982e26b5f4dc8caeefa35451293b10913d4bdae5c0d06b2df66a460",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_inventory_allowed3.yaml": "889df96d16e0d87177679662e8fb7cc9c1a2eb300d5d8368b980195fb3fd63c2",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_inventory_allowed4.yaml": "0a00dcfe4cb3975ff9719c981069f9f5bb56069e08bcdb1b2ed3225676a07071",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/samples/poddisruptionbudget/example_inventory_disallowed.yaml": "9c8cbb369957d1a7e0665b0ba0403952d7a3d6ec07a105a84ce3f13832103bb7",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/suite.yaml": "4b9764f5fb1ca303cdf5df3862fec1cb732b4330b383a6fe91f101459e78f390",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/sync.yaml": "0d8032054e9da4246a4650d18a51851ea7fff623d12934295de83d38d13de4d5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.2/template.yaml": "053ca72d0de47c1caa99df973ad28d93cf2edf111bab30d13b011193ca9e8816",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/artifacthub-pkg.yml": "7a6ef00707e364a1835c759d8d3777cbe6738cc72fbaf30715f736d7ca12cf91",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/constraint.yaml": "4dbd1042b11c5ae17cf2a8d1bb97a1ec9032e56095f697869ea967b9261011fc",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_allowed_deployment1.yaml": "e8e66200f3994513f9dc6d42427d032a5978e3f8f4a613b1735c8c547d12d9f2",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_allowed_deployment2.yaml": "fb9b293a2dcef8c51413e9adc2b7e1a01d5b4f66c5613eb6d5b31b6e5cd85b1e",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_allowed_deployment3.yaml": "dfe153760bbaa449e78c6a8d0f766ee55f7bbf29aa86549f7a0184b330de4bcf",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_allowed_deployment4.yaml": "344e1e0e00c93ad2cfa020ca7f28212bb172149b8f3cd4daf5977c5f9e7d99f9",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_allowed_pdb.yaml": "c466d32539147407457029c5732c2cafcf976d9e4c1cd4984095d6055986a932",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_disallowed_deployment.yaml": "2f49f6650241648f9b7ed590a91b1e0be935a2cf5e972298d83d55827e63cfa5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_disallowed_pdb.yaml": "ade767fc033ee17884fd5a59d3fe2f856edf1e920104a3acbab76cb2cada41e9",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_inventory_allowed1.yaml": "0793cd649c0fabe072a10b42f5f2e28e5b42db6177edfec537a4ed9d1aa7c498",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_inventory_allowed2.yaml": "ab112e57f982e26b5f4dc8caeefa35451293b10913d4bdae5c0d06b2df66a460",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_inventory_allowed3.yaml": "889df96d16e0d87177679662e8fb7cc9c1a2eb300d5d8368b980195fb3fd63c2",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_inventory_allowed4.yaml": "0a00dcfe4cb3975ff9719c981069f9f5bb56069e08bcdb1b2ed3225676a07071",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/samples/poddisruptionbudget/example_inventory_disallowed.yaml": "9c8cbb369957d1a7e0665b0ba0403952d7a3d6ec07a105a84ce3f13832103bb7",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/suite.yaml": "4b9764f5fb1ca303cdf5df3862fec1cb732b4330b383a6fe91f101459e78f390",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/sync.yaml": "0d8032054e9da4246a4650d18a51851ea7fff623d12934295de83d38d13de4d5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.3/template.yaml": "bbffc662825455f0fdc9a582b0df37c919bad4a69137baf4913c45ebef2645be",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/artifacthub-pkg.yml": "8738d372c8a326617cbfa185dd207d9e89c364904e4cd2b5a95b3033e3ca6b6c",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/constraint.yaml": "6955e6cb5a74572c4daab859c4844d6fcff09e371890cec109918ffba4c1849f",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_allowed_deployment1.yaml": "e8e66200f3994513f9dc6d42427d032a5978e3f8f4a613b1735c8c547d12d9f2",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_allowed_deployment2.yaml": "fb9b293a2dcef8c51413e9adc2b7e1a01d5b4f66c5613eb6d5b31b6e5cd85b1e",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_allowed_deployment3.yaml": "dfe153760bbaa449e78c6a8d0f766ee55f7bbf29aa86549f7a0184b330de4bcf",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_allowed_deployment4.yaml": "344e1e0e00c93ad2cfa020ca7f28212bb172149b8f3cd4daf5977c5f9e7d99f9",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_allowed_pdb.yaml": "c466d32539147407457029c5732c2cafcf976d9e4c1cd4984095d6055986a932",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_disallowed_deployment.yaml": "2f49f6650241648f9b7ed590a91b1e0be935a2cf5e972298d83d55827e63cfa5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_disallowed_pdb.yaml": "ade767fc033ee17884fd5a59d3fe2f856edf1e920104a3acbab76cb2cada41e9",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_inventory_allowed1.yaml": "0793cd649c0fabe072a10b42f5f2e28e5b42db6177edfec537a4ed9d1aa7c498",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_inventory_allowed2.yaml": "ab112e57f982e26b5f4dc8caeefa35451293b10913d4bdae5c0d06b2df66a460",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_inventory_allowed3.yaml": "889df96d16e0d87177679662e8fb7cc9c1a2eb300d5d8368b980195fb3fd63c2",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_inventory_allowed4.yaml": "0a00dcfe4cb3975ff9719c981069f9f5bb56069e08bcdb1b2ed3225676a07071",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/samples/poddisruptionbudget/example_inventory_disallowed.yaml": "9c8cbb369957d1a7e0665b0ba0403952d7a3d6ec07a105a84ce3f13832103bb7",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/suite.yaml": "4b9764f5fb1ca303cdf5df3862fec1cb732b4330b383a6fe91f101459e78f390",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/sync.yaml": "0d8032054e9da4246a4650d18a51851ea7fff623d12934295de83d38d13de4d5",
+ "artifacthub/library/general/poddisruptionbudget/1.0.4/template.yaml": "235a0403bcd6e0c829f3692cb38698472b9120e48c803ec10b6d013c4d162ee9",
+ "artifacthub/library/general/replicalimits/1.0.0/artifacthub-pkg.yml": "365aafaf21236a336f4e450e194c4ccc4393c6b17fa86597ad0da916e183c5f1",
+ "artifacthub/library/general/replicalimits/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/replicalimits/1.0.0/samples/replicalimits/constraint.yaml": "41de6f8e6dbcf5f00ce7f652f72723d20f5f163733e1c09c7228d240f029ad72",
+ "artifacthub/library/general/replicalimits/1.0.0/samples/replicalimits/example_allowed.yaml": "ed68418a9d69e9ae15560419827df75b42fa53e223535c9f6ccf6249e8a222a0",
+ "artifacthub/library/general/replicalimits/1.0.0/samples/replicalimits/example_disallowed.yaml": "dd6e8ac51498436672ce5de5074af8da5927539aec3461c42221b694edbc018c",
+ "artifacthub/library/general/replicalimits/1.0.0/suite.yaml": "a9f40a291704783317bb0a79b6a1e177cc12edab8e27a5950a56787356d5cd4c",
+ "artifacthub/library/general/replicalimits/1.0.0/template.yaml": "bac5f386ed08011bebd56d5e1d37366290b100dc5b599d6049bd7ea5a41aeed3",
+ "artifacthub/library/general/replicalimits/1.0.1/artifacthub-pkg.yml": "79813319b6591e9a867b44ee0084a882bc1fb9c9d7b989cd8e10af7907addc48",
+ "artifacthub/library/general/replicalimits/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/replicalimits/1.0.1/samples/replicalimits/constraint.yaml": "41de6f8e6dbcf5f00ce7f652f72723d20f5f163733e1c09c7228d240f029ad72",
+ "artifacthub/library/general/replicalimits/1.0.1/samples/replicalimits/example_allowed.yaml": "ed68418a9d69e9ae15560419827df75b42fa53e223535c9f6ccf6249e8a222a0",
+ "artifacthub/library/general/replicalimits/1.0.1/samples/replicalimits/example_disallowed.yaml": "dd6e8ac51498436672ce5de5074af8da5927539aec3461c42221b694edbc018c",
+ "artifacthub/library/general/replicalimits/1.0.1/suite.yaml": "a9f40a291704783317bb0a79b6a1e177cc12edab8e27a5950a56787356d5cd4c",
+ "artifacthub/library/general/replicalimits/1.0.1/template.yaml": "974b8dcd1e566857ba6493a6b0cf9c6fa37a0c63ae7796afe5443101e55c8d2b",
+ "artifacthub/library/general/replicalimits/1.0.2/artifacthub-pkg.yml": "45e87f8a2d4bcc5f4f073f9e499c7791834c7d5c80f9f25c14011b9d4585b47e",
+ "artifacthub/library/general/replicalimits/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/replicalimits/1.0.2/samples/replicalimits/constraint.yaml": "41de6f8e6dbcf5f00ce7f652f72723d20f5f163733e1c09c7228d240f029ad72",
+ "artifacthub/library/general/replicalimits/1.0.2/samples/replicalimits/example_allowed.yaml": "ed68418a9d69e9ae15560419827df75b42fa53e223535c9f6ccf6249e8a222a0",
+ "artifacthub/library/general/replicalimits/1.0.2/samples/replicalimits/example_disallowed.yaml": "dd6e8ac51498436672ce5de5074af8da5927539aec3461c42221b694edbc018c",
+ "artifacthub/library/general/replicalimits/1.0.2/suite.yaml": "a9f40a291704783317bb0a79b6a1e177cc12edab8e27a5950a56787356d5cd4c",
+ "artifacthub/library/general/replicalimits/1.0.2/template.yaml": "760c8c0ab9915c1c9a3926150e5cba9911bd6dbea3712f3b03b19ce847592dda",
+ "artifacthub/library/general/requiredannotations/1.0.0/artifacthub-pkg.yml": "4152448cef4ff8a6c70597b7fb0a339cb8ccd4a7f539482da7dca7b3259cc494",
+ "artifacthub/library/general/requiredannotations/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredannotations/1.0.0/samples/all-must-have-certain-set-of-annotations/constraint.yaml": "21420a24aca647064d8d80312588b613705de816d70b90b425860b1e23524ed2",
+ "artifacthub/library/general/requiredannotations/1.0.0/samples/all-must-have-certain-set-of-annotations/example_allowed.yaml": "323296d0de81c2a7a44add281b2b8d73418984bb0039563ab1346ca6840d51ab",
+ "artifacthub/library/general/requiredannotations/1.0.0/samples/all-must-have-certain-set-of-annotations/example_disallowed.yaml": "fa7fe62b6fbcd951c723ab017458bcda2b3abd33357be6c009f27a0d0d66bfbf",
+ "artifacthub/library/general/requiredannotations/1.0.0/suite.yaml": "2ddb3b76bf347db492462c20d298de070ad28d6af80a5d796c16c61ecdef8364",
+ "artifacthub/library/general/requiredannotations/1.0.0/template.yaml": "7002dd7464a9f3c5d6c1e359324407eb3fc507b4a564b947b0e3278ec55028ca",
+ "artifacthub/library/general/requiredannotations/1.0.1/artifacthub-pkg.yml": "d99e7bbb1400815f35a562bf378bc972c54d132d81549f34263f0c2954b3d281",
+ "artifacthub/library/general/requiredannotations/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredannotations/1.0.1/samples/all-must-have-certain-set-of-annotations/constraint.yaml": "21420a24aca647064d8d80312588b613705de816d70b90b425860b1e23524ed2",
+ "artifacthub/library/general/requiredannotations/1.0.1/samples/all-must-have-certain-set-of-annotations/example_allowed.yaml": "323296d0de81c2a7a44add281b2b8d73418984bb0039563ab1346ca6840d51ab",
+ "artifacthub/library/general/requiredannotations/1.0.1/samples/all-must-have-certain-set-of-annotations/example_disallowed.yaml": "fa7fe62b6fbcd951c723ab017458bcda2b3abd33357be6c009f27a0d0d66bfbf",
+ "artifacthub/library/general/requiredannotations/1.0.1/suite.yaml": "2ddb3b76bf347db492462c20d298de070ad28d6af80a5d796c16c61ecdef8364",
+ "artifacthub/library/general/requiredannotations/1.0.1/template.yaml": "7fd9e24ac923ae1c83783f69f4b090245b560ca00aa82d77ce31e072ababf1c3",
+ "artifacthub/library/general/requiredlabels/1.0.0/artifacthub-pkg.yml": "5a264ee5849aa229b38f6c240a1604e13de16e4acdd1a9ad6813e526d4b8a7f5",
+ "artifacthub/library/general/requiredlabels/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredlabels/1.0.0/samples/all-must-have-owner/constraint.yaml": "08d6c67042e4d78364d6d1f8eda2848dd8f22b0e1037fa4bea348421c044b94e",
+ "artifacthub/library/general/requiredlabels/1.0.0/samples/all-must-have-owner/example_allowed.yaml": "082b4a582d3f5fbf9712b912430b12dfd9cb01c2a6b6eef613853af8854b22f6",
+ "artifacthub/library/general/requiredlabels/1.0.0/samples/all-must-have-owner/example_disallowed.yaml": "f37e428d4c8e976a9db60b8bf201bef35183fa8888feeee126701c4f29373f06",
+ "artifacthub/library/general/requiredlabels/1.0.0/suite.yaml": "d7dab2593794c21a5fb01baaf995755e7b78449b39a39f0d86133f6400f3ae8f",
+ "artifacthub/library/general/requiredlabels/1.0.0/template.yaml": "6bf167c41df8bf7143bf58855ab7268032aab7c2ef83cfe2267a5acb5b782c29",
+ "artifacthub/library/general/requiredlabels/1.0.1/artifacthub-pkg.yml": "cb9b7d1974908b66f43df4fe1c00300e6938a535993f67367f5691d68fb9c171",
+ "artifacthub/library/general/requiredlabels/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredlabels/1.0.1/samples/all-must-have-owner/constraint.yaml": "08d6c67042e4d78364d6d1f8eda2848dd8f22b0e1037fa4bea348421c044b94e",
+ "artifacthub/library/general/requiredlabels/1.0.1/samples/all-must-have-owner/example_allowed.yaml": "082b4a582d3f5fbf9712b912430b12dfd9cb01c2a6b6eef613853af8854b22f6",
+ "artifacthub/library/general/requiredlabels/1.0.1/samples/all-must-have-owner/example_disallowed.yaml": "f37e428d4c8e976a9db60b8bf201bef35183fa8888feeee126701c4f29373f06",
+ "artifacthub/library/general/requiredlabels/1.0.1/suite.yaml": "d7dab2593794c21a5fb01baaf995755e7b78449b39a39f0d86133f6400f3ae8f",
+ "artifacthub/library/general/requiredlabels/1.0.1/template.yaml": "cd0a6edd3e0debf8bdf71af6a033dfcc60955d206cff23b96b26353e17cadcf5",
+ "artifacthub/library/general/requiredlabels/1.1.0/artifacthub-pkg.yml": "873d86c41bcb0d50250b894fe2bf4da89e93e380b84dfaeef2eb559289d8f0eb",
+ "artifacthub/library/general/requiredlabels/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredlabels/1.1.0/samples/all-must-have-owner/constraint.yaml": "08d6c67042e4d78364d6d1f8eda2848dd8f22b0e1037fa4bea348421c044b94e",
+ "artifacthub/library/general/requiredlabels/1.1.0/samples/all-must-have-owner/example_allowed.yaml": "082b4a582d3f5fbf9712b912430b12dfd9cb01c2a6b6eef613853af8854b22f6",
+ "artifacthub/library/general/requiredlabels/1.1.0/samples/all-must-have-owner/example_disallowed.yaml": "f37e428d4c8e976a9db60b8bf201bef35183fa8888feeee126701c4f29373f06",
+ "artifacthub/library/general/requiredlabels/1.1.0/samples/all-must-have-owner/example_disallowed_label_value.yaml": "2fbe1e55da8f84b8652eac74c648a930656999a7ca3ebd7fbe158df02269a05f",
+ "artifacthub/library/general/requiredlabels/1.1.0/suite.yaml": "daa4f33cf2eb1722739a222da1dbb0c1c5f8413f870a2792baf066dd7c9c664c",
+ "artifacthub/library/general/requiredlabels/1.1.0/template.yaml": "260e430596b421dd8554da819666562d16131bae733bfe2f494d4ee22a96ace6",
+ "artifacthub/library/general/requiredlabels/1.1.1/artifacthub-pkg.yml": "aedcc0f5c1b9dc9558c591055ae04f1d26d55cc7dbe2d7067c669e04a6c5e7d5",
+ "artifacthub/library/general/requiredlabels/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredlabels/1.1.1/samples/all-must-have-owner/constraint.yaml": "08d6c67042e4d78364d6d1f8eda2848dd8f22b0e1037fa4bea348421c044b94e",
+ "artifacthub/library/general/requiredlabels/1.1.1/samples/all-must-have-owner/example_allowed.yaml": "082b4a582d3f5fbf9712b912430b12dfd9cb01c2a6b6eef613853af8854b22f6",
+ "artifacthub/library/general/requiredlabels/1.1.1/samples/all-must-have-owner/example_disallowed.yaml": "f37e428d4c8e976a9db60b8bf201bef35183fa8888feeee126701c4f29373f06",
+ "artifacthub/library/general/requiredlabels/1.1.1/samples/all-must-have-owner/example_disallowed_label_value.yaml": "2fbe1e55da8f84b8652eac74c648a930656999a7ca3ebd7fbe158df02269a05f",
+ "artifacthub/library/general/requiredlabels/1.1.1/suite.yaml": "daa4f33cf2eb1722739a222da1dbb0c1c5f8413f870a2792baf066dd7c9c664c",
+ "artifacthub/library/general/requiredlabels/1.1.1/template.yaml": "4f6d35f705c8c53d999db3f4bf7b3abddce5257f3d0ce83785209e236cad3cca",
+ "artifacthub/library/general/requiredlabels/1.1.2/artifacthub-pkg.yml": "b22d799de777cbd2db5f2d44f21ce573247718345e9c6d7b53661f5c3ae63404",
+ "artifacthub/library/general/requiredlabels/1.1.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredlabels/1.1.2/samples/all-must-have-owner/constraint.yaml": "08d6c67042e4d78364d6d1f8eda2848dd8f22b0e1037fa4bea348421c044b94e",
+ "artifacthub/library/general/requiredlabels/1.1.2/samples/all-must-have-owner/example_allowed.yaml": "082b4a582d3f5fbf9712b912430b12dfd9cb01c2a6b6eef613853af8854b22f6",
+ "artifacthub/library/general/requiredlabels/1.1.2/samples/all-must-have-owner/example_disallowed.yaml": "f37e428d4c8e976a9db60b8bf201bef35183fa8888feeee126701c4f29373f06",
+ "artifacthub/library/general/requiredlabels/1.1.2/samples/all-must-have-owner/example_disallowed_label_value.yaml": "2fbe1e55da8f84b8652eac74c648a930656999a7ca3ebd7fbe158df02269a05f",
+ "artifacthub/library/general/requiredlabels/1.1.2/samples/verify-label-key-only/constraint.yaml": "cf4cfaf0f0fc30b0a49472a3915c3c6735ba2fe3087bde0c6c4301589eb0c196",
+ "artifacthub/library/general/requiredlabels/1.1.2/samples/verify-label-key-only/example_allowed.yaml": "a09f3ba43cf61420ca9b0b0a7e1f682ea593b36f4757c0a26644332ecd3696d6",
+ "artifacthub/library/general/requiredlabels/1.1.2/samples/verify-label-key-only/example_disallowed.yaml": "91fb3bfc25703e70bf897ddd9d95550f3a18965a4abcec17cee25e4c47b76ff0",
+ "artifacthub/library/general/requiredlabels/1.1.2/suite.yaml": "b0de8567d094d84a1427a21a6b85228c9e7d5e9c2b1f16fc832ba564743d9fae",
+ "artifacthub/library/general/requiredlabels/1.1.2/template.yaml": "d5a639b139269d1937c5ba9bc807e5aa906cd187007f095f52b69440a0edaa44",
+ "artifacthub/library/general/requiredprobes/1.0.0/artifacthub-pkg.yml": "ae076c2881fa21f0ba5572689f6a1814516086ac353bcd2bfc16e587e806444d",
+ "artifacthub/library/general/requiredprobes/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredprobes/1.0.0/samples/must-have-probes/constraint.yaml": "d36ed31628ac6c8b14f7e547e2d9b39a04c7085f6a88708929b85b078ea80736",
+ "artifacthub/library/general/requiredprobes/1.0.0/samples/must-have-probes/example_allowed.yaml": "3f5c14fad72aa8a1cd042cef138a9be55991aeb763e2ad9069f6546d841cce36",
+ "artifacthub/library/general/requiredprobes/1.0.0/samples/must-have-probes/example_disallowed.yaml": "e6d6cdbb3c046e1a39840984056766b76596b7574b846d3d40a2c443a0e13809",
+ "artifacthub/library/general/requiredprobes/1.0.0/samples/must-have-probes/example_disallowed2.yaml": "98f30efef8eca9b24c94cd914079bb6e98fe9f636c378b86914ad1a7795e4bbb",
+ "artifacthub/library/general/requiredprobes/1.0.0/suite.yaml": "1c1aa279a4872be6f63d66ec634ef8da2914fb55a235b9ff19a8f797c818a4ad",
+ "artifacthub/library/general/requiredprobes/1.0.0/template.yaml": "c12a6d73627aff7d158fac9c863b6b396fa351b61bc627dd1c3de1b2e882ed93",
+ "artifacthub/library/general/requiredprobes/1.0.1/artifacthub-pkg.yml": "c310a1c3b2c2348a4338a9c02ed3462165f02b29bad6d7bc8890e79d1fc0071d",
+ "artifacthub/library/general/requiredprobes/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/requiredprobes/1.0.1/samples/must-have-probes/constraint.yaml": "d36ed31628ac6c8b14f7e547e2d9b39a04c7085f6a88708929b85b078ea80736",
+ "artifacthub/library/general/requiredprobes/1.0.1/samples/must-have-probes/example_allowed.yaml": "3f5c14fad72aa8a1cd042cef138a9be55991aeb763e2ad9069f6546d841cce36",
+ "artifacthub/library/general/requiredprobes/1.0.1/samples/must-have-probes/example_disallowed.yaml": "e6d6cdbb3c046e1a39840984056766b76596b7574b846d3d40a2c443a0e13809",
+ "artifacthub/library/general/requiredprobes/1.0.1/samples/must-have-probes/example_disallowed2.yaml": "98f30efef8eca9b24c94cd914079bb6e98fe9f636c378b86914ad1a7795e4bbb",
+ "artifacthub/library/general/requiredprobes/1.0.1/samples/must-have-probes/update.yaml": "05b10f7ccb1e64d008badf5c27d5f940b78ff685a5b2d4f99219eaf6833a24f5",
+ "artifacthub/library/general/requiredprobes/1.0.1/suite.yaml": "2b019deb6c569253acc3feebcf60db42a709c6ca6e5e3cd9b12896f51e8b7add",
+ "artifacthub/library/general/requiredprobes/1.0.1/template.yaml": "9e28fbb96a8a5201a0f5bbd407036f661e5533b13b97993ae2afa909d7bed86c",
+ "artifacthub/library/general/storageclass/1.0.0/README.md": "ddfee785ea2164bc0eba41070bcf04a491f778744b66bd6cb7a23dc6423d1263",
+ "artifacthub/library/general/storageclass/1.0.0/artifacthub-pkg.yml": "d7363369697fdf7119bc790f9acb96c481117c3336ae7d1c24704f177d4af083",
+ "artifacthub/library/general/storageclass/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/storageclass/1.0.0/samples/storageclass/constraint.yaml": "1fc818d03333417899ed69dbc13a8afde688c3e7a18e1ace1376a8035244daaf",
+ "artifacthub/library/general/storageclass/1.0.0/samples/storageclass/example_allowed_pvc.yaml": "fe79b34a387657d107692084521fcade67f6f0a54721503cdf108bca13ffe506",
+ "artifacthub/library/general/storageclass/1.0.0/samples/storageclass/example_allowed_ss.yaml": "d33bb24eea9ef7d513ae4e1def80af485eaea82cc52acfa7caa36202ae972998",
+ "artifacthub/library/general/storageclass/1.0.0/samples/storageclass/example_disallowed_pvc_badname.yaml": "d75e6aafcd1aad3731b713e206745934629a36a591b79ff110a7f5c677997276",
+ "artifacthub/library/general/storageclass/1.0.0/samples/storageclass/example_disallowed_pvc_nonamename.yaml": "0d64d524ea7e62a450a7f4be09320cd68c8a76cc076d74f6725c6be444a46541",
+ "artifacthub/library/general/storageclass/1.0.0/samples/storageclass/example_disallowed_ssvct_badnamename.yaml": "0ecc1c7bb2a4c4c9f96ac0aeaebb131bc00980b47f9263007b937a4729d0e1f7",
+ "artifacthub/library/general/storageclass/1.0.0/samples/storageclass/example_disallowed_ssvct_nonamename.yaml": "028b9ed94950592030df7e072810f5217e02be9118162bd2f153d86131e925af",
+ "artifacthub/library/general/storageclass/1.0.0/samples/storageclass/example_inventory_allowed_storageclass.yaml": "cb0cae7ddd577c8a9d6fc5c516e4b13f394874c4198cea227d7b557b34c645b1",
+ "artifacthub/library/general/storageclass/1.0.0/suite.yaml": "24241aaf2fcb0bde292e70f4cfd74b811ab9da9a0ab4413234466b383c9d91c7",
+ "artifacthub/library/general/storageclass/1.0.0/sync.yaml": "edadc58b85b0b33187033b78edea9f7a709ae2299032ba32af6be76c33ade205",
+ "artifacthub/library/general/storageclass/1.0.0/template.yaml": "a67dee4dd1f6547a6db5dc11b72b9f72860e437890ff0069358b92ed75e35617",
+ "artifacthub/library/general/storageclass/1.0.1/README.md": "91ae94434b10326e34f8516579f080b36e968ca013a2e2e25e194b80d976d2e6",
+ "artifacthub/library/general/storageclass/1.0.1/artifacthub-pkg.yml": "e11fbd2ec1f1e96ae438bd5ff854a720f08f64c692cb11b95ec0cc6be53f44c4",
+ "artifacthub/library/general/storageclass/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/storageclass/1.0.1/samples/storageclass/constraint.yaml": "1fc818d03333417899ed69dbc13a8afde688c3e7a18e1ace1376a8035244daaf",
+ "artifacthub/library/general/storageclass/1.0.1/samples/storageclass/example_allowed_pvc.yaml": "fe79b34a387657d107692084521fcade67f6f0a54721503cdf108bca13ffe506",
+ "artifacthub/library/general/storageclass/1.0.1/samples/storageclass/example_allowed_ss.yaml": "d33bb24eea9ef7d513ae4e1def80af485eaea82cc52acfa7caa36202ae972998",
+ "artifacthub/library/general/storageclass/1.0.1/samples/storageclass/example_disallowed_pvc_badname.yaml": "d75e6aafcd1aad3731b713e206745934629a36a591b79ff110a7f5c677997276",
+ "artifacthub/library/general/storageclass/1.0.1/samples/storageclass/example_disallowed_pvc_nonamename.yaml": "0d64d524ea7e62a450a7f4be09320cd68c8a76cc076d74f6725c6be444a46541",
+ "artifacthub/library/general/storageclass/1.0.1/samples/storageclass/example_disallowed_ssvct_badnamename.yaml": "0ecc1c7bb2a4c4c9f96ac0aeaebb131bc00980b47f9263007b937a4729d0e1f7",
+ "artifacthub/library/general/storageclass/1.0.1/samples/storageclass/example_disallowed_ssvct_nonamename.yaml": "028b9ed94950592030df7e072810f5217e02be9118162bd2f153d86131e925af",
+ "artifacthub/library/general/storageclass/1.0.1/samples/storageclass/example_inventory_allowed_storageclass.yaml": "cb0cae7ddd577c8a9d6fc5c516e4b13f394874c4198cea227d7b557b34c645b1",
+ "artifacthub/library/general/storageclass/1.0.1/suite.yaml": "24241aaf2fcb0bde292e70f4cfd74b811ab9da9a0ab4413234466b383c9d91c7",
+ "artifacthub/library/general/storageclass/1.0.1/sync.yaml": "edadc58b85b0b33187033b78edea9f7a709ae2299032ba32af6be76c33ade205",
+ "artifacthub/library/general/storageclass/1.0.1/template.yaml": "ff8ebddfe9c07259aba4dd00a5db5e562921ed7db02a69c08e9133c625576e88",
+ "artifacthub/library/general/storageclass/1.1.0/README.md": "5b64149fdfe2648130b19c983dce7530802a4dfdc51623a6bfb19a70b97dc4ef",
+ "artifacthub/library/general/storageclass/1.1.0/artifacthub-pkg.yml": "a88ee16f013afb4d0882f34f7009f7485f388f8cbf5026e7313527387418ef65",
+ "artifacthub/library/general/storageclass/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass-allowlist/constraint.yaml": "20d3ad9e22ab57621e3d4b4a2a0e45c4c4baf5ebd889383a58b95af9a717b079",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass-allowlist/example_allowed.yaml": "d3a7409e859a12e6949e779d488d181b016a450d2ce52ed9f95cfbf14c3bda2f",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass-allowlist/example_disallowed.yaml": "ff9a78931ea54d12b1caf127e6dd600462bb27059dd390c76420d2d3c9051e83",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass-allowlist/example_inventory_allowed_storageclass.yaml": "7ba6ccdcafa1985d5da2c6828a8cd9ca97e66c1917e8b70c52f924afe4395704",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass/constraint.yaml": "1fc818d03333417899ed69dbc13a8afde688c3e7a18e1ace1376a8035244daaf",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass/example_allowed_pvc.yaml": "fe79b34a387657d107692084521fcade67f6f0a54721503cdf108bca13ffe506",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass/example_allowed_ss.yaml": "d33bb24eea9ef7d513ae4e1def80af485eaea82cc52acfa7caa36202ae972998",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass/example_disallowed_pvc_badname.yaml": "d75e6aafcd1aad3731b713e206745934629a36a591b79ff110a7f5c677997276",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass/example_disallowed_pvc_nonamename.yaml": "0d64d524ea7e62a450a7f4be09320cd68c8a76cc076d74f6725c6be444a46541",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass/example_disallowed_ssvct_badnamename.yaml": "0ecc1c7bb2a4c4c9f96ac0aeaebb131bc00980b47f9263007b937a4729d0e1f7",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass/example_disallowed_ssvct_nonamename.yaml": "028b9ed94950592030df7e072810f5217e02be9118162bd2f153d86131e925af",
+ "artifacthub/library/general/storageclass/1.1.0/samples/storageclass/example_inventory_allowed_storageclass.yaml": "cb0cae7ddd577c8a9d6fc5c516e4b13f394874c4198cea227d7b557b34c645b1",
+ "artifacthub/library/general/storageclass/1.1.0/suite.yaml": "0367320a9a5ef55ec0a6417ce07fa5de8b98fe0ff05dd988348bfe8dd42eb508",
+ "artifacthub/library/general/storageclass/1.1.0/sync.yaml": "edadc58b85b0b33187033b78edea9f7a709ae2299032ba32af6be76c33ade205",
+ "artifacthub/library/general/storageclass/1.1.0/template.yaml": "4d604904d762029ec757f8897b12cecd37f2ae35918d47a998a18ea296982d1c",
+ "artifacthub/library/general/storageclass/1.1.1/README.md": "5b64149fdfe2648130b19c983dce7530802a4dfdc51623a6bfb19a70b97dc4ef",
+ "artifacthub/library/general/storageclass/1.1.1/artifacthub-pkg.yml": "67f3e52a7f040bb12febff78ef4f38a813a2e92b180afabffb11d83d63b9abae",
+ "artifacthub/library/general/storageclass/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass-allowlist/constraint.yaml": "20d3ad9e22ab57621e3d4b4a2a0e45c4c4baf5ebd889383a58b95af9a717b079",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass-allowlist/example_allowed.yaml": "d3a7409e859a12e6949e779d488d181b016a450d2ce52ed9f95cfbf14c3bda2f",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass-allowlist/example_disallowed.yaml": "ff9a78931ea54d12b1caf127e6dd600462bb27059dd390c76420d2d3c9051e83",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass-allowlist/example_inventory_allowed_storageclass.yaml": "7ba6ccdcafa1985d5da2c6828a8cd9ca97e66c1917e8b70c52f924afe4395704",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass/constraint.yaml": "1fc818d03333417899ed69dbc13a8afde688c3e7a18e1ace1376a8035244daaf",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass/example_allowed_pvc.yaml": "fe79b34a387657d107692084521fcade67f6f0a54721503cdf108bca13ffe506",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass/example_allowed_ss.yaml": "d33bb24eea9ef7d513ae4e1def80af485eaea82cc52acfa7caa36202ae972998",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass/example_disallowed_pvc_badname.yaml": "d75e6aafcd1aad3731b713e206745934629a36a591b79ff110a7f5c677997276",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass/example_disallowed_pvc_nonamename.yaml": "0d64d524ea7e62a450a7f4be09320cd68c8a76cc076d74f6725c6be444a46541",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass/example_disallowed_ssvct_badnamename.yaml": "0ecc1c7bb2a4c4c9f96ac0aeaebb131bc00980b47f9263007b937a4729d0e1f7",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass/example_disallowed_ssvct_nonamename.yaml": "028b9ed94950592030df7e072810f5217e02be9118162bd2f153d86131e925af",
+ "artifacthub/library/general/storageclass/1.1.1/samples/storageclass/example_inventory_allowed_storageclass.yaml": "cb0cae7ddd577c8a9d6fc5c516e4b13f394874c4198cea227d7b557b34c645b1",
+ "artifacthub/library/general/storageclass/1.1.1/suite.yaml": "0367320a9a5ef55ec0a6417ce07fa5de8b98fe0ff05dd988348bfe8dd42eb508",
+ "artifacthub/library/general/storageclass/1.1.1/sync.yaml": "edadc58b85b0b33187033b78edea9f7a709ae2299032ba32af6be76c33ade205",
+ "artifacthub/library/general/storageclass/1.1.1/template.yaml": "75447679e63e465cff35431c07fd37325ea341f3433829c19a1a8dcd5f6674c1",
+ "artifacthub/library/general/storageclass/1.1.2/README.md": "5b64149fdfe2648130b19c983dce7530802a4dfdc51623a6bfb19a70b97dc4ef",
+ "artifacthub/library/general/storageclass/1.1.2/artifacthub-pkg.yml": "a46f8751f217c020e5dbc864ca565cc5444b6e82fea30c619c330838363cb4f7",
+ "artifacthub/library/general/storageclass/1.1.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass-allowlist/constraint.yaml": "20d3ad9e22ab57621e3d4b4a2a0e45c4c4baf5ebd889383a58b95af9a717b079",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass-allowlist/example_allowed.yaml": "d3a7409e859a12e6949e779d488d181b016a450d2ce52ed9f95cfbf14c3bda2f",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass-allowlist/example_disallowed.yaml": "ff9a78931ea54d12b1caf127e6dd600462bb27059dd390c76420d2d3c9051e83",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass-allowlist/example_inventory_allowed_storageclass.yaml": "7ba6ccdcafa1985d5da2c6828a8cd9ca97e66c1917e8b70c52f924afe4395704",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass/constraint.yaml": "1fc818d03333417899ed69dbc13a8afde688c3e7a18e1ace1376a8035244daaf",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass/example_allowed_pvc.yaml": "fe79b34a387657d107692084521fcade67f6f0a54721503cdf108bca13ffe506",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass/example_allowed_ss.yaml": "d33bb24eea9ef7d513ae4e1def80af485eaea82cc52acfa7caa36202ae972998",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass/example_disallowed_pvc_badname.yaml": "d75e6aafcd1aad3731b713e206745934629a36a591b79ff110a7f5c677997276",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass/example_disallowed_pvc_nonamename.yaml": "0d64d524ea7e62a450a7f4be09320cd68c8a76cc076d74f6725c6be444a46541",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass/example_disallowed_ssvct_badnamename.yaml": "0ecc1c7bb2a4c4c9f96ac0aeaebb131bc00980b47f9263007b937a4729d0e1f7",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass/example_disallowed_ssvct_nonamename.yaml": "028b9ed94950592030df7e072810f5217e02be9118162bd2f153d86131e925af",
+ "artifacthub/library/general/storageclass/1.1.2/samples/storageclass/example_inventory_allowed_storageclass.yaml": "cb0cae7ddd577c8a9d6fc5c516e4b13f394874c4198cea227d7b557b34c645b1",
+ "artifacthub/library/general/storageclass/1.1.2/suite.yaml": "0367320a9a5ef55ec0a6417ce07fa5de8b98fe0ff05dd988348bfe8dd42eb508",
+ "artifacthub/library/general/storageclass/1.1.2/sync.yaml": "edadc58b85b0b33187033b78edea9f7a709ae2299032ba32af6be76c33ade205",
+ "artifacthub/library/general/storageclass/1.1.2/template.yaml": "24518501d1ad7b6fe23816d99db6592b436ed122784ab57bb6ee5f50d36fdc00",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/artifacthub-pkg.yml": "6c1df8e502b394070f83252fa2882a8f45e50e3cb21cea372218586e272a38c4",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/samples/unique-ingress-host/constraint.yaml": "95bb7c1482f28abe406daa93f2858fa441ea633aae57c72fe4b958a360f0788c",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/samples/unique-ingress-host/example_allowed.yaml": "7b4fe53d5600a7651894aabbc0186db3911c1bb4ae2cc893f75d10cfb60d3fbe",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/samples/unique-ingress-host/example_disallowed.yaml": "7be2c5af431a25049b936fda1e7d68a1e542ef588e6dacfc64d1d8a28b2bf19c",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/samples/unique-ingress-host/example_disallowed2.yaml": "a34e13d47d8b29305c7f5696abedd0d8e8188d172b257dedeade1cbb43abe48e",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/samples/unique-ingress-host/example_inventory_disallowed.yaml": "2f2e53d28dedf64191ca289caf25760dccba4d6254dfbb7499ac3c1d6677ad88",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/samples/unique-ingress-host/example_inventory_disallowed2.yaml": "533c7ccfffd7f74e52caf110be47c51a52c7ebe0d8fb363737f0c2b092a28dc1",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/suite.yaml": "05fab19ba3477932c73b627692531629f8405cd631be83c13ea13f4a8f8a5e0d",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/sync.yaml": "54195d7a655ab54026e59daf72d656775b4ece0539923667dfd06ac9cd0b5906",
+ "artifacthub/library/general/uniqueingresshost/1.0.0/template.yaml": "07b63ecf37b6fb8f04a17a3e292b338f6408f73534676b99a3ae721d5e64838b",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/artifacthub-pkg.yml": "4dfac3ada0874a64bc7f03c48b7e2b49238ed2205797db0dd04e1e659361f853",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/samples/unique-ingress-host/constraint.yaml": "95bb7c1482f28abe406daa93f2858fa441ea633aae57c72fe4b958a360f0788c",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/samples/unique-ingress-host/example_allowed.yaml": "7b4fe53d5600a7651894aabbc0186db3911c1bb4ae2cc893f75d10cfb60d3fbe",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/samples/unique-ingress-host/example_disallowed.yaml": "7be2c5af431a25049b936fda1e7d68a1e542ef588e6dacfc64d1d8a28b2bf19c",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/samples/unique-ingress-host/example_disallowed2.yaml": "a34e13d47d8b29305c7f5696abedd0d8e8188d172b257dedeade1cbb43abe48e",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/samples/unique-ingress-host/example_inventory_disallowed.yaml": "2f2e53d28dedf64191ca289caf25760dccba4d6254dfbb7499ac3c1d6677ad88",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/samples/unique-ingress-host/example_inventory_disallowed2.yaml": "533c7ccfffd7f74e52caf110be47c51a52c7ebe0d8fb363737f0c2b092a28dc1",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/suite.yaml": "05fab19ba3477932c73b627692531629f8405cd631be83c13ea13f4a8f8a5e0d",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/sync.yaml": "54195d7a655ab54026e59daf72d656775b4ece0539923667dfd06ac9cd0b5906",
+ "artifacthub/library/general/uniqueingresshost/1.0.1/template.yaml": "d1c5305344b8d029046497793820f1e0e7ec28e9aab67778638f388127b0374d",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/artifacthub-pkg.yml": "7767d787e43a46da0d228385a1b9ea710f089ccd625a202388815aefd9729904",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/samples/unique-ingress-host/constraint.yaml": "95bb7c1482f28abe406daa93f2858fa441ea633aae57c72fe4b958a360f0788c",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/samples/unique-ingress-host/example_allowed.yaml": "7b4fe53d5600a7651894aabbc0186db3911c1bb4ae2cc893f75d10cfb60d3fbe",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/samples/unique-ingress-host/example_disallowed.yaml": "7be2c5af431a25049b936fda1e7d68a1e542ef588e6dacfc64d1d8a28b2bf19c",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/samples/unique-ingress-host/example_disallowed2.yaml": "a34e13d47d8b29305c7f5696abedd0d8e8188d172b257dedeade1cbb43abe48e",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/samples/unique-ingress-host/example_inventory_disallowed.yaml": "2f2e53d28dedf64191ca289caf25760dccba4d6254dfbb7499ac3c1d6677ad88",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/samples/unique-ingress-host/example_inventory_disallowed2.yaml": "533c7ccfffd7f74e52caf110be47c51a52c7ebe0d8fb363737f0c2b092a28dc1",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/suite.yaml": "05fab19ba3477932c73b627692531629f8405cd631be83c13ea13f4a8f8a5e0d",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/sync.yaml": "54195d7a655ab54026e59daf72d656775b4ece0539923667dfd06ac9cd0b5906",
+ "artifacthub/library/general/uniqueingresshost/1.0.2/template.yaml": "d5bf815c0ed8807dd7746270cafa07d281175c8dd8c070b8f8d851a6330958c9",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/artifacthub-pkg.yml": "3c75eaf0fff753c68d9a49f8b3fb090ed119c35c8e1ab75369375f892eecb640",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/samples/unique-ingress-host/constraint.yaml": "95bb7c1482f28abe406daa93f2858fa441ea633aae57c72fe4b958a360f0788c",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/samples/unique-ingress-host/example_allowed.yaml": "7b4fe53d5600a7651894aabbc0186db3911c1bb4ae2cc893f75d10cfb60d3fbe",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/samples/unique-ingress-host/example_disallowed.yaml": "7be2c5af431a25049b936fda1e7d68a1e542ef588e6dacfc64d1d8a28b2bf19c",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/samples/unique-ingress-host/example_disallowed2.yaml": "a34e13d47d8b29305c7f5696abedd0d8e8188d172b257dedeade1cbb43abe48e",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/samples/unique-ingress-host/example_inventory_disallowed.yaml": "2f2e53d28dedf64191ca289caf25760dccba4d6254dfbb7499ac3c1d6677ad88",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/samples/unique-ingress-host/example_inventory_disallowed2.yaml": "533c7ccfffd7f74e52caf110be47c51a52c7ebe0d8fb363737f0c2b092a28dc1",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/suite.yaml": "05fab19ba3477932c73b627692531629f8405cd631be83c13ea13f4a8f8a5e0d",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/sync.yaml": "54195d7a655ab54026e59daf72d656775b4ece0539923667dfd06ac9cd0b5906",
+ "artifacthub/library/general/uniqueingresshost/1.0.3/template.yaml": "9081c448c1d70e82a6000634a525791800193848ff3d6e12a9824197acbf4b36",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/artifacthub-pkg.yml": "0a2dbe3565a615ab93b88dfcac7b06fb383f0cbe76284f1686b71290cecebe55",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/samples/unique-ingress-host/constraint.yaml": "95bb7c1482f28abe406daa93f2858fa441ea633aae57c72fe4b958a360f0788c",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/samples/unique-ingress-host/example_allowed.yaml": "7b4fe53d5600a7651894aabbc0186db3911c1bb4ae2cc893f75d10cfb60d3fbe",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/samples/unique-ingress-host/example_disallowed.yaml": "7be2c5af431a25049b936fda1e7d68a1e542ef588e6dacfc64d1d8a28b2bf19c",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/samples/unique-ingress-host/example_disallowed2.yaml": "a34e13d47d8b29305c7f5696abedd0d8e8188d172b257dedeade1cbb43abe48e",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/samples/unique-ingress-host/example_inventory_disallowed.yaml": "2f2e53d28dedf64191ca289caf25760dccba4d6254dfbb7499ac3c1d6677ad88",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/samples/unique-ingress-host/example_inventory_disallowed2.yaml": "533c7ccfffd7f74e52caf110be47c51a52c7ebe0d8fb363737f0c2b092a28dc1",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/suite.yaml": "05fab19ba3477932c73b627692531629f8405cd631be83c13ea13f4a8f8a5e0d",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/sync.yaml": "54195d7a655ab54026e59daf72d656775b4ece0539923667dfd06ac9cd0b5906",
+ "artifacthub/library/general/uniqueingresshost/1.0.4/template.yaml": "5feb0ef9f6daf67cdad95e01cdefd980d9acde98836dd63b0c341984ed9ecf03",
+ "artifacthub/library/general/uniqueserviceselector/1.0.0/artifacthub-pkg.yml": "e7f6600a0e9a507d398460bcaf16420d57bb653de82f1a0b5d877ae737c47a03",
+ "artifacthub/library/general/uniqueserviceselector/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/uniqueserviceselector/1.0.0/samples/unique-service-selector/constraint.yaml": "49c1a50087067fc0b3eddd0ad81de6b160f679bf311adc501e7bb03f62ad6ce9",
+ "artifacthub/library/general/uniqueserviceselector/1.0.0/samples/unique-service-selector/example_allowed.yaml": "a5ab84f1b5b4224e233e30766c4934eb2deb315710eb94a6ac8ad7ec0a9edebd",
+ "artifacthub/library/general/uniqueserviceselector/1.0.0/samples/unique-service-selector/example_disallowed.yaml": "9312c9229dffa04acfaf77a93c5636c1253582f408945a89cd97ee10db1f8b5b",
+ "artifacthub/library/general/uniqueserviceselector/1.0.0/samples/unique-service-selector/example_inventory_disallowed.yaml": "73e133435c071af52432a202a3037035a631fc75d3c0eede05d1c91ddea634a9",
+ "artifacthub/library/general/uniqueserviceselector/1.0.0/suite.yaml": "0fe2e50a8dceca1dd8aea45d8c411be860817e207c96f889cb82fff3de331310",
+ "artifacthub/library/general/uniqueserviceselector/1.0.0/template.yaml": "eab695ef70872aa33a83b98af630e9b05292937a4101a37b42e80ca9dc200339",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/artifacthub-pkg.yml": "de340b451f60450be44c777dbf1acb881f3c21e5e607d3ee0b7df4339dcdb208",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/samples/unique-service-selector/constraint.yaml": "49c1a50087067fc0b3eddd0ad81de6b160f679bf311adc501e7bb03f62ad6ce9",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/samples/unique-service-selector/example_allowed.yaml": "a5ab84f1b5b4224e233e30766c4934eb2deb315710eb94a6ac8ad7ec0a9edebd",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/samples/unique-service-selector/example_disallowed.yaml": "9312c9229dffa04acfaf77a93c5636c1253582f408945a89cd97ee10db1f8b5b",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/samples/unique-service-selector/example_inventory_disallowed.yaml": "73e133435c071af52432a202a3037035a631fc75d3c0eede05d1c91ddea634a9",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/suite.yaml": "0fe2e50a8dceca1dd8aea45d8c411be860817e207c96f889cb82fff3de331310",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/sync.yaml": "0761e93b131b394059ada2b398504db8be63e3a019cf7097bbe8f65427efa6d9",
+ "artifacthub/library/general/uniqueserviceselector/1.0.1/template.yaml": "5450ac16135ffb42651807e1e80490fa5021d4c6f07a0096022610610a5718b1",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/artifacthub-pkg.yml": "83aab21a9d25160b3b431c4b898834238219c3c60dc5f66f43163e0b5557fbe2",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/samples/unique-service-selector/constraint.yaml": "49c1a50087067fc0b3eddd0ad81de6b160f679bf311adc501e7bb03f62ad6ce9",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/samples/unique-service-selector/example_allowed.yaml": "a5ab84f1b5b4224e233e30766c4934eb2deb315710eb94a6ac8ad7ec0a9edebd",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/samples/unique-service-selector/example_disallowed.yaml": "9312c9229dffa04acfaf77a93c5636c1253582f408945a89cd97ee10db1f8b5b",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/samples/unique-service-selector/example_inventory_disallowed.yaml": "73e133435c071af52432a202a3037035a631fc75d3c0eede05d1c91ddea634a9",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/suite.yaml": "0fe2e50a8dceca1dd8aea45d8c411be860817e207c96f889cb82fff3de331310",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/sync.yaml": "0761e93b131b394059ada2b398504db8be63e3a019cf7097bbe8f65427efa6d9",
+ "artifacthub/library/general/uniqueserviceselector/1.0.2/template.yaml": "ca7821d250d4899ebe259d2c6fd44c69645ecb0fc0ea7caa946c3cb64a9bcd8c",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/artifacthub-pkg.yml": "f88253a0fd97864de46cf187c9a248a322869fa01287b9c11a006eee79d258f5",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.16/constraint.yaml": "97eb88b1a359f0fab0f11a5c1e94a3742d2528deeadb597606851bbbdb05d867",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.16/example_allowed.yaml": "1030aeaf6a8a552587255ea15dcd88fbbf65e0310856fcab72ed85211d6c6192",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.16/example_disallowed.yaml": "bc9f3064e2f1a47b9159eba6e2b03969dd9e34e7e409644acfa959db1131ced7",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.22/constraint.yaml": "285bf2e74bd93c496612b493c4a1f0253eee2924e19e87d75f881d9777ff59ab",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.22/example_allowed.yaml": "6787efe45a2e8f226d7c66e02c2669ef6619f3747fddcee028bbb5943a3024cb",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.22/example_disallowed.yaml": "d7084971db12937717091e9c432ded87d0d9c19b7f074da6a0509e6b5156b1de",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.25/constraint.yaml": "7e1a8a6ce9c02039aba91d8d34c976c16091bf66839a20f936f677a677c42b48",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.25/example_allowed.yaml": "8a22735103f7f635a7bc3f32bb29530896cbee1ee238841a11d2f907f4c5742d",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.25/example_disallowed.yaml": "807f69a957f9c381f61d2e9ccee63aa8fd9a42136edf3f2dd6f20af720f0e616",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.26/constraint.yaml": "d6ef3e0547939a47df7ba93e95f0375842a665596f70961652100951317a3b6c",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.26/example_allowed.yaml": "cd4dddf65bda44b6b1d5dce33dc963617a9da68aa608fa57da78dc07de2944a1",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.26/example_disallowed.yaml": "3591a1fde716aa5b96b4324fd9e9f449ab8f80fd64284f3e4b45640573afe1f7",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.27/constraint.yaml": "9d2af64f351d7c6e04b7aba09ade685eabb7425a6e7eaf9ab16199d99528235a",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.27/example_allowed.yaml": "16e089b842063a6780d6a524809de10a638f89e4fd0ac8e200e836c05afebb86",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.27/example_disallowed.yaml": "3cbca0ec009c2c959ea53fbfe0805ea32b1a7f6c4fac04e73cc81b3bbad23d50",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.29/constraint.yaml": "52d16fc124f71974c98b6885bc7a52c122fa34e7562470d9a32ab7f3bb763264",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.29/example_allowed.yaml": "cd4dddf65bda44b6b1d5dce33dc963617a9da68aa608fa57da78dc07de2944a1",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/samples/verify-1.29/example_disallowed.yaml": "6baf09c069e021896c88dd3231dc450f05cffc55c035d9da9a5c5285c3ec7396",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/suite.yaml": "62ab9e33767f497b905eb4a91c01c250922efd1d2be8b517c04bdb0a1f7fd805",
+ "artifacthub/library/general/verifydeprecatedapi/1.0.0/template.yaml": "052cddde0a6ce55a450b4074f852517dfd75b98c3b90dd6227470a0ae68b4582",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.0/artifacthub-pkg.yml": "bd8abc21b7da389277106a4e1ecebfa0e049115beef04631695e80bacea8b210",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.0/samples/psp-allow-privilege-escalation-container/constraint.yaml": "1553acfa391ff604ee367a1511452e009ee2b3d570fba3339a3b83830da51c58",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.0/samples/psp-allow-privilege-escalation-container/disallowed_ephemeral.yaml": "d840b7c3a4c5a8e9ecc46e9cb779bb7478be24d602ca4a1d8e00f7009d971f3b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.0/samples/psp-allow-privilege-escalation-container/example_allowed.yaml": "a58670038c5e83c3c29a12f1d7ac715d6ed2f25fe1e00b2f33e8bf4cc56ffbd2",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.0/samples/psp-allow-privilege-escalation-container/example_disallowed.yaml": "9a32b086e3b43e1e4faf1ab41bcf08884aa9b3c1f2a26a93f39769c980e9654b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.0/suite.yaml": "65493eb5f9cd6f946ea1a81bd5296a046bcf5b8558fac0ac15f6c89e24ffae19",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.0/template.yaml": "bb75c953e8e5b7a0f2850dbab41f2c983d6811f13744b0fa05db2e154aa9dc4f",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/artifacthub-pkg.yml": "3092f831478b2001093af4ec06320a81e95d1602f19c0e9ad09e32dff7361e0f",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/samples/psp-allow-privilege-escalation-container/constraint.yaml": "1553acfa391ff604ee367a1511452e009ee2b3d570fba3339a3b83830da51c58",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/samples/psp-allow-privilege-escalation-container/disallowed_ephemeral.yaml": "d840b7c3a4c5a8e9ecc46e9cb779bb7478be24d602ca4a1d8e00f7009d971f3b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/samples/psp-allow-privilege-escalation-container/example_allowed.yaml": "a58670038c5e83c3c29a12f1d7ac715d6ed2f25fe1e00b2f33e8bf4cc56ffbd2",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/samples/psp-allow-privilege-escalation-container/example_disallowed.yaml": "9a32b086e3b43e1e4faf1ab41bcf08884aa9b3c1f2a26a93f39769c980e9654b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/samples/psp-allow-privilege-escalation-container/update.yaml": "10a47d156401d78c6385bf015fdba2313b9c380293c0b0ec5354bc33a120b60a",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/suite.yaml": "9a4b116086ae8138f0a140d015b3e2d7f590f87871326a70a4179fd8aa2a9653",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.0.1/template.yaml": "4ba2650de72d657527ede1a6ccd4d9a9a58f7f38e4d6683948758ecdd4a8d31b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/artifacthub-pkg.yml": "5dc679b3a41458dda8b589fb087c7daf1699ef129413aebf12d4d208c9314e45",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/samples/psp-allow-privilege-escalation-container/constraint.yaml": "94160af15cfab0ba0bb123a633a6122139c8f6e717cafd0d18b7a70d76a4fe19",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/samples/psp-allow-privilege-escalation-container/disallowed_ephemeral.yaml": "d840b7c3a4c5a8e9ecc46e9cb779bb7478be24d602ca4a1d8e00f7009d971f3b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/samples/psp-allow-privilege-escalation-container/example_allowed.yaml": "a58670038c5e83c3c29a12f1d7ac715d6ed2f25fe1e00b2f33e8bf4cc56ffbd2",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/samples/psp-allow-privilege-escalation-container/example_allowed_exempt.yaml": "d22242a4051a3163cc8b916d151036705a9717b60097aa8758b777f99b09e499",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/samples/psp-allow-privilege-escalation-container/example_disallowed.yaml": "9a32b086e3b43e1e4faf1ab41bcf08884aa9b3c1f2a26a93f39769c980e9654b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/samples/psp-allow-privilege-escalation-container/update.yaml": "10a47d156401d78c6385bf015fdba2313b9c380293c0b0ec5354bc33a120b60a",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/suite.yaml": "675e703e85cb8aae4c80768b7b1058be4a53834257e8867eaa3ba679c1464c91",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.0/template.yaml": "fe4bb6dac0e663f9b76b2f21919bf74548bae2c8bbcd08cb71261dede5ee803f",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/artifacthub-pkg.yml": "2b67051be27795b44d80eb5ae75f368ce058dfedcf8617785bc2c47d7d0cd0e0",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/samples/psp-allow-privilege-escalation-container/constraint.yaml": "94160af15cfab0ba0bb123a633a6122139c8f6e717cafd0d18b7a70d76a4fe19",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/samples/psp-allow-privilege-escalation-container/disallowed_ephemeral.yaml": "d840b7c3a4c5a8e9ecc46e9cb779bb7478be24d602ca4a1d8e00f7009d971f3b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/samples/psp-allow-privilege-escalation-container/example_allowed.yaml": "a58670038c5e83c3c29a12f1d7ac715d6ed2f25fe1e00b2f33e8bf4cc56ffbd2",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/samples/psp-allow-privilege-escalation-container/example_allowed_exempt.yaml": "d22242a4051a3163cc8b916d151036705a9717b60097aa8758b777f99b09e499",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/samples/psp-allow-privilege-escalation-container/example_disallowed.yaml": "9a32b086e3b43e1e4faf1ab41bcf08884aa9b3c1f2a26a93f39769c980e9654b",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/samples/psp-allow-privilege-escalation-container/update.yaml": "10a47d156401d78c6385bf015fdba2313b9c380293c0b0ec5354bc33a120b60a",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/suite.yaml": "675e703e85cb8aae4c80768b7b1058be4a53834257e8867eaa3ba679c1464c91",
+ "artifacthub/library/pod-security-policy/allow-privilege-escalation/1.1.1/template.yaml": "eb6cfbf8bb1e71f3cf95dc9324ca2b88260501633167736322b3c5fb552179f5",
+ "artifacthub/library/pod-security-policy/apparmor/1.0.0/artifacthub-pkg.yml": "994ba1066efb08e5944d58a20f468588d38813238fe5fe7b3a5c790811866e66",
+ "artifacthub/library/pod-security-policy/apparmor/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/apparmor/1.0.0/samples/psp-apparmor/constraint.yaml": "9d7c8a5c2f3ea73cb9e02702b17a9619ed5835d2d95c7ec8ab7fc50deb21c3ec",
+ "artifacthub/library/pod-security-policy/apparmor/1.0.0/samples/psp-apparmor/disallowed_ephemeral.yaml": "2118b586d8838b1f48df587cbfffa862129400c50054729289166e7b55c3fc3a",
+ "artifacthub/library/pod-security-policy/apparmor/1.0.0/samples/psp-apparmor/example_allowed.yaml": "bfe729b154a3328cecdcb58748e4c3a6696cbc80e698651cc07ff411a434a8c6",
+ "artifacthub/library/pod-security-policy/apparmor/1.0.0/samples/psp-apparmor/example_disallowed.yaml": "3e888d7b61382fa300b4c6a8b6ff4a9c3147464ce3eeca94b1a367fe47b98a0e",
+ "artifacthub/library/pod-security-policy/apparmor/1.0.0/suite.yaml": "fa465d4f4c510f6864fd73a6b6f1718ae9b291c846fc8a6630d48ccc7f8b6288",
+ "artifacthub/library/pod-security-policy/apparmor/1.0.0/template.yaml": "103067e226725fe81eb2e7130f175124b33baeb0ca9ff204ed5210c27fd9120d",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/artifacthub-pkg.yml": "4da332abd0973cc4e94481f47727945bb5e19fb4bfb54c9dc590c232e0a5760b",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/constraint.yaml": "d0fc0e88b18fddf07ea1cd12c41432e744ccaea377e4e135ef3aa65356928797",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/disallowed_ephemeral.yaml": "2118b586d8838b1f48df587cbfffa862129400c50054729289166e7b55c3fc3a",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/example_allowed.yaml": "1182e4a028156f61fa37857dc394ce21b2c13b16b981899fe9e30843b5d904ef",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/example_allowed_container.yaml": "523cb4b2c6f6a73efe97ac5063019a52224644bc2cc38cf662dbd03e114094f5",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/example_allowed_override.yaml": "8a871ac6ed83d9e4dfa9eba41e52fa3288d0f54faa370cce35eb4c71089251e8",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/example_allowed_pod.yaml": "8a27c626c00a1cdb4285c4f1e4cd5624b422b1e22a2c83dd750bfeeed16cfaa0",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/example_disallowed.yaml": "3e888d7b61382fa300b4c6a8b6ff4a9c3147464ce3eeca94b1a367fe47b98a0e",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/example_disallowed_no_profile.yaml": "327cb5d23bbf200df36a9e2a5706f95870cb19d75012d6c89750bb2cd8fbb264",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/samples/psp-apparmor/example_disallowed_override.yaml": "0eb5e95ea44ec4a519476778130e37b2aefb56110f39fd361f6238d4bd28f4e8",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/suite.yaml": "2dea0f5d6938bedac03da658abb4734ae9aeeb86e2a99f6c4830adef9d37668c",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.0/template.yaml": "32ffb50869e29d2b8aa4d078f8ae72e725f1b502decc91f226f5e537617c2e7f",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/artifacthub-pkg.yml": "357284e19b9a4611d649ef7919170d9d3f07763c7b7104ec0b6a4adeeb11d662",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/constraint.yaml": "76065211a2b3de2053817eb3f03b82e575ce3ff8329d2921c1ccaf94a937904d",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/disallowed_ephemeral.yaml": "2118b586d8838b1f48df587cbfffa862129400c50054729289166e7b55c3fc3a",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/example_allowed.yaml": "211befaebecb5fa5a66e75383fa95c77a1b3bb7afa6deb7a6d0356cc28298397",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/example_allowed_container.yaml": "6509b5b58d43f15991c437415905c6d5a0634694ce20bbea9cab40d640be6f78",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/example_allowed_override.yaml": "807f6d59c7d1b28ccdde7939ef53474d99f840e414ab07009bbcb1febc201eea",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/example_allowed_pod.yaml": "8d28b510f69a1fbf1bd7b518846ab065d1eb3c5a9f5e6a6d59f311dcd3b58a50",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/example_disallowed.yaml": "3e888d7b61382fa300b4c6a8b6ff4a9c3147464ce3eeca94b1a367fe47b98a0e",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/example_disallowed_no_profile.yaml": "bbac739417ccc8fda24531a37936587b861e1d2e69ffae80d44c79183212000f",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/samples/psp-apparmor/example_disallowed_override.yaml": "8cf404cbd0b5f7ded9f41b3d0e302218e693c17da82629ec7d08c0c87738a37f",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/suite.yaml": "2dea0f5d6938bedac03da658abb4734ae9aeeb86e2a99f6c4830adef9d37668c",
+ "artifacthub/library/pod-security-policy/apparmor/1.1.1/template.yaml": "bcd0db441aa9c6eb8cc069d5cf67cdfe1ff200edfda00c8257168e4d7ca5421e",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.0/artifacthub-pkg.yml": "9cc433f05b7b0dedd5ddda35ff8732f5a0454fed44f120db9f46a7a11ac44e1a",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.0/samples/capabilities-demo/constraint.yaml": "81004a523613e160c397bda9dd143615aa1d9548644e98707399d09ad3661228",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.0/samples/capabilities-demo/disallowed_ephemeral.yaml": "c8250a7076e51a3a215674890c815c8e82d694156f16a8d0a98e584e45abd67a",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.0/samples/capabilities-demo/example_allowed.yaml": "9637d12a912abb7bc55fff96eea37d2beb6725cf413d77e15229b57eefd0f777",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.0/samples/capabilities-demo/example_disallowed.yaml": "5969936afdca7a2d0b3fe9aa6814bef33bc9e81b9c80077457aacb6c85a64063",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.0/suite.yaml": "d5b833337b00ddd3578b2f2de7edd7058ae72e5ebc734eb20a8ebae8c25054ba",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.0/template.yaml": "0abfe744609667e538c5a2e446e959d0be4f6d63cf53eaad1cf91c238c3d9fc8",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/artifacthub-pkg.yml": "f19eaba6e8a2afd39d6574ffe9afccf4c98b220519a8a09527b445d51a765fd9",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/samples/capabilities-demo/constraint.yaml": "81004a523613e160c397bda9dd143615aa1d9548644e98707399d09ad3661228",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/samples/capabilities-demo/disallowed_ephemeral.yaml": "c8250a7076e51a3a215674890c815c8e82d694156f16a8d0a98e584e45abd67a",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/samples/capabilities-demo/example_allowed.yaml": "9637d12a912abb7bc55fff96eea37d2beb6725cf413d77e15229b57eefd0f777",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/samples/capabilities-demo/example_disallowed.yaml": "5969936afdca7a2d0b3fe9aa6814bef33bc9e81b9c80077457aacb6c85a64063",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/samples/capabilities-demo/update.yaml": "3db3a8497ea3e9c6e90485f9453f49a2b48199d127c7f1c8143122a5ff21565a",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/suite.yaml": "7f631746d047aa0138cbcca58fe4998e477b03c41ea1240c9a551933e3f02cb1",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.1/template.yaml": "b82b8f257cf8f545e120b4a873c678af619dfd072f380d5a20d4b2993d87477a",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/artifacthub-pkg.yml": "66acbd3d5679d4ee4b09129aa486d0709960d35631020d6927aac620053aef4e",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/samples/capabilities-demo/constraint.yaml": "81004a523613e160c397bda9dd143615aa1d9548644e98707399d09ad3661228",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/samples/capabilities-demo/disallowed_ephemeral.yaml": "c8250a7076e51a3a215674890c815c8e82d694156f16a8d0a98e584e45abd67a",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/samples/capabilities-demo/example_allowed.yaml": "9637d12a912abb7bc55fff96eea37d2beb6725cf413d77e15229b57eefd0f777",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/samples/capabilities-demo/example_disallowed.yaml": "5969936afdca7a2d0b3fe9aa6814bef33bc9e81b9c80077457aacb6c85a64063",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/samples/capabilities-demo/update.yaml": "3db3a8497ea3e9c6e90485f9453f49a2b48199d127c7f1c8143122a5ff21565a",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/suite.yaml": "7f631746d047aa0138cbcca58fe4998e477b03c41ea1240c9a551933e3f02cb1",
+ "artifacthub/library/pod-security-policy/capabilities/1.0.2/template.yaml": "6960f045c2a1553006191404e8a0b8c85e53594df9cadcaa84ee0c86e93004a5",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/artifacthub-pkg.yml": "20f4aa83a1099368464ca86006def6b0b21df30cc1f54c552920de305e612fb9",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/samples/capabilities-demo/constraint.yaml": "81004a523613e160c397bda9dd143615aa1d9548644e98707399d09ad3661228",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/samples/capabilities-demo/disallowed_ephemeral.yaml": "c8250a7076e51a3a215674890c815c8e82d694156f16a8d0a98e584e45abd67a",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/samples/capabilities-demo/example_allowed.yaml": "9637d12a912abb7bc55fff96eea37d2beb6725cf413d77e15229b57eefd0f777",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/samples/capabilities-demo/example_disallowed.yaml": "5969936afdca7a2d0b3fe9aa6814bef33bc9e81b9c80077457aacb6c85a64063",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/samples/capabilities-demo/update.yaml": "3db3a8497ea3e9c6e90485f9453f49a2b48199d127c7f1c8143122a5ff21565a",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/suite.yaml": "7f631746d047aa0138cbcca58fe4998e477b03c41ea1240c9a551933e3f02cb1",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.0/template.yaml": "53933349446612b453f6c56fe22eb273e56a01ad3ad544a47f40018c00ca3d37",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/artifacthub-pkg.yml": "6574174ab5fe5d93c382797d32f2a6de56d010481a68c2354d15613eb27e189c",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/samples/capabilities-demo/constraint.yaml": "81004a523613e160c397bda9dd143615aa1d9548644e98707399d09ad3661228",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/samples/capabilities-demo/disallowed_ephemeral.yaml": "c8250a7076e51a3a215674890c815c8e82d694156f16a8d0a98e584e45abd67a",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/samples/capabilities-demo/example_allowed.yaml": "9637d12a912abb7bc55fff96eea37d2beb6725cf413d77e15229b57eefd0f777",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/samples/capabilities-demo/example_disallowed.yaml": "5969936afdca7a2d0b3fe9aa6814bef33bc9e81b9c80077457aacb6c85a64063",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/samples/capabilities-demo/update.yaml": "3db3a8497ea3e9c6e90485f9453f49a2b48199d127c7f1c8143122a5ff21565a",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/suite.yaml": "7f631746d047aa0138cbcca58fe4998e477b03c41ea1240c9a551933e3f02cb1",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.1/template.yaml": "462dc6d9258b29f47a5d0e875e5d634f7a9164edfcbc327cfc6f9e3abbb30d87",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/artifacthub-pkg.yml": "dcdd039402879f6571f565b0756720e27fa0fee5103b638beb8865898c683f88",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/samples/capabilities-demo/constraint.yaml": "81004a523613e160c397bda9dd143615aa1d9548644e98707399d09ad3661228",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/samples/capabilities-demo/disallowed_ephemeral.yaml": "c8250a7076e51a3a215674890c815c8e82d694156f16a8d0a98e584e45abd67a",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/samples/capabilities-demo/example_allowed.yaml": "9637d12a912abb7bc55fff96eea37d2beb6725cf413d77e15229b57eefd0f777",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/samples/capabilities-demo/example_disallowed.yaml": "b2dffb97e7bb4325f625a24e97eb30372241e6237c0d7455b0db8718eb479b36",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/samples/capabilities-demo/example_drop_all.yaml": "1122fe7b342114ca1fe4e4e79358c624e802ce801c70e0d2fc573d45135b057d",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/samples/capabilities-demo/update.yaml": "3db3a8497ea3e9c6e90485f9453f49a2b48199d127c7f1c8143122a5ff21565a",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/suite.yaml": "7f631746d047aa0138cbcca58fe4998e477b03c41ea1240c9a551933e3f02cb1",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.2/template.yaml": "d306e10e194e07aafd5592d25f9ef43742b8e107fff4e08fd2fb9c7edc783d4c",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/artifacthub-pkg.yml": "f5cf825254ed52a73c2029f9b8b1691a0773bad4d35a316f0af6f040f304c7ed",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-baseline/constraint.yaml": "0cc0220ae62b036ccaf6df01316e1571cd0df1e88d13101fcb2c6963515640cd",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-baseline/disallowed_ephemeral.yaml": "dc9f88306155a7136fc7edd2a1980502ee657a26deb7df2c85a66119e3a1a945",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-baseline/example_allowed.yaml": "5e186260d2416cd7ac1841e65d5317aba92bdc986cf11b39cbfd8966a63f4426",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-baseline/example_disallowed.yaml": "7fb53e2ef93b066c90daab77e23ea9c10a116d0f594c20424f29d2dc22f89648",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-baseline/update.yaml": "955003907d8c8e0f57a82e7b916843b8983b6c4999598d6e43df27419d9a28fb",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-restricted/constraint.yaml": "a14b9a793bbc81331691be51f6f00ce7b7083d4f3b545b0f678f53485e616d99",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-restricted/disallowed_ephemeral.yaml": "dc9f88306155a7136fc7edd2a1980502ee657a26deb7df2c85a66119e3a1a945",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-restricted/example_allowed.yaml": "7bbf0f8b5f64574121c03d8c7f8c6c5d2b1f7462dd3150e08720261e999d950e",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-restricted/example_disallowed.yaml": "7fb53e2ef93b066c90daab77e23ea9c10a116d0f594c20424f29d2dc22f89648",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-restricted/example_drop_all.yaml": "1122fe7b342114ca1fe4e4e79358c624e802ce801c70e0d2fc573d45135b057d",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/samples/psp-capabilities-restricted/update.yaml": "955003907d8c8e0f57a82e7b916843b8983b6c4999598d6e43df27419d9a28fb",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/suite.yaml": "2ca6d632e0dbf4452a15cea139c2e241843582ca905b4c841922e325d198aaf7",
+ "artifacthub/library/pod-security-policy/capabilities/1.1.3/template.yaml": "986e9c04bd062fe94b2b1039e6fb832202dfb01cd82c457a87ff5f6137eb1169",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.0/artifacthub-pkg.yml": "1da43bf80991e5c988d9b33cbf32cc567372392051b8c079a9759ee115bace0a",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.0/samples/psp-flexvolume-drivers/constraint.yaml": "1466dd1770528e14571aeeda54298eb1a8506388fb5194edd491ad505334d073",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.0/samples/psp-flexvolume-drivers/example_allowed.yaml": "d9d1f2e347f948e75b2e66295428d4a421b1b0a013f6013f6f36cd370bbf8216",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.0/samples/psp-flexvolume-drivers/example_disallowed.yaml": "d7db942285e92b38c8513cebb8ad04f5dcc08ef2ebe4e263d1207dc424958592",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.0/suite.yaml": "b9c9ef346d44901a421a0b9346f9adc72088a2af27dde4c076d842c69508f72d",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.0/template.yaml": "c38be97e66cb986906c1851994787b21f783f194fc0084507b97da2d317410f5",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.1/artifacthub-pkg.yml": "d4b91197b58fc08562ed25418c0ff8b1ba0cc7e14cca18cd09ed13edf9c59568",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.1/samples/psp-flexvolume-drivers/constraint.yaml": "1466dd1770528e14571aeeda54298eb1a8506388fb5194edd491ad505334d073",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.1/samples/psp-flexvolume-drivers/example_allowed.yaml": "d9d1f2e347f948e75b2e66295428d4a421b1b0a013f6013f6f36cd370bbf8216",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.1/samples/psp-flexvolume-drivers/example_disallowed.yaml": "d7db942285e92b38c8513cebb8ad04f5dcc08ef2ebe4e263d1207dc424958592",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.1/samples/psp-flexvolume-drivers/update.yaml": "b61dd583b9a112f32f9c0d83e9146350c14ce7fbb040c196d262cd805f825aa7",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.1/suite.yaml": "b4c92d30fd2802196737ae86efdbefbbdd97d17117f82608d2a8683e5e91c61d",
+ "artifacthub/library/pod-security-policy/flexvolume-drivers/1.0.1/template.yaml": "077bf2d22904e70272b1d55cdda9a3cce37abb8a86c94fe641893850fe5169a9",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.0.0/README.md": "3a9c4620b230f2303594a86585096fca1497f659419b1c65f0beaf098dfd6296",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.0.0/artifacthub-pkg.yml": "3270b0dda91728e0daa4b0c46048ec8b4cd31bd48707a0e3deae385c0be4742c",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.0.0/samples/psp-forbidden-sysctls/constraint.yaml": "8908a1bde74be8ece12a861cd4e3cb886175219627b35e9d5429429ad461d140",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.0.0/samples/psp-forbidden-sysctls/example_allowed.yaml": "a7c5fdfabc22dc2e60ea6e952c4a4bcdbbad4fb2073c4ab3cd25bd197550e11a",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.0.0/samples/psp-forbidden-sysctls/example_disallowed.yaml": "1333e7f5f19c576728002d8e0249220948a13219425630a892729317b07f19ea",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.0.0/suite.yaml": "22daa18b554c749781dd03adf62609e86c92f91f84d877a2ac15aa8582e777c8",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.0.0/template.yaml": "7add480e7f0473c4961974d9324ad9cc22bb5ef2ddead8688bce1812b28efc10",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.0/README.md": "c49b215f0828bc27245476a67fd09dc344c07e262b0b9f1b815defd08412db79",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.0/artifacthub-pkg.yml": "2a51fb7c3e4e74a95c680fd3802fbd622b73a759f1632c6331f19251f33067d3",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.0/samples/psp-forbidden-sysctls/constraint.yaml": "782b454c38ba8bbf87fbe9ae1c8b2f35aee29e45384441173372b04546622a4b",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.0/samples/psp-forbidden-sysctls/example_allowed.yaml": "a7c5fdfabc22dc2e60ea6e952c4a4bcdbbad4fb2073c4ab3cd25bd197550e11a",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.0/samples/psp-forbidden-sysctls/example_disallowed.yaml": "1333e7f5f19c576728002d8e0249220948a13219425630a892729317b07f19ea",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.0/suite.yaml": "22daa18b554c749781dd03adf62609e86c92f91f84d877a2ac15aa8582e777c8",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.0/template.yaml": "7641a673f2cf4473a1b171849d25f46a588e84e5ce2ea297f077b2db6e0526ba",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.1/README.md": "c49b215f0828bc27245476a67fd09dc344c07e262b0b9f1b815defd08412db79",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.1/artifacthub-pkg.yml": "d6e829291381a19c1ac18ed068fd1306fbb97fcb4d6b6588dc558015511ddf0f",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.1/samples/psp-forbidden-sysctls/constraint.yaml": "782b454c38ba8bbf87fbe9ae1c8b2f35aee29e45384441173372b04546622a4b",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.1/samples/psp-forbidden-sysctls/example_allowed.yaml": "a7c5fdfabc22dc2e60ea6e952c4a4bcdbbad4fb2073c4ab3cd25bd197550e11a",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.1/samples/psp-forbidden-sysctls/example_disallowed.yaml": "1333e7f5f19c576728002d8e0249220948a13219425630a892729317b07f19ea",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.1/suite.yaml": "22daa18b554c749781dd03adf62609e86c92f91f84d877a2ac15aa8582e777c8",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.1/template.yaml": "79583623912dfa0da61cbc1bc5bac5eb4cee6c23b841d09c699d336c2933027c",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/README.md": "c49b215f0828bc27245476a67fd09dc344c07e262b0b9f1b815defd08412db79",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/artifacthub-pkg.yml": "970623965a3b6f9251cd8e4bd5dddd564908d4df2118ba1b1df2f73fcf2c5718",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/samples/psp-forbidden-sysctls/constraint.yaml": "782b454c38ba8bbf87fbe9ae1c8b2f35aee29e45384441173372b04546622a4b",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/samples/psp-forbidden-sysctls/example_allowed.yaml": "a7c5fdfabc22dc2e60ea6e952c4a4bcdbbad4fb2073c4ab3cd25bd197550e11a",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/samples/psp-forbidden-sysctls/example_disallowed.yaml": "1333e7f5f19c576728002d8e0249220948a13219425630a892729317b07f19ea",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/samples/psp-forbidden-sysctls/update.yaml": "7d33d8d6605b46e0d62fb992a79159aa7a1083fbcda63c9473b0efe0737ab466",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/suite.yaml": "c4f67c814fa2508a4d93b3f67ec426e4a4bc0a0bdef601fd11220bc297e9153a",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.2/template.yaml": "170ba3a39268fdfb407f447e0b58230e15f4ad68d8633ef16c928f0805709e98",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/README.md": "c49b215f0828bc27245476a67fd09dc344c07e262b0b9f1b815defd08412db79",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/artifacthub-pkg.yml": "61dc6098c61f95d6b2df84a25e2ab44fd59c649123fd735da73e84b2cf4b34e2",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/samples/psp-forbidden-sysctls/constraint.yaml": "782b454c38ba8bbf87fbe9ae1c8b2f35aee29e45384441173372b04546622a4b",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/samples/psp-forbidden-sysctls/example_allowed.yaml": "a7c5fdfabc22dc2e60ea6e952c4a4bcdbbad4fb2073c4ab3cd25bd197550e11a",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/samples/psp-forbidden-sysctls/example_disallowed.yaml": "1333e7f5f19c576728002d8e0249220948a13219425630a892729317b07f19ea",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/samples/psp-forbidden-sysctls/update.yaml": "7d33d8d6605b46e0d62fb992a79159aa7a1083fbcda63c9473b0efe0737ab466",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/suite.yaml": "c4f67c814fa2508a4d93b3f67ec426e4a4bc0a0bdef601fd11220bc297e9153a",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.1.3/template.yaml": "c4f8e142bc2dacf5a4714335060a21211dc4c73479ef099635b62d0425fdc71d",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/README.md": "c49b215f0828bc27245476a67fd09dc344c07e262b0b9f1b815defd08412db79",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/artifacthub-pkg.yml": "ad1e8fa99d158026db1cef7e3938a4ae2ced2bc904fb082e8a068b28b71132cc",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/samples/psp-forbidden-sysctls/constraint.yaml": "782b454c38ba8bbf87fbe9ae1c8b2f35aee29e45384441173372b04546622a4b",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/samples/psp-forbidden-sysctls/constraint2.yaml": "12f6cb8317eedb743bf88e3aa927e0c75f1dd1755a3f674b3fc5595129bde1dd",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/samples/psp-forbidden-sysctls/constraint3.yaml": "341c4e767b26a85571ff8208b31f2c991e554d32768d638f55927c553bf1c647",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/samples/psp-forbidden-sysctls/constraint4.yaml": "e8d77b6e023c5de73b64d4eef3ccd8d8a14ef3a32bf4110556cec1fa8e5d6afd",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/samples/psp-forbidden-sysctls/constraint5.yaml": "c1663cec613544b73c03a350505a385742d932e552d336a8700c194f4db70431",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/samples/psp-forbidden-sysctls/example_allowed.yaml": "729ddcd1c7e10b2f7ad300c00c6857f96ae4b4315e3c60247807d7e9b7202097",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/samples/psp-forbidden-sysctls/example_disallowed.yaml": "1333e7f5f19c576728002d8e0249220948a13219425630a892729317b07f19ea",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/samples/psp-forbidden-sysctls/update.yaml": "7d33d8d6605b46e0d62fb992a79159aa7a1083fbcda63c9473b0efe0737ab466",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/suite.yaml": "84761b6c234e4966c9cfdfc722ba523afd64823985a37798066e37a775d004bd",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.0/template.yaml": "e9d8ac6e755cfa020b05b87267cda094f4da0c32786eff5cd6e7e75deb4e1928",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/README.md": "c49b215f0828bc27245476a67fd09dc344c07e262b0b9f1b815defd08412db79",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/artifacthub-pkg.yml": "8a590dfe97c53cb6ced6863eedd4f3fa9e49c9773ab3e04e8f8b4b8c7d799c9c",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/samples/psp-forbidden-sysctls/constraint.yaml": "ea24a5796de08db2dfe2c23af3da37403c68cd2ebc10024f69656aae11178d0d",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/samples/psp-forbidden-sysctls/constraint2.yaml": "12f6cb8317eedb743bf88e3aa927e0c75f1dd1755a3f674b3fc5595129bde1dd",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/samples/psp-forbidden-sysctls/constraint3.yaml": "341c4e767b26a85571ff8208b31f2c991e554d32768d638f55927c553bf1c647",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/samples/psp-forbidden-sysctls/constraint4.yaml": "e8d77b6e023c5de73b64d4eef3ccd8d8a14ef3a32bf4110556cec1fa8e5d6afd",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/samples/psp-forbidden-sysctls/constraint5.yaml": "c1663cec613544b73c03a350505a385742d932e552d336a8700c194f4db70431",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/samples/psp-forbidden-sysctls/example_allowed.yaml": "5dfa367238684a890b9cfa0e7c0953065a72707038196312ffbeff13d03e9e26",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/samples/psp-forbidden-sysctls/example_disallowed.yaml": "1333e7f5f19c576728002d8e0249220948a13219425630a892729317b07f19ea",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/samples/psp-forbidden-sysctls/update.yaml": "7d33d8d6605b46e0d62fb992a79159aa7a1083fbcda63c9473b0efe0737ab466",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/suite.yaml": "84761b6c234e4966c9cfdfc722ba523afd64823985a37798066e37a775d004bd",
+ "artifacthub/library/pod-security-policy/forbidden-sysctls/1.2.1/template.yaml": "5b30372477bd0400d1a20e1a8d1d34cad653446ef6d3f3cafc019b24a7cd660b",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.0/README.md": "1fb2ca88e4532bdcf43a23f6d3d077b6cf95f2e5c0f4c4df0e11c74154e4ab3f",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.0/artifacthub-pkg.yml": "04a6b88d0341a5a2851a78fbef81032bff29add3053a6caff9b3bc8e03f94292",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.0/samples/psp-fsgroup/constraint.yaml": "4319edaf35aae5d26542af8e927627904f4b21f8f67966277d84a3a093b6a907",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.0/samples/psp-fsgroup/example_allowed.yaml": "3539bd69bbda672171f0da62251c3ec803bc331ce57d06bfdd36b792431999e5",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.0/samples/psp-fsgroup/example_disallowed.yaml": "806e36d3295e688f206a0973cf1430698d2a0be13beb5e2ac4e8ad6d22fd9fc5",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.0/suite.yaml": "e8072a9fea0b9c1f6cae589c22c48a77cefaf20c233784964e655076f048a227",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.0/template.yaml": "08a86add31cfe4733e5ac3b1b0a7f5ba96a5cb381d10d1dc62d671b99239b0e1",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/README.md": "1fb2ca88e4532bdcf43a23f6d3d077b6cf95f2e5c0f4c4df0e11c74154e4ab3f",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/artifacthub-pkg.yml": "da16f273c82380f16d9b1e2be3ba06ae2a0353ff2881aeef90a637efa9a5eb62",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/samples/psp-fsgroup/constraint.yaml": "4319edaf35aae5d26542af8e927627904f4b21f8f67966277d84a3a093b6a907",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/samples/psp-fsgroup/example_allowed.yaml": "3539bd69bbda672171f0da62251c3ec803bc331ce57d06bfdd36b792431999e5",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/samples/psp-fsgroup/example_disallowed.yaml": "806e36d3295e688f206a0973cf1430698d2a0be13beb5e2ac4e8ad6d22fd9fc5",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/samples/psp-fsgroup/update.yaml": "b3061304b3b0805c1f9798310c91763d2a109917f3b13c866b9def1ea84da648",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/suite.yaml": "f76c2c2f7f480a913cb32648de201dca8f5ac01e437e1ebb483624e13b35f684",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.1/template.yaml": "b3554ba5a648621b71c4fd92c970dcb1c959994f04d63ed16341c86eef73b18b",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/README.md": "1fb2ca88e4532bdcf43a23f6d3d077b6cf95f2e5c0f4c4df0e11c74154e4ab3f",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/artifacthub-pkg.yml": "784e67c8470bde92ddbbec448c9632f6c57bbeafda11119855c901c46a3b4946",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/samples/psp-fsgroup/constraint.yaml": "4319edaf35aae5d26542af8e927627904f4b21f8f67966277d84a3a093b6a907",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/samples/psp-fsgroup/constraint2.yaml": "9503075d1c4732cb6e8e6b4dd711b85d2eb76a62f0416eeb31df2cec1f7128c4",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/samples/psp-fsgroup/example_allowed.yaml": "3539bd69bbda672171f0da62251c3ec803bc331ce57d06bfdd36b792431999e5",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/samples/psp-fsgroup/example_disallowed.yaml": "806e36d3295e688f206a0973cf1430698d2a0be13beb5e2ac4e8ad6d22fd9fc5",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/samples/psp-fsgroup/update.yaml": "b3061304b3b0805c1f9798310c91763d2a109917f3b13c866b9def1ea84da648",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/suite.yaml": "f76c2c2f7f480a913cb32648de201dca8f5ac01e437e1ebb483624e13b35f684",
+ "artifacthub/library/pod-security-policy/fsgroup/1.0.2/template.yaml": "8aed4497ac32ae6809cc1649e91bf0224fd117660bb4cee06a27617f4dbcc6a3",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/README.md": "1fb2ca88e4532bdcf43a23f6d3d077b6cf95f2e5c0f4c4df0e11c74154e4ab3f",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/artifacthub-pkg.yml": "2e93d492306ca81a8485337026e7953471737629c060a2ff829b94a192e95f8b",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/samples/psp-fsgroup/constraint.yaml": "4319edaf35aae5d26542af8e927627904f4b21f8f67966277d84a3a093b6a907",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/samples/psp-fsgroup/constraint2.yaml": "9503075d1c4732cb6e8e6b4dd711b85d2eb76a62f0416eeb31df2cec1f7128c4",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/samples/psp-fsgroup/constraint3.yaml": "027209fbb9cb6dd3304f3a01732683e2f7f76c7e5a7356f83e8389ddd7974012",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/samples/psp-fsgroup/example_allowed.yaml": "4a73cff4b1970ba1eeef212fed3a1bf1e79580decfed97b3f1ed2faf86643445",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/samples/psp-fsgroup/example_disallowed.yaml": "806e36d3295e688f206a0973cf1430698d2a0be13beb5e2ac4e8ad6d22fd9fc5",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/samples/psp-fsgroup/update.yaml": "b3061304b3b0805c1f9798310c91763d2a109917f3b13c866b9def1ea84da648",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/suite.yaml": "7c9175093fc596cf7595ea2029997b5c32fa2f14fff5330d9aa1d470e7d2e737",
+ "artifacthub/library/pod-security-policy/fsgroup/1.1.0/template.yaml": "49cf2ea07c8f12e4439da096d1474ea99553ff6bffcac97c9f7f2a2776565fe9",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.0/artifacthub-pkg.yml": "3a399cff49f5deed18c44158f37b2e4214461e327f2d3173b90763663634143e",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.0/samples/psp-host-filesystem/constraint.yaml": "f8c5dcc7a73c5d0ebac842bbf3dce99104e2fb16da7f6c32b8f29c3d1436e849",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.0/samples/psp-host-filesystem/disallowed_ephemeral.yaml": "30e57877e0dd6ccd1eeca5780181a2acb24925282bebead0efa9337bad2376f6",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.0/samples/psp-host-filesystem/example_allowed.yaml": "bd70f144eab828a9dc733013d77b79c1ff47b65b5c5d70425481e3190c03842a",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.0/samples/psp-host-filesystem/example_disallowed.yaml": "a4c0d1176f501306179b27441a8f7fb68038be8fd465d744e8415ee96d08ac4c",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.0/suite.yaml": "584e5ccc969906ed7cfbc7e6509384750faa7d8f56cfeac29318d403defdff8d",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.0/template.yaml": "b88e76b9bb107843b48485f43f1a84b837a016a0d13b80db16bac56c30616ea8",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/artifacthub-pkg.yml": "736c2922e8399b53b21567a8103d1e7336755ff387320dbc854dbf6e86d2f815",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/samples/psp-host-filesystem/constraint.yaml": "f8c5dcc7a73c5d0ebac842bbf3dce99104e2fb16da7f6c32b8f29c3d1436e849",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/samples/psp-host-filesystem/disallowed_ephemeral.yaml": "30e57877e0dd6ccd1eeca5780181a2acb24925282bebead0efa9337bad2376f6",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/samples/psp-host-filesystem/example_allowed.yaml": "bd70f144eab828a9dc733013d77b79c1ff47b65b5c5d70425481e3190c03842a",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/samples/psp-host-filesystem/example_disallowed.yaml": "a4c0d1176f501306179b27441a8f7fb68038be8fd465d744e8415ee96d08ac4c",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/samples/psp-host-filesystem/update.yaml": "6ef004f445ea9a4ea64c5ceea3d34efce3538fde7def3842ea9e5936efd8395b",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/suite.yaml": "63616278ea3cf9ac9738000b817ea91a44a7aeb44df6e94500485ba82effd8ed",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.1/template.yaml": "ba4c876238252a35d2b1fb918237c9630b1c3b8210e460bf4494e1e6e06dab93",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/artifacthub-pkg.yml": "a6dd9316da799c4654aac49d4ec4dfb6477044fbb92fd763c313abad14027cf9",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/samples/psp-host-filesystem/constraint.yaml": "f8c5dcc7a73c5d0ebac842bbf3dce99104e2fb16da7f6c32b8f29c3d1436e849",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/samples/psp-host-filesystem/disallowed_ephemeral.yaml": "30e57877e0dd6ccd1eeca5780181a2acb24925282bebead0efa9337bad2376f6",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/samples/psp-host-filesystem/example_allowed.yaml": "bd70f144eab828a9dc733013d77b79c1ff47b65b5c5d70425481e3190c03842a",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/samples/psp-host-filesystem/example_disallowed.yaml": "a4c0d1176f501306179b27441a8f7fb68038be8fd465d744e8415ee96d08ac4c",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/samples/psp-host-filesystem/update.yaml": "6ef004f445ea9a4ea64c5ceea3d34efce3538fde7def3842ea9e5936efd8395b",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/suite.yaml": "63616278ea3cf9ac9738000b817ea91a44a7aeb44df6e94500485ba82effd8ed",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.0.2/template.yaml": "ecaf136314f10cc331f9aa98ba111ece35d135af6ef2a0dc0f1e3631fc5bc0a4",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/artifacthub-pkg.yml": "7c0eaf966143135d7d615c4a05be556e555dcc157bd58d09e70702d68048fa2a",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/samples/psp-host-filesystem/constraint.yaml": "f8c5dcc7a73c5d0ebac842bbf3dce99104e2fb16da7f6c32b8f29c3d1436e849",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/samples/psp-host-filesystem/disallowed_ephemeral.yaml": "30e57877e0dd6ccd1eeca5780181a2acb24925282bebead0efa9337bad2376f6",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/samples/psp-host-filesystem/example_allowed.yaml": "bd70f144eab828a9dc733013d77b79c1ff47b65b5c5d70425481e3190c03842a",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/samples/psp-host-filesystem/example_disallowed.yaml": "a4c0d1176f501306179b27441a8f7fb68038be8fd465d744e8415ee96d08ac4c",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/samples/psp-host-filesystem/update.yaml": "6ef004f445ea9a4ea64c5ceea3d34efce3538fde7def3842ea9e5936efd8395b",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/suite.yaml": "63616278ea3cf9ac9738000b817ea91a44a7aeb44df6e94500485ba82effd8ed",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.0/template.yaml": "52ec4ce0931f0d7fdb0886f5326c7aa5762bf4b25b58d86dd83165c227ffc84c",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/artifacthub-pkg.yml": "3b2c645e3f2c2b2be4e072eaa8538b4c92f3856355ecb497af16e16bed69b3fc",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/samples/no-host-paths/constraint.yaml": "fe8a1458028a30d1eb05408ab08c976f27d3d3812351f47952c4f6ead3904943",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/samples/no-host-paths/example_allowed_no_volumes.yaml": "4b4dbab31bea2ea264258aa733fca470cc3202e430b0a8d816ef96fccbb897b2",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/samples/psp-host-filesystem/constraint.yaml": "f8c5dcc7a73c5d0ebac842bbf3dce99104e2fb16da7f6c32b8f29c3d1436e849",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/samples/psp-host-filesystem/disallowed_ephemeral.yaml": "30e57877e0dd6ccd1eeca5780181a2acb24925282bebead0efa9337bad2376f6",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/samples/psp-host-filesystem/example_allowed.yaml": "bd70f144eab828a9dc733013d77b79c1ff47b65b5c5d70425481e3190c03842a",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/samples/psp-host-filesystem/example_disallowed.yaml": "a4c0d1176f501306179b27441a8f7fb68038be8fd465d744e8415ee96d08ac4c",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/samples/psp-host-filesystem/update.yaml": "6ef004f445ea9a4ea64c5ceea3d34efce3538fde7def3842ea9e5936efd8395b",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/suite.yaml": "e84d0d1ad28bd952e982c9fd9423b027731e5b804db8daf09a4defd4ea0471ca",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.1/template.yaml": "88903cf8f3fc04956b874726ece6d73390891c661197a5a0228d0eabce1ed813",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/artifacthub-pkg.yml": "762d5e2ccc2c697daea98442e6b292444bf0ed18a5b59206b931bb4aa55c83ff",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/samples/no-host-paths/constraint.yaml": "fe8a1458028a30d1eb05408ab08c976f27d3d3812351f47952c4f6ead3904943",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/samples/no-host-paths/example_allowed_no_volumes.yaml": "4b4dbab31bea2ea264258aa733fca470cc3202e430b0a8d816ef96fccbb897b2",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/samples/psp-host-filesystem/constraint.yaml": "f8c5dcc7a73c5d0ebac842bbf3dce99104e2fb16da7f6c32b8f29c3d1436e849",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/samples/psp-host-filesystem/disallowed_ephemeral.yaml": "30e57877e0dd6ccd1eeca5780181a2acb24925282bebead0efa9337bad2376f6",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/samples/psp-host-filesystem/example_allowed.yaml": "bd70f144eab828a9dc733013d77b79c1ff47b65b5c5d70425481e3190c03842a",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/samples/psp-host-filesystem/example_disallowed.yaml": "a4c0d1176f501306179b27441a8f7fb68038be8fd465d744e8415ee96d08ac4c",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/samples/psp-host-filesystem/update.yaml": "6ef004f445ea9a4ea64c5ceea3d34efce3538fde7def3842ea9e5936efd8395b",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/suite.yaml": "e84d0d1ad28bd952e982c9fd9423b027731e5b804db8daf09a4defd4ea0471ca",
+ "artifacthub/library/pod-security-policy/host-filesystem/1.1.2/template.yaml": "c075ab6b5b1f71482705160e918cc19f94a92dd913af091d651d66c821e745f6",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.0/artifacthub-pkg.yml": "8bdc2c8476cac4c5c87d60873072943746035372c825c29cedff003920e5be15",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.0/samples/psp-host-namespace/constraint.yaml": "de5c87a96a52d324546e5c6fa9bd82e7d991f8e93b835cfae3d9963cef7658bc",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.0/samples/psp-host-namespace/example_allowed.yaml": "aa57ecd5f2f0a85e3bd894b0cd70f2f0ec9233a3c70965d861f0e1d468bc6a85",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.0/samples/psp-host-namespace/example_disallowed.yaml": "e8f34de597b7bbb5fd4e461ab7d22354077072f8a4e3bfee30e22dab4493b532",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.0/suite.yaml": "61b9182ee78e6460ab3b5a1ea49341081a1d4bc37726d8b6aaa3fe5319cc6c15",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.0/template.yaml": "2210931f1e0048eeaf8e79f180faea0c8ec94f40080acb2bc5b19003bfea3513",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.1/artifacthub-pkg.yml": "4a55dc5238741de55c52b7e9566c1e3461dc8ab53cdd170d8b3ccee0e8cc3743",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.1/samples/psp-host-namespace/constraint.yaml": "de5c87a96a52d324546e5c6fa9bd82e7d991f8e93b835cfae3d9963cef7658bc",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.1/samples/psp-host-namespace/example_allowed.yaml": "aa57ecd5f2f0a85e3bd894b0cd70f2f0ec9233a3c70965d861f0e1d468bc6a85",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.1/samples/psp-host-namespace/example_disallowed.yaml": "e8f34de597b7bbb5fd4e461ab7d22354077072f8a4e3bfee30e22dab4493b532",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.1/samples/psp-host-namespace/update.yaml": "cad0a5d3c186e8dd61f4c192ac41728d2ea3cc0e02bce0aeac38642099fd9a72",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.1/suite.yaml": "b4ab3df70fbac4fccbaa393def370760b3ce9395ae6ebf0d17ba4d48384825c9",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.0.1/template.yaml": "38d8b66c2bedd0e84a279252f9d16f24fbbe3ff9f8b5f9bfce54f24ff7d2977f",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.0/artifacthub-pkg.yml": "0f588b805655d978b989ecd9b3800d5bd62a378572adb6ac65091638d6567abb",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.0/samples/psp-host-namespace/constraint.yaml": "de5c87a96a52d324546e5c6fa9bd82e7d991f8e93b835cfae3d9963cef7658bc",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.0/samples/psp-host-namespace/example_allowed.yaml": "aa57ecd5f2f0a85e3bd894b0cd70f2f0ec9233a3c70965d861f0e1d468bc6a85",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.0/samples/psp-host-namespace/example_disallowed.yaml": "e8f34de597b7bbb5fd4e461ab7d22354077072f8a4e3bfee30e22dab4493b532",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.0/samples/psp-host-namespace/update.yaml": "cad0a5d3c186e8dd61f4c192ac41728d2ea3cc0e02bce0aeac38642099fd9a72",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.0/suite.yaml": "b4ab3df70fbac4fccbaa393def370760b3ce9395ae6ebf0d17ba4d48384825c9",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.0/template.yaml": "8865ba6ac74f391f064883af57b6843075feab3fd609d9f0d78215332d2fafd1",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.1/artifacthub-pkg.yml": "496fd54eea614d6558e0d271716a631d33168090da98a4b750e7a60c026d4606",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.1/samples/psp-host-namespace/constraint.yaml": "de5c87a96a52d324546e5c6fa9bd82e7d991f8e93b835cfae3d9963cef7658bc",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.1/samples/psp-host-namespace/example_allowed.yaml": "aa57ecd5f2f0a85e3bd894b0cd70f2f0ec9233a3c70965d861f0e1d468bc6a85",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.1/samples/psp-host-namespace/example_disallowed.yaml": "e8f34de597b7bbb5fd4e461ab7d22354077072f8a4e3bfee30e22dab4493b532",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.1/samples/psp-host-namespace/update.yaml": "cad0a5d3c186e8dd61f4c192ac41728d2ea3cc0e02bce0aeac38642099fd9a72",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.1/suite.yaml": "b4ab3df70fbac4fccbaa393def370760b3ce9395ae6ebf0d17ba4d48384825c9",
+ "artifacthub/library/pod-security-policy/host-namespaces/1.1.1/template.yaml": "b321de154c1c49cc2bd11399fe3bcbce8b31037c38c155e3dfd5e7fcacdecdd0",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.0/artifacthub-pkg.yml": "eb4c5134ba1ab35ad7c88b99d72ba178e7e2e6bc049cc7ce5f9781cd50858a57",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.0/samples/psp-host-network-ports/constraint.yaml": "f1a000f7d98dc89e2995956fc74c1ff30ce2631d04604eaec1ae62def87d087c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.0/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.0/samples/psp-host-network-ports/example_allowed.yaml": "461afe4e172f9b859a6e3cfd091acbebe56fd2f3b41e76ad01272d3f2bd0e107",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.0/samples/psp-host-network-ports/example_disallowed.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.0/suite.yaml": "f6d18566d5158e864dd7e8293b34e53839cfdc0ed6728d08c2366e4e3052ae94",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.0/template.yaml": "1735720d1cf82703b3e87668cc81e990d2ec915637380a101de2f83cc8368a53",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/artifacthub-pkg.yml": "fa474be65d647992162394243e3549814f6b6d7f7fa1713cb25bf6127777a8b5",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/samples/psp-host-network-ports/constraint.yaml": "f1a000f7d98dc89e2995956fc74c1ff30ce2631d04604eaec1ae62def87d087c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/samples/psp-host-network-ports/example_allowed.yaml": "461afe4e172f9b859a6e3cfd091acbebe56fd2f3b41e76ad01272d3f2bd0e107",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/samples/psp-host-network-ports/example_disallowed.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/suite.yaml": "cc3b23740947f212101052338e84f1e97f69acd28c23b7d27b6ee06f3a9b812d",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.1/template.yaml": "2142819071550d2d3bf5c1682f7b1d345b5a520fdbbb452e85e020b9bdede238",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/artifacthub-pkg.yml": "9d5700338d89442e253b463d27d99eb35eea5eef211bfb111c97feab4447eeb8",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/samples/psp-host-network-ports/constraint.yaml": "f1a000f7d98dc89e2995956fc74c1ff30ce2631d04604eaec1ae62def87d087c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/samples/psp-host-network-ports/example_allowed.yaml": "461afe4e172f9b859a6e3cfd091acbebe56fd2f3b41e76ad01272d3f2bd0e107",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/samples/psp-host-network-ports/example_disallowed.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/suite.yaml": "cc3b23740947f212101052338e84f1e97f69acd28c23b7d27b6ee06f3a9b812d",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.0.2/template.yaml": "217dc7e98a82c2ef05f669f883a06a6143823c40b6bdf3581c865565b88baace",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/artifacthub-pkg.yml": "dafa0897bd8a9a32fd292ac4cfdde24139b1d16baae343bf886535764f53fbb0",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/samples/psp-host-network-ports/constraint.yaml": "f1a000f7d98dc89e2995956fc74c1ff30ce2631d04604eaec1ae62def87d087c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/samples/psp-host-network-ports/constraint_block_host_network.yaml": "054a75aeb2cdac008a5e6751ffb37ade9866ab6d9d318fe12787bdff45015c78",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/samples/psp-host-network-ports/example_allowed.yaml": "461afe4e172f9b859a6e3cfd091acbebe56fd2f3b41e76ad01272d3f2bd0e107",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/samples/psp-host-network-ports/example_disallowed.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/suite.yaml": "6a5d7f355bf4418976fee2787c27f29d38c9c525ee4a255210a56d4c7a12bdb8",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.0/template.yaml": "46d65c57d1836b4da0a6a31d57607aad67f504fcc51598a8c1dec447a445cba3",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/artifacthub-pkg.yml": "bfbbd78120d24979204831689c342a81cabcf013906182399eec313ddad9073f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/samples/psp-host-network-ports/constraint.yaml": "10b2a58aea95a15693da97399737c0681d224b8ec9b34ec4b1cc28cd3009371c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/samples/psp-host-network-ports/constraint_block_host_network.yaml": "21db40e1f15897590dccb047a583613b6344c9463edc6904603b3a69bd43c26e",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/samples/psp-host-network-ports/example_allowed.yaml": "461afe4e172f9b859a6e3cfd091acbebe56fd2f3b41e76ad01272d3f2bd0e107",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/samples/psp-host-network-ports/example_disallowed.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/suite.yaml": "6a5d7f355bf4418976fee2787c27f29d38c9c525ee4a255210a56d4c7a12bdb8",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.1/template.yaml": "2092702dc69a721f6cd46581752684d40ff72df93f1c32dd248684540ed6c210",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/artifacthub-pkg.yml": "87c88a156c226722ee5c7ee767f062cc50b7773eab4197518b6d336df4fb241d",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/samples/psp-host-network-ports/constraint.yaml": "10b2a58aea95a15693da97399737c0681d224b8ec9b34ec4b1cc28cd3009371c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/samples/psp-host-network-ports/constraint_block_host_network.yaml": "21db40e1f15897590dccb047a583613b6344c9463edc6904603b3a69bd43c26e",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/samples/psp-host-network-ports/example_allowed.yaml": "461afe4e172f9b859a6e3cfd091acbebe56fd2f3b41e76ad01272d3f2bd0e107",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/samples/psp-host-network-ports/example_allowed_no_ports.yaml": "493f5e4f799271b28c5a6a30cd41592cc97ca1ab12e9077bdd4867fe53d97f96",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/samples/psp-host-network-ports/example_disallowed.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/suite.yaml": "57b71b5e1b0dafb9701014feaf62d0917d9629a6dd50b783e4e3956d2dd54f1e",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.2/template.yaml": "d0d6628eee6ab402aa525a7b22395db9b31fef899067248372c7f4eb4414a8dc",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/artifacthub-pkg.yml": "678ff60074988f58acafa2cc20e44f71e053c014687e72bd7953ba07e2fc9e89",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/block_host_network/constraint.yaml": "fca264f554fdcc8a746d7a39e8e83656fc3612c151986b8e6b75f50ea00c7ce0",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/port_range_block_host_network/constraint.yaml": "8bc13eb98ee9017838770bc44cd554cd6ffb927f37617d3eaeb8da617f4e7653",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/psp-host-network-ports/constraint.yaml": "10b2a58aea95a15693da97399737c0681d224b8ec9b34ec4b1cc28cd3009371c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/psp-host-network-ports/example_allowed_in_range.yaml": "943c2ddd1d9e06ae98e6e9410f51e84861d83af55d7196f83f06dffd619b798d",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/psp-host-network-ports/example_allowed_no_ports.yaml": "493f5e4f799271b28c5a6a30cd41592cc97ca1ab12e9077bdd4867fe53d97f96",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml": "7e24f18edd7218b9ea897378ee57bc36016c14b1c91a4402efe0e6088826008c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml": "71732ec35729a183833ff07d9c348fa68c9c8bb920a1b30b8a3c5f0af75c6e0f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/suite.yaml": "a86574fb72b4ad4b27c5d48e2870724bee3c372408fb68f6024619063b18ae8b",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.3/template.yaml": "879daed4dfd186f1a31ac45bbec9df402df4d8a0d979f7a25dd75e2dbabb2fe4",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/artifacthub-pkg.yml": "a5f29db4300b4394a15ea7f785b98311baf4b0d044b12489d218d9ea989dbf1a",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/block_host_network/constraint.yaml": "fca264f554fdcc8a746d7a39e8e83656fc3612c151986b8e6b75f50ea00c7ce0",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/port_range_block_host_network/constraint.yaml": "2d62d0510d00d9abd17c6748b44944d81243ff25e8157d609c91fdb2750ba461",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/port_range_block_host_network/example_disallowed_exempted_container_host_network_enabled.yaml": "bacd188aa8c52d29298972358adecc8d6d61e5c8b4c1b20d52da5bbbd0424040",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/psp-host-network-ports/constraint.yaml": "41c7995868e212a4121e5fec937a25dfb29925e4facbbcc644585c2b7d0f8bcc",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/psp-host-network-ports/example_allowed_in_range.yaml": "943c2ddd1d9e06ae98e6e9410f51e84861d83af55d7196f83f06dffd619b798d",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/psp-host-network-ports/example_allowed_no_ports.yaml": "493f5e4f799271b28c5a6a30cd41592cc97ca1ab12e9077bdd4867fe53d97f96",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml": "7e24f18edd7218b9ea897378ee57bc36016c14b1c91a4402efe0e6088826008c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml": "71732ec35729a183833ff07d9c348fa68c9c8bb920a1b30b8a3c5f0af75c6e0f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/psp-host-network-ports/example_allowed_out_of_range_exempted.yaml": "9b14c912aefa3b2777dc29359a4986c0980cf8c5c58d0bb469c0072ca878e30d",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/suite.yaml": "4c2c5aeabbaf17b4f947b231238b992fda4636ca38f91a6ced87f0e642e0f1e4",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.4/template.yaml": "57275acf6ff9c7c60e677f7d94018048eb2bec4f9b79ca2223e88d0defead86c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/artifacthub-pkg.yml": "a2d27a9bdf35d2f24a38cd73334da47c834952e3d05a9f4c462b81c6e31bb3b8",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/block_host_network/constraint.yaml": "fca264f554fdcc8a746d7a39e8e83656fc3612c151986b8e6b75f50ea00c7ce0",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/port_range_block_host_network/constraint.yaml": "2d62d0510d00d9abd17c6748b44944d81243ff25e8157d609c91fdb2750ba461",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/port_range_block_host_network/example_disallowed_exempted_container_host_network_enabled.yaml": "bacd188aa8c52d29298972358adecc8d6d61e5c8b4c1b20d52da5bbbd0424040",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/psp-host-network-ports/constraint.yaml": "41c7995868e212a4121e5fec937a25dfb29925e4facbbcc644585c2b7d0f8bcc",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/psp-host-network-ports/example_allowed_in_range.yaml": "943c2ddd1d9e06ae98e6e9410f51e84861d83af55d7196f83f06dffd619b798d",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/psp-host-network-ports/example_allowed_no_ports.yaml": "493f5e4f799271b28c5a6a30cd41592cc97ca1ab12e9077bdd4867fe53d97f96",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml": "7e24f18edd7218b9ea897378ee57bc36016c14b1c91a4402efe0e6088826008c",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml": "71732ec35729a183833ff07d9c348fa68c9c8bb920a1b30b8a3c5f0af75c6e0f",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/psp-host-network-ports/example_allowed_out_of_range_exempted.yaml": "9b14c912aefa3b2777dc29359a4986c0980cf8c5c58d0bb469c0072ca878e30d",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/suite.yaml": "4c2c5aeabbaf17b4f947b231238b992fda4636ca38f91a6ced87f0e642e0f1e4",
+ "artifacthub/library/pod-security-policy/host-network-ports/1.1.5/template.yaml": "952479af44db01ee3e97c1ab011b5b70240a769be05e5762405017db9f4ab18c",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/artifacthub-pkg.yml": "8484c1297210201917360c4c4709141c28e2ca75bbece9ac1a7020573d12818c",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/constraint.yaml": "72e5c1536b6d4af228824dc5ab8ec4bbc66d2763679596d07784b9352b32d307",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/disallowed_ephemeral_lifecycle.yaml": "d20bddf42494c50e562b1e0900190a5c2856b7951b7263fdcd58214703462f12",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/disallowed_ephemeral_probe.yaml": "49d10619257284562b02939ec8a19fc78c382154a121c8f2a3a3d87d119db6c1",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/disallowed_init_lifecycle.yaml": "4ceb42984f6d65ffcb415bd75f076c2215c0ee8f36bc31408904c49651d7314a",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/disallowed_init_probe.yaml": "e06590d7861647ed328756c8d17e4edddc32efe2842c6fda68a3a1f62f1bcb31",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/example_allowed_no_probes.yaml": "8f8c3e58e3eeab6fb15b44b0bdb7b59681c565e3f5f072cde25568ee90d772a9",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/example_allowed_probe_no_host.yaml": "d83d3e583ac4d2102c2e3e140c94f7d87ff98e115737dd1d249821bb0f64a2d3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_poststart.yaml": "f0f886f188cf8c92b8109c16199d747e1dd82407d00477a879156addbcabe7cb",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_prestop.yaml": "ef07fad187f73d04edfb7f7ef0f88056f5e76d3feefa74d6549b22e7ce89dca3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/example_disallowed_liveness_probe.yaml": "c601f6211cb7cc8c6349ae84c87530d7726d4ea9d0a69a81b2808186dc43f1f3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/example_disallowed_readiness_probe.yaml": "2cb1d5b0d4943d8d2c7ef827a19bde49954cca2268bad51c1b7719a0e03d1552",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/example_disallowed_startup_probe.yaml": "3e032337d2a0e3d1d780a5027876626ce4b89b56bfa4a16af5ceed2f3544aa0c",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/example_disallowed_tcp_probe.yaml": "db6ff5c3c5b37d0373217c22bf81af262c96424bbb67f496faa350cfbed741e5",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/samples/psp-host-probes-lifecycle/update.yaml": "8da45610a4d21d27b10de3bf409530c4960308631bc40397b9e2fff440e680a3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/suite.yaml": "ef924eee33bdae828a5c082a3ea16e2543a633abf15ee546c3bf38834e9abacf",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.0/template.yaml": "ceb1d31f6eb34d43ce44abd12ec6e5107c6780d8c6c92c82eab49f12146fafd3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/artifacthub-pkg.yml": "83494907416de806bc44e80ec75d6d0322a36b0b6f89a076c779dbb3f5dd6bed",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/constraint.yaml": "72e5c1536b6d4af228824dc5ab8ec4bbc66d2763679596d07784b9352b32d307",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/disallowed_ephemeral_lifecycle.yaml": "d20bddf42494c50e562b1e0900190a5c2856b7951b7263fdcd58214703462f12",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/disallowed_ephemeral_probe.yaml": "49d10619257284562b02939ec8a19fc78c382154a121c8f2a3a3d87d119db6c1",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/disallowed_init_lifecycle.yaml": "4ceb42984f6d65ffcb415bd75f076c2215c0ee8f36bc31408904c49651d7314a",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/disallowed_init_probe.yaml": "e06590d7861647ed328756c8d17e4edddc32efe2842c6fda68a3a1f62f1bcb31",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/example_allowed_no_probes.yaml": "8f8c3e58e3eeab6fb15b44b0bdb7b59681c565e3f5f072cde25568ee90d772a9",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/example_allowed_probe_no_host.yaml": "d83d3e583ac4d2102c2e3e140c94f7d87ff98e115737dd1d249821bb0f64a2d3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_poststart.yaml": "f0f886f188cf8c92b8109c16199d747e1dd82407d00477a879156addbcabe7cb",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_prestop.yaml": "ef07fad187f73d04edfb7f7ef0f88056f5e76d3feefa74d6549b22e7ce89dca3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/example_disallowed_liveness_probe.yaml": "c601f6211cb7cc8c6349ae84c87530d7726d4ea9d0a69a81b2808186dc43f1f3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/example_disallowed_readiness_probe.yaml": "2cb1d5b0d4943d8d2c7ef827a19bde49954cca2268bad51c1b7719a0e03d1552",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/example_disallowed_startup_probe.yaml": "3e032337d2a0e3d1d780a5027876626ce4b89b56bfa4a16af5ceed2f3544aa0c",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/example_disallowed_tcp_probe.yaml": "db6ff5c3c5b37d0373217c22bf81af262c96424bbb67f496faa350cfbed741e5",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/samples/psp-host-probes-lifecycle/update.yaml": "8da45610a4d21d27b10de3bf409530c4960308631bc40397b9e2fff440e680a3",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/suite.yaml": "ef924eee33bdae828a5c082a3ea16e2543a633abf15ee546c3bf38834e9abacf",
+ "artifacthub/library/pod-security-policy/host-probes-lifecycle/1.0.1/template.yaml": "b3139454faff1c793a09c0bf79e7d081773cae742326002f208264bff693ff60",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/artifacthub-pkg.yml": "93561aa94c974ee980c5085c287ecceb3b2baa062702203c502712904bbe8a8f",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/samples/psp-host-process/constraint.yaml": "5d0ee58afc5264b02b53fd4ed0bdb0ec1d96c68e2a3d43066edbea7149dba774",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/samples/psp-host-process/disallowed_ephemeral.yaml": "5f0f6d16532e12b0f1be1e2dbf38f73643befdaf9237396b40d366c09780dbd8",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/samples/psp-host-process/disallowed_init.yaml": "8f8e954bb72b5b206ad9578e278bc5a2ea54ec98185916e25ba6c1a73273f516",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/samples/psp-host-process/example_allowed.yaml": "a2ec39a4be531a1d62ca62e670b947931163f0826ec0ac41acb4b42cde7a0f7b",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/samples/psp-host-process/example_disallowed_container_level.yaml": "302a7d2c840b3b731db8a69e762167a89bbdcc462b027c94f650ef56e380c4bd",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/samples/psp-host-process/example_disallowed_pod_level.yaml": "8745478636980d3fa753f9b57402faa5ef16a27488b2f467ca9f9c4d7e3261e1",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/samples/psp-host-process/update.yaml": "7a9aca226d4997c7e0aac518fcdffa55fc08e27e62ed463b88aee5f7b42004b2",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/suite.yaml": "74138961095430cf7a36ffc9cea94a5053d7d0e1faa4c7869be3f0587a824c23",
+ "artifacthub/library/pod-security-policy/host-process/1.0.0/template.yaml": "4e528b2f84750cebae2522037c6542f76dea192505bbed76ab7ee79fec8e1c01",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/artifacthub-pkg.yml": "a4484a3d8f8d9ef0507393e2abb6ca152adf79253819d3577895444f925ec1ef",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/samples/psp-host-process/constraint.yaml": "5d0ee58afc5264b02b53fd4ed0bdb0ec1d96c68e2a3d43066edbea7149dba774",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/samples/psp-host-process/disallowed_ephemeral.yaml": "5f0f6d16532e12b0f1be1e2dbf38f73643befdaf9237396b40d366c09780dbd8",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/samples/psp-host-process/disallowed_init.yaml": "8f8e954bb72b5b206ad9578e278bc5a2ea54ec98185916e25ba6c1a73273f516",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/samples/psp-host-process/example_allowed.yaml": "a2ec39a4be531a1d62ca62e670b947931163f0826ec0ac41acb4b42cde7a0f7b",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/samples/psp-host-process/example_disallowed_container_level.yaml": "302a7d2c840b3b731db8a69e762167a89bbdcc462b027c94f650ef56e380c4bd",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/samples/psp-host-process/example_disallowed_pod_level.yaml": "8745478636980d3fa753f9b57402faa5ef16a27488b2f467ca9f9c4d7e3261e1",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/samples/psp-host-process/update.yaml": "7a9aca226d4997c7e0aac518fcdffa55fc08e27e62ed463b88aee5f7b42004b2",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/suite.yaml": "74138961095430cf7a36ffc9cea94a5053d7d0e1faa4c7869be3f0587a824c23",
+ "artifacthub/library/pod-security-policy/host-process/1.0.1/template.yaml": "9e7ed0ed57e04df7702f33fe4e45f39e3206aa830f0adb9a831335d76501e53a",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.0/artifacthub-pkg.yml": "af28a2b540c7a5edcf8eee1055635abdfff5d6751bc8d076ffeb516e6c2b83e8",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.0/samples/psp-privileged-container/constraint.yaml": "93f2b5f835bc7ec25fac96a6cd5e516e77af5296ee1ab2be44e15251024a75e0",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.0/samples/psp-privileged-container/disallowed_ephemeral.yaml": "c8bb3ee1483c596ca870fe9688ad10379648f76163d364e02548036be287396d",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.0/samples/psp-privileged-container/example_allowed.yaml": "f95439dc0db4b720f694ed609f9e11620313f6485359465ba30be018a501a3ba",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.0/samples/psp-privileged-container/example_disallowed.yaml": "d9e1209e9811e6d0dfdc04d5cdee7e2bdb12979b3b29715532974c69e6cbb7f5",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.0/suite.yaml": "f2764e92735c12ced0d55c52ec60810d858b38d9528fa2d88d8bb6a68cf061c7",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.0/template.yaml": "74f1f349f512cf592fd086f1f4c60abdd403b6275ee9e7cd35d55bb09f2afa2a",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/artifacthub-pkg.yml": "6718811060265fefd286ef3371b6101aabb956f1b50f083b1f28c72732d1dae2",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/samples/psp-privileged-container/constraint.yaml": "93f2b5f835bc7ec25fac96a6cd5e516e77af5296ee1ab2be44e15251024a75e0",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/samples/psp-privileged-container/disallowed_ephemeral.yaml": "c8bb3ee1483c596ca870fe9688ad10379648f76163d364e02548036be287396d",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/samples/psp-privileged-container/example_allowed.yaml": "f95439dc0db4b720f694ed609f9e11620313f6485359465ba30be018a501a3ba",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/samples/psp-privileged-container/example_disallowed.yaml": "d9e1209e9811e6d0dfdc04d5cdee7e2bdb12979b3b29715532974c69e6cbb7f5",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/samples/psp-privileged-container/update.yaml": "504b29f7b686762e3e86bab2479dd20612ee727557095b4cdf0198250ff3aaf0",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/suite.yaml": "9e18281a066038e110f6c13f40fe566466af1cca75edb12f39db4abd5fea6384",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.0.1/template.yaml": "c7e07d082cdc79a319e5b740546e122604e604b290b360d7d6f0001f2a54dc8d",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/artifacthub-pkg.yml": "cb171982903696694adb0dfc8047777c42d3c1bb3a0b7a190572d3da352df6e9",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/samples/psp-privileged-container/constraint.yaml": "93f2b5f835bc7ec25fac96a6cd5e516e77af5296ee1ab2be44e15251024a75e0",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/samples/psp-privileged-container/disallowed_ephemeral.yaml": "c8bb3ee1483c596ca870fe9688ad10379648f76163d364e02548036be287396d",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/samples/psp-privileged-container/example_allowed.yaml": "f95439dc0db4b720f694ed609f9e11620313f6485359465ba30be018a501a3ba",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/samples/psp-privileged-container/example_disallowed.yaml": "d9e1209e9811e6d0dfdc04d5cdee7e2bdb12979b3b29715532974c69e6cbb7f5",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/samples/psp-privileged-container/update.yaml": "504b29f7b686762e3e86bab2479dd20612ee727557095b4cdf0198250ff3aaf0",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/suite.yaml": "9e18281a066038e110f6c13f40fe566466af1cca75edb12f39db4abd5fea6384",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.0/template.yaml": "7c2683a3a205780787adee719ca8da13c7a0d4642a4e11c7550f12a729f2878f",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/artifacthub-pkg.yml": "43e216a9b251df3a14068f8b46e7f9228d23c72025593047fa782399d8e219ce",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/samples/psp-privileged-container/constraint.yaml": "dff01aba7fabd191348b58b75b981a720bc49b1ecb2935dd4c284bcdacf7d105",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/samples/psp-privileged-container/disallowed_ephemeral.yaml": "c8bb3ee1483c596ca870fe9688ad10379648f76163d364e02548036be287396d",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/samples/psp-privileged-container/example_allowed.yaml": "f95439dc0db4b720f694ed609f9e11620313f6485359465ba30be018a501a3ba",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/samples/psp-privileged-container/example_allowed_exempt.yaml": "6d1808143f429d5aa36d220207e7d6fbb843e1e2d8b4611ab65c35eb5ce09f98",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/samples/psp-privileged-container/example_disallowed.yaml": "d9e1209e9811e6d0dfdc04d5cdee7e2bdb12979b3b29715532974c69e6cbb7f5",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/samples/psp-privileged-container/update.yaml": "504b29f7b686762e3e86bab2479dd20612ee727557095b4cdf0198250ff3aaf0",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/suite.yaml": "32bae33c7a79be08f1e4e63772aa30a232c87a86338a56bf686c094ee8b65af1",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.1/template.yaml": "a1c146e91eca446eaa5070177d03cd06166ddc81679069fe8c7772a1120d06b4",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/artifacthub-pkg.yml": "f28ad05f668d551e9451f17fea63ba2db149d79cd7e95da01d90642cf8bfbc54",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/samples/psp-privileged-container/constraint.yaml": "dff01aba7fabd191348b58b75b981a720bc49b1ecb2935dd4c284bcdacf7d105",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/samples/psp-privileged-container/disallowed_ephemeral.yaml": "c8bb3ee1483c596ca870fe9688ad10379648f76163d364e02548036be287396d",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/samples/psp-privileged-container/example_allowed.yaml": "f95439dc0db4b720f694ed609f9e11620313f6485359465ba30be018a501a3ba",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/samples/psp-privileged-container/example_allowed_exempt.yaml": "6d1808143f429d5aa36d220207e7d6fbb843e1e2d8b4611ab65c35eb5ce09f98",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/samples/psp-privileged-container/example_disallowed.yaml": "59244e65956fcd3c87f4380941d50b26a99513e57c38f34f78bc44a1fcaf3996",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/samples/psp-privileged-container/update.yaml": "504b29f7b686762e3e86bab2479dd20612ee727557095b4cdf0198250ff3aaf0",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/suite.yaml": "32bae33c7a79be08f1e4e63772aa30a232c87a86338a56bf686c094ee8b65af1",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.2/template.yaml": "27e203a0152f30789cb4877fa5fc0072e9a9e39b29aac04ee0c8f8f8b48630c7",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/artifacthub-pkg.yml": "25001f9442601d140ba80a20ebdf635e60e25d98068ece6577e38a0a1452a295",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/samples/psp-privileged-container/constraint.yaml": "dff01aba7fabd191348b58b75b981a720bc49b1ecb2935dd4c284bcdacf7d105",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/samples/psp-privileged-container/disallowed_ephemeral.yaml": "c8bb3ee1483c596ca870fe9688ad10379648f76163d364e02548036be287396d",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/samples/psp-privileged-container/example_allowed.yaml": "f95439dc0db4b720f694ed609f9e11620313f6485359465ba30be018a501a3ba",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/samples/psp-privileged-container/example_allowed_exempt.yaml": "6d1808143f429d5aa36d220207e7d6fbb843e1e2d8b4611ab65c35eb5ce09f98",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/samples/psp-privileged-container/example_disallowed.yaml": "59244e65956fcd3c87f4380941d50b26a99513e57c38f34f78bc44a1fcaf3996",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/samples/psp-privileged-container/update.yaml": "504b29f7b686762e3e86bab2479dd20612ee727557095b4cdf0198250ff3aaf0",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/suite.yaml": "32bae33c7a79be08f1e4e63772aa30a232c87a86338a56bf686c094ee8b65af1",
+ "artifacthub/library/pod-security-policy/privileged-containers/1.1.3/template.yaml": "c907f613728ee803ab4a9f3cce484b4425ebb383bdf5be30e62ccc7785b0c493",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/artifacthub-pkg.yml": "09bac1a09a54eeac3a91e3e4f21a777049d5cdcacc9a689347e4b29395a24efa",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/samples/psp-proc-mount/constraint.yaml": "0636cb55bf2d25ed93920d803f3f7473b740765301ec7aebb925450933850f42",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/samples/psp-proc-mount/disallowed_ephemeral.yaml": "21939971a18bbc9786391cb04f9a7b0f0814104d915cb233f20f2672f5f04ef7",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/samples/psp-proc-mount/example_allowed.yaml": "32894a0f2c3cf0382f766dc3c655e512ba7bad0f6f570b9be9db7c3907f11614",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/samples/psp-proc-mount/example_disallowed.yaml": "b76a2f2ff9d68a75cd9d06985f8b63fe5ac5d9a33567f08468d52950fcb9695b",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/suite.yaml": "e39f31612520c9b9bdded9413700707c09ac39a810e64ac1ce535238be6c121d",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.0/template.yaml": "926bd511b5938d1010467e007c3d63579f45502853e333687815a91b752a9337",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/artifacthub-pkg.yml": "1eaa2a4cc4b6676bc90cec220abc3d7402cf9b5be0ddee7456df6baa067ce2a7",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/samples/psp-proc-mount/constraint.yaml": "0636cb55bf2d25ed93920d803f3f7473b740765301ec7aebb925450933850f42",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/samples/psp-proc-mount/disallowed_ephemeral.yaml": "21939971a18bbc9786391cb04f9a7b0f0814104d915cb233f20f2672f5f04ef7",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/samples/psp-proc-mount/example_allowed.yaml": "32894a0f2c3cf0382f766dc3c655e512ba7bad0f6f570b9be9db7c3907f11614",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/samples/psp-proc-mount/example_disallowed.yaml": "b76a2f2ff9d68a75cd9d06985f8b63fe5ac5d9a33567f08468d52950fcb9695b",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/suite.yaml": "e39f31612520c9b9bdded9413700707c09ac39a810e64ac1ce535238be6c121d",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.1/template.yaml": "64ad5268192d02b392d23ec6266128f5020ed8691cc8b3a7a9243e884e27020d",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/artifacthub-pkg.yml": "08e8a9843adf456855419bdc0ed304653025d52746ab58c9aa3a8fd3877a8869",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/samples/psp-proc-mount/constraint.yaml": "0636cb55bf2d25ed93920d803f3f7473b740765301ec7aebb925450933850f42",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/samples/psp-proc-mount/disallowed_ephemeral.yaml": "21939971a18bbc9786391cb04f9a7b0f0814104d915cb233f20f2672f5f04ef7",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/samples/psp-proc-mount/example_allowed.yaml": "32894a0f2c3cf0382f766dc3c655e512ba7bad0f6f570b9be9db7c3907f11614",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/samples/psp-proc-mount/example_disallowed.yaml": "b76a2f2ff9d68a75cd9d06985f8b63fe5ac5d9a33567f08468d52950fcb9695b",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/samples/psp-proc-mount/update.yaml": "74bc47ee470263c169b7b08afa00cad7e3be80fd594cd0fd727fa6568e0ad535",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/suite.yaml": "c3ef527cebc1a0c2ff5b36172266d271acfed45c73d35b63a647064fe91a9dba",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.2/template.yaml": "8fde8571478bc2a5ee3c1fcb8b00a361c899c7db3bc6539195ba629d559ceeb7",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/artifacthub-pkg.yml": "403e32b4a36d024b7e40ae92eb4a1548f0e56ca481ff8ff82f41377ebdf211e9",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/samples/psp-proc-mount/constraint.yaml": "0636cb55bf2d25ed93920d803f3f7473b740765301ec7aebb925450933850f42",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/samples/psp-proc-mount/disallowed_ephemeral.yaml": "21939971a18bbc9786391cb04f9a7b0f0814104d915cb233f20f2672f5f04ef7",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/samples/psp-proc-mount/example_allowed.yaml": "32894a0f2c3cf0382f766dc3c655e512ba7bad0f6f570b9be9db7c3907f11614",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/samples/psp-proc-mount/example_disallowed.yaml": "b76a2f2ff9d68a75cd9d06985f8b63fe5ac5d9a33567f08468d52950fcb9695b",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/samples/psp-proc-mount/update.yaml": "74bc47ee470263c169b7b08afa00cad7e3be80fd594cd0fd727fa6568e0ad535",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/suite.yaml": "c3ef527cebc1a0c2ff5b36172266d271acfed45c73d35b63a647064fe91a9dba",
+ "artifacthub/library/pod-security-policy/proc-mount/1.0.3/template.yaml": "584184caff79edc1582bf502dfb1363c760a94b047867212441848f01e8ba6e4",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/artifacthub-pkg.yml": "c2fe314080bc9d438fd583d4da683783c8bc6d12053e51fe19b31f1677e4e38a",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/samples/psp-proc-mount/constraint.yaml": "0636cb55bf2d25ed93920d803f3f7473b740765301ec7aebb925450933850f42",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/samples/psp-proc-mount/disallowed_ephemeral.yaml": "3c852a6b5b37c66bc1ec94a649b4ff0aa2be05ddf98fd10d05cfa32cf7bfb874",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/samples/psp-proc-mount/example_allowed.yaml": "88a0b16b0b16ad120cda3906f11b3a2558e1b82b1a5b137b41a95bc7a6de6f19",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/samples/psp-proc-mount/example_disallowed.yaml": "48f934babc87ff417ec51f985267883f09fe83b092f2a20896a410e3ab334c6e",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/samples/psp-proc-mount/update.yaml": "74bc47ee470263c169b7b08afa00cad7e3be80fd594cd0fd727fa6568e0ad535",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/suite.yaml": "c3ef527cebc1a0c2ff5b36172266d271acfed45c73d35b63a647064fe91a9dba",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.0/template.yaml": "d2147f97a2153cdf3e31b30cc5de23dbfe579d497a6aac1e4098ee8d7098bd62",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/artifacthub-pkg.yml": "e74e407aa1fc48196f4426f5ab5b6ebd52d9f2443d6e6eab6e11706ea41cc68f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/samples/psp-proc-mount/constraint.yaml": "04120f4363fa17bbf883ddcc5f3e32317c3153df9d3269d25eb99df7190f0464",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/samples/psp-proc-mount/disallowed_ephemeral.yaml": "3c852a6b5b37c66bc1ec94a649b4ff0aa2be05ddf98fd10d05cfa32cf7bfb874",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/samples/psp-proc-mount/example_allowed.yaml": "88a0b16b0b16ad120cda3906f11b3a2558e1b82b1a5b137b41a95bc7a6de6f19",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/samples/psp-proc-mount/example_allowed_exempt_image.yaml": "fe122c5d6ac8e39ff10878427ac0156b4e11c02d0627e134d3193f5b99be2b23",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/samples/psp-proc-mount/example_disallowed.yaml": "48f934babc87ff417ec51f985267883f09fe83b092f2a20896a410e3ab334c6e",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/samples/psp-proc-mount/update.yaml": "74bc47ee470263c169b7b08afa00cad7e3be80fd594cd0fd727fa6568e0ad535",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/suite.yaml": "1d43181dc6ddd6999c217aaf76ac5b1b6942b0be57692ad657beb24391becb74",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.1/template.yaml": "b99f4721e7c49d6aa072cd935df97ee68edd01313e036d54804cabdd7f682042",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/artifacthub-pkg.yml": "61f0b5b3a31a6335018a1efc0adbb2262ba689a17c2a2a4cd58d99d3c59be4dc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/samples/psp-proc-mount/constraint.yaml": "04120f4363fa17bbf883ddcc5f3e32317c3153df9d3269d25eb99df7190f0464",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/samples/psp-proc-mount/disallowed_ephemeral.yaml": "3c852a6b5b37c66bc1ec94a649b4ff0aa2be05ddf98fd10d05cfa32cf7bfb874",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/samples/psp-proc-mount/example_allowed.yaml": "88a0b16b0b16ad120cda3906f11b3a2558e1b82b1a5b137b41a95bc7a6de6f19",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/samples/psp-proc-mount/example_allowed_exempt_image.yaml": "fe122c5d6ac8e39ff10878427ac0156b4e11c02d0627e134d3193f5b99be2b23",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/samples/psp-proc-mount/example_allowed_missing.yaml": "372eb0548fb8b565ad51a7a32006c3381e36e7bfc7cc9ebefae56c92f2b207b3",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/samples/psp-proc-mount/example_disallowed.yaml": "48f934babc87ff417ec51f985267883f09fe83b092f2a20896a410e3ab334c6e",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/samples/psp-proc-mount/update.yaml": "74bc47ee470263c169b7b08afa00cad7e3be80fd594cd0fd727fa6568e0ad535",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/suite.yaml": "11f2a540e1f48c79fa8eb42e19543a3a902f6f8e7757ef2b95f9099c24105877",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.2/template.yaml": "110a1456bb74cd82947dc2fbcb23e7f333c9d8af54f89c4ba69232b8df6c6663",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/artifacthub-pkg.yml": "82923c2aa0445fa95dd171b85a4b9c18c00a1da38cfb6390f2b45092b29668d0",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/samples/psp-proc-mount/constraint.yaml": "04120f4363fa17bbf883ddcc5f3e32317c3153df9d3269d25eb99df7190f0464",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/samples/psp-proc-mount/disallowed_ephemeral.yaml": "3c852a6b5b37c66bc1ec94a649b4ff0aa2be05ddf98fd10d05cfa32cf7bfb874",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/samples/psp-proc-mount/example_allowed.yaml": "88a0b16b0b16ad120cda3906f11b3a2558e1b82b1a5b137b41a95bc7a6de6f19",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/samples/psp-proc-mount/example_allowed_exempt_image.yaml": "fe122c5d6ac8e39ff10878427ac0156b4e11c02d0627e134d3193f5b99be2b23",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/samples/psp-proc-mount/example_allowed_missing.yaml": "372eb0548fb8b565ad51a7a32006c3381e36e7bfc7cc9ebefae56c92f2b207b3",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/samples/psp-proc-mount/example_disallowed.yaml": "48f934babc87ff417ec51f985267883f09fe83b092f2a20896a410e3ab334c6e",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/samples/psp-proc-mount/update.yaml": "74bc47ee470263c169b7b08afa00cad7e3be80fd594cd0fd727fa6568e0ad535",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/suite.yaml": "11f2a540e1f48c79fa8eb42e19543a3a902f6f8e7757ef2b95f9099c24105877",
+ "artifacthub/library/pod-security-policy/proc-mount/1.1.3/template.yaml": "b695f4d6ec0bd9fddb0de6082f5e97c85da958570fe21593e9e86434163f48fe",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.0/artifacthub-pkg.yml": "36f618f7fc2a914f96649a6608b724b4d352564859ea64405ca7eddbd7be3e00",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.0/samples/psp-readonlyrootfilesystem/constraint.yaml": "c71af13868481e2ad4f7c161c118c760c23e3a3335622ebb31dcf5e531d17f4b",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.0/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml": "ca3039298c31cd570494bac74fadbf482bc6b27377e12e0efc946f45a4f7bf07",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.0/samples/psp-readonlyrootfilesystem/example_allowed.yaml": "d7eb7583c2acc9cc7abb705d88940ed7cde8caf8d21b97afcdb6737254df570c",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.0/samples/psp-readonlyrootfilesystem/example_disallowed.yaml": "b12dd71063c9af9e9ce4e64266a8f4c495c32d22e348a42393c41227173f34dc",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.0/suite.yaml": "888e338d2c990b89dc75c1b50f7e9e6082224eb9ce9ca0a5a79d514b4cbb0249",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.0/template.yaml": "f9743af5edc5dc3391049e1c53076161116792d6105e1acf62d2031f1b62644d",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/artifacthub-pkg.yml": "36d3747d32848f7a42b7c1444bcc730e2b2952a3e0278f5c6c01a6c43d1e4778",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/samples/psp-readonlyrootfilesystem/constraint.yaml": "c71af13868481e2ad4f7c161c118c760c23e3a3335622ebb31dcf5e531d17f4b",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml": "ca3039298c31cd570494bac74fadbf482bc6b27377e12e0efc946f45a4f7bf07",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/samples/psp-readonlyrootfilesystem/example_allowed.yaml": "d7eb7583c2acc9cc7abb705d88940ed7cde8caf8d21b97afcdb6737254df570c",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/samples/psp-readonlyrootfilesystem/example_disallowed.yaml": "b12dd71063c9af9e9ce4e64266a8f4c495c32d22e348a42393c41227173f34dc",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/samples/psp-readonlyrootfilesystem/update.yaml": "6f7f01657a1650c13f6e907ae5a89a19b8c7caf67b87c4d42b7dc9ccbba58f5a",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/suite.yaml": "9eef1a54fca36228a3eff7dac0166280acb10bb45b1e9deafbdfb7bb59c88af9",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.0.1/template.yaml": "2e75c8f4bfd03576623e015bef1e64f2f2ac31c4663117e6339df65fc049e042",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/artifacthub-pkg.yml": "ac2969d658c6c915a5557d0575db4703bbefee6949469b56daeedc89e492c461",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/samples/psp-readonlyrootfilesystem/constraint.yaml": "c71af13868481e2ad4f7c161c118c760c23e3a3335622ebb31dcf5e531d17f4b",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml": "ca3039298c31cd570494bac74fadbf482bc6b27377e12e0efc946f45a4f7bf07",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/samples/psp-readonlyrootfilesystem/example_allowed.yaml": "d7eb7583c2acc9cc7abb705d88940ed7cde8caf8d21b97afcdb6737254df570c",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/samples/psp-readonlyrootfilesystem/example_disallowed.yaml": "b12dd71063c9af9e9ce4e64266a8f4c495c32d22e348a42393c41227173f34dc",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/samples/psp-readonlyrootfilesystem/update.yaml": "6f7f01657a1650c13f6e907ae5a89a19b8c7caf67b87c4d42b7dc9ccbba58f5a",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/suite.yaml": "40d975a5bed6827eeed4ed667d720cf5a30da67b47c83efc4a908d1fff0d564b",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.0/template.yaml": "a3d0e6c2b3a8a7f3d53dc9b4b0b5e99f82d99f16ec048efc75d60856007eef17",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/artifacthub-pkg.yml": "1b8836e9633c05c565dc18fdfc3ec642ad624427292ff10767468ab0466c2218",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/full_wildcard/constraint.yaml": "ad31c006b7340bdc5a6b1380110dee571fab3a9599e553e809913dd2540b4de2",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/psp-readonlyrootfilesystem/constraint.yaml": "dc845e93acae1df90ae8030e008dd924484a1f294e9123310040736a9e8445d1",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml": "ca3039298c31cd570494bac74fadbf482bc6b27377e12e0efc946f45a4f7bf07",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/psp-readonlyrootfilesystem/example_allowed.yaml": "d7eb7583c2acc9cc7abb705d88940ed7cde8caf8d21b97afcdb6737254df570c",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/psp-readonlyrootfilesystem/example_allowed_exempted.yaml": "7a5fa3d14ef81eff2910c6a9b85e339120245297c3dc2be90361870a1b08b44f",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/psp-readonlyrootfilesystem/example_disallowed.yaml": "b12dd71063c9af9e9ce4e64266a8f4c495c32d22e348a42393c41227173f34dc",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/psp-readonlyrootfilesystem/update.yaml": "6f7f01657a1650c13f6e907ae5a89a19b8c7caf67b87c4d42b7dc9ccbba58f5a",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/wildcard-prefix/constraint.yaml": "dfacd43fa093087b3175fe8d5bd119f40208371d04a93c8b30c014aafa737311",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/wildcard-prefix/example_allowed_safe_prefix.yaml": "b79a0a6ae6ba8f2b70ff277b03cb0faf61ecaf039e6ec426c08946698b0e6a3f",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/samples/wildcard-prefix/example_disallowed_unsafe_prefix.yaml": "b2ebcd6eb7d8e462ffd463e6602f746d93bf07e74080b40eef1c7c8e00342754",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/suite.yaml": "b2855a1062f555b5ddfc13c4ba02d151bf219cc687558c6715d17f7ffb1aa44e",
+ "artifacthub/library/pod-security-policy/read-only-root-filesystem/1.1.1/template.yaml": "2c7a1bc067963635d34e73ccfb89aff6e3ae0c2fc633be6a0377dd216a2b7bfd",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/artifacthub-pkg.yml": "b61feaf404e7237c973842b60d39018000c305bf7252b750e6f8d253f64c2ad6",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/samples/psp-seccomp/constraint.yaml": "ac80a1a785b2a148652e7b9bd05355f342d37065502c3d6f1fb3b7530b7b60d1",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/samples/psp-seccomp/disallowed_ephemeral.yaml": "8eca0c1310fd0c5d9cf8692266ef376123b7c12bde1c6cc24cf279b1019463ee",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/samples/psp-seccomp/example_allowed.yaml": "85873dbe97d57e63d40e7efbf3f4b33915f171e238b916629c67cff5f37e2069",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/samples/psp-seccomp/example_allowed2.yaml": "1b5870d11b66739532182a08145a9bf0fe735daecabdff4282a6e234f99b28e8",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/samples/psp-seccomp/example_disallowed.yaml": "f217cd377ea574d941df2878df4354cbd5da77c8c9232ed6ce845f4064e7243c",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/samples/psp-seccomp/example_disallowed2.yaml": "d184dc3042813a021f3d8ec7d2486b16a324473445f7855df0dd8bc0aa4cdc0b",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/suite.yaml": "e8e20c493fadf07387f525396a7d2555b0b978cbd445da6969add29159253e10",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.0/template.yaml": "7a88cdd3f9a6e4ec8e6ccbeeff49b8777649375252d2df53c04d3c07d032cc64",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/artifacthub-pkg.yml": "e506e926078d9d4b0476a44bae5545fdaee97edad19d00fcfca3d3beedc3c5cb",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/samples/psp-seccomp/constraint.yaml": "ac80a1a785b2a148652e7b9bd05355f342d37065502c3d6f1fb3b7530b7b60d1",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/samples/psp-seccomp/disallowed_ephemeral.yaml": "8eca0c1310fd0c5d9cf8692266ef376123b7c12bde1c6cc24cf279b1019463ee",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/samples/psp-seccomp/example_allowed.yaml": "85873dbe97d57e63d40e7efbf3f4b33915f171e238b916629c67cff5f37e2069",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/samples/psp-seccomp/example_allowed2.yaml": "1b5870d11b66739532182a08145a9bf0fe735daecabdff4282a6e234f99b28e8",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/samples/psp-seccomp/example_disallowed.yaml": "f217cd377ea574d941df2878df4354cbd5da77c8c9232ed6ce845f4064e7243c",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/samples/psp-seccomp/example_disallowed2.yaml": "d184dc3042813a021f3d8ec7d2486b16a324473445f7855df0dd8bc0aa4cdc0b",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/suite.yaml": "e8e20c493fadf07387f525396a7d2555b0b978cbd445da6969add29159253e10",
+ "artifacthub/library/pod-security-policy/seccomp/1.0.1/template.yaml": "5cd23129c285c7cd2ea05dce3f1a47fbfdb85d73aeeb4381ade51ffe546d60e5",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/artifacthub-pkg.yml": "01eab24e8ba8afca0d495dac76c7b83a8178b6cb85ebb7ee966efe6a8ecc70f9",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/constraint.yaml": "4e0094fa3ea60267b04b601de5b01a3ef9eaca5df2e41b83645a028cae7d1f04",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/disallowed_ephemeral.yaml": "8eca0c1310fd0c5d9cf8692266ef376123b7c12bde1c6cc24cf279b1019463ee",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/example_allowed.yaml": "85873dbe97d57e63d40e7efbf3f4b33915f171e238b916629c67cff5f37e2069",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/example_allowed2.yaml": "1b5870d11b66739532182a08145a9bf0fe735daecabdff4282a6e234f99b28e8",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/example_allowed_exempt_image.yaml": "a07b8d1f8bbe734d172d82c6bd1c693d9f8f3369724e3622f97da39c5d989877",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/example_allowed_localhost.yaml": "24e8c55baf50543711ed6c724df90595481e43c1c3158d83aeb3b9def8c104e0",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/example_disallowed.yaml": "f217cd377ea574d941df2878df4354cbd5da77c8c9232ed6ce845f4064e7243c",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/example_disallowed2.yaml": "d184dc3042813a021f3d8ec7d2486b16a324473445f7855df0dd8bc0aa4cdc0b",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/samples/psp-seccomp/example_disallowed_localhost.yaml": "f0cbfcf2b7621d4307a2b917b6bc16157dce537e19c4732224e2b2c731d727b5",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/suite.yaml": "3c149bdc3d070ca630ff4e8a3723f775e63a036c3cca4a94c8f1e6b46bef9775",
+ "artifacthub/library/pod-security-policy/seccomp/1.1.0/template.yaml": "f5eb1770575cde151b613790d5c41932a639b6a0b1fcfd8e7c7ef1b11e9b4391",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/artifacthub-pkg.yml": "a2dc1f338a155b7645f8d01503e26bb87f158fa1ed2cee47a3de2cb59ca4d815",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/samples/psp-seccomp/constraint.yaml": "1798b71e1ca84ad8609ef3a9a1ea08986ff484c442420d15b1d4bcd5db9afbe5",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/samples/psp-seccomp/disallowed_ephemeral.yaml": "c0d01d192707aa99457e249eb60fab6994a28ff53eb78ef3e23d15ac321b60f0",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/samples/psp-seccomp/example_allowed.yaml": "fbf6784a42db77d231d6f276d8a0e3bd748ee123970122610f669ef4c2bf82a5",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/samples/psp-seccomp/example_allowed_exempt_image.yaml": "a07b8d1f8bbe734d172d82c6bd1c693d9f8f3369724e3622f97da39c5d989877",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/samples/psp-seccomp/example_allowed_localhost.yaml": "24e8c55baf50543711ed6c724df90595481e43c1c3158d83aeb3b9def8c104e0",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/samples/psp-seccomp/example_disallowed.yaml": "c005d9d07f63e205733df9a02c72563d4dd5cf4fefbf6726cbf6b00edfb8e117",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/samples/psp-seccomp/example_disallowed2.yaml": "892ec0bbffce10dd06e8aff9b15174832e32e880efdc0ee959eb6ded5f6645ff",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/suite.yaml": "4f307d07a54b8beabfe01242947d017d042e526092c94bae489410623822b6af",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.0/template.yaml": "06813a6045cf04bfebe3386490288204704f0c9fcce250cd4444440446174ab8",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/artifacthub-pkg.yml": "346ec2d09fe989d988efa1132d7446182a1bedac9da68c6d8e19b5c73b3b60c8",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-baseline/allowed_ephemeral.yaml": "13e015160a36ce1c28c5fcedd74e3201357ba83b27ac7cbec9e75704fcef4058",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-baseline/constraint.yaml": "12bc7f974ff76b3c2393f08342ed3433c7390d95f917fb92307e4484ab1a70b7",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-baseline/example_allowed.yaml": "fbf6784a42db77d231d6f276d8a0e3bd748ee123970122610f669ef4c2bf82a5",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-baseline/example_allowed_exempt_image.yaml": "a07b8d1f8bbe734d172d82c6bd1c693d9f8f3369724e3622f97da39c5d989877",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-baseline/example_allowed_localhost.yaml": "24e8c55baf50543711ed6c724df90595481e43c1c3158d83aeb3b9def8c104e0",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-baseline/example_allowed_no_profile.yaml": "7a80be17b39cb5b91aacac220aa956e38ea306b01f1585d8313264354c058f4c",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-baseline/example_disallowed.yaml": "c005d9d07f63e205733df9a02c72563d4dd5cf4fefbf6726cbf6b00edfb8e117",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-baseline/example_disallowed2.yaml": "892ec0bbffce10dd06e8aff9b15174832e32e880efdc0ee959eb6ded5f6645ff",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-restricted/constraint.yaml": "de6ebbfd638f5d9929d9f8596b00a5b8830f9449436324866fa59a8addfa3117",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-restricted/disallowed_ephemeral.yaml": "c0d01d192707aa99457e249eb60fab6994a28ff53eb78ef3e23d15ac321b60f0",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-restricted/example_allowed.yaml": "fbf6784a42db77d231d6f276d8a0e3bd748ee123970122610f669ef4c2bf82a5",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-restricted/example_allowed_exempt_image.yaml": "a07b8d1f8bbe734d172d82c6bd1c693d9f8f3369724e3622f97da39c5d989877",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-restricted/example_allowed_localhost.yaml": "24e8c55baf50543711ed6c724df90595481e43c1c3158d83aeb3b9def8c104e0",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-restricted/example_disallowed.yaml": "c005d9d07f63e205733df9a02c72563d4dd5cf4fefbf6726cbf6b00edfb8e117",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/samples/psp-seccomp-restricted/example_disallowed2.yaml": "892ec0bbffce10dd06e8aff9b15174832e32e880efdc0ee959eb6ded5f6645ff",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/suite.yaml": "1295b909749d716e0df8b3d032515202bbc3db158b6938ca63937261b4cd0639",
+ "artifacthub/library/pod-security-policy/seccompv2/1.0.1/template.yaml": "e49135b0978bfaef0117b64cf136b73a7106958ba66c0509bffe435ea933c845",
+ "artifacthub/library/pod-security-policy/selinux/1.0.0/artifacthub-pkg.yml": "b737f09adf16db03cd09ada0aed6892c4f63ab79f428729eb4f5732fe305e965",
+ "artifacthub/library/pod-security-policy/selinux/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/selinux/1.0.0/samples/psp-selinux-v2/constraint.yaml": "b0161930ed0e76b2ece43b569e2962a7e862196a797b97384bfbfee85dfda31a",
+ "artifacthub/library/pod-security-policy/selinux/1.0.0/samples/psp-selinux-v2/disallowed_ephemeral.yaml": "650c94991b6cb797ce6120efdaaf357b2db0f14d2d3db6345ebadff9afb04c31",
+ "artifacthub/library/pod-security-policy/selinux/1.0.0/samples/psp-selinux-v2/example_allowed.yaml": "9c68b69b9033e0d45f7feaa04d756e160bb50700742567d69d3f2e9348932778",
+ "artifacthub/library/pod-security-policy/selinux/1.0.0/samples/psp-selinux-v2/example_disallowed.yaml": "41950cda79576f12904a0b0991c6fcb3dbc50e8a10455ac31cb99d81f25b3556",
+ "artifacthub/library/pod-security-policy/selinux/1.0.0/suite.yaml": "377ab84c711c83673418c1b7929901fcdfd3332a3fe6fcd2fcc5d3bf0bb6d622",
+ "artifacthub/library/pod-security-policy/selinux/1.0.0/template.yaml": "26b6ef9d8cacf284f3e595cb40947adc7a0f37fa884dcfb9e7c1b59f5f06af71",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/artifacthub-pkg.yml": "a202668d8cd8849cb8c8e675bb0d45846d8d0bd4b208fa5503f407a51aee960e",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/samples/psp-selinux-v2/constraint.yaml": "b0161930ed0e76b2ece43b569e2962a7e862196a797b97384bfbfee85dfda31a",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/samples/psp-selinux-v2/disallowed_ephemeral.yaml": "650c94991b6cb797ce6120efdaaf357b2db0f14d2d3db6345ebadff9afb04c31",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/samples/psp-selinux-v2/example_allowed.yaml": "9c68b69b9033e0d45f7feaa04d756e160bb50700742567d69d3f2e9348932778",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/samples/psp-selinux-v2/example_disallowed.yaml": "41950cda79576f12904a0b0991c6fcb3dbc50e8a10455ac31cb99d81f25b3556",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/samples/psp-selinux-v2/update.yaml": "db448f4e07e4f4facdbdce74577c6ab16d98eddded6ef28631c13d798436b1c9",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/suite.yaml": "6327d580b618a09e077d8d9e6173c1a9ff39883749c2e7cb3991e6bea361d57c",
+ "artifacthub/library/pod-security-policy/selinux/1.0.1/template.yaml": "21b71434da5dc7b400ba3e7e1c8b0ad0c8a62028fb0f05d1f1c56fc4f2010561",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/artifacthub-pkg.yml": "614709a67f5522ea20c21a10ee9b638196e8e58316552bd0398dad8dba7f10c1",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/samples/psp-selinux-v2/constraint.yaml": "b0161930ed0e76b2ece43b569e2962a7e862196a797b97384bfbfee85dfda31a",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/samples/psp-selinux-v2/disallowed_ephemeral.yaml": "650c94991b6cb797ce6120efdaaf357b2db0f14d2d3db6345ebadff9afb04c31",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/samples/psp-selinux-v2/example_allowed.yaml": "9c68b69b9033e0d45f7feaa04d756e160bb50700742567d69d3f2e9348932778",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/samples/psp-selinux-v2/example_disallowed.yaml": "41950cda79576f12904a0b0991c6fcb3dbc50e8a10455ac31cb99d81f25b3556",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/samples/psp-selinux-v2/update.yaml": "db448f4e07e4f4facdbdce74577c6ab16d98eddded6ef28631c13d798436b1c9",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/suite.yaml": "6327d580b618a09e077d8d9e6173c1a9ff39883749c2e7cb3991e6bea361d57c",
+ "artifacthub/library/pod-security-policy/selinux/1.0.2/template.yaml": "a11d3a57d080701d055b72af61f4b6da225bf24a51daadbac3be44c7fb29dc0d",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/artifacthub-pkg.yml": "4d36fcd85bfda59bb86bfc88e7e5cc51a3220592d65fa1992efe486ad42e7d1b",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/samples/psp-selinux-v2/constraint.yaml": "b0161930ed0e76b2ece43b569e2962a7e862196a797b97384bfbfee85dfda31a",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/samples/psp-selinux-v2/disallowed_ephemeral.yaml": "650c94991b6cb797ce6120efdaaf357b2db0f14d2d3db6345ebadff9afb04c31",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/samples/psp-selinux-v2/example_allowed.yaml": "9c68b69b9033e0d45f7feaa04d756e160bb50700742567d69d3f2e9348932778",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/samples/psp-selinux-v2/example_disallowed.yaml": "41950cda79576f12904a0b0991c6fcb3dbc50e8a10455ac31cb99d81f25b3556",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/samples/psp-selinux-v2/update.yaml": "db448f4e07e4f4facdbdce74577c6ab16d98eddded6ef28631c13d798436b1c9",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/suite.yaml": "6327d580b618a09e077d8d9e6173c1a9ff39883749c2e7cb3991e6bea361d57c",
+ "artifacthub/library/pod-security-policy/selinux/1.0.3/template.yaml": "eecaa28d1ab9ef0217325a8ef2594658cd794a37522f757a9d311a4af5297af3",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/artifacthub-pkg.yml": "6f17048501a2a9d42ad11526c33ebceb76c3a4566eedb54dd2a726c4d32876f5",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/samples/psp-selinux-v2/constraint.yaml": "7960f61363c22eef20eec31de6cc35f945a9459a49c101af175bfd8cbd1491ce",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/samples/psp-selinux-v2/disallowed_ephemeral.yaml": "5cf4756179a52472721273af3259f7587685fd49ee8499e05d2bc3a57042c36f",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/samples/psp-selinux-v2/example_allowed.yaml": "a08756d408cdce3a4305fda6d64f1d43cde20ea7aca769bc681a29406a4da0a2",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/samples/psp-selinux-v2/example_disallowed.yaml": "a7a72955625f30c669772b4a550629440be8e629751b608f0924ed027eec4587",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/samples/psp-selinux-v2/update.yaml": "329ad036ed6eb5801c8de518371cd2baa81506a8d87882149ace17f67862e681",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/suite.yaml": "6327d580b618a09e077d8d9e6173c1a9ff39883749c2e7cb3991e6bea361d57c",
+ "artifacthub/library/pod-security-policy/selinux/1.0.4/template.yaml": "7db7d4456d6591c0452543fe83f79cd540e0fb3c7e7a808557c57595992562a3",
+ "artifacthub/library/pod-security-policy/users/1.0.0/artifacthub-pkg.yml": "763c2d2faa4e0a11c53cb33b6b79ade7d3ae9e87351904e7bea2bd3b937890e3",
+ "artifacthub/library/pod-security-policy/users/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/users/1.0.0/samples/psp-pods-allowed-user-ranges/constraint.yaml": "0cdbcedcbf4f71483c1a8804f561470c358a911d2b03d77f72ea4f6bc3c913b3",
+ "artifacthub/library/pod-security-policy/users/1.0.0/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml": "5df5464edd26e7ec7e129e66f51a27916ef3f96212ccb97724721f400cb9462a",
+ "artifacthub/library/pod-security-policy/users/1.0.0/samples/psp-pods-allowed-user-ranges/example_allowed.yaml": "7ba9aec636984a43b00bd551c8d022713f5692144fbc9b951bfb287405d06518",
+ "artifacthub/library/pod-security-policy/users/1.0.0/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml": "f9472f0060fd10b047ffca205711cf37d3d14e0941e437879d10ed8441b565b6",
+ "artifacthub/library/pod-security-policy/users/1.0.0/suite.yaml": "5a9693e9871308fb512d912fdae8c8bc5a133bb121d43d22b9b55dce64010a6d",
+ "artifacthub/library/pod-security-policy/users/1.0.0/template.yaml": "10a4ca4f981e9ef8fd083e11f328095f15a6a4e6bebe0bbf6d37f3e5154ddba4",
+ "artifacthub/library/pod-security-policy/users/1.0.1/artifacthub-pkg.yml": "64ca4139f9686a7e76c399b47fa99e543f0889e2c3bf90d2ea1f614a61d8f578",
+ "artifacthub/library/pod-security-policy/users/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/users/1.0.1/samples/psp-pods-allowed-user-ranges/constraint.yaml": "0cdbcedcbf4f71483c1a8804f561470c358a911d2b03d77f72ea4f6bc3c913b3",
+ "artifacthub/library/pod-security-policy/users/1.0.1/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml": "5df5464edd26e7ec7e129e66f51a27916ef3f96212ccb97724721f400cb9462a",
+ "artifacthub/library/pod-security-policy/users/1.0.1/samples/psp-pods-allowed-user-ranges/example_allowed.yaml": "7ba9aec636984a43b00bd551c8d022713f5692144fbc9b951bfb287405d06518",
+ "artifacthub/library/pod-security-policy/users/1.0.1/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml": "f9472f0060fd10b047ffca205711cf37d3d14e0941e437879d10ed8441b565b6",
+ "artifacthub/library/pod-security-policy/users/1.0.1/samples/psp-pods-allowed-user-ranges/update.yaml": "f8895198d0d5dc9344a79c4eea10ad9a9eb4d92a8e6a20ea760718d23e2ed3a8",
+ "artifacthub/library/pod-security-policy/users/1.0.1/suite.yaml": "4db88e4666cc6df9925fb87df56bb88fddaa4ba8f741ac8fd95efa72c196a483",
+ "artifacthub/library/pod-security-policy/users/1.0.1/template.yaml": "7c009bda1dfe3cc21db638b97c3a6147571c8c8e662e641550802fa88997c6d6",
+ "artifacthub/library/pod-security-policy/users/1.0.2/artifacthub-pkg.yml": "e6e1625ac3893113b0312a160d1a5c9d6a4cfea9eeaeba792eb7ec76360a38db",
+ "artifacthub/library/pod-security-policy/users/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/users/1.0.2/samples/psp-pods-allowed-user-ranges/constraint.yaml": "0cdbcedcbf4f71483c1a8804f561470c358a911d2b03d77f72ea4f6bc3c913b3",
+ "artifacthub/library/pod-security-policy/users/1.0.2/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml": "5df5464edd26e7ec7e129e66f51a27916ef3f96212ccb97724721f400cb9462a",
+ "artifacthub/library/pod-security-policy/users/1.0.2/samples/psp-pods-allowed-user-ranges/example_allowed.yaml": "7ba9aec636984a43b00bd551c8d022713f5692144fbc9b951bfb287405d06518",
+ "artifacthub/library/pod-security-policy/users/1.0.2/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml": "f9472f0060fd10b047ffca205711cf37d3d14e0941e437879d10ed8441b565b6",
+ "artifacthub/library/pod-security-policy/users/1.0.2/samples/psp-pods-allowed-user-ranges/update.yaml": "f8895198d0d5dc9344a79c4eea10ad9a9eb4d92a8e6a20ea760718d23e2ed3a8",
+ "artifacthub/library/pod-security-policy/users/1.0.2/suite.yaml": "4db88e4666cc6df9925fb87df56bb88fddaa4ba8f741ac8fd95efa72c196a483",
+ "artifacthub/library/pod-security-policy/users/1.0.2/template.yaml": "054491cd77c6e7b83549255a7b2f52a997e1bdd711546d5f11e9a9185f9cc13e",
+ "artifacthub/library/pod-security-policy/users/1.0.3/artifacthub-pkg.yml": "5fea160470d551f4ef7f08c3ccaa0deb8b65342a14d30bb5e2461e0d51d4618e",
+ "artifacthub/library/pod-security-policy/users/1.0.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/users/1.0.3/samples/psp-pods-allowed-user-ranges/constraint.yaml": "b20f8603da119c2c8c62805f2a543cc5c72d2cf0644b5ba75f6ee950313be273",
+ "artifacthub/library/pod-security-policy/users/1.0.3/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml": "6d75374c0a7eae5334534d25bb500f02e7458406c60beedf5d2cdce73718c941",
+ "artifacthub/library/pod-security-policy/users/1.0.3/samples/psp-pods-allowed-user-ranges/example_allowed.yaml": "ce8a2fafe2cae26c08fd8e228e3e07a6e625b601a821a29669aa79cbb3280f3c",
+ "artifacthub/library/pod-security-policy/users/1.0.3/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml": "a767ab568e69871e9a78ddc5e8db3e5dee67ed024273808e9417f3334b13df40",
+ "artifacthub/library/pod-security-policy/users/1.0.3/samples/psp-pods-allowed-user-ranges/update.yaml": "cee98ae137d5cd72b379f7b3ee59a4da56cf36a9e3c3d6432f324284a7b2cdfb",
+ "artifacthub/library/pod-security-policy/users/1.0.3/suite.yaml": "4db88e4666cc6df9925fb87df56bb88fddaa4ba8f741ac8fd95efa72c196a483",
+ "artifacthub/library/pod-security-policy/users/1.0.3/template.yaml": "6d593b3b1b05beabe9693763fcc2acd562f2ed1846adca3b2483251bcdb41d1e",
+ "artifacthub/library/pod-security-policy/volumes/1.0.0/artifacthub-pkg.yml": "386deac3bae7b86fcaef04dc2f66f6d14d1377f4573eed292bc8a51409bb91b4",
+ "artifacthub/library/pod-security-policy/volumes/1.0.0/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/volumes/1.0.0/samples/psp-volume-types/constraint.yaml": "cd69db2f0de41f27e17730e05e5eb7858cb6e67ebfafa6674282b67240be64b9",
+ "artifacthub/library/pod-security-policy/volumes/1.0.0/samples/psp-volume-types/example_allowed.yaml": "930f4b9c2855c1d9a9f9db4178d964b2e9f13db99adbc21cfd87fabe13b5dbb2",
+ "artifacthub/library/pod-security-policy/volumes/1.0.0/samples/psp-volume-types/example_disallowed.yaml": "c07bb5df18da53044c8b3ca2d5ea539a765b7fa4112167f426047688f52fb758",
+ "artifacthub/library/pod-security-policy/volumes/1.0.0/suite.yaml": "9f410bc347ba1685ad344c3c943c54ff738514452ad6704e4d1dd904a501c05e",
+ "artifacthub/library/pod-security-policy/volumes/1.0.0/template.yaml": "673a0367f1f65252519b6db7767ca98a17301b135b174ef209ee3e9c51902913",
+ "artifacthub/library/pod-security-policy/volumes/1.0.1/artifacthub-pkg.yml": "be3ae3d2ada673212f05467c22fbc39ed604b188aa1f0849b7821eddf6a88dda",
+ "artifacthub/library/pod-security-policy/volumes/1.0.1/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/volumes/1.0.1/samples/psp-volume-types/constraint.yaml": "cd69db2f0de41f27e17730e05e5eb7858cb6e67ebfafa6674282b67240be64b9",
+ "artifacthub/library/pod-security-policy/volumes/1.0.1/samples/psp-volume-types/example_allowed.yaml": "930f4b9c2855c1d9a9f9db4178d964b2e9f13db99adbc21cfd87fabe13b5dbb2",
+ "artifacthub/library/pod-security-policy/volumes/1.0.1/samples/psp-volume-types/example_disallowed.yaml": "c07bb5df18da53044c8b3ca2d5ea539a765b7fa4112167f426047688f52fb758",
+ "artifacthub/library/pod-security-policy/volumes/1.0.1/samples/psp-volume-types/update.yaml": "ed309ffcffe9b22075caa9b1df4420ad6e520ebf34e80bed3b5f504e534b5b1c",
+ "artifacthub/library/pod-security-policy/volumes/1.0.1/suite.yaml": "08ae119e8cae45635e0c1df3031f0bda693ae7bfcc995f45d40e5c7c0e0303c6",
+ "artifacthub/library/pod-security-policy/volumes/1.0.1/template.yaml": "520e0dba8008bdc53c0d0c89adb7a20e130ed649f7f1b6a34b42c48fcf0035c7",
+ "artifacthub/library/pod-security-policy/volumes/1.0.2/artifacthub-pkg.yml": "e4cae77243a322cf812bbf11fd5941d43930d3081092df16bf595b127a9e2dcf",
+ "artifacthub/library/pod-security-policy/volumes/1.0.2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/volumes/1.0.2/samples/psp-volume-types/constraint.yaml": "cd69db2f0de41f27e17730e05e5eb7858cb6e67ebfafa6674282b67240be64b9",
+ "artifacthub/library/pod-security-policy/volumes/1.0.2/samples/psp-volume-types/example_allowed.yaml": "930f4b9c2855c1d9a9f9db4178d964b2e9f13db99adbc21cfd87fabe13b5dbb2",
+ "artifacthub/library/pod-security-policy/volumes/1.0.2/samples/psp-volume-types/example_disallowed.yaml": "c07bb5df18da53044c8b3ca2d5ea539a765b7fa4112167f426047688f52fb758",
+ "artifacthub/library/pod-security-policy/volumes/1.0.2/samples/psp-volume-types/update.yaml": "ed309ffcffe9b22075caa9b1df4420ad6e520ebf34e80bed3b5f504e534b5b1c",
+ "artifacthub/library/pod-security-policy/volumes/1.0.2/suite.yaml": "08ae119e8cae45635e0c1df3031f0bda693ae7bfcc995f45d40e5c7c0e0303c6",
+ "artifacthub/library/pod-security-policy/volumes/1.0.2/template.yaml": "dfbf95c8ff05c0bd10fdc7e3399090c7186ae64de9cce427c581f75c05ed5e7c",
+ "artifacthub/library/pod-security-policy/volumes/1.0.3/artifacthub-pkg.yml": "3568d2b6ce3e2188fced4b8e6353bfa3ce62fb399006128460e263bc57a38d4d",
+ "artifacthub/library/pod-security-policy/volumes/1.0.3/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "artifacthub/library/pod-security-policy/volumes/1.0.3/samples/psp-volume-types/constraint.yaml": "00e31c5339ce5a522e7bc60cd583ebe037f0e223b34a962ea397cc9c8e469a7f",
+ "artifacthub/library/pod-security-policy/volumes/1.0.3/samples/psp-volume-types/example_allowed.yaml": "930f4b9c2855c1d9a9f9db4178d964b2e9f13db99adbc21cfd87fabe13b5dbb2",
+ "artifacthub/library/pod-security-policy/volumes/1.0.3/samples/psp-volume-types/example_disallowed.yaml": "c07bb5df18da53044c8b3ca2d5ea539a765b7fa4112167f426047688f52fb758",
+ "artifacthub/library/pod-security-policy/volumes/1.0.3/samples/psp-volume-types/update.yaml": "ed309ffcffe9b22075caa9b1df4420ad6e520ebf34e80bed3b5f504e534b5b1c",
+ "artifacthub/library/pod-security-policy/volumes/1.0.3/suite.yaml": "08ae119e8cae45635e0c1df3031f0bda693ae7bfcc995f45d40e5c7c0e0303c6",
+ "artifacthub/library/pod-security-policy/volumes/1.0.3/template.yaml": "4795f342741e27a7309d83a9ece140de47c7db6fccb0a0b560f75df1379bf6e2",
+ "build/gator/Dockerfile": "d3b14e36bcbe2d7f7fce593122777a4f20f4a1e809d89dc36c12d4324c9e6e78",
+ "build/gomplate/Dockerfile": "00de850c74c4a3aa802b41c16eb262d497b26c5db4c2f96233a593c3a19846dc",
+ "catalog.yaml": "87f3063c0fcbb9e9c1f05d57ed9f97ec5e7641f8c0cd045c2928c66420f38e5a",
+ "docs/design/README.md": "0e83538ae81f3095f7c61d4be747e9b0dbf48651a60e18cabb42cae61fe74cb2",
+ "go.work": "0d54c3a42ec03edb0bf037fb94c8de39a6ae3b9ff23f1014f90f19fa4a7d4ace",
+ "library/general/allowedrepos/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/allowedrepos/samples/repo-must-be-openpolicyagent/constraint.yaml": "4299b6441e30f2edac98450402e8172fc19fcc5b70f3da1abd6089e9e2e6907a",
+ "library/general/allowedrepos/samples/repo-must-be-openpolicyagent/disallowed_all.yaml": "4174e021697d5150068fa1d3e711586f41decbc3b93e0adcdddfc6f1ae41f221",
+ "library/general/allowedrepos/samples/repo-must-be-openpolicyagent/example_allowed.yaml": "d7e3d16b3993f64252bd65a1d24a46f6fa24e78b2490d8f925a0fb80322374a1",
+ "library/general/allowedrepos/samples/repo-must-be-openpolicyagent/example_disallowed_both.yaml": "e6bb425b10085d720cefc2a1e00e4cae3844cde07d101472db4b8774dda3675a",
+ "library/general/allowedrepos/samples/repo-must-be-openpolicyagent/example_disallowed_container.yaml": "4e63f6a9d88eb6ed17eed0a4ed4e529c8d24eedfd28dec746b48867d9f1fc4db",
+ "library/general/allowedrepos/samples/repo-must-be-openpolicyagent/example_disallowed_initcontainer.yaml": "111a7d7e78293da2b388caa820019a8baf7f63a33ed59163b0aece0c987496c7",
+ "library/general/allowedrepos/suite.yaml": "bd3bf22c20e257ca70ff48d041d352f9ac0f3c50dda4dd91cce130d3ca572914",
+ "library/general/allowedrepos/template.yaml": "d1f3ef966057634a364261dcc8a7306a4d18bb3fbf466d17ffb3f889c3a3f8b2",
+ "library/general/allowedreposv2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/constraint.yaml": "56894134f15806396672fb43cf9170fdfb92c7ea695a23dfe34573bf5c0f4ae6",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/disallowed_all.yaml": "4174e021697d5150068fa1d3e711586f41decbc3b93e0adcdddfc6f1ae41f221",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_allowed.yaml": "d7e3d16b3993f64252bd65a1d24a46f6fa24e78b2490d8f925a0fb80322374a1",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_allowed_images.yaml": "f1540b5a28c79603eda7720331a2e1bf957362de574db3ac638e198e5d7139d6",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_both.yaml": "e6bb425b10085d720cefc2a1e00e4cae3844cde07d101472db4b8774dda3675a",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_container.yaml": "4e63f6a9d88eb6ed17eed0a4ed4e529c8d24eedfd28dec746b48867d9f1fc4db",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_images.yaml": "6ef7206496df734775431b43bb98325166321920fe90cba90f8b43e7ec115b91",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_initcontainer.yaml": "111a7d7e78293da2b388caa820019a8baf7f63a33ed59163b0aece0c987496c7",
+ "library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_registry_and_repository.yaml": "acc9b2f1fabc2f8419ef4c50820ab64365bc69bde5f3cb71438d6d2910cd0885",
+ "library/general/allowedreposv2/suite.yaml": "fc3ec07ce6755d6494d332b747f10ef00e7563c9b376125dac2d7e056b2555b9",
+ "library/general/allowedreposv2/template.yaml": "e545f8b8e8608030abaaa6e3069252f2fb709c77e456912f1022df5a0d0201eb",
+ "library/general/automount-serviceaccount-token/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/automount-serviceaccount-token/samples/automount-serviceaccount-token/constraint.yaml": "ea1b763dd556a67e644e6202e9d4541b69d8d4304a8cf832718a4261dc4aa645",
+ "library/general/automount-serviceaccount-token/samples/automount-serviceaccount-token/example_allowed.yaml": "02f98c24a8fda49ff6e3cfcef6ea11a7e9c3bd94a5e55c963efe923724695613",
+ "library/general/automount-serviceaccount-token/samples/automount-serviceaccount-token/example_disallowed.yaml": "5373849495c153661a27877a8f828caf08a4a2855afedebe347ff929aad8072a",
+ "library/general/automount-serviceaccount-token/samples/automount-serviceaccount-token/update.yaml": "b6896d93cc28b98fe49ad115aeaa3b5694d712e5e0fa5b9df9e2692d334bd10a",
+ "library/general/automount-serviceaccount-token/suite.yaml": "db3bb95ee4c9f40ae7e2154950030d371bfb8120ae5445b9a44af952825b2f59",
+ "library/general/automount-serviceaccount-token/template.yaml": "269bca182f32bff585fe75f51afc20cc17f452102b5aa650779e099708c7ede5",
+ "library/general/block-endpoint-edit-default-role/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/block-endpoint-edit-default-role/samples/block-endpoint-edit-default-role/constraint.yaml": "4a308c7b60164bff1ba4028568eff79658e427fc2c1f5efc3116f3678d1409d1",
+ "library/general/block-endpoint-edit-default-role/samples/block-endpoint-edit-default-role/example_allowed.yaml": "e82aac613ed1e6484009b5e843eb584a17d53e030f07f1f71143273c7ce07ac7",
+ "library/general/block-endpoint-edit-default-role/samples/block-endpoint-edit-default-role/example_disallowed.yaml": "9ddf7f1c42394fe62902d2c58ecab44e3c918bd8ea8b66c98fa2c00c21c169d6",
+ "library/general/block-endpoint-edit-default-role/suite.yaml": "2fb3b84d4be42515ea3e4ce5ca55948055e3480469ce8b2a125dabf9156f3cd5",
+ "library/general/block-endpoint-edit-default-role/template.yaml": "654fffc58d81fae1e69f4e0e7113829b81181be8c9a73c00f0d16a8cf44427af",
+ "library/general/block-loadbalancer-services/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/block-loadbalancer-services/samples/block-load-balancer/constraint.yaml": "0c75aa66105a222a7c0ed91ae6e7504b375929d050d68dd0613eb1bfddb469f7",
+ "library/general/block-loadbalancer-services/samples/block-load-balancer/example_allowed.yaml": "12c6f5d99f4cdadc3109a11c33cc2afaeab9685385e388765d06e6bbdac6a6c6",
+ "library/general/block-loadbalancer-services/samples/block-load-balancer/example_disallowed.yaml": "27a9d2d7a772892c0ffa6f670a5d8cc6e33ebd7097c9ecba1b31d0c0ff0374e4",
+ "library/general/block-loadbalancer-services/suite.yaml": "c5b3652ad30b5501b464959ee236efa80815d45dc83de25e0dfed9692058b96d",
+ "library/general/block-loadbalancer-services/template.yaml": "598d2fb2974fccbd8d04531a618cacae40b96637387539e4a0d98b3b005ac31b",
+ "library/general/block-nodeport-services/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/block-nodeport-services/samples/block-node-port/constraint.yaml": "5d06a87249063c19fcf1929bdaeebbfa4d1f9b2cba143d923c3d46a17d4bb9a6",
+ "library/general/block-nodeport-services/samples/block-node-port/example_disallowed.yaml": "7493712cbad7cdfdc3727526b04488993f7865703951d63783a9044b4a1415a5",
+ "library/general/block-nodeport-services/suite.yaml": "2806dab98a1f565eb42151a8434b0a400ef3ca3c967a4efa1ed47f8a8c83251b",
+ "library/general/block-nodeport-services/template.yaml": "2bfb70ee4809c5e6af141ec555410d4961ec160bc96670e596683f31bcadd7d0",
+ "library/general/block-wildcard-ingress/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/block-wildcard-ingress/samples/block-wildcard-ingress/constraint.yaml": "ebb22cbc2562f8d869fbe96cf5713b6d5bb69d5791babe7e51de7cd31faca72e",
+ "library/general/block-wildcard-ingress/samples/block-wildcard-ingress/disallowed/blank_host.yaml": "9e1414433b15a69f04e0c70fadd11b52fa1c301b7c52826f55c205b7f6a4ca3c",
+ "library/general/block-wildcard-ingress/samples/block-wildcard-ingress/disallowed/host_omitted.yaml": "d36bc5af37c78478bcb91c8dfcbbfbcafa1fd3888c19ac219cedfa4ec33999be",
+ "library/general/block-wildcard-ingress/samples/block-wildcard-ingress/disallowed/wildcard_host.yaml": "7504d143ff77cdc3f764c88da51733d75bd5bad1cb863173f92681db5b2164d7",
+ "library/general/block-wildcard-ingress/samples/block-wildcard-ingress/example_allowed.yaml": "f2ee70c0dd0a0568d08c020665afefc1d9fe8e2782471b0cf597252506add36f",
+ "library/general/block-wildcard-ingress/suite.yaml": "b650acfe59d1088c8fe544e07d592e5ed5d244be3e4c01768eff26e6f52dbf28",
+ "library/general/block-wildcard-ingress/template.yaml": "34481abf3c911bd23304e300a5281e7d37a9d98e34e9569fabdd46ce4e92fdd2",
+ "library/general/containerlimits/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/containerlimits/samples/container-ignore-cpu-limits/constraint.yaml": "9f571542668004f4a4ba3b09472e7c61cc7787fd999f66eba9c2d0136bddb71f",
+ "library/general/containerlimits/samples/container-ignore-cpu-limits/example_allowed.yaml": "eba32e2b1ef0f4984e185a03e9a475502057fb396ebb1de1d853c68b90cf97dd",
+ "library/general/containerlimits/samples/container-ignore-cpu-limits/example_disallowed.yaml": "0d867e0922bd8def9bee7ea9cc38371060b5ee08e8645e2b9601335b17e2d5cb",
+ "library/general/containerlimits/samples/container-must-have-limits/constraint.yaml": "71a081ef79ac7bbeae73a5f499302ef1ab2c03b51bbea19fb0cff416e006ab63",
+ "library/general/containerlimits/samples/container-must-have-limits/example_allowed.yaml": "e3a358e009375ea0e1ae4d0ff597c518afa8ecb2058002cb5b1ec0fc8aac10a8",
+ "library/general/containerlimits/samples/container-must-have-limits/example_disallowed.yaml": "8491edd9dd01311e27c573d86193149df4704f813abe58a019ef75dc2a2d01e2",
+ "library/general/containerlimits/suite.yaml": "5fe32afb1e7faf8d66259b51e6a6720c9b61e9c81397f5fa156e119a1843f050",
+ "library/general/containerlimits/template.yaml": "270efc1c5a270124e2a3153f706e758026d48e7ac3b59814f31a1822e49f8967",
+ "library/general/containerrequests/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/containerrequests/samples/container-must-have-requests/constraint.yaml": "c9fb552332847f9d8550ad336d250f9595ef556d68e04b1cd18184547748d0e7",
+ "library/general/containerrequests/samples/container-must-have-requests/example_allowed.yaml": "fd292f4c54c88d3519eebe97ff0c6113d9667e8ebb39a3c05444baea62599669",
+ "library/general/containerrequests/samples/container-must-have-requests/example_disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "library/general/containerrequests/suite.yaml": "a3c1d86dd2b946e186f81f5a2a847f34e7012a3f39d7eed3f2dcd356c3a12f2e",
+ "library/general/containerrequests/template.yaml": "e1a2e80865685decdbc6159a112a693911aec17837c172014d818508dd4eee79",
+ "library/general/containerresourceratios/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/containerresourceratios/samples/container-must-meet-memory-and-cpu-ratio/constraint.yaml": "c3dc4b3bd8c508de89d134bf38a2a13eab058fcf968cb96fa916ba2a8d8abf12",
+ "library/general/containerresourceratios/samples/container-must-meet-memory-and-cpu-ratio/example_allowed.yaml": "32c5c6e061feb414c686ffb6cb0455c83c7db8b09f27a7805910cb8598d4efb1",
+ "library/general/containerresourceratios/samples/container-must-meet-memory-and-cpu-ratio/example_disallowed.yaml": "ac52cd1504acca139e2fa59a18e691605ab5b4db152866a614ef816cd40ce209",
+ "library/general/containerresourceratios/samples/container-must-meet-ratio/constraint.yaml": "5b1b3488631350726f640a9649dd8b52cf35cea06916797f277dfd29f616f1ee",
+ "library/general/containerresourceratios/samples/container-must-meet-ratio/example_allowed.yaml": "922799481a7f3739aaf184693eec12ebf6cf6d98549509a7217ecccefe5d4088",
+ "library/general/containerresourceratios/samples/container-must-meet-ratio/example_disallowed.yaml": "8158c59e581ae2d14de78d15d30cb24bc392e545a4de7675cdb0727b33977045",
+ "library/general/containerresourceratios/suite.yaml": "420d43fd8ea612212eb0be7eb25518b8076ba30a07e297a441c6a727f12c2832",
+ "library/general/containerresourceratios/template.yaml": "48016ac143c986c67814869ed387054f695fc5de42c0558a3405a997f4f5544c",
+ "library/general/containerresources/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/constraint.yaml": "c8b197996bf426ec80f80488a03f3663d3d38995cc7be91d6b8631facf6bc806",
+ "library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/empty-resources-disallowed.yaml": "479bbdb9734c2f0002851762128b5cec78ab27a93dbe3fb88e84e0a3fcb76088",
+ "library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-cpu-requests-and-memory-limits-and-requests-defined-allowed.yaml": "5471417d1cc3dcfe17f9ba95c9a0f7a0475653eea030e66f6c2eda1e8c3fd400",
+ "library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-memory-limits-defined-disallowed.yaml": "7193a0d9e0c337bea6091c7100048acc1116bcb480811e1c8a53fa3f22d0aa54",
+ "library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-requests-defined-disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "library/general/containerresources/samples/container-must-have-limits-and-requests/constraint.yaml": "f44df7640f37511eff426aa559d1b153bd61330c41395893c2843d47310e8015",
+ "library/general/containerresources/samples/container-must-have-limits-and-requests/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "library/general/containerresources/samples/container-must-have-limits-and-requests/only-cpu-requests-and-memory-limits-defined-disallowed.yaml": "4e86d10b4d49d5fd8445c25e08f34e325525f7b61d0a40721bc7992a4a549afa",
+ "library/general/containerresources/samples/container-must-have-limits-and-requests/only-memory-limits-defined-disallowed.yaml": "7193a0d9e0c337bea6091c7100048acc1116bcb480811e1c8a53fa3f22d0aa54",
+ "library/general/containerresources/samples/container-must-have-limits-and-requests/only-requests-defined-disallowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "library/general/containerresources/samples/no-enforcements/constraint.yaml": "242fbb5c5f322cf85bee58e86d7d3f48496d7e7754c1b40fd40d67a8dce272de",
+ "library/general/containerresources/samples/no-enforcements/empty-resources-allowed.yaml": "479bbdb9734c2f0002851762128b5cec78ab27a93dbe3fb88e84e0a3fcb76088",
+ "library/general/containerresources/samples/no-enforcements/limits-and-requests-defined-allowed.yaml": "7190162179535d8d27e23252ca05cdd8272c91c95e8abd58a6145bd2248ef400",
+ "library/general/containerresources/samples/no-enforcements/only-cpu-requests-and-memory-limits-defined-allowed.yaml": "4e86d10b4d49d5fd8445c25e08f34e325525f7b61d0a40721bc7992a4a549afa",
+ "library/general/containerresources/samples/no-enforcements/only-requests-defined-allowed.yaml": "405772094262f4bb8a85ad5beeec58be2d352b41c9a068fe2867ecb2b778f2ec",
+ "library/general/containerresources/suite.yaml": "cb1715859dfe6797a05f55f70f2a50fe08b255c4d38e35da0feeec2fae8e39df",
+ "library/general/containerresources/template.yaml": "5efa3078bbf1b5c943b1a9d97f7ac3d614ca80edc506d3c91d9484a7a00d98b3",
+ "library/general/disallowanonymous/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/disallowanonymous/samples/no-anonymous-bindings/constraint.yaml": "a8786739081668b0bea12810cf4c81c2627fd7ec023e257f5181dc5f3c22c7c2",
+ "library/general/disallowanonymous/samples/no-anonymous-bindings/example_allowed.yaml": "1ef82abe232b7cea592d9e24da6b4fee8cb88b141e40e2a061fadc29fea821a1",
+ "library/general/disallowanonymous/samples/no-anonymous-bindings/example_disallowed.yaml": "1d17c438a82e968780af02f99ffda03e20d20dc517d1a0a139b70b51d5b6f872",
+ "library/general/disallowanonymous/samples/no-authenticated/constraint.yaml": "4f4aaf9b975d88b9c6a63e3ce649a3a9ca4276ae389136a6dfaef9c504aa926a",
+ "library/general/disallowanonymous/suite.yaml": "88ccdfd1e46689ffb44a531cfce4b21300646848bb83fdbfd3cb47e03181ccdd",
+ "library/general/disallowanonymous/template.yaml": "104b948ce4fd793ec1c3105bbaeeaee3b6979ac020d4d97d1e1cbb2967158a84",
+ "library/general/disallowedrepos/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/constraint.yaml": "b7ca7bc8160cb45cd28eee8598cfe98d23a9eac1a014af54c8a62cff6593c56b",
+ "library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/disallowed_all.yaml": "d1b877b67ff39357758c0aa172effa155a687e27669acf6f6f40cf1b15cdc5f0",
+ "library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/example_allowed.yaml": "123b3515b9af32237ec8b22e367ddf917db77776c7df2e4bc958492a2459f22b",
+ "library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_both.yaml": "fa3a27ca86e0decacd40925f6ff2b2fb853dc5bf5fd556f925329f3febc62637",
+ "library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_container.yaml": "eb428f8d51a5259683c7e22f99cf11b0f2505ae172c5ee0355dabb617749ee33",
+ "library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_initcontainer.yaml": "1ae2bff2b8d5df69b7fcd91a30f31eacffd05922a83ab5e31592e9992f2aece1",
+ "library/general/disallowedrepos/suite.yaml": "57df9230d3f909db9c2c2db1bbc8c9bfb0b1187e9c318a2b46acc7a3d3df35a7",
+ "library/general/disallowedrepos/template.yaml": "413786c958b87d56b915bc7b19b71e839455a71f5be53af09b1625dfa6cb7419",
+ "library/general/disallowedtags/kustomization.yaml": "a289682ee66bb61fcf211c5f49793d470bf04aa6aea6871ccb77be829660d29c",
+ "library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/constraint.yaml": "bd817d73db918faaabd6cadf5ab0e52efa130c28c7992aa9294ddf58dc2387eb",
+ "library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/disallowed_tag_ephemeral.yaml": "fb69ad6c8ab2b2ad42ea6d4700b552c07e0d1f8b4a488b3ea6277a394828fd3b",
+ "library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_allowed.yaml": "53f39eced83af4ee024da1b33e3e51be28ef919fd61cfecfc44342f36c5c1b90",
+ "library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_disallowed_tag.yaml": "7c82a59e59ebe06173840c061c5bfac516fb735e2fe9598f4d56bef2bfc3dbc5",
+ "library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_exempt_image_w_disallowed_tag.yaml": "79bfa5276b2afc5737c4259c1aaf2a592fcf36e0da8b14b2a205da2d6c28a466",
+ "library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_no_tag.yaml": "440640397ecd78e5f6aeb8c462c2f5b5db12def1c28ab8270bf6849ffb055b7e",
+ "library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_no_tag_w_port.yaml": "197b34d4bf1d5fbf219b28d3ce10e0ad89d26c587da7db0d09f91c972efa11a2",
+ "library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_some_disallowed_tags.yaml": "08f11aefc9e7bfb235e00a7bbc45090c9b3d21c8ee100102de36ce516eaa7beb",
+ "library/general/disallowedtags/suite.yaml": "77f4cb60937f0b73c3cee070fb5762f55a939a75358dbaedd79aea824828b97b",
+ "library/general/disallowedtags/template.yaml": "13cd18b8ab2c816e1a01cfdbc26ac490b725a314dea4b69fa0a9aa48546199f2",
+ "library/general/disallowinteractive/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/disallowinteractive/samples/no-interactive-containers/constraint.yaml": "32fc9b00f8d8efc4671b9773382d0c242b6f02cc6fa1cbe4ef682b7d93b03aad",
+ "library/general/disallowinteractive/samples/no-interactive-containers/example_allowed.yaml": "dd9130e9a8ea34e72800f2925d4e4d687774c9868cdf1a1a9c39d8dc260d7fbb",
+ "library/general/disallowinteractive/samples/no-interactive-containers/example_disallowed.yaml": "2bfe160836f62b1703eb8695425395c5c73f9fa04657fbf7d5ae821189707153",
+ "library/general/disallowinteractive/suite.yaml": "6b9d985b626865ee87917c74e52a22fc64f9f2e8728133b9de559e4c726c59c5",
+ "library/general/disallowinteractive/template.yaml": "495943c4597c954ea0426b37fe88fe6b8c498e89dceddfcbde25705e60879fbb",
+ "library/general/ephemeralstoragelimit/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/constraint.yaml": "a6be1908ea078792cee878bf46497774d522081c2d32227186cf7d8d1ac615c1",
+ "library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage-initContainer.yaml": "69f09c68f6d6547f84581bf103f0be016895e5a506bdd661ff27d5bc93368601",
+ "library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage.yaml": "a700bcf8ac12c2ab2abc4e316ca773eaaaf71cc66fa270ce99e6b48e667065c5",
+ "library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi-initContainer.yaml": "6929b9c7dd6184db342e2c83ab4699ace1d5d7db7ebc035b266f0d750a239c23",
+ "library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi.yaml": "71c6065cd471e308088bc4354012822e8b627533544db01b318e65d23692bb79",
+ "library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_unspecified.yaml": "4ce6c2d5614f52cdd1ceb494d3ebc55db9fd66998c64fac40b178d5d073637e7",
+ "library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/update.yaml": "518e06c9305a201c268769884151846cd5a5a49b53916d16694a39ff82dd3375",
+ "library/general/ephemeralstoragelimit/suite.yaml": "45fa06fad7a6ad894ecbaf85a4e26c4c16c0d0ccb5701845d62bc9f1de6ca34d",
+ "library/general/ephemeralstoragelimit/template.yaml": "5aa2a53912ef76c61bbb8fb5fed17579de9d0c17ec5294dcb062f0d3b0c10fbb",
+ "library/general/externalip/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/externalip/samples/allowed-ip/constraint.yaml": "c54162d63d1501d5fa83f9262d081043aeb421228f20cee99f1c097fd9c565c1",
+ "library/general/externalip/samples/allowed-ip/example_allowed.yaml": "3ff02eed377901e773ec1eaa91e0af32e2530cc42ca59a9039e1c82a62770690",
+ "library/general/externalip/samples/allowed-ip/example_disallowed.yaml": "6ab2ca36708512235a98e47488d5b3706fc96c43b82da0856fa80e5943c35acb",
+ "library/general/externalip/suite.yaml": "0faf2d7bf055cebc19d184d4211977e257d2b9e57d618ed66a248019a91bd36b",
+ "library/general/externalip/template.yaml": "84d20c7ef7198b7ec6dcb6cd0d7fe756f3e1f72b773ce3a688ea9744dc60ad66",
+ "library/general/horizontalpodautoscaler/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/constraint.yaml": "7e4e3d757cde3eec626467a58a22de548dd79ea4c91a0fa62ee9cbdeadd9c8f3",
+ "library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_allowed_hpa.yaml": "d8676bef36a78f7231776d606ad10c098017b030c916da6fd45a08348dc95faf",
+ "library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_disallowed_hpa_replicas.yaml": "cbdae315250cd11656f4c2cb2cb4089a14ee1c5ef4179cfaddbc8e3ea1fc3563",
+ "library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_disallowed_hpa_replicaspread.yaml": "187a949347eb2731da6eb6c5bc8f368362d859e6a875104a8bf62b85459de971",
+ "library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_disallowed_hpa_scaletarget.yaml": "28992e52ced3252766c748cfca205e4a45227acbbabd7079e37264a096ac75c5",
+ "library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_inventory.yaml": "ce641929e99bd4876caa1e8335a1d1bd621420e79ae10505e2d6a3fd5bf1e2e1",
+ "library/general/horizontalpodautoscaler/suite.yaml": "e15696a7bc013467cd4a099ba3f00ef4a123094f70ce06d2317a52e5a18bd6e0",
+ "library/general/horizontalpodautoscaler/sync.yaml": "e67bad834d8b1f23051d67dec932e944f4ee9f530b9cb5c41a85cbe3d76977a7",
+ "library/general/horizontalpodautoscaler/template.yaml": "a23b0997bda95036c062f3defb87a15482ef5ecd60186ea2061404ccb8873d05",
+ "library/general/httpsonly/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/httpsonly/samples/ingress-https-only-tls-optional/constraint.yaml": "52868949f9dcd7bdbddb4168ae1c4d45faa2e766cefc2881d9ffb8c66d37412c",
+ "library/general/httpsonly/samples/ingress-https-only-tls-optional/example_allowed.yaml": "cdced13d40307a509679beb059b8c81da44d3124e6a61ee73856a28bc51b1436",
+ "library/general/httpsonly/samples/ingress-https-only-tls-optional/example_disallowed.yaml": "3c1e2d57a490bfe320bb31fd0d20f8a44060aec11ab6263a96dee556759b9619",
+ "library/general/httpsonly/samples/ingress-https-only/constraint.yaml": "1bb3c3f11a2469dbd02dfadf687f177a7d7802ba4ae3d9a969fba72011b7ccc3",
+ "library/general/httpsonly/samples/ingress-https-only/example_allowed.yaml": "a9376945b531cb56582ff68f50f82f12fa7ba131414e880e9904e84ae1ae7b6a",
+ "library/general/httpsonly/samples/ingress-https-only/example_disallowed.yaml": "62ea1e1955202df3c7c40aa940265b90cab0a6d5361a3e0e0a5198b43e5b1c15",
+ "library/general/httpsonly/suite.yaml": "7d90884868209b5b04ba70c125f532256e8ee6c6e7a6e4391463d81232703e04",
+ "library/general/httpsonly/sync.yaml": "399cbc13a1fc41c087fbccfad998ad6646640f66ccd37bc19e354b7c806aabed",
+ "library/general/httpsonly/template.yaml": "b9630881d8c485d43af1489557c57e1aa83e71bbcf2e24ef1545e8b5eec41ea9",
+ "library/general/imagedigests/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/imagedigests/samples/container-image-must-have-digest/constraint.yaml": "090ef9eec374552cfd15dad376093fc88f8b549d6b1356cf4019482d30f83e78",
+ "library/general/imagedigests/samples/container-image-must-have-digest/disallowed_all.yaml": "2af67706b6f34fa8838eb48af4fc10cd4a7f0a54bab7da60a85583777e6d4064",
+ "library/general/imagedigests/samples/container-image-must-have-digest/example_allowed.yaml": "c22ce5ce2fa974ebf7677e71aac252f991027c2c09d00077fb2cd8084028d646",
+ "library/general/imagedigests/samples/container-image-must-have-digest/example_disallowed.yaml": "02d0811b4ae5edf99abc75681f5f760d5f8bdc4f6726cf1e57b49e048a35002e",
+ "library/general/imagedigests/suite.yaml": "66bb79dae4108ae65f7b2f1df4aa7ba16482a0709863ae7449cb0c77164e83b6",
+ "library/general/imagedigests/template.yaml": "89979298c5e8bbac821de2dd56eb4249394f02fce91f53d6f0e5b6c1b7a70168",
+ "library/general/kustomization.yaml": "3a67602c35a077cb4610094c1fe479117e9e7a05d17e33d58e1f221a6fe0975f",
+ "library/general/noupdateserviceaccount/README.md": "a80fbc67f71ddf5035d6ed7a1d87e3747c66253594648a812b2ce4cc9e7853cb",
+ "library/general/noupdateserviceaccount/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/noupdateserviceaccount/samples/noupdateserviceaccount/constraint.yaml": "7df06938ad655fb65db0fe4678be4bfb2f16850f871cfc81f55b470e4dd9f9f3",
+ "library/general/noupdateserviceaccount/samples/noupdateserviceaccount/example_allowed.yaml": "c004659c8c5484ca521941b97b4849deb5b7a6a0354a7690b2a30aa33e94b2ed",
+ "library/general/noupdateserviceaccount/suite.yaml": "ba15be20297333a47bc10b20fc714fa089ba1f9e6c93a9395015766c751728bc",
+ "library/general/noupdateserviceaccount/template.yaml": "cb3187044492d4767cb2db04ae13a534af0260625222ac73b95bf885adf72462",
+ "library/general/poddisruptionbudget/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/constraint.yaml": "6955e6cb5a74572c4daab859c4844d6fcff09e371890cec109918ffba4c1849f",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_deployment1.yaml": "e8e66200f3994513f9dc6d42427d032a5978e3f8f4a613b1735c8c547d12d9f2",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_deployment2.yaml": "fb9b293a2dcef8c51413e9adc2b7e1a01d5b4f66c5613eb6d5b31b6e5cd85b1e",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_deployment3.yaml": "dfe153760bbaa449e78c6a8d0f766ee55f7bbf29aa86549f7a0184b330de4bcf",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_deployment4.yaml": "344e1e0e00c93ad2cfa020ca7f28212bb172149b8f3cd4daf5977c5f9e7d99f9",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_pdb.yaml": "c466d32539147407457029c5732c2cafcf976d9e4c1cd4984095d6055986a932",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_disallowed_deployment.yaml": "2f49f6650241648f9b7ed590a91b1e0be935a2cf5e972298d83d55827e63cfa5",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_disallowed_pdb.yaml": "ade767fc033ee17884fd5a59d3fe2f856edf1e920104a3acbab76cb2cada41e9",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_inventory_allowed1.yaml": "0793cd649c0fabe072a10b42f5f2e28e5b42db6177edfec537a4ed9d1aa7c498",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_inventory_allowed2.yaml": "ab112e57f982e26b5f4dc8caeefa35451293b10913d4bdae5c0d06b2df66a460",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_inventory_allowed3.yaml": "889df96d16e0d87177679662e8fb7cc9c1a2eb300d5d8368b980195fb3fd63c2",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_inventory_allowed4.yaml": "0a00dcfe4cb3975ff9719c981069f9f5bb56069e08bcdb1b2ed3225676a07071",
+ "library/general/poddisruptionbudget/samples/poddisruptionbudget/example_inventory_disallowed.yaml": "9c8cbb369957d1a7e0665b0ba0403952d7a3d6ec07a105a84ce3f13832103bb7",
+ "library/general/poddisruptionbudget/suite.yaml": "4b9764f5fb1ca303cdf5df3862fec1cb732b4330b383a6fe91f101459e78f390",
+ "library/general/poddisruptionbudget/sync.yaml": "0d8032054e9da4246a4650d18a51851ea7fff623d12934295de83d38d13de4d5",
+ "library/general/poddisruptionbudget/template.yaml": "235a0403bcd6e0c829f3692cb38698472b9120e48c803ec10b6d013c4d162ee9",
+ "library/general/replicalimits/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/replicalimits/samples/replicalimits/constraint.yaml": "41de6f8e6dbcf5f00ce7f652f72723d20f5f163733e1c09c7228d240f029ad72",
+ "library/general/replicalimits/samples/replicalimits/example_allowed.yaml": "ed68418a9d69e9ae15560419827df75b42fa53e223535c9f6ccf6249e8a222a0",
+ "library/general/replicalimits/samples/replicalimits/example_disallowed.yaml": "dd6e8ac51498436672ce5de5074af8da5927539aec3461c42221b694edbc018c",
+ "library/general/replicalimits/suite.yaml": "a9f40a291704783317bb0a79b6a1e177cc12edab8e27a5950a56787356d5cd4c",
+ "library/general/replicalimits/template.yaml": "760c8c0ab9915c1c9a3926150e5cba9911bd6dbea3712f3b03b19ce847592dda",
+ "library/general/requiredannotations/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/requiredannotations/samples/all-must-have-certain-set-of-annotations/constraint.yaml": "21420a24aca647064d8d80312588b613705de816d70b90b425860b1e23524ed2",
+ "library/general/requiredannotations/samples/all-must-have-certain-set-of-annotations/example_allowed.yaml": "323296d0de81c2a7a44add281b2b8d73418984bb0039563ab1346ca6840d51ab",
+ "library/general/requiredannotations/samples/all-must-have-certain-set-of-annotations/example_disallowed.yaml": "fa7fe62b6fbcd951c723ab017458bcda2b3abd33357be6c009f27a0d0d66bfbf",
+ "library/general/requiredannotations/suite.yaml": "2ddb3b76bf347db492462c20d298de070ad28d6af80a5d796c16c61ecdef8364",
+ "library/general/requiredannotations/template.yaml": "7fd9e24ac923ae1c83783f69f4b090245b560ca00aa82d77ce31e072ababf1c3",
+ "library/general/requiredlabels/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/requiredlabels/samples/all-must-have-owner/constraint.yaml": "08d6c67042e4d78364d6d1f8eda2848dd8f22b0e1037fa4bea348421c044b94e",
+ "library/general/requiredlabels/samples/all-must-have-owner/example_allowed.yaml": "082b4a582d3f5fbf9712b912430b12dfd9cb01c2a6b6eef613853af8854b22f6",
+ "library/general/requiredlabels/samples/all-must-have-owner/example_disallowed.yaml": "f37e428d4c8e976a9db60b8bf201bef35183fa8888feeee126701c4f29373f06",
+ "library/general/requiredlabels/samples/all-must-have-owner/example_disallowed_label_value.yaml": "2fbe1e55da8f84b8652eac74c648a930656999a7ca3ebd7fbe158df02269a05f",
+ "library/general/requiredlabels/samples/verify-label-key-only/constraint.yaml": "cf4cfaf0f0fc30b0a49472a3915c3c6735ba2fe3087bde0c6c4301589eb0c196",
+ "library/general/requiredlabels/samples/verify-label-key-only/example_allowed.yaml": "a09f3ba43cf61420ca9b0b0a7e1f682ea593b36f4757c0a26644332ecd3696d6",
+ "library/general/requiredlabels/samples/verify-label-key-only/example_disallowed.yaml": "91fb3bfc25703e70bf897ddd9d95550f3a18965a4abcec17cee25e4c47b76ff0",
+ "library/general/requiredlabels/suite.yaml": "b0de8567d094d84a1427a21a6b85228c9e7d5e9c2b1f16fc832ba564743d9fae",
+ "library/general/requiredlabels/template.yaml": "d5a639b139269d1937c5ba9bc807e5aa906cd187007f095f52b69440a0edaa44",
+ "library/general/requiredprobes/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/requiredprobes/samples/must-have-probes/constraint.yaml": "d36ed31628ac6c8b14f7e547e2d9b39a04c7085f6a88708929b85b078ea80736",
+ "library/general/requiredprobes/samples/must-have-probes/example_allowed.yaml": "3f5c14fad72aa8a1cd042cef138a9be55991aeb763e2ad9069f6546d841cce36",
+ "library/general/requiredprobes/samples/must-have-probes/example_disallowed.yaml": "e6d6cdbb3c046e1a39840984056766b76596b7574b846d3d40a2c443a0e13809",
+ "library/general/requiredprobes/samples/must-have-probes/example_disallowed2.yaml": "98f30efef8eca9b24c94cd914079bb6e98fe9f636c378b86914ad1a7795e4bbb",
+ "library/general/requiredprobes/samples/must-have-probes/update.yaml": "05b10f7ccb1e64d008badf5c27d5f940b78ff685a5b2d4f99219eaf6833a24f5",
+ "library/general/requiredprobes/suite.yaml": "2b019deb6c569253acc3feebcf60db42a709c6ca6e5e3cd9b12896f51e8b7add",
+ "library/general/requiredprobes/template.yaml": "9e28fbb96a8a5201a0f5bbd407036f661e5533b13b97993ae2afa909d7bed86c",
+ "library/general/storageclass/README.md": "5b64149fdfe2648130b19c983dce7530802a4dfdc51623a6bfb19a70b97dc4ef",
+ "library/general/storageclass/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/storageclass/samples/storageclass-allowlist/constraint.yaml": "20d3ad9e22ab57621e3d4b4a2a0e45c4c4baf5ebd889383a58b95af9a717b079",
+ "library/general/storageclass/samples/storageclass-allowlist/example_allowed.yaml": "d3a7409e859a12e6949e779d488d181b016a450d2ce52ed9f95cfbf14c3bda2f",
+ "library/general/storageclass/samples/storageclass-allowlist/example_disallowed.yaml": "ff9a78931ea54d12b1caf127e6dd600462bb27059dd390c76420d2d3c9051e83",
+ "library/general/storageclass/samples/storageclass-allowlist/example_inventory_allowed_storageclass.yaml": "7ba6ccdcafa1985d5da2c6828a8cd9ca97e66c1917e8b70c52f924afe4395704",
+ "library/general/storageclass/samples/storageclass/constraint.yaml": "1fc818d03333417899ed69dbc13a8afde688c3e7a18e1ace1376a8035244daaf",
+ "library/general/storageclass/samples/storageclass/example_allowed_pvc.yaml": "fe79b34a387657d107692084521fcade67f6f0a54721503cdf108bca13ffe506",
+ "library/general/storageclass/samples/storageclass/example_allowed_ss.yaml": "d33bb24eea9ef7d513ae4e1def80af485eaea82cc52acfa7caa36202ae972998",
+ "library/general/storageclass/samples/storageclass/example_disallowed_pvc_badname.yaml": "d75e6aafcd1aad3731b713e206745934629a36a591b79ff110a7f5c677997276",
+ "library/general/storageclass/samples/storageclass/example_disallowed_pvc_nonamename.yaml": "0d64d524ea7e62a450a7f4be09320cd68c8a76cc076d74f6725c6be444a46541",
+ "library/general/storageclass/samples/storageclass/example_disallowed_ssvct_badnamename.yaml": "0ecc1c7bb2a4c4c9f96ac0aeaebb131bc00980b47f9263007b937a4729d0e1f7",
+ "library/general/storageclass/samples/storageclass/example_disallowed_ssvct_nonamename.yaml": "028b9ed94950592030df7e072810f5217e02be9118162bd2f153d86131e925af",
+ "library/general/storageclass/samples/storageclass/example_inventory_allowed_storageclass.yaml": "cb0cae7ddd577c8a9d6fc5c516e4b13f394874c4198cea227d7b557b34c645b1",
+ "library/general/storageclass/suite.yaml": "0367320a9a5ef55ec0a6417ce07fa5de8b98fe0ff05dd988348bfe8dd42eb508",
+ "library/general/storageclass/sync.yaml": "edadc58b85b0b33187033b78edea9f7a709ae2299032ba32af6be76c33ade205",
+ "library/general/storageclass/template.yaml": "24518501d1ad7b6fe23816d99db6592b436ed122784ab57bb6ee5f50d36fdc00",
+ "library/general/uniqueingresshost/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/uniqueingresshost/samples/unique-ingress-host/constraint.yaml": "95bb7c1482f28abe406daa93f2858fa441ea633aae57c72fe4b958a360f0788c",
+ "library/general/uniqueingresshost/samples/unique-ingress-host/example_allowed.yaml": "7b4fe53d5600a7651894aabbc0186db3911c1bb4ae2cc893f75d10cfb60d3fbe",
+ "library/general/uniqueingresshost/samples/unique-ingress-host/example_disallowed.yaml": "7be2c5af431a25049b936fda1e7d68a1e542ef588e6dacfc64d1d8a28b2bf19c",
+ "library/general/uniqueingresshost/samples/unique-ingress-host/example_disallowed2.yaml": "a34e13d47d8b29305c7f5696abedd0d8e8188d172b257dedeade1cbb43abe48e",
+ "library/general/uniqueingresshost/samples/unique-ingress-host/example_inventory_disallowed.yaml": "2f2e53d28dedf64191ca289caf25760dccba4d6254dfbb7499ac3c1d6677ad88",
+ "library/general/uniqueingresshost/samples/unique-ingress-host/example_inventory_disallowed2.yaml": "533c7ccfffd7f74e52caf110be47c51a52c7ebe0d8fb363737f0c2b092a28dc1",
+ "library/general/uniqueingresshost/suite.yaml": "05fab19ba3477932c73b627692531629f8405cd631be83c13ea13f4a8f8a5e0d",
+ "library/general/uniqueingresshost/sync.yaml": "54195d7a655ab54026e59daf72d656775b4ece0539923667dfd06ac9cd0b5906",
+ "library/general/uniqueingresshost/template.yaml": "5feb0ef9f6daf67cdad95e01cdefd980d9acde98836dd63b0c341984ed9ecf03",
+ "library/general/uniqueserviceselector/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/uniqueserviceselector/samples/unique-service-selector/constraint.yaml": "49c1a50087067fc0b3eddd0ad81de6b160f679bf311adc501e7bb03f62ad6ce9",
+ "library/general/uniqueserviceselector/samples/unique-service-selector/example_allowed.yaml": "a5ab84f1b5b4224e233e30766c4934eb2deb315710eb94a6ac8ad7ec0a9edebd",
+ "library/general/uniqueserviceselector/samples/unique-service-selector/example_disallowed.yaml": "9312c9229dffa04acfaf77a93c5636c1253582f408945a89cd97ee10db1f8b5b",
+ "library/general/uniqueserviceselector/samples/unique-service-selector/example_inventory_disallowed.yaml": "73e133435c071af52432a202a3037035a631fc75d3c0eede05d1c91ddea634a9",
+ "library/general/uniqueserviceselector/suite.yaml": "0fe2e50a8dceca1dd8aea45d8c411be860817e207c96f889cb82fff3de331310",
+ "library/general/uniqueserviceselector/sync.yaml": "0761e93b131b394059ada2b398504db8be63e3a019cf7097bbe8f65427efa6d9",
+ "library/general/uniqueserviceselector/template.yaml": "ca7821d250d4899ebe259d2c6fd44c69645ecb0fc0ea7caa946c3cb64a9bcd8c",
+ "library/general/verifydeprecatedapi/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/general/verifydeprecatedapi/samples/verify-1.16/constraint.yaml": "97eb88b1a359f0fab0f11a5c1e94a3742d2528deeadb597606851bbbdb05d867",
+ "library/general/verifydeprecatedapi/samples/verify-1.16/example_allowed.yaml": "1030aeaf6a8a552587255ea15dcd88fbbf65e0310856fcab72ed85211d6c6192",
+ "library/general/verifydeprecatedapi/samples/verify-1.16/example_disallowed.yaml": "bc9f3064e2f1a47b9159eba6e2b03969dd9e34e7e409644acfa959db1131ced7",
+ "library/general/verifydeprecatedapi/samples/verify-1.22/constraint.yaml": "285bf2e74bd93c496612b493c4a1f0253eee2924e19e87d75f881d9777ff59ab",
+ "library/general/verifydeprecatedapi/samples/verify-1.22/example_allowed.yaml": "6787efe45a2e8f226d7c66e02c2669ef6619f3747fddcee028bbb5943a3024cb",
+ "library/general/verifydeprecatedapi/samples/verify-1.22/example_disallowed.yaml": "d7084971db12937717091e9c432ded87d0d9c19b7f074da6a0509e6b5156b1de",
+ "library/general/verifydeprecatedapi/samples/verify-1.25/constraint.yaml": "7e1a8a6ce9c02039aba91d8d34c976c16091bf66839a20f936f677a677c42b48",
+ "library/general/verifydeprecatedapi/samples/verify-1.25/example_allowed.yaml": "8a22735103f7f635a7bc3f32bb29530896cbee1ee238841a11d2f907f4c5742d",
+ "library/general/verifydeprecatedapi/samples/verify-1.25/example_disallowed.yaml": "807f69a957f9c381f61d2e9ccee63aa8fd9a42136edf3f2dd6f20af720f0e616",
+ "library/general/verifydeprecatedapi/samples/verify-1.26/constraint.yaml": "d6ef3e0547939a47df7ba93e95f0375842a665596f70961652100951317a3b6c",
+ "library/general/verifydeprecatedapi/samples/verify-1.26/example_allowed.yaml": "cd4dddf65bda44b6b1d5dce33dc963617a9da68aa608fa57da78dc07de2944a1",
+ "library/general/verifydeprecatedapi/samples/verify-1.26/example_disallowed.yaml": "3591a1fde716aa5b96b4324fd9e9f449ab8f80fd64284f3e4b45640573afe1f7",
+ "library/general/verifydeprecatedapi/samples/verify-1.27/constraint.yaml": "9d2af64f351d7c6e04b7aba09ade685eabb7425a6e7eaf9ab16199d99528235a",
+ "library/general/verifydeprecatedapi/samples/verify-1.27/example_allowed.yaml": "16e089b842063a6780d6a524809de10a638f89e4fd0ac8e200e836c05afebb86",
+ "library/general/verifydeprecatedapi/samples/verify-1.27/example_disallowed.yaml": "3cbca0ec009c2c959ea53fbfe0805ea32b1a7f6c4fac04e73cc81b3bbad23d50",
+ "library/general/verifydeprecatedapi/samples/verify-1.29/constraint.yaml": "52d16fc124f71974c98b6885bc7a52c122fa34e7562470d9a32ab7f3bb763264",
+ "library/general/verifydeprecatedapi/samples/verify-1.29/example_allowed.yaml": "cd4dddf65bda44b6b1d5dce33dc963617a9da68aa608fa57da78dc07de2944a1",
+ "library/general/verifydeprecatedapi/samples/verify-1.29/example_disallowed.yaml": "6baf09c069e021896c88dd3231dc450f05cffc55c035d9da9a5c5285c3ec7396",
+ "library/general/verifydeprecatedapi/suite.yaml": "62ab9e33767f497b905eb4a91c01c250922efd1d2be8b517c04bdb0a1f7fd805",
+ "library/general/verifydeprecatedapi/template.yaml": "052cddde0a6ce55a450b4074f852517dfd75b98c3b90dd6227470a0ae68b4582",
+ "library/kustomization.yaml": "ecf0a9ff25c05735a2e87e0165f697d10c62483e04640979de25b55e323588ff",
+ "library/pod-security-policy/Makefile": "00f5b3bd4a283d56a392f1f9e9b0eb1c260ad169568b01a121d056a818d82a06",
+ "library/pod-security-policy/README.md": "4d521581ae93579ec7d0075382250c4d3b77bb559669671d15a36857fa95dfa1",
+ "library/pod-security-policy/allow-privilege-escalation/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/constraint.yaml": "94160af15cfab0ba0bb123a633a6122139c8f6e717cafd0d18b7a70d76a4fe19",
+ "library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/disallowed_ephemeral.yaml": "d840b7c3a4c5a8e9ecc46e9cb779bb7478be24d602ca4a1d8e00f7009d971f3b",
+ "library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/example_allowed.yaml": "a58670038c5e83c3c29a12f1d7ac715d6ed2f25fe1e00b2f33e8bf4cc56ffbd2",
+ "library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/example_allowed_exempt.yaml": "d22242a4051a3163cc8b916d151036705a9717b60097aa8758b777f99b09e499",
+ "library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/example_disallowed.yaml": "9a32b086e3b43e1e4faf1ab41bcf08884aa9b3c1f2a26a93f39769c980e9654b",
+ "library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/update.yaml": "10a47d156401d78c6385bf015fdba2313b9c380293c0b0ec5354bc33a120b60a",
+ "library/pod-security-policy/allow-privilege-escalation/suite.yaml": "675e703e85cb8aae4c80768b7b1058be4a53834257e8867eaa3ba679c1464c91",
+ "library/pod-security-policy/allow-privilege-escalation/template.yaml": "eb6cfbf8bb1e71f3cf95dc9324ca2b88260501633167736322b3c5fb552179f5",
+ "library/pod-security-policy/apparmor/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/constraint.yaml": "76065211a2b3de2053817eb3f03b82e575ce3ff8329d2921c1ccaf94a937904d",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/disallowed_ephemeral.yaml": "2118b586d8838b1f48df587cbfffa862129400c50054729289166e7b55c3fc3a",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/example_allowed.yaml": "211befaebecb5fa5a66e75383fa95c77a1b3bb7afa6deb7a6d0356cc28298397",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/example_allowed_container.yaml": "6509b5b58d43f15991c437415905c6d5a0634694ce20bbea9cab40d640be6f78",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/example_allowed_override.yaml": "807f6d59c7d1b28ccdde7939ef53474d99f840e414ab07009bbcb1febc201eea",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/example_allowed_pod.yaml": "8d28b510f69a1fbf1bd7b518846ab065d1eb3c5a9f5e6a6d59f311dcd3b58a50",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/example_disallowed.yaml": "3e888d7b61382fa300b4c6a8b6ff4a9c3147464ce3eeca94b1a367fe47b98a0e",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/example_disallowed_no_profile.yaml": "bbac739417ccc8fda24531a37936587b861e1d2e69ffae80d44c79183212000f",
+ "library/pod-security-policy/apparmor/samples/psp-apparmor/example_disallowed_override.yaml": "8cf404cbd0b5f7ded9f41b3d0e302218e693c17da82629ec7d08c0c87738a37f",
+ "library/pod-security-policy/apparmor/suite.yaml": "2dea0f5d6938bedac03da658abb4734ae9aeeb86e2a99f6c4830adef9d37668c",
+ "library/pod-security-policy/apparmor/template.yaml": "bcd0db441aa9c6eb8cc069d5cf67cdfe1ff200edfda00c8257168e4d7ca5421e",
+ "library/pod-security-policy/capabilities/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/constraint.yaml": "0cc0220ae62b036ccaf6df01316e1571cd0df1e88d13101fcb2c6963515640cd",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/disallowed_ephemeral.yaml": "dc9f88306155a7136fc7edd2a1980502ee657a26deb7df2c85a66119e3a1a945",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/example_allowed.yaml": "5e186260d2416cd7ac1841e65d5317aba92bdc986cf11b39cbfd8966a63f4426",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/example_disallowed.yaml": "7fb53e2ef93b066c90daab77e23ea9c10a116d0f594c20424f29d2dc22f89648",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/update.yaml": "955003907d8c8e0f57a82e7b916843b8983b6c4999598d6e43df27419d9a28fb",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/constraint.yaml": "a14b9a793bbc81331691be51f6f00ce7b7083d4f3b545b0f678f53485e616d99",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/disallowed_ephemeral.yaml": "dc9f88306155a7136fc7edd2a1980502ee657a26deb7df2c85a66119e3a1a945",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_allowed.yaml": "7bbf0f8b5f64574121c03d8c7f8c6c5d2b1f7462dd3150e08720261e999d950e",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_disallowed.yaml": "7fb53e2ef93b066c90daab77e23ea9c10a116d0f594c20424f29d2dc22f89648",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_drop_all.yaml": "1122fe7b342114ca1fe4e4e79358c624e802ce801c70e0d2fc573d45135b057d",
+ "library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/update.yaml": "955003907d8c8e0f57a82e7b916843b8983b6c4999598d6e43df27419d9a28fb",
+ "library/pod-security-policy/capabilities/suite.yaml": "2ca6d632e0dbf4452a15cea139c2e241843582ca905b4c841922e325d198aaf7",
+ "library/pod-security-policy/capabilities/template.yaml": "986e9c04bd062fe94b2b1039e6fb832202dfb01cd82c457a87ff5f6137eb1169",
+ "library/pod-security-policy/flexvolume-drivers/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/constraint.yaml": "1466dd1770528e14571aeeda54298eb1a8506388fb5194edd491ad505334d073",
+ "library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_allowed.yaml": "d9d1f2e347f948e75b2e66295428d4a421b1b0a013f6013f6f36cd370bbf8216",
+ "library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_disallowed.yaml": "d7db942285e92b38c8513cebb8ad04f5dcc08ef2ebe4e263d1207dc424958592",
+ "library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/update.yaml": "b61dd583b9a112f32f9c0d83e9146350c14ce7fbb040c196d262cd805f825aa7",
+ "library/pod-security-policy/flexvolume-drivers/suite.yaml": "b4c92d30fd2802196737ae86efdbefbbdd97d17117f82608d2a8683e5e91c61d",
+ "library/pod-security-policy/flexvolume-drivers/template.yaml": "077bf2d22904e70272b1d55cdda9a3cce37abb8a86c94fe641893850fe5169a9",
+ "library/pod-security-policy/forbidden-sysctls/README.md": "c49b215f0828bc27245476a67fd09dc344c07e262b0b9f1b815defd08412db79",
+ "library/pod-security-policy/forbidden-sysctls/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint.yaml": "ea24a5796de08db2dfe2c23af3da37403c68cd2ebc10024f69656aae11178d0d",
+ "library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint2.yaml": "12f6cb8317eedb743bf88e3aa927e0c75f1dd1755a3f674b3fc5595129bde1dd",
+ "library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint3.yaml": "341c4e767b26a85571ff8208b31f2c991e554d32768d638f55927c553bf1c647",
+ "library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint4.yaml": "e8d77b6e023c5de73b64d4eef3ccd8d8a14ef3a32bf4110556cec1fa8e5d6afd",
+ "library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint5.yaml": "c1663cec613544b73c03a350505a385742d932e552d336a8700c194f4db70431",
+ "library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml": "5dfa367238684a890b9cfa0e7c0953065a72707038196312ffbeff13d03e9e26",
+ "library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml": "1333e7f5f19c576728002d8e0249220948a13219425630a892729317b07f19ea",
+ "library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/update.yaml": "7d33d8d6605b46e0d62fb992a79159aa7a1083fbcda63c9473b0efe0737ab466",
+ "library/pod-security-policy/forbidden-sysctls/suite.yaml": "84761b6c234e4966c9cfdfc722ba523afd64823985a37798066e37a775d004bd",
+ "library/pod-security-policy/forbidden-sysctls/template.yaml": "5b30372477bd0400d1a20e1a8d1d34cad653446ef6d3f3cafc019b24a7cd660b",
+ "library/pod-security-policy/fsgroup/README.md": "1fb2ca88e4532bdcf43a23f6d3d077b6cf95f2e5c0f4c4df0e11c74154e4ab3f",
+ "library/pod-security-policy/fsgroup/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint.yaml": "4319edaf35aae5d26542af8e927627904f4b21f8f67966277d84a3a093b6a907",
+ "library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint2.yaml": "9503075d1c4732cb6e8e6b4dd711b85d2eb76a62f0416eeb31df2cec1f7128c4",
+ "library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint3.yaml": "027209fbb9cb6dd3304f3a01732683e2f7f76c7e5a7356f83e8389ddd7974012",
+ "library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_allowed.yaml": "4a73cff4b1970ba1eeef212fed3a1bf1e79580decfed97b3f1ed2faf86643445",
+ "library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_disallowed.yaml": "806e36d3295e688f206a0973cf1430698d2a0be13beb5e2ac4e8ad6d22fd9fc5",
+ "library/pod-security-policy/fsgroup/samples/psp-fsgroup/update.yaml": "b3061304b3b0805c1f9798310c91763d2a109917f3b13c866b9def1ea84da648",
+ "library/pod-security-policy/fsgroup/suite.yaml": "7c9175093fc596cf7595ea2029997b5c32fa2f14fff5330d9aa1d470e7d2e737",
+ "library/pod-security-policy/fsgroup/template.yaml": "49cf2ea07c8f12e4439da096d1474ea99553ff6bffcac97c9f7f2a2776565fe9",
+ "library/pod-security-policy/host-filesystem/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/host-filesystem/samples/no-host-paths/constraint.yaml": "fe8a1458028a30d1eb05408ab08c976f27d3d3812351f47952c4f6ead3904943",
+ "library/pod-security-policy/host-filesystem/samples/no-host-paths/example_allowed_no_volumes.yaml": "4b4dbab31bea2ea264258aa733fca470cc3202e430b0a8d816ef96fccbb897b2",
+ "library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/constraint.yaml": "f8c5dcc7a73c5d0ebac842bbf3dce99104e2fb16da7f6c32b8f29c3d1436e849",
+ "library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/disallowed_ephemeral.yaml": "30e57877e0dd6ccd1eeca5780181a2acb24925282bebead0efa9337bad2376f6",
+ "library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_allowed.yaml": "bd70f144eab828a9dc733013d77b79c1ff47b65b5c5d70425481e3190c03842a",
+ "library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_disallowed.yaml": "a4c0d1176f501306179b27441a8f7fb68038be8fd465d744e8415ee96d08ac4c",
+ "library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/update.yaml": "6ef004f445ea9a4ea64c5ceea3d34efce3538fde7def3842ea9e5936efd8395b",
+ "library/pod-security-policy/host-filesystem/suite.yaml": "e84d0d1ad28bd952e982c9fd9423b027731e5b804db8daf09a4defd4ea0471ca",
+ "library/pod-security-policy/host-filesystem/template.yaml": "c075ab6b5b1f71482705160e918cc19f94a92dd913af091d651d66c821e745f6",
+ "library/pod-security-policy/host-namespaces/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/host-namespaces/samples/psp-host-namespace/constraint.yaml": "de5c87a96a52d324546e5c6fa9bd82e7d991f8e93b835cfae3d9963cef7658bc",
+ "library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_allowed.yaml": "aa57ecd5f2f0a85e3bd894b0cd70f2f0ec9233a3c70965d861f0e1d468bc6a85",
+ "library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_disallowed.yaml": "e8f34de597b7bbb5fd4e461ab7d22354077072f8a4e3bfee30e22dab4493b532",
+ "library/pod-security-policy/host-namespaces/samples/psp-host-namespace/update.yaml": "cad0a5d3c186e8dd61f4c192ac41728d2ea3cc0e02bce0aeac38642099fd9a72",
+ "library/pod-security-policy/host-namespaces/suite.yaml": "b4ab3df70fbac4fccbaa393def370760b3ce9395ae6ebf0d17ba4d48384825c9",
+ "library/pod-security-policy/host-namespaces/template.yaml": "b321de154c1c49cc2bd11399fe3bcbce8b31037c38c155e3dfd5e7fcacdecdd0",
+ "library/pod-security-policy/host-network-ports/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/host-network-ports/samples/block_host_network/constraint.yaml": "fca264f554fdcc8a746d7a39e8e83656fc3612c151986b8e6b75f50ea00c7ce0",
+ "library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/constraint.yaml": "2d62d0510d00d9abd17c6748b44944d81243ff25e8157d609c91fdb2750ba461",
+ "library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_exempted_container_host_network_enabled.yaml": "bacd188aa8c52d29298972358adecc8d6d61e5c8b4c1b20d52da5bbbd0424040",
+ "library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml": "7b7e926dfdff36ce6f637d171e03aa877d76c9efcbce9f245f1582347b470a4c",
+ "library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/constraint.yaml": "41c7995868e212a4121e5fec937a25dfb29925e4facbbcc644585c2b7d0f8bcc",
+ "library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/disallowed_ephemeral.yaml": "e92235720a8f8696890fb4066a78b2624a2db462396a547354560534490af55c",
+ "library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_in_range.yaml": "943c2ddd1d9e06ae98e6e9410f51e84861d83af55d7196f83f06dffd619b798d",
+ "library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports.yaml": "493f5e4f799271b28c5a6a30cd41592cc97ca1ab12e9077bdd4867fe53d97f96",
+ "library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml": "7e24f18edd7218b9ea897378ee57bc36016c14b1c91a4402efe0e6088826008c",
+ "library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml": "71732ec35729a183833ff07d9c348fa68c9c8bb920a1b30b8a3c5f0af75c6e0f",
+ "library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_out_of_range_exempted.yaml": "9b14c912aefa3b2777dc29359a4986c0980cf8c5c58d0bb469c0072ca878e30d",
+ "library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/update.yaml": "11f36e35c44115edfd6aa13e5c8aefe0053557ab4e46cefc00b01e4b61325192",
+ "library/pod-security-policy/host-network-ports/suite.yaml": "4c2c5aeabbaf17b4f947b231238b992fda4636ca38f91a6ced87f0e642e0f1e4",
+ "library/pod-security-policy/host-network-ports/template.yaml": "952479af44db01ee3e97c1ab011b5b70240a769be05e5762405017db9f4ab18c",
+ "library/pod-security-policy/host-probes-lifecycle/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/constraint.yaml": "72e5c1536b6d4af228824dc5ab8ec4bbc66d2763679596d07784b9352b32d307",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_lifecycle.yaml": "d20bddf42494c50e562b1e0900190a5c2856b7951b7263fdcd58214703462f12",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_probe.yaml": "49d10619257284562b02939ec8a19fc78c382154a121c8f2a3a3d87d119db6c1",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_lifecycle.yaml": "4ceb42984f6d65ffcb415bd75f076c2215c0ee8f36bc31408904c49651d7314a",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_probe.yaml": "e06590d7861647ed328756c8d17e4edddc32efe2842c6fda68a3a1f62f1bcb31",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_no_probes.yaml": "8f8c3e58e3eeab6fb15b44b0bdb7b59681c565e3f5f072cde25568ee90d772a9",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_probe_no_host.yaml": "d83d3e583ac4d2102c2e3e140c94f7d87ff98e115737dd1d249821bb0f64a2d3",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_poststart.yaml": "f0f886f188cf8c92b8109c16199d747e1dd82407d00477a879156addbcabe7cb",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_prestop.yaml": "ef07fad187f73d04edfb7f7ef0f88056f5e76d3feefa74d6549b22e7ce89dca3",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_liveness_probe.yaml": "c601f6211cb7cc8c6349ae84c87530d7726d4ea9d0a69a81b2808186dc43f1f3",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_readiness_probe.yaml": "2cb1d5b0d4943d8d2c7ef827a19bde49954cca2268bad51c1b7719a0e03d1552",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_startup_probe.yaml": "3e032337d2a0e3d1d780a5027876626ce4b89b56bfa4a16af5ceed2f3544aa0c",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_tcp_probe.yaml": "db6ff5c3c5b37d0373217c22bf81af262c96424bbb67f496faa350cfbed741e5",
+ "library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/update.yaml": "8da45610a4d21d27b10de3bf409530c4960308631bc40397b9e2fff440e680a3",
+ "library/pod-security-policy/host-probes-lifecycle/suite.yaml": "ef924eee33bdae828a5c082a3ea16e2543a633abf15ee546c3bf38834e9abacf",
+ "library/pod-security-policy/host-probes-lifecycle/template.yaml": "b3139454faff1c793a09c0bf79e7d081773cae742326002f208264bff693ff60",
+ "library/pod-security-policy/host-process/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/host-process/samples/psp-host-process/constraint.yaml": "5d0ee58afc5264b02b53fd4ed0bdb0ec1d96c68e2a3d43066edbea7149dba774",
+ "library/pod-security-policy/host-process/samples/psp-host-process/disallowed_ephemeral.yaml": "5f0f6d16532e12b0f1be1e2dbf38f73643befdaf9237396b40d366c09780dbd8",
+ "library/pod-security-policy/host-process/samples/psp-host-process/disallowed_init.yaml": "8f8e954bb72b5b206ad9578e278bc5a2ea54ec98185916e25ba6c1a73273f516",
+ "library/pod-security-policy/host-process/samples/psp-host-process/example_allowed.yaml": "a2ec39a4be531a1d62ca62e670b947931163f0826ec0ac41acb4b42cde7a0f7b",
+ "library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_container_level.yaml": "302a7d2c840b3b731db8a69e762167a89bbdcc462b027c94f650ef56e380c4bd",
+ "library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_pod_level.yaml": "8745478636980d3fa753f9b57402faa5ef16a27488b2f467ca9f9c4d7e3261e1",
+ "library/pod-security-policy/host-process/samples/psp-host-process/update.yaml": "7a9aca226d4997c7e0aac518fcdffa55fc08e27e62ed463b88aee5f7b42004b2",
+ "library/pod-security-policy/host-process/suite.yaml": "74138961095430cf7a36ffc9cea94a5053d7d0e1faa4c7869be3f0587a824c23",
+ "library/pod-security-policy/host-process/template.yaml": "9e7ed0ed57e04df7702f33fe4e45f39e3206aa830f0adb9a831335d76501e53a",
+ "library/pod-security-policy/kustomization.yaml": "0c702bc5736b59b2f6d24ec7148a25673467ee7535835620875a21fd39b0180e",
+ "library/pod-security-policy/privileged-containers/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/privileged-containers/samples/psp-privileged-container/constraint.yaml": "dff01aba7fabd191348b58b75b981a720bc49b1ecb2935dd4c284bcdacf7d105",
+ "library/pod-security-policy/privileged-containers/samples/psp-privileged-container/disallowed_ephemeral.yaml": "c8bb3ee1483c596ca870fe9688ad10379648f76163d364e02548036be287396d",
+ "library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed.yaml": "f95439dc0db4b720f694ed609f9e11620313f6485359465ba30be018a501a3ba",
+ "library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed_exempt.yaml": "6d1808143f429d5aa36d220207e7d6fbb843e1e2d8b4611ab65c35eb5ce09f98",
+ "library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_disallowed.yaml": "59244e65956fcd3c87f4380941d50b26a99513e57c38f34f78bc44a1fcaf3996",
+ "library/pod-security-policy/privileged-containers/samples/psp-privileged-container/update.yaml": "504b29f7b686762e3e86bab2479dd20612ee727557095b4cdf0198250ff3aaf0",
+ "library/pod-security-policy/privileged-containers/suite.yaml": "32bae33c7a79be08f1e4e63772aa30a232c87a86338a56bf686c094ee8b65af1",
+ "library/pod-security-policy/privileged-containers/template.yaml": "c907f613728ee803ab4a9f3cce484b4425ebb383bdf5be30e62ccc7785b0c493",
+ "library/pod-security-policy/proc-mount/README.md": "ab58a4773917f89026293cc075f6aaa82eb44861fb75f7ee8c91d311b8982ffc",
+ "library/pod-security-policy/proc-mount/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/proc-mount/samples/psp-proc-mount/constraint.yaml": "04120f4363fa17bbf883ddcc5f3e32317c3153df9d3269d25eb99df7190f0464",
+ "library/pod-security-policy/proc-mount/samples/psp-proc-mount/disallowed_ephemeral.yaml": "3c852a6b5b37c66bc1ec94a649b4ff0aa2be05ddf98fd10d05cfa32cf7bfb874",
+ "library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed.yaml": "88a0b16b0b16ad120cda3906f11b3a2558e1b82b1a5b137b41a95bc7a6de6f19",
+ "library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_exempt_image.yaml": "fe122c5d6ac8e39ff10878427ac0156b4e11c02d0627e134d3193f5b99be2b23",
+ "library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_missing.yaml": "372eb0548fb8b565ad51a7a32006c3381e36e7bfc7cc9ebefae56c92f2b207b3",
+ "library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_disallowed.yaml": "48f934babc87ff417ec51f985267883f09fe83b092f2a20896a410e3ab334c6e",
+ "library/pod-security-policy/proc-mount/samples/psp-proc-mount/update.yaml": "74bc47ee470263c169b7b08afa00cad7e3be80fd594cd0fd727fa6568e0ad535",
+ "library/pod-security-policy/proc-mount/suite.yaml": "11f2a540e1f48c79fa8eb42e19543a3a902f6f8e7757ef2b95f9099c24105877",
+ "library/pod-security-policy/proc-mount/template.yaml": "b695f4d6ec0bd9fddb0de6082f5e97c85da958570fe21593e9e86434163f48fe",
+ "library/pod-security-policy/read-only-root-filesystem/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/read-only-root-filesystem/samples/full_wildcard/constraint.yaml": "ad31c006b7340bdc5a6b1380110dee571fab3a9599e553e809913dd2540b4de2",
+ "library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/constraint.yaml": "dc845e93acae1df90ae8030e008dd924484a1f294e9123310040736a9e8445d1",
+ "library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml": "ca3039298c31cd570494bac74fadbf482bc6b27377e12e0efc946f45a4f7bf07",
+ "library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed.yaml": "d7eb7583c2acc9cc7abb705d88940ed7cde8caf8d21b97afcdb6737254df570c",
+ "library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed_exempted.yaml": "7a5fa3d14ef81eff2910c6a9b85e339120245297c3dc2be90361870a1b08b44f",
+ "library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_disallowed.yaml": "b12dd71063c9af9e9ce4e64266a8f4c495c32d22e348a42393c41227173f34dc",
+ "library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/update.yaml": "6f7f01657a1650c13f6e907ae5a89a19b8c7caf67b87c4d42b7dc9ccbba58f5a",
+ "library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/constraint.yaml": "dfacd43fa093087b3175fe8d5bd119f40208371d04a93c8b30c014aafa737311",
+ "library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_allowed_safe_prefix.yaml": "b79a0a6ae6ba8f2b70ff277b03cb0faf61ecaf039e6ec426c08946698b0e6a3f",
+ "library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_disallowed_unsafe_prefix.yaml": "b2ebcd6eb7d8e462ffd463e6602f746d93bf07e74080b40eef1c7c8e00342754",
+ "library/pod-security-policy/read-only-root-filesystem/suite.yaml": "b2855a1062f555b5ddfc13c4ba02d151bf219cc687558c6715d17f7ffb1aa44e",
+ "library/pod-security-policy/read-only-root-filesystem/template.yaml": "2c7a1bc067963635d34e73ccfb89aff6e3ae0c2fc633be6a0377dd216a2b7bfd",
+ "library/pod-security-policy/seccomp/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/constraint.yaml": "4e0094fa3ea60267b04b601de5b01a3ef9eaca5df2e41b83645a028cae7d1f04",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/disallowed_ephemeral.yaml": "8eca0c1310fd0c5d9cf8692266ef376123b7c12bde1c6cc24cf279b1019463ee",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed.yaml": "85873dbe97d57e63d40e7efbf3f4b33915f171e238b916629c67cff5f37e2069",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed2.yaml": "1b5870d11b66739532182a08145a9bf0fe735daecabdff4282a6e234f99b28e8",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_exempt_image.yaml": "a07b8d1f8bbe734d172d82c6bd1c693d9f8f3369724e3622f97da39c5d989877",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_localhost.yaml": "24e8c55baf50543711ed6c724df90595481e43c1c3158d83aeb3b9def8c104e0",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed.yaml": "f217cd377ea574d941df2878df4354cbd5da77c8c9232ed6ce845f4064e7243c",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed2.yaml": "d184dc3042813a021f3d8ec7d2486b16a324473445f7855df0dd8bc0aa4cdc0b",
+ "library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed_localhost.yaml": "f0cbfcf2b7621d4307a2b917b6bc16157dce537e19c4732224e2b2c731d727b5",
+ "library/pod-security-policy/seccomp/suite.yaml": "3c149bdc3d070ca630ff4e8a3723f775e63a036c3cca4a94c8f1e6b46bef9775",
+ "library/pod-security-policy/seccomp/template.yaml": "f5eb1770575cde151b613790d5c41932a639b6a0b1fcfd8e7c7ef1b11e9b4391",
+ "library/pod-security-policy/seccompv2/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/allowed_ephemeral.yaml": "13e015160a36ce1c28c5fcedd74e3201357ba83b27ac7cbec9e75704fcef4058",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/constraint.yaml": "12bc7f974ff76b3c2393f08342ed3433c7390d95f917fb92307e4484ab1a70b7",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed.yaml": "fbf6784a42db77d231d6f276d8a0e3bd748ee123970122610f669ef4c2bf82a5",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_exempt_image.yaml": "a07b8d1f8bbe734d172d82c6bd1c693d9f8f3369724e3622f97da39c5d989877",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_localhost.yaml": "24e8c55baf50543711ed6c724df90595481e43c1c3158d83aeb3b9def8c104e0",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_no_profile.yaml": "7a80be17b39cb5b91aacac220aa956e38ea306b01f1585d8313264354c058f4c",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed.yaml": "c005d9d07f63e205733df9a02c72563d4dd5cf4fefbf6726cbf6b00edfb8e117",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed2.yaml": "892ec0bbffce10dd06e8aff9b15174832e32e880efdc0ee959eb6ded5f6645ff",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/constraint.yaml": "de6ebbfd638f5d9929d9f8596b00a5b8830f9449436324866fa59a8addfa3117",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/disallowed_ephemeral.yaml": "c0d01d192707aa99457e249eb60fab6994a28ff53eb78ef3e23d15ac321b60f0",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed.yaml": "fbf6784a42db77d231d6f276d8a0e3bd748ee123970122610f669ef4c2bf82a5",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_exempt_image.yaml": "a07b8d1f8bbe734d172d82c6bd1c693d9f8f3369724e3622f97da39c5d989877",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_localhost.yaml": "24e8c55baf50543711ed6c724df90595481e43c1c3158d83aeb3b9def8c104e0",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed.yaml": "c005d9d07f63e205733df9a02c72563d4dd5cf4fefbf6726cbf6b00edfb8e117",
+ "library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed2.yaml": "892ec0bbffce10dd06e8aff9b15174832e32e880efdc0ee959eb6ded5f6645ff",
+ "library/pod-security-policy/seccompv2/suite.yaml": "1295b909749d716e0df8b3d032515202bbc3db158b6938ca63937261b4cd0639",
+ "library/pod-security-policy/seccompv2/template.yaml": "e49135b0978bfaef0117b64cf136b73a7106958ba66c0509bffe435ea933c845",
+ "library/pod-security-policy/selinux/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/selinux/samples/psp-selinux-v2/constraint.yaml": "7960f61363c22eef20eec31de6cc35f945a9459a49c101af175bfd8cbd1491ce",
+ "library/pod-security-policy/selinux/samples/psp-selinux-v2/disallowed_ephemeral.yaml": "5cf4756179a52472721273af3259f7587685fd49ee8499e05d2bc3a57042c36f",
+ "library/pod-security-policy/selinux/samples/psp-selinux-v2/example_allowed.yaml": "a08756d408cdce3a4305fda6d64f1d43cde20ea7aca769bc681a29406a4da0a2",
+ "library/pod-security-policy/selinux/samples/psp-selinux-v2/example_disallowed.yaml": "a7a72955625f30c669772b4a550629440be8e629751b608f0924ed027eec4587",
+ "library/pod-security-policy/selinux/samples/psp-selinux-v2/update.yaml": "329ad036ed6eb5801c8de518371cd2baa81506a8d87882149ace17f67862e681",
+ "library/pod-security-policy/selinux/suite.yaml": "6327d580b618a09e077d8d9e6173c1a9ff39883749c2e7cb3991e6bea361d57c",
+ "library/pod-security-policy/selinux/template.yaml": "7db7d4456d6591c0452543fe83f79cd540e0fb3c7e7a808557c57595992562a3",
+ "library/pod-security-policy/test.sh": "a06848271102cf86cad3433e893547fa45010048053c0891a98c7277d3c4f5ce",
+ "library/pod-security-policy/users/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/constraint.yaml": "b20f8603da119c2c8c62805f2a543cc5c72d2cf0644b5ba75f6ee950313be273",
+ "library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml": "6d75374c0a7eae5334534d25bb500f02e7458406c60beedf5d2cdce73718c941",
+ "library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_allowed.yaml": "ce8a2fafe2cae26c08fd8e228e3e07a6e625b601a821a29669aa79cbb3280f3c",
+ "library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml": "a767ab568e69871e9a78ddc5e8db3e5dee67ed024273808e9417f3334b13df40",
+ "library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/update.yaml": "cee98ae137d5cd72b379f7b3ee59a4da56cf36a9e3c3d6432f324284a7b2cdfb",
+ "library/pod-security-policy/users/suite.yaml": "4db88e4666cc6df9925fb87df56bb88fddaa4ba8f741ac8fd95efa72c196a483",
+ "library/pod-security-policy/users/template.yaml": "6d593b3b1b05beabe9693763fcc2acd562f2ed1846adca3b2483251bcdb41d1e",
+ "library/pod-security-policy/volumes/kustomization.yaml": "719ceb95292a0dd7bb3037af1e90131ddb5ee7aff7613c1f661cb01d2cfe851f",
+ "library/pod-security-policy/volumes/samples/psp-volume-types/constraint.yaml": "00e31c5339ce5a522e7bc60cd583ebe037f0e223b34a962ea397cc9c8e469a7f",
+ "library/pod-security-policy/volumes/samples/psp-volume-types/example_allowed.yaml": "930f4b9c2855c1d9a9f9db4178d964b2e9f13db99adbc21cfd87fabe13b5dbb2",
+ "library/pod-security-policy/volumes/samples/psp-volume-types/example_disallowed.yaml": "c07bb5df18da53044c8b3ca2d5ea539a765b7fa4112167f426047688f52fb758",
+ "library/pod-security-policy/volumes/samples/psp-volume-types/update.yaml": "ed309ffcffe9b22075caa9b1df4420ad6e520ebf34e80bed3b5f504e534b5b1c",
+ "library/pod-security-policy/volumes/suite.yaml": "08ae119e8cae45635e0c1df3031f0bda693ae7bfcc995f45d40e5c7c0e0303c6",
+ "library/pod-security-policy/volumes/template.yaml": "4795f342741e27a7309d83a9ece140de47c7db6fccb0a0b560f75df1379bf6e2",
+ "mutation/pod-security-policy/allow-privilege-escalation/samples/default-allow-privilege-escalation/example.yaml": "56a40910c95e2bfb2bf1ccaff2ab0867fc8160a31d369852191b80698f0acc8c",
+ "mutation/pod-security-policy/allow-privilege-escalation/samples/mutation.yaml": "4966f13519754f20da247ec2095f9ff2688cd837692e7e3ccb3333dc75dce15d",
+ "mutation/pod-security-policy/capabilities/samples/README.md": "6bb9901577884f2bdf5f5aae87725a0dfcabbdb5743143938812017e8aa36a4e",
+ "mutation/pod-security-policy/capabilities/samples/default-add-capabilities/example.yaml": "70f7bf2baccb282b7f68d3de6860aeb6fae338f34d8f1f52e05806f6bfe33739",
+ "mutation/pod-security-policy/capabilities/samples/mutation-assign.yaml": "439a5e863f74a165ba29719f370c0a79cfe34d0b280163289c82730a7e77b17d",
+ "mutation/pod-security-policy/capabilities/samples/mutation-modifyset.yaml": "ed745ed33ec06592e0d4164b85d19a9994f31c1c26c063e55e584991606c477a",
+ "mutation/pod-security-policy/read-only-root-filesystem/samples/mutation.yaml": "93a4152338faf4084cacf2c87e9a1ef32067ef803f4d508594bfbabd4545c23d",
+ "mutation/pod-security-policy/read-only-root-filesystem/samples/read-only-root-filesystem/example.yaml": "6c8e6cae9c5489b609c835773b5cedd5f201d8cbe8bc40202c8a22b46d3db732",
+ "mutation/pod-security-policy/seccomp/samples/default-seccomp/example.yaml": "08ff7b42172837085bc063d721d3bd130c517eae065204474e53bbc0f1982ca9",
+ "mutation/pod-security-policy/seccomp/samples/mutation.yaml": "f2c46c29be93e397d57df5d6223a333e8ee05c2492cb48dd37f136e2e18ae149",
+ "mutation/pod-security-policy/selinux/samples/default-selinux/example.yaml": "3f12f0a86635436200ff5dcd36313e833a257ed47908488bbb27e3ea405cd14e",
+ "mutation/pod-security-policy/selinux/samples/mutation.yaml": "250fdd5e0b1b38d32f6d15d0af30305dc788730a89f9f7a5fc81ed4648e31050",
+ "mutation/pod-security-policy/users/samples/mutation-fsGroup.yaml": "db4b14afe88df0cdfd15bafb450e81c9876406da547df19280f6ba4b93074bee",
+ "mutation/pod-security-policy/users/samples/mutation-mustRunAsNonRoot.yaml": "c053bb9d5c13807d6d9cdd9de6645b5a1bbf6e6bba18f506c2ac0afc8ca4c131",
+ "mutation/pod-security-policy/users/samples/mutation-runAsGroup.yaml": "14b454c8f04b26a36f193f8e24110346fbf23784bfd21594e18dd8c29c01817b",
+ "mutation/pod-security-policy/users/samples/mutation-runAsUser.yaml": "27232b886196d4b1156ab4e7c61e6f4ec391505040efcb100a357ba2a26946c4",
+ "mutation/pod-security-policy/users/samples/mutation-supplementalGroups.yaml": "ac5ca45dc8395354c3817a1db9c2e94120a1645dde0b0fb4a0cc99f10a1da17b",
+ "mutation/pod-security-policy/users/samples/users/example-nomutation.yaml": "2ee467dd2f1fb5a62c2bd9f5d333d112eaed935e8b758b3323302d4a17c72b51",
+ "mutation/pod-security-policy/users/samples/users/example.yaml": "c2f7b45ea5a9c4614354aaf3d7e5662edfd77b889f33e9f4fac9b243e7faa3c1",
+ "scripts/artifacthub/go.mod": "68bf3ac1f21b9b9908cd3f37c38a3a090e6073bdfe9743db8fb81038bfcf2bc2",
+ "scripts/artifacthub/go.sum": "f2b169a73c51c32fa001aab983fb9b176dbfff6ee1a9dd3990ebeb570215115f",
+ "scripts/artifacthub/hub.go": "4276b5718c3845c0112d52d2e6551b381845b39451ab4a27325e4221337edad8",
+ "scripts/artifacthub/hub_test.go": "dd760930847d07925050e2ae12534c904f3fc5f395f53cdf8282e7a1b2bbcddb",
+ "scripts/artifacthub/testdata/artifacthub-pkg.yml": "94ac95a7e43e9ad0779ece3f0e6f9485e486db873c530e618b97ab47cff7d633",
+ "scripts/generate.sh": "e3b726d4e04ba670efa92ebfbfff700f874f2d9ecd4c06e30ddd567baab75533",
+ "scripts/require-suites.sh": "65452127ed00517b500693bdb6e3d879d7b7300809adcd612f4dd46af48c6f22",
+ "scripts/require-sync/go.mod": "b0b282311ad51843f8a98f69b58489ff0185ae7b82702f12214b16f81fda22f5",
+ "scripts/require-sync/go.sum": "e92c217bffa300d900f2e22b15d087995073a3657496bd230099b4f442b1c435",
+ "scripts/require-sync/main.go": "a8bae4b6cc3f6e471c7362b0e2882bddcd5d50a343173557c8714ff851e2750c",
+ "scripts/validate/go.mod": "0053e2b31ab5603890fc8ba5399e4f5966f5b8ec8a691145adaa8ebee68aab7e",
+ "scripts/validate/validate.go": "80faf075a133e38ee8a3e3aa1f9bb71ab62ad44b7431ec1d82b7af40335c3cf6",
+ "scripts/validate/validate_test.go": "18510179a3d655be223f7408f71705bbd7c2958672ce128a7d49bdbc901f5c11",
+ "scripts/website/generate.go": "d1b7b4c17f9512d83f7b3dd74b0c319543cb22effbe825d4b8dbc65db79120bd",
+ "scripts/website/go.mod": "51de21ff836689bf6a4adba9a9b79e58dd9dd66d51d0801a727f4c1d04dde571",
+ "scripts/website/go.sum": "e42794fa9b56301ad073de55cac1dea683b320ed951454d8709ffc7156088dd2",
+ "scripts/website/mutation-template.md": "13a39161fedb0d313541b8fcf1d0fc9cce013c2083fe398edfeb383da9f69572",
+ "scripts/website/pspreadme-template.md": "79e7e21513aed032b135f1b5697102253b4990e11aa57cdcd5663041e8e227b1",
+ "scripts/website/readme-template.md": "a0b6cb262cd7c8cc847e61898a55125ea4875ad46cdbaff22bebf187e191cb2b",
+ "scripts/website/sidebars-template.js": "9d19a93e89f417758df41a6aaf5fd8b9a69aa1d0a294fecb25b41764cbf6d822",
+ "scripts/website/template.md": "76eec756d074995bc9bec34fb6507c5fb043bd12c2f476177838f9e19ea3d34e",
+ "src/general/allowedrepos/constraint.tmpl": "092075564d3483c292fa243a60abdbbc33ee346a49aded53c570a69defd59077",
+ "src/general/allowedrepos/src.rego": "1ac9d51e622f2e310942918109c6b656c72227306efb69ae010792d942d21a55",
+ "src/general/allowedrepos/src_test.rego": "ad988494c273598e828d6b9db226ef29b0907db1698d7fbaf7f1f49669491f82",
+ "src/general/allowedreposv2/constraint.tmpl": "1a5725037be6d14b7d5d55215c090bbf9f98dd6a76482b7f3c8789aede21dcec",
+ "src/general/allowedreposv2/src.rego": "f3d4529e510a019fc961a49e68c5b8e110ccfd33ef76c0ab1505451e63eb83d6",
+ "src/general/allowedreposv2/src_test.rego": "3f5f54c8ba1e928ec2552843ec5a6c1746e3d26ad3ade0a87475d549a6a69b5b",
+ "src/general/automount-serviceaccount-token/constraint.tmpl": "2df148b321a6176fc101bdd5da37e0ad0119d1e3966a0f3729ffa5914fb9a55e",
+ "src/general/automount-serviceaccount-token/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/general/automount-serviceaccount-token/src.rego": "e141aa4be9233b959b704c9e04b09aa29f5dec27c334bd955c822fe3435dd5d2",
+ "src/general/automount-serviceaccount-token/src_test.rego": "990cb71cebb604c266a37be175f269756646fab1bb686b8f54218471e499c19c",
+ "src/general/block-endpoint-edit-default-role/constraint.tmpl": "2602faa023acbc45e02845aa4387e06558834ea81279efb658e8625265e8ebf2",
+ "src/general/block-endpoint-edit-default-role/src.rego": "57fadff3882b9730a8b49c2fbf3c38add22058a7fcd1ef85aaec21ac2600f77f",
+ "src/general/block-endpoint-edit-default-role/src_test.rego": "56c4bf4df60f326145d61defd1be255cde220cb97b0012f040e360085c74ba73",
+ "src/general/block-loadbalancer-services/constraint.tmpl": "5b2cf2992fd6f353dd007a738e3c6e66778485923db74f4e4c64b8a6f7517fc4",
+ "src/general/block-loadbalancer-services/src.rego": "74bcec08f13879cba532a70d6d79fee3eb2333b875dc6ca6920f1e6cba9212db",
+ "src/general/block-loadbalancer-services/src_test.rego": "a0b9dd1828b58aefdc191607a91a874be34ce4f97f3a992fcfa8f546984d96e8",
+ "src/general/block-nodeport-services/constraint.tmpl": "fc7575b188dc90a9f9e245768d2bc25d5e95c4b4626f11be5080a61e9046f6b5",
+ "src/general/block-nodeport-services/src.rego": "8527bc613fb85363d1a80d99966e12533cbfd612bd69b387be547e221f09091f",
+ "src/general/block-nodeport-services/src_test.rego": "cace24a7ca7da605b65e2c27ec226521b87f130ab713b1017d13c805c31b3e03",
+ "src/general/block-wildcard-ingress/constraint.tmpl": "7e298055d0d411682ad22ad6738f7ad6d9b724fc8c36907a876c595c01d081af",
+ "src/general/block-wildcard-ingress/src.rego": "7c26d75ab1331fdbfda019885a570d0a1ea13316c443a824c68b96c9b3fd3a85",
+ "src/general/block-wildcard-ingress/src_test.rego": "836ee2491cbcecc829ed072cee8a44d34295f5270206354f97579a07784ee73c",
+ "src/general/containerlimits/constraint.tmpl": "652638160634d05a98b97b69b68a7477d1fb945b75455a87886ba4e77231da09",
+ "src/general/containerlimits/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/general/containerlimits/src.rego": "4c02b8b689d7fc6ee03c68d39908ad2dd43ed52d4a0a9c5cb9e3f961973a8236",
+ "src/general/containerlimits/src_test.rego": "f94f71d0c891b04649bc06b1dd93075562a2eb487f37776b13811ce10adea3b4",
+ "src/general/containerrequests/constraint.tmpl": "718c824ab89d35c0dea47dbd510a11707b340e949ea9d4933ddf5bf29bbe41ab",
+ "src/general/containerrequests/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/general/containerrequests/src.rego": "5cbd020a94df5f8b8f193f96814b31d656a4beebc4ef22a0f8daac5b69eb3c15",
+ "src/general/containerrequests/src_test.rego": "752e248e55f58276b64a04ff3225a85d2eae01bbc42147338e81d4bec6caa073",
+ "src/general/containerresourceratios/constraint.tmpl": "8fc945df34c277835578539c93f0fa7cf27a4ca471cbc23c8856a3c530a6319f",
+ "src/general/containerresourceratios/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/general/containerresourceratios/src.rego": "80c0a2428a33a9ffec700b86572452b733bb43e1059689d91ea33f6f14cecd13",
+ "src/general/containerresourceratios/src_test.rego": "a5f1279d5fed7c13852913020764947d5c9e8f37cb843888849980a402b2da57",
+ "src/general/containerresources/constraint.tmpl": "0f1f739aa040ef123dda7492af91334975a9a7f5790ab731d8adc553c3bf11fb",
+ "src/general/containerresources/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/general/containerresources/src.rego": "baf09724e0cb7869a07ce35c44e4c68a8af7ead955388e140cae7a016639a63c",
+ "src/general/containerresources/src_test.rego": "e844d5cf0337cddab7e8769b8ea56a8dd35248ff24707abc953d2f0cdb72cb9e",
+ "src/general/disallowanonymous/constraint.tmpl": "dc5cda7583d113838c09dcd092a589243799b6c7e6dac097b7f71c3455f46ca4",
+ "src/general/disallowanonymous/src.rego": "406b5b5106eaab619d1e0cd39cd01d7561068a4b222fec121714fe1d482e54aa",
+ "src/general/disallowanonymous/src_test.rego": "7c7415261dd75ab024b2a7dcebd38724baa061c410e92e2e16f375ecf00d8394",
+ "src/general/disallowedrepos/constraint.tmpl": "bf184f83509747722cd58b8092ccb1c305e516da040c4622d25746c4e36e9f46",
+ "src/general/disallowedrepos/src.rego": "2dd42580e7af14cec2a5dabd24d24fd80c6cf0bcad7f5c336c910da1316e006e",
+ "src/general/disallowedrepos/src_test.rego": "ade6d43036144b67ce8c70327c4a472fc4e9c276a19905eede5786cc4ef48aad",
+ "src/general/disallowedtags/constraint.tmpl": "cc49116da2201e79872d5570cf83772f4d3e2ac69f32b2474769bb7d36c4a9b0",
+ "src/general/disallowedtags/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/general/disallowedtags/src.rego": "e631d2aaaa2f6797e1524e51ef670deb3ef154c62a902cf01d9aaf69db099b43",
+ "src/general/disallowedtags/src_test.rego": "06b52d79d5b19bf72f8cf13abbea86f2f56215b0b559a5a6cb8e27069ae533fa",
+ "src/general/disallowinteractive/constraint.tmpl": "74a727219c0c67562f34651e6d0242bbd97664d1e80999fb6902a9f59a062335",
+ "src/general/disallowinteractive/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/general/disallowinteractive/src.rego": "19069bdd8b853da8896ee740a12f39a8faaec68240239d40b1a409b5ab23b54e",
+ "src/general/disallowinteractive/src_test.rego": "87b3cfdf98580387316d4bc3561d1489b87d42ef84d169c7f08d965eb325211d",
+ "src/general/ephemeralstoragelimit/constraint.tmpl": "b0caad66f15ee0f5c4ad0016f3daec86d5991c0823b24e68bc725961f44555fd",
+ "src/general/ephemeralstoragelimit/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/general/ephemeralstoragelimit/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/general/ephemeralstoragelimit/src.rego": "bd3ea002793d34522e43290cfa0b4683e4ad4715f2fd00fe50583676ca6a1003",
+ "src/general/ephemeralstoragelimit/src_test.rego": "6bae4f10a7b6853085d61ad02f8e29346b23cc9acac361e7a8e36a0ce3904508",
+ "src/general/externalip/constraint.tmpl": "00089733c05cfba4b392763c3ad308e83fff64d42a2de38b711a694e7dc56504",
+ "src/general/externalip/src.rego": "d9acf8a10f81c8fb918d4eb6c7b8b2e87a44c29f2a7cfe71ddd0d1d826a0bfb1",
+ "src/general/externalip/src_test.rego": "5daa7d8094c9791223712121dc44e76a0a1512c8498dd16873f57cafe02fbcc4",
+ "src/general/horizontalpodautoscaler/constraint.tmpl": "4b65536b9cf74365fb2a7f4bf75b57325dca94f1c88fd5da0db284c0999951db",
+ "src/general/horizontalpodautoscaler/src.rego": "34df4633ff21f36263ef58f5beb601b6bc020170429fcaf6a9359a77f7ecaee6",
+ "src/general/horizontalpodautoscaler/src_test.rego": "5291d25d8f6b6d0245c4ca5deb72d685debedd83eeadf8c419fa4d0031c2c1e5",
+ "src/general/httpsonly/constraint.tmpl": "815ea638cb4d5fa91134b47e5e15686da0b097e543ac094350fc14aad371fc60",
+ "src/general/httpsonly/src.rego": "94090d0607945bf55ac83d3b5e0f4b658484ad9d943d86b5885b6d6fe8a11352",
+ "src/general/httpsonly/src_test.rego": "b951d06657a40843511e1e1aab6c9013732b91045943677058fd775795612e2a",
+ "src/general/imagedigests/constraint.tmpl": "e7ef73fcecfb9fbe8e9a548f025f78cbc885c453fb0e2e028af6f7d9c2a9208f",
+ "src/general/imagedigests/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/general/imagedigests/src.rego": "4b04fc5ba4d335c300af8fbcee08ee671114f801c14c34ecd04a3275553b7b05",
+ "src/general/imagedigests/src_test.rego": "37e1be73c253d607d8114a80ecc1d46442796e210bd638b7aa2247f230ee805f",
+ "src/general/noupdateserviceaccount/constraint.tmpl": "e92db557b1ba9f894d8c5025073a253c58b6f7f26392f52513bb4879b784926c",
+ "src/general/noupdateserviceaccount/src.rego": "5448fe82ca4fb134d5683e83fdea675cb31541aa7a079c4f815defa1adb8ce0e",
+ "src/general/noupdateserviceaccount/src_test.rego": "9f814c4da437e6e346fc7051e7c1659a2cb8ab40f37f99adc0f3a626f870b614",
+ "src/general/poddisruptionbudget/constraint.tmpl": "80228c23c0766e38d7860097269a84b716a800b6b886f8652680ef36a157e05b",
+ "src/general/poddisruptionbudget/src.rego": "7ec47095f8c2b410fbbb2fef185c19a5903437e9722be375dfaedcd82cd86ced",
+ "src/general/poddisruptionbudget/src_test.rego": "3a4e9f3fdb7f9028185a76124d713a4da21785b206696c5959ef816fb461811e",
+ "src/general/replicalimits/constraint.tmpl": "77ea74e2584445665aa99be6812180a6f7c72a6ba965231e0d7fc52a3599f56f",
+ "src/general/replicalimits/src.rego": "61d25c795a1535403739316e345d16816d8fe869853ea033083c2cc22f8e7709",
+ "src/general/replicalimits/src_test.rego": "7ae98af93d043360e1bc9b3c47dfa633514b722de04b5bd77cac59af154edf09",
+ "src/general/requiredannotations/constraint.tmpl": "2cde009ca180e1249e39eed23e19a04c4993dd72dd17d1afe522548ac503ae80",
+ "src/general/requiredannotations/src.rego": "111f22fa1c93132bdb601a3b69593fe0d567f26d956594e2324605a7056752c0",
+ "src/general/requiredannotations/src_test.rego": "2a42e7b739134a4090f7887c0a69c264aa5e42658568c41667bb16b5dbdaae48",
+ "src/general/requiredlabels/constraint.tmpl": "5a3dbd746560bf7d7e4b428e6e65b866845fcd367f5f46686fe9738b86e5f357",
+ "src/general/requiredlabels/src.cel": "df62e7079a12c0b9b76ed83bcb54032e720eb6179a94a31ea66f88a2a13fe717",
+ "src/general/requiredlabels/src.rego": "208d2f1d44ce05beedc58ed72089fc5e92e6385dc44c33458b3aff35f6ef3250",
+ "src/general/requiredlabels/src_test.rego": "da892d0803b5ced22bed5fb425fb7c00ca385a65a595aaeefaa2092d672e6bf2",
+ "src/general/requiredprobes/constraint.tmpl": "25aee523eeff5ef9136c9d4707ce38616cd3fd93d27e86257344d162d2c82960",
+ "src/general/requiredprobes/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/general/requiredprobes/src.rego": "8ace63ab415e82de307f75302515879c8a49b711c0023e3d2bb7abb3c330adf0",
+ "src/general/requiredprobes/src_test.rego": "07c4367201f8b2ecd039fadf2f21a2c3bb1ba90afde225679cc92cc5b9bd5863",
+ "src/general/storageclass/constraint.tmpl": "2f090fed29ba4707b48259167ae1b2198e7c5959f0190d489d59e7a42e1dfd79",
+ "src/general/storageclass/src.rego": "95b5f80e374c8952794f6480e7bcc66c1921af3093cd546ce75fd24e7d0f412a",
+ "src/general/storageclass/src_test.rego": "6627de641fb3150522757c674de290d59a37f77f8279c47678215739f9f94330",
+ "src/general/uniqueingresshost/constraint.tmpl": "6b1a68d0d9d72fdb7ebcbd63f64b4e4327ba59feded4861bbc3543526e523770",
+ "src/general/uniqueingresshost/src.rego": "5c4077dc9e70bc7ae5359aec535c669fcce1d2d565f67a8d0dc874d2964eb348",
+ "src/general/uniqueingresshost/src_test.rego": "64c0bab2a7131e26c08cf1002a9fdc877edbd03a434dd476bfd8a1c8700c0e4f",
+ "src/general/uniqueserviceselector/constraint.tmpl": "b22b86a484a14eed922e1561eda8b2a38b1ff6b31a7a4f9562ddb48f56fdcfec",
+ "src/general/uniqueserviceselector/src.rego": "3e8eff971f17916a19c60a896b679672b56d4daea0e29479209bdc1b4bf9284a",
+ "src/general/uniqueserviceselector/src_test.rego": "095a16314a40c979a7bff32342e62fcf9a58f6f9dadefbb2214c7df1077ffa9e",
+ "src/general/verifydeprecatedapi/constraint.tmpl": "475c87e7054599f9b81b3d5e26d93b834a7bf6881c49226aa864483f2adf8ad2",
+ "src/general/verifydeprecatedapi/src.rego": "94fb540e1ef18676279bb15a44ab6d10acc8e6e177419191ab7404d5eba2fa80",
+ "src/general/verifydeprecatedapi/src_test.rego": "a6ee946a08fa8a1832dc486ce97f00f8f1fe01a654256e91e9d0ed1a6abd316f",
+ "src/pod-security-policy/allow-privilege-escalation/constraint.tmpl": "f81a0d5e92c6a010f24a69cb6d1b4f4d83cc034cdbf922ba62c622589369efe0",
+ "src/pod-security-policy/allow-privilege-escalation/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/allow-privilege-escalation/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/allow-privilege-escalation/src.cel": "75a14194057bf424b4e60b83ac381670d1f359295f1ddb92603e6d4238f384ac",
+ "src/pod-security-policy/allow-privilege-escalation/src.rego": "94d1b5687106ca4fb634a3916ace86fe2856226984a042f3a10ef272e51c845b",
+ "src/pod-security-policy/allow-privilege-escalation/src_test.rego": "b091830283acded863ec236aeadb11d5029c85f5d086397017148854817cc93d",
+ "src/pod-security-policy/apparmor/constraint.tmpl": "bc9dd96fecd5d79d628039b937c5742d993821f66bff821609f82d895e31fe3b",
+ "src/pod-security-policy/apparmor/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/apparmor/src.cel": "e0b7b5f5910e72b74d4f87e5ff2d543783caf65057913a4bb242cc6a6cc2137b",
+ "src/pod-security-policy/apparmor/src.rego": "576ba065a7cee020577b4bf25c659c5a2344e850152f3201dcbb5c44ba81ef08",
+ "src/pod-security-policy/apparmor/src_test.rego": "4859038876bd425318c3ab94a726ff0d6445e4e3340f1b15ac927bbb368026e9",
+ "src/pod-security-policy/capabilities/constraint.tmpl": "6637fb42288563affb02974f2e03f1b10a7730c2cd240d943376cb1f0f59711c",
+ "src/pod-security-policy/capabilities/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/capabilities/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/capabilities/src.cel": "97c75921c630ee76f8c8a59b578093ce24f58fe1973cde7eb0cf156179b149d5",
+ "src/pod-security-policy/capabilities/src.rego": "68f206a4b2dfafd81ff4972e78089e05d6d864ffff1bc7adae0024dc51cdac96",
+ "src/pod-security-policy/capabilities/src_test.rego": "4815b0a8c782152251a72cc98c1af18fb438872ffa32dced957d2046cd83a2a1",
+ "src/pod-security-policy/flexvolume-drivers/constraint.tmpl": "723c4ac44874f197dab06df552949936a1daea7fbc1f76c23b7389fffb9c736b",
+ "src/pod-security-policy/flexvolume-drivers/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/flexvolume-drivers/src.rego": "437a566b82911ec3040228a9448cfdb47bc3eb65eefaee8f683899b731e5ed5b",
+ "src/pod-security-policy/flexvolume-drivers/src_test.rego": "64f9ab9b9fe03e0f5651c54716606b3630a7a629731899497a3b21633935b734",
+ "src/pod-security-policy/forbidden-sysctls/constraint.tmpl": "dea2b20b74b075eb3175c32e5dc1b08b8d02602473f8ef0c26ad8c0591042363",
+ "src/pod-security-policy/forbidden-sysctls/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/forbidden-sysctls/src.cel": "29d7b64e1b6d1d1770c81a733d37501b8cbe719390830b8188fb8c450ebda87c",
+ "src/pod-security-policy/forbidden-sysctls/src.rego": "f3918c94e2fbd862ae90fb2e181cf45de851b56d2c0b4d8d307896fa3dcbe7c0",
+ "src/pod-security-policy/forbidden-sysctls/src_test.rego": "792ebefeddc33332bc2f1c91f4cd90b140887d43a95153fbb84aecd7b0f608d4",
+ "src/pod-security-policy/fsgroup/constraint.tmpl": "9a20762ab2d296f4180ca450908a5e6dfebaa599b98ae5d53986a4bee4453fcd",
+ "src/pod-security-policy/fsgroup/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/fsgroup/src.cel": "4836ab59d9ecbf731c56014f458449dd242e3cdaf11ba07832bd7eeb95b32c86",
+ "src/pod-security-policy/fsgroup/src.rego": "64f4f1e5250433b1ff8378d9b7c6d8fb5df8193a7245f75264370943d574634a",
+ "src/pod-security-policy/fsgroup/src_test.rego": "0c67ecf269408979efe1d34e195f0549e7186e9b30f9890f35cdaf6c67d9a180",
+ "src/pod-security-policy/host-filesystem/constraint.tmpl": "d2ac9a4aa74545fdab06db82fafd023f277fc44d200cb8d3f863cac7dbd0e44c",
+ "src/pod-security-policy/host-filesystem/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/host-filesystem/src.cel": "f3f382b91f2a7fd7af55d1d5c842c70ca286eb3375badef00401af05f37f7fdd",
+ "src/pod-security-policy/host-filesystem/src.rego": "7341a362eba34edc94f96049e8d190b394449b29f648c3856400e0622cc1acc7",
+ "src/pod-security-policy/host-filesystem/src_test.rego": "73fda129de11142cd75359841ac24e620e26d9089977eb531da0d1ede9e7ff64",
+ "src/pod-security-policy/host-namespaces/constraint.tmpl": "e0246e8e3184c1972515a5596e348b8326c7ddb118ac20da4daf3d0cd694aec9",
+ "src/pod-security-policy/host-namespaces/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/host-namespaces/src.cel": "60ce58e969aa423c3bd76e50bcadeeb6a855178eb8f764c106823a9075f8f15a",
+ "src/pod-security-policy/host-namespaces/src.rego": "260c563249d777f72af1d198222fd7c23fa416cd06bd040a827867db5c50ef7d",
+ "src/pod-security-policy/host-namespaces/src_test.rego": "fb1e13be94d26af40e9e6a042acf6e444befffd141aa602300fad7fe87772993",
+ "src/pod-security-policy/host-network-ports/constraint.tmpl": "b2998e30f85af165a1d319a2da24ddcf54c70ec10a082a46233a115e7c6ea4cb",
+ "src/pod-security-policy/host-network-ports/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/host-network-ports/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/host-network-ports/src.cel": "fd1cc1fe92e1cbcee78fc42db4c224ed6f2bc79ea20d10283c50ac894f09c351",
+ "src/pod-security-policy/host-network-ports/src.rego": "b33e9f13620080f994caca15f53db004d10643f460b2aa5e69fe76983e0916b6",
+ "src/pod-security-policy/host-network-ports/src_test.rego": "04401fd659e71563306dfa51d58fb36440d9024b00ee192448b2f48a291a9e92",
+ "src/pod-security-policy/host-probes-lifecycle/constraint.tmpl": "236b07fc7305ce843b4b27c007fc7862eb1135ada653b003bbac9016ae963a13",
+ "src/pod-security-policy/host-probes-lifecycle/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/host-probes-lifecycle/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/host-probes-lifecycle/src.cel": "c901ddb3b5b97ae953c7fb14f99253fa89ef3fa2ec7b0c0d6d5dfe45fa161855",
+ "src/pod-security-policy/host-probes-lifecycle/src.rego": "1250e2f44b454875feebe6b58dca1100d2d791eb1c79abce8ff892f8dd7d03b7",
+ "src/pod-security-policy/host-probes-lifecycle/src_test.rego": "6bb68ed4bd3a47707f5fafee9c40f6bdec90dd3ec41cad7ced7a44e4897e06b9",
+ "src/pod-security-policy/host-process/constraint.tmpl": "47fc9262426b24619134d11451bf9649e123a5ed6db50027ae4342fe03688cef",
+ "src/pod-security-policy/host-process/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/host-process/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/host-process/src.cel": "e33cc20823489e1cec0d5e2da0e4bb0607a5b72649c7434263b60bb112faaf19",
+ "src/pod-security-policy/host-process/src.rego": "2c53a79d347d6389c42c25343d2c0c3521065074c38c2d34278d481dff03bd9b",
+ "src/pod-security-policy/host-process/src_test.rego": "77415fab9f1bf01920bf19910a28858e4e3a7527533aa191e4ca1e0e1e2be99f",
+ "src/pod-security-policy/privileged-containers/constraint.tmpl": "efd2d02eaa163de2f01875d1b2f3447eba70d4a7e03ad2d0d3c1e54a08d1e14e",
+ "src/pod-security-policy/privileged-containers/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/privileged-containers/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/privileged-containers/src.cel": "31563496e10d2093ecc07c0c91a8690a45d0dd4ad04b30654314e8d1236ee925",
+ "src/pod-security-policy/privileged-containers/src.rego": "4afcb7e7d50fc600d508488160b5a98a5ec7bc35561f9b784bb87dd433df5f5f",
+ "src/pod-security-policy/privileged-containers/src_test.rego": "e19fd90e6fdd0656e20c30ee47689dc76359b294f78e7b59fd0e9b20a52c70d4",
+ "src/pod-security-policy/proc-mount/constraint.tmpl": "35659bf06b652f6693b2528933d332812ad4dcfbb06ee4b906ae6b414955a8db",
+ "src/pod-security-policy/proc-mount/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/proc-mount/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/proc-mount/src.cel": "aef4fa8770e84252f94c77ecfe367ad4a73651456370b97d6536c0059e913125",
+ "src/pod-security-policy/proc-mount/src.rego": "64afe198251839678a8f4189d3d4507b1919c48d123fa1261f4778cee94b3a7f",
+ "src/pod-security-policy/proc-mount/src_test.rego": "fdcf2d57fd3d41d13b67c1dd4612070bd797797faf59deb356efacd1844b43f9",
+ "src/pod-security-policy/read-only-root-filesystem/constraint.tmpl": "131ddefcce84cf1074909e1cf9d42a58e1199251ca58b81f6934c2771c85afbb",
+ "src/pod-security-policy/read-only-root-filesystem/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/read-only-root-filesystem/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/read-only-root-filesystem/src.cel": "7df649b129f33ce9f440f19f626b5880c7d231690b8637fe03c9cf3e8d0092b1",
+ "src/pod-security-policy/read-only-root-filesystem/src.rego": "6cc6eab4502c0b38eb53d559f8979029b6a1ca4d9810488b1cf07319e861662d",
+ "src/pod-security-policy/read-only-root-filesystem/src_test.rego": "27105ddbaa9105ff83438ccef667a01359e2d3560040b6d22fa3a8b07ddc2bed",
+ "src/pod-security-policy/seccomp/constraint.tmpl": "6dc091401a319dbee490af3538fa1a15bb7005556594d9b6c0a0f3099607db50",
+ "src/pod-security-policy/seccomp/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/seccomp/src.cel": "d865d21878ed079fb2a1562564fc143deda9017d320ff590f3651765b743b3b9",
+ "src/pod-security-policy/seccomp/src.rego": "39afcb2c34d79f3fac28ff6d0caf9c01e3db7eea21039ce1ac9d53ba5279b7d3",
+ "src/pod-security-policy/seccomp/src_test.rego": "a415f8db473fb06e3f99809db62f79b04647ce3a80414fc51b914e181eefd301",
+ "src/pod-security-policy/seccompv2/constraint.tmpl": "595560a18d9348adffbdbd9bc4e863dc16f39d148df857e1bf485d7260abc92f",
+ "src/pod-security-policy/seccompv2/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/seccompv2/src.cel": "e3d0d1ba7df9bd1fb62618a494cc37211b9dc6badefc64be3c482be3dfa7fd05",
+ "src/pod-security-policy/seccompv2/src.rego": "0a73dba7dcc16fb3288c6a9d252de4d7706ffa607e4ec5697a8bc6816b472b7c",
+ "src/pod-security-policy/seccompv2/src_test.rego": "423f235e121f8edc089b783c2ef9e30840b2c0a2bbc188d5ebd7acb0a94e7ffd",
+ "src/pod-security-policy/selinux/constraint.tmpl": "7c58e80b965e2f66b3b79ca062f8d830d827a090aa3cbb55a463c09f6968b118",
+ "src/pod-security-policy/selinux/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/selinux/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/selinux/src.rego": "b8635fcd642606a74768a9df07a0bd47228359bb435bf0756576e5a7e1a93128",
+ "src/pod-security-policy/selinux/src_test.rego": "f094dec46befe36c0a5fa90233666e370fdac6f4815768b884c89f8e74d4ac4c",
+ "src/pod-security-policy/users/constraint.tmpl": "56a2994e99bde1ccb07109155930be2c54700bc1ffffec3f42fcc69ff6840798",
+ "src/pod-security-policy/users/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/users/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/pod-security-policy/users/src.rego": "55e64d7b5b518c57e6f56cadddc7945e7a21f1214f961e82b27424f6cb82eaeb",
+ "src/pod-security-policy/users/src_test.rego": "222cf820826da4aec172147d0cef8d36d1999c6e1df5f1abded187e747f6f8f2",
+ "src/pod-security-policy/volumes/constraint.tmpl": "fa89d517897b0c17c7bcf55b96437ffbc33b165a45339e544ef48f75e973e438",
+ "src/pod-security-policy/volumes/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/pod-security-policy/volumes/src.rego": "a420865c8596ce9123848eb719134e6099c8612b51cb085dba791f50df102435",
+ "src/pod-security-policy/volumes/src_test.rego": "09ce497062e37e68fc6eead289aeb6fd0e4afb1a8f4843f657549a163e5c90e8",
+ "src/rego/lib_exclude_update/lib_exclude_update.rego": "b09a04c57f12e0e7fc2fc76275886a1ca0fcab282d62b125d7367a2dd55f7742",
+ "src/rego/lib_exclude_update/lib_exclude_update_test.rego": "3cea87b3a104a3a8ce2f4dd3e21cb0a93ff305721186849677d32cf1b073416a",
+ "src/rego/lib_exempt_container/lib_exempt_container.rego": "2f922d8a94b06b0d9a05e3e37b28a3a3a1d03aa9b37236bfe55f30610117649b",
+ "src/rego/lib_exempt_container/lib_exempt_container_test.rego": "1eaf541ce633c662b4e718d8058e29412195c554a2d896e51adbc5091546ad0d",
+ "test.sh": "2013eed413f86e6d383fc57ede2c459527ca9885b82d6b45b511f2c54db8d931",
+ "test/bats/helpers.bash": "d01fd6e1eec173a479502b926943cc4b764c4403e170057a5e22b1df79bfb3ce",
+ "test/bats/sync.yaml": "26ad2b242108a5628b62395145012b6c583b5be11d17a07c285ecb471f11751e",
+ "test/bats/test.bats": "b175165ea350971f0e1d875f22ce788d78ef3e06543c8f8dac10cc254f1c750a",
+ "test/kind_config.yaml": "1bdf5c2bae5707c4989a8d6d5d942545d08ffa47ead47725441279de2e1817b6",
+ "website/.gitignore": "7c2bf6ba263ba149a2885847a9f7186e0d7af58faae3e01f2e69a7465f7cfecc",
+ "website/README.md": "8ca35617107fd0ae6efc90b7bc77cac4a4d3a96641db54e608a4c8150d0152bb",
+ "website/babel.config.js": "599159185d1c4b953d9603f93fdf9a23a4f20fb78d03ae8bf4de77043969332e",
+ "website/docs/intro.md": "ba6e3e3ffa100e47a06879b57076181da3baae8ddbbefa78c5aa7601e06bd60b",
+ "website/docs/mutation-examples/allow-privilege-escalation.md": "1a034ff31b517071c0f2a36c89fcada054f4ec6ab128e81a727dea02cae32d60",
+ "website/docs/mutation-examples/capabilities.md": "b884afaf3a86f25de20c68dbd2083c1df4b9bff7a0dc298c3e9ff7fbbefa346d",
+ "website/docs/mutation-examples/read-only-root-filesystem.md": "1c7165650993329cbe1e914080f4ec017a6d3efeb89dd31ee47d89a22cf7ac17",
+ "website/docs/mutation-examples/seccomp.md": "cd82fd642e3260fb08fe02baac547f4968b64c534daeb82169fcbab541464cb7",
+ "website/docs/mutation-examples/selinux.md": "93169e5dc4deab16f73025c06e0040d5f65876a8c43a8893e85d58556e66388a",
+ "website/docs/mutation-examples/users.md": "aef4ff809e4b572a639711c8b5548cac08516a8f59fec46effe90808078209be",
+ "website/docs/pspintro.md": "7994607e26e983124cbf56fcf0ccb66f5d27616044c50f9d6a8eea2865307fa2",
+ "website/docs/validation/allow-privilege-escalation.md": "eb617a49fa5c64b59d1a57f9c6924ea9bda98d66c0c95efc539da0f969382f53",
+ "website/docs/validation/allowedrepos.md": "68e82d2a45d36c013269af79526730151a32ac1f3b3f8e79c1572377726de0c8",
+ "website/docs/validation/allowedreposv2.md": "05bbaa98f651cd0818300ba904275348228c66005eb413d461c976d6b11ee655",
+ "website/docs/validation/apparmor.md": "3ffe2d8b090b0540049ff1f34c479662a20f981cedfd3b17384b2cec7c9ffd5a",
+ "website/docs/validation/automount-serviceaccount-token.md": "25de7602fac86d539dada0f5122f04540318356779c835965cf7c990725b91a9",
+ "website/docs/validation/block-endpoint-edit-default-role.md": "7174c7735a7e325496fcc14e008376cef025f1b375b80a6081ee26a6f2307055",
+ "website/docs/validation/block-loadbalancer-services.md": "96c70ebcd22c72ee5c561957241a81b12ba40911c175d3f397bcb52f6e504288",
+ "website/docs/validation/block-nodeport-services.md": "f6259d21d6dd93a15a27ec26e7cf82bf7893c1e518a51399ac6b153eaafb0750",
+ "website/docs/validation/block-wildcard-ingress.md": "265fd37864414ea084d6d50105986f6dc398ff75ebc1975cadb65d8b58a98fc0",
+ "website/docs/validation/capabilities.md": "3d0885956dbe616711df276e4beb2dc07f57cea989895ebab4654da924fa2c0e",
+ "website/docs/validation/containerlimits.md": "65ea1ecd3d87d6bbadff49f134ad7e0394f8f47ff69684ebb51e4907ba30c1cb",
+ "website/docs/validation/containerrequests.md": "c87b7e02d04f51202a6f7a0d0fb2ad800ec2ec8f83b890a276949284d6910004",
+ "website/docs/validation/containerresourceratios.md": "ca9512af7bee251a5f09c5eef29a8766684bb1e3f5dd6d13e5b566c4e60edb84",
+ "website/docs/validation/containerresources.md": "b3b11359dc3b94917a39a27d36c01bd35f01dc81ff435d65a6a0fde571c850f9",
+ "website/docs/validation/disallowanonymous.md": "c3e08c5765a0d7d812b5515a606bfbb4e6956d297388fd5d8ed6d51029ce717a",
+ "website/docs/validation/disallowedrepos.md": "45a56ba9cdfbe65fb49c464f284e71344ec0ae75bf74e40ff9fb6a676bf77c03",
+ "website/docs/validation/disallowedtags.md": "acf0fbadd12bccdd160d7a9f938add5b174948db74fe77125a632cbad48546a4",
+ "website/docs/validation/disallowinteractive.md": "ab68c92bf01dee440678e34cbba70b7cd978b83be016acdc5de92e3291ee7d53",
+ "website/docs/validation/ephemeralstoragelimit.md": "e7440dd7266cfc63f9855e957ff9de27a4acee38871c1afd9c669c08606f53ec",
+ "website/docs/validation/externalip.md": "c92d4373d8fd05be7256b84ff8e5053345645cc00d88799f4ac83af7f028f59a",
+ "website/docs/validation/flexvolume-drivers.md": "004ffc9ad439a71eac495d09419f2699f8d0e26df82090b689c2eeaa018df422",
+ "website/docs/validation/forbidden-sysctls.md": "8467e581436c3edc8b96c635232b403b121d240099122fa8836fb14774ed865e",
+ "website/docs/validation/fsgroup.md": "1a7a1f6904597e2d528880a85ff9d1393d065d27a80df2b8b6461e7a38d1bc78",
+ "website/docs/validation/horizontalpodautoscaler.md": "c70ab8f9e6663bd5a68755d2e1e8afda225d741c9a04083a83ed08287946fa71",
+ "website/docs/validation/host-filesystem.md": "b4a87c50361328a1ac6a39e2e5279842192efca98b0fbddd52ef3aa0ea5bc860",
+ "website/docs/validation/host-namespaces.md": "8bf20e5f501d6a71e9e1e312918824029a81ee6af1e254b135cedde3cf08cf08",
+ "website/docs/validation/host-network-ports.md": "f3ac4640f60b55c5521ca7f4ba37541786c580d9c6c32b71b45ce8ccac5ff892",
+ "website/docs/validation/host-probes-lifecycle.md": "7394282732ca72309deb8e9484f6e35a52fcf6239e5ecd0cba9656ee4bcabfb1",
+ "website/docs/validation/host-process.md": "a2f8d3ea36d84de7742db149de6cd71630195ced473ff4b5d13d933d6013ebe8",
+ "website/docs/validation/httpsonly.md": "c0248b945458102c2de0e988a0aa784ed58c2af2a5edb03b6f570b429cfac854",
+ "website/docs/validation/imagedigests.md": "e70ddd43dbbe472fea76e58eda1e04a84bb1b3a1150372f2f8b28b69e90b24fd",
+ "website/docs/validation/noupdateserviceaccount.md": "1628c3c7f93c530f542f12eb7d2f09fba08d9eb985e0ba1c9fbbad44dbafdbe2",
+ "website/docs/validation/poddisruptionbudget.md": "04dbe3048db32fe07111b666322eb3cb5f265dc4f3fd68bce07545c6e084ddd1",
+ "website/docs/validation/privileged-containers.md": "96395e5a9ec59abd6f362b1bd969ce3c91a60107162b24eb8959a33689ae1a2e",
+ "website/docs/validation/proc-mount.md": "2a2306f03590a064ca2ffcacda13664f3bc5b551ee2f29f65212d8ed8311c450",
+ "website/docs/validation/read-only-root-filesystem.md": "349612aa39688a4b7c0e7c7b3fd6d3bf379cddb16d67792945f71857913b1bce",
+ "website/docs/validation/replicalimits.md": "4ba299194da0dc688b17f453b25c27756d2dfce0f55856375f297f8922c1ae85",
+ "website/docs/validation/requiredannotations.md": "c1f687d067847a660dbff332ee1d0ddd1cfd5d7d82b7fca9821e8c297cf3ea3d",
+ "website/docs/validation/requiredlabels.md": "0aca64ffd345c08cbb2049a5e2b2f3efafe9b76892bc59ca92bab5a08e8f8f59",
+ "website/docs/validation/requiredprobes.md": "7d19805bc6940e8657904569defba36f8c383f6224e2caa11a8700de2ecb4452",
+ "website/docs/validation/seccomp.md": "9f6c5e8e2e5ce82b08ddcb2f61370bc365a5c81f93eee4e8ef20bfbec02eb899",
+ "website/docs/validation/seccompv2.md": "7d9774cde8b6d1889a46a6c621c1fa9f8f173fd30849327904ac842f61162020",
+ "website/docs/validation/selinux.md": "d172e884ce97f2510a849e7b83e2e40b509ced881270f4fae14b03727931f13e",
+ "website/docs/validation/storageclass.md": "7a669ddad1d8c159374bdb95784a0e96854a43fd7d8fa874c4ec8151db737b09",
+ "website/docs/validation/uniqueingresshost.md": "ffd2a3ccd18bab9a54300dfbb758173c6af8625c69b0c1ca3936ecfd8f56160c",
+ "website/docs/validation/uniqueserviceselector.md": "f9482a0024d3f30e0edec9abcd74eee98ac24be40629beab02450ea5d60cb839",
+ "website/docs/validation/users.md": "e1c425b45210353d105c3e4e5fd8403df2c253ea20f9c39c3a8778391be6a55d",
+ "website/docs/validation/verifydeprecatedapi.md": "bd13fcffafb7d66be12847b3217f5a7b8d04b45001c67678ba606067b98d3b31",
+ "website/docs/validation/volumes.md": "edad959d0c7aa4ac5d6ad941b8a908353d3748b04a4d852ea1da6952fbc62f03",
+ "website/docusaurus.config.js": "842dbd439413ea00af0aa061f5f4d1aea562b8ab16e97f6fa801d10f73117713",
+ "website/package.json": "51c292ce28139a1988370072edce3459dab8f5f7a3312cecde97b50c7e8a1212",
+ "website/sidebars.js": "b27a6b5d1147d8c4fadf78c7bae541d6032ca8978ed2ae2fa1a286c169c5a9b6",
+ "website/src/css/custom.css": "c4f31ccdf4bfaece8726a2064f88a4e1fdf64c130d2a7a0c0827f59a2ee8aab3",
+ "website/src/pages/index.module.css": "89ec29a5b3d2d9a2ea8b9f7e18ea656000061bed6378af2f5bc44e46b4cb3209",
+ "website/static/.nojekyll": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "website/static/img/favicon.ico": "cd4f0fb4e1bc85d257a819c4ce3ea2f6652575a71ee313c41c7c993412daa5fa",
+ "website/static/img/logo.svg": "43aa33e40abefbd5656c7ce08fb658ca0588e56c1a65fc69b87e11ff367e8b31",
+ "website/yarn.lock": "734b35319242f97f3732c332bf89748f131ca5e1aaf4d8eea2f99112a11aeea3"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2289f351b744bed2d11efb8f25203dc48947056c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/update.yaml
@@ -0,0 +1,26 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+ spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["SYS_ADMIN"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..430218bf68ec83d0b2b9b96857beede5ad4dfbf1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/constraint.yaml
@@ -0,0 +1,12 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPCapabilities
+metadata:
+ name: psp-capabilities-restricted
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedCapabilities: ["NET_BIND_SERVICE"]
+ requiredDropCapabilities: ["ALL"]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f7bafdb4d25f8ae85d3f9f4102e2d69a8511576b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/disallowed_ephemeral.yaml
@@ -0,0 +1,21 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ ephemeralContainers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["SYS_ADMIN"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..99bcc6358ac097c32cee87390c9313946cea58d2
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_allowed.yaml
@@ -0,0 +1,22 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["NET_BIND_SERVICE"]
+ drop: ["ALL"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e1a41e415a4509569fa12c5d516bece28f062649
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_disallowed.yaml
@@ -0,0 +1,21 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["SYS_ADMIN"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_drop_all.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_drop_all.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5c5e9c12a73d85bce70a31839ae6964d414dfa07
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_drop_all.yaml
@@ -0,0 +1,21 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-drop-all
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ drop: ["ALL", "all"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2289f351b744bed2d11efb8f25203dc48947056c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/update.yaml
@@ -0,0 +1,26 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+ spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["SYS_ADMIN"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..14571634f5d4ff90e1008119cc466a04ad695621
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/suite.yaml
@@ -0,0 +1,45 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: capabilities
+tests:
+ - name: capabilities-baseline
+ template: template.yaml
+ constraint: samples/psp-capabilities-baseline/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-capabilities-baseline/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-capabilities-baseline/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-capabilities-baseline/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-capabilities-baseline/update.yaml
+ assertions:
+ - violations: no
+ - name: capabilities-restricted
+ template: template.yaml
+ constraint: samples/psp-capabilities-restricted/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-capabilities-restricted/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-capabilities-restricted/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-capabilities-restricted/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-capabilities-restricted/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..048bbdcbced18eb3e694c43a75f5808aa141cdd6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/capabilities/template.yaml
@@ -0,0 +1,220 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspcapabilities
+ annotations:
+ metadata.gatekeeper.sh/title: "Capabilities"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls Linux capabilities on containers. Corresponds to the
+ `allowedCapabilities` and `requiredDropCapabilities` fields in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPCapabilities
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls Linux capabilities on containers. Corresponds to the
+ `allowedCapabilities` and `requiredDropCapabilities` fields in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedCapabilities:
+ type: array
+ description: "A list of Linux capabilities that can be added to a container."
+ items:
+ type: string
+ requiredDropCapabilities:
+ type: array
+ description: "A list of Linux capabilities that are required to be dropped from a container."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: allowedCapabilities
+ expression: 'has(variables.params.allowedCapabilities) ? variables.params.allowedCapabilities : []'
+ - name: allCapabilitiesAllowed
+ expression: '"*" in variables.allowedCapabilities'
+ - name: disallowedCapabilitiesByContainer
+ expression: |
+ variables.allContainers.map(container, !(container.image in variables.exemptImages) &&
+ !variables.allCapabilitiesAllowed && has(container.securityContext) && has(container.securityContext.capabilities) && has(container.securityContext.capabilities.add) &&
+ container.securityContext.capabilities.add.exists(capability, !(capability in variables.allowedCapabilities)),
+ [container.name, dyn(container.securityContext.capabilities.add.filter(capability, !(capability in variables.allowedCapabilities)).join(", "))]
+ )
+ - name: requiredDropCapabilities
+ expression: 'has(variables.params.requiredDropCapabilities) ? variables.params.requiredDropCapabilities : []'
+ - name: missingDropCapabilitiesByContainer
+ expression: |
+ variables.allContainers.map(container, !(container.image in variables.exemptImages) &&
+ size(variables.requiredDropCapabilities) > 0 && (
+ !has(container.securityContext) || !has(container.securityContext.capabilities) || !has(container.securityContext.capabilities.drop) || (
+ !(container.securityContext.capabilities.drop.exists(capability, capability.lowerAscii() == "all")) &&
+ variables.requiredDropCapabilities.exists(capability, !(capability in container.securityContext.capabilities.drop))
+ )
+ ),
+ [container.name,
+ !has(container.securityContext) ? variables.requiredDropCapabilities :
+ !has(container.securityContext.capabilities) ? variables.requiredDropCapabilities :
+ !has(container.securityContext.capabilities.drop) ? variables.requiredDropCapabilities :
+ variables.requiredDropCapabilities.filter(capability, !(capability in container.securityContext.capabilities.drop))
+ ]
+ )
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.disallowedCapabilitiesByContainer) == 0'
+ messageExpression: |
+ "containers have disallowed capabilities: " + variables.disallowedCapabilitiesByContainer.map(pair, "{container: " + pair[0] + ", capabilities: [" + pair[1] + "]}").join(", ")
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.missingDropCapabilitiesByContainer) == 0'
+ messageExpression: |
+ "containers are not dropping all required capabilities: " + variables.missingDropCapabilitiesByContainer.map(pair, "{container: " + pair[0] + ", capabilities: [" + pair[1].join(", ") + "]}").join(", ")
+ - engine: Rego
+ source:
+ rego: |
+ package capabilities
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ # spec.containers.securityContext.capabilities field is immutable.
+ not is_update(input.review)
+
+ container := input.review.object.spec.containers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.containers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.initContainers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("init container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.initContainers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("init container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("ephemeral container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("ephemeral container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+ }
+
+ has_disallowed_capabilities(container) {
+ allowed := {c | c := lower(input.parameters.allowedCapabilities[_])}
+ not allowed["*"]
+ capabilities := {c | c := lower(container.securityContext.capabilities.add[_])}
+
+ count(capabilities - allowed) > 0
+ }
+
+ missing_drop_capabilities(container) {
+ must_drop := {c | c := lower(input.parameters.requiredDropCapabilities[_])}
+ all := {"all"}
+ dropped := {c | c := lower(container.securityContext.capabilities.drop[_])}
+
+ count(must_drop - dropped) > 0
+ count(all - dropped) > 0
+ }
+
+ get_default(obj, param, _) := obj[param]
+
+ get_default(obj, param, _default) := _default {
+ not obj[param]
+ not obj[param] == false
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8fc65f2def5d664f611c0bb8b85980932ddac22c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/constraint.yaml
@@ -0,0 +1,13 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPFlexVolumes
+metadata:
+ name: psp-flexvolume-drivers
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedFlexVolumes: #[]
+ - driver: "example/lvm"
+ - driver: "example/cifs"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..22b2e949cc00f86a434ff8f13dac3608ac3df955
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_allowed.yaml
@@ -0,0 +1,18 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-flexvolume-driver-allowed
+ labels:
+ app: nginx-flexvolume-driver
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /test
+ name: test-volume
+ readOnly: true
+ volumes:
+ - name: test-volume
+ flexVolume:
+ driver: "example/lvm"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9a8f27d67efafefdceffc609568d0755f91d3032
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_disallowed.yaml
@@ -0,0 +1,18 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-flexvolume-driver-disallowed
+ labels:
+ app: nginx-flexvolume-driver
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /test
+ name: test-volume
+ readOnly: true
+ volumes:
+ - name: test-volume
+ flexVolume:
+ driver: "example/testdriver" #"example/lvm"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9358c6c5c4eca9b9e04cb93b534fb51299633c2d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/update.yaml
@@ -0,0 +1,23 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-flexvolume-driver-disallowed
+ labels:
+ app: nginx-flexvolume-driver
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /test
+ name: test-volume
+ readOnly: true
+ volumes:
+ - name: test-volume
+ flexVolume:
+ driver: "example/testdriver" #"example/lvm"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fe69966bda4a3e52bf79bba20aedbd5877c82c2d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/suite.yaml
@@ -0,0 +1,21 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: flexvolume-drivers
+tests:
+ - name: flexvolume-drivers
+ template: template.yaml
+ constraint: samples/psp-flexvolume-drivers/constraint.yaml
+ cases:
+ - name: example-allowed
+ object: samples/psp-flexvolume-drivers/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: example-disallowed
+ object: samples/psp-flexvolume-drivers/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-flexvolume-drivers/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c059681c92375b77c7a93c536f8a219984798630
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/flexvolume-drivers/template.yaml
@@ -0,0 +1,72 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspflexvolumes
+ annotations:
+ metadata.gatekeeper.sh/title: "FlexVolumes"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Controls the allowlist of FlexVolume drivers. Corresponds to the
+ `allowedFlexVolumes` field in PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#flexvolume-drivers
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPFlexVolumes
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the allowlist of FlexVolume drivers. Corresponds to the
+ `allowedFlexVolumes` field in PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#flexvolume-drivers
+ properties:
+ allowedFlexVolumes:
+ type: array
+ description: "An array of AllowedFlexVolume objects."
+ items:
+ type: object
+ properties:
+ driver:
+ description: "The name of the FlexVolume driver."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spspflexvolumes
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume := input_flexvolumes[_]
+ not input_flexvolumes_allowed(volume)
+ msg := sprintf("FlexVolume %v is not allowed, pod: %v. Allowed drivers: %v", [volume, input.review.object.metadata.name, input.parameters.allowedFlexVolumes])
+ }
+
+ input_flexvolumes_allowed(volume) {
+ input.parameters.allowedFlexVolumes[_].driver == volume.flexVolume.driver
+ }
+
+ input_flexvolumes[v] {
+ v := input.review.object.spec.volumes[_]
+ has_field(v, "flexVolume")
+ }
+
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/README.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..d8a40937d0847462c6a3a68de8ffb96ac23c7f15
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/README.md
@@ -0,0 +1,36 @@
+# Forbidden Sysctls security context policy
+
+The forbidden sysctls constraint allows one to limit the set of kernel parameters that can be modified by pods. This is accomplished by specifying a combination of allowed and forbidden sysctls using either of two parameters: `allowedSysctls` and `forbiddenSysctls`.
+
+## Parameters
+
+`allowedSysctls`: A list of explicitly allowed sysctls. Any sysctl not in this list will be considered forbidden. '*' and trailing wildcards are supported. If unspecified, no limitations are made by this parameter.
+
+`forbiddenSysctls`: A list of explicitly denied sysctls. Any sysctl in this list will be considered forbidden. '*' and trailing wildcards are supported. If unspecified, no limitations are made by this parameter.
+
+## Examples
+
+```yaml
+parameters:
+ allowedSysctls: ['*']
+ forbiddenSysctls:
+ - kernel.msg*
+ - net.core.somaxconn
+```
+
+```yaml
+parameters:
+ allowedSysctls:
+ - kernel.shm_rmid_forced
+ - net.ipv4.ip_local_port_range
+ - net.ipv4.tcp_syncookies
+ - net.ipv4.ping_group_range
+ forbiddenSysctls: []
+```
+
+*Note*: `forbiddenSysctls` takes precedence, such that an explicitly forbidden sysctl is still forbidden even if it appears in `allowedSysctls` as well. However in practice, such overlap between the rules should be avoided.
+
+## References
+
+* [Using sysctls in a Kubernetes Cluster](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/)
+* [Kubernetes API Reference - Sysctl](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#sysctl-v1-core)
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e1d151d4f4c8fa7a3cd05402d499bf1c30acee70
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint.yaml
@@ -0,0 +1,21 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedSysctls:
+ - kernel.shm_rmid_forced
+ - net.ipv4.ip_local_port_range
+ - net.ipv4.ip_unprivileged_port_start
+ - net.ipv4.tcp_syncookies
+ - net.ipv4.ping_group_range
+ - net.ipv4.ip_local_reserved_ports
+ - net.ipv4.tcp_keepalive_time
+ - net.ipv4.tcp_fin_timeout
+ - net.ipv4.tcp_keepalive_intvl
+ - net.ipv4.tcp_keepalive_probes
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint2.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4306dff415ade5bd3d9c7abcfdab3ef3eba424e7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint2.yaml
@@ -0,0 +1,14 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ forbiddenSysctls:
+ - "*" # * forbid all sysctls
+ allowedSysctls:
+ - "*" # allows all sysctls. allowedSysctls is optional.
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint3.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint3.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..87c4e405a98cb3084216afaf1da536fd1d8fad8a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint3.yaml
@@ -0,0 +1,15 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ forbiddenSysctls:
+ # - "*" # * may be used to forbid all sysctls
+ - kernel.*
+ allowedSysctls:
+ - "net.*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint4.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint4.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2a9c0dcb5f9ef6ad0ca5b6912238041c252ca025
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint4.yaml
@@ -0,0 +1,14 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ forbiddenSysctls:
+ # - "*" # * may be used to forbid all sysctls
+ - kernel.*
+ allowedSysctls: [] # empty allowedSysctls means all sysctls are forbidden
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint5.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint5.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..13e8677d8c316214aca39268baf0d3781002954e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint5.yaml
@@ -0,0 +1,14 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ forbiddenSysctls:
+ # - "*" # * may be used to forbid all sysctls
+ - kernel.*
+ # unspecified allowedSysctls will not place any restrictions
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3d8fde5ec0ec6defa5869b597edd944a498b3997
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-allowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: net.ipv4.ip_local_port_range
+ value: "1024 65535"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..34ab8f344e38d94b86dfe297f802439ab97d4a34
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-disallowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: kernel.msgmax
+ value: "65536"
+ - name: net.core.somaxconn
+ value: "1024"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e4e732be999e2e3d468bde88b07510a68e0db764
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/update.yaml
@@ -0,0 +1,21 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-forbidden-sysctls-disallowed
+ labels:
+ app: nginx-forbidden-sysctls
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: kernel.msgmax
+ value: "65536"
+ - name: net.core.somaxconn
+ value: "1024"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7ed8a1d02aabcf3896fbd73cd1bff0576bf9bbfd
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/suite.yaml
@@ -0,0 +1,85 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: forbidden-sysctls
+tests:
+ - name: forbidden-sysctls
+ template: template.yaml
+ constraint: samples/psp-forbidden-sysctls/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-forbidden-sysctls/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-forbidden-sysctls/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: update
+ object: samples/psp-forbidden-sysctls/update.yaml
+ assertions:
+ - violations: no
+ - name: forbidden-sysctls-wildcard
+ template: template.yaml
+ constraint: samples/psp-forbidden-sysctls/constraint2.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-forbidden-sysctls/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed
+ object: samples/psp-forbidden-sysctls/example_allowed.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-forbidden-sysctls/update.yaml
+ assertions:
+ - violations: no
+ - name: forbidden-sysctls3
+ template: template.yaml
+ constraint: samples/psp-forbidden-sysctls/constraint3.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-forbidden-sysctls/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-forbidden-sysctls/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: update
+ object: samples/psp-forbidden-sysctls/update.yaml
+ assertions:
+ - violations: no
+ - name: forbidden-sysctls4-empty-allowedSysctls
+ template: template.yaml
+ constraint: samples/psp-forbidden-sysctls/constraint4.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-forbidden-sysctls/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed
+ object: samples/psp-forbidden-sysctls/example_allowed.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-forbidden-sysctls/update.yaml
+ assertions:
+ - violations: no
+ - name: forbidden-sysctls5-unspecified-allowedSysctls
+ template: template.yaml
+ constraint: samples/psp-forbidden-sysctls/constraint5.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-forbidden-sysctls/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-forbidden-sysctls/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: update
+ object: samples/psp-forbidden-sysctls/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c7d6127250c2ca4f3109ccf42bc5361f327dd7e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/forbidden-sysctls/template.yaml
@@ -0,0 +1,151 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspforbiddensysctls
+ annotations:
+ metadata.gatekeeper.sh/title: "Forbidden Sysctls"
+ metadata.gatekeeper.sh/version: 1.2.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the `sysctl` profile used by containers. Corresponds to the
+ `allowedUnsafeSysctls` and `forbiddenSysctls` fields in a PodSecurityPolicy.
+ When specified, any sysctl not in the `allowedSysctls` parameter is considered to be forbidden.
+ The `forbiddenSysctls` parameter takes precedence over the `allowedSysctls` parameter.
+ For more information, see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPForbiddenSysctls
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the `sysctl` profile used by containers. Corresponds to the
+ `allowedUnsafeSysctls` and `forbiddenSysctls` fields in a PodSecurityPolicy.
+ When specified, any sysctl not in the `allowedSysctls` parameter is considered to be forbidden.
+ The `forbiddenSysctls` parameter takes precedence over the `allowedSysctls` parameter.
+ For more information, see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
+ properties:
+ allowedSysctls:
+ type: array
+ description: "An allow-list of sysctls. `*` allows all sysctls not listed in the `forbiddenSysctls` parameter."
+ items:
+ type: string
+ forbiddenSysctls:
+ type: array
+ description: "A disallow-list of sysctls. `*` forbids all sysctls."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ - name: sysctls
+ expression: '!has(variables.anyObject.spec.securityContext) ? [] : !has(variables.anyObject.spec.securityContext.sysctls) ? [] : variables.anyObject.spec.securityContext.sysctls'
+ - name: allowedSysctlPrefixes
+ expression: |
+ !has(variables.params.allowedSysctls) ? [] : variables.params.allowedSysctls.filter(sysctl, sysctl.endsWith("*")).map(sysctl, string(sysctl).replace("*", ""))
+ - name: allowedSysctlExplicit
+ expression: |
+ !has(variables.params.allowedSysctls) ? [] :
+ variables.params.allowedSysctls.filter(sysctl, !sysctl.endsWith("*"))
+ - name: forbiddenSysctlPrefixes
+ expression: |
+ !has(variables.params.forbiddenSysctls) ? [] : variables.params.forbiddenSysctls.filter(sysctl, sysctl.endsWith("*")).map(sysctl, string(sysctl).replace("*", ""))
+ - name: forbiddenSysctlExplicit
+ expression: |
+ !has(variables.params.forbiddenSysctls) ? [] :
+ variables.params.forbiddenSysctls.filter(sysctl, !sysctl.endsWith("*"))
+ - name: allowedSysctlsString
+ expression: |
+ !has(variables.params.allowedSysctls) ? "unspecified" : size(variables.params.allowedSysctls) == 0 ? "empty" : variables.params.allowedSysctls.join(", ")
+ - name: violatingSysctls
+ expression: |
+ (variables.sysctls.filter(sysctl,
+ (sysctl.name in variables.forbiddenSysctlExplicit ||
+ variables.forbiddenSysctlPrefixes.exists(fsp, string(sysctl.name).startsWith(fsp))) ||
+ (has(variables.params.allowedSysctls) &&
+ !(sysctl.name in variables.allowedSysctlExplicit) &&
+ !variables.allowedSysctlPrefixes.exists(asp, string(sysctl.name).startsWith(asp)))))
+ validations:
+ - expression: 'variables.isUpdate || size(variables.violatingSysctls) == 0'
+ messageExpression: '"The sysctl is not allowed for pod: " + variables.anyObject.metadata.name + ", forbidden: " + variables.params.forbiddenSysctls.join(", ") + ", allowed: " + variables.allowedSysctlsString'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspforbiddensysctls
+
+ import data.lib.exclude_update.is_update
+
+ # Block if forbidden
+ violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.sysctls field is immutable.
+ not is_update(input.review)
+
+ sysctl := input.review.object.spec.securityContext.sysctls[_].name
+ forbidden_sysctl(sysctl)
+ msg := sprintf("The sysctl %v is not allowed, pod: %v. Forbidden sysctls: %v", [sysctl, input.review.object.metadata.name, input.parameters.forbiddenSysctls])
+ }
+
+ # Block if not explicitly allowed
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+ sysctl := input.review.object.spec.securityContext.sysctls[_].name
+ not allowed_sysctl(sysctl)
+ allowmsg := allowed_sysctl_string()
+ msg := sprintf("The sysctl %v is not explicitly allowed, pod: %v. Allowed sysctls: %v", [sysctl, input.review.object.metadata.name, allowmsg])
+ }
+
+ # * may be used to forbid all sysctls
+ forbidden_sysctl(_) {
+ input.parameters.forbiddenSysctls[_] == "*"
+ }
+
+ forbidden_sysctl(sysctl) {
+ input.parameters.forbiddenSysctls[_] == sysctl
+ }
+
+ forbidden_sysctl(sysctl) {
+ forbidden := input.parameters.forbiddenSysctls[_]
+ endswith(forbidden, "*")
+ startswith(sysctl, trim_suffix(forbidden, "*"))
+ }
+
+ # * may be used to allow all sysctls
+ allowed_sysctl(_) {
+ input.parameters.allowedSysctls[_] == "*"
+ }
+
+ allowed_sysctl(sysctl) {
+ input.parameters.allowedSysctls[_] == sysctl
+ }
+
+ allowed_sysctl(sysctl) {
+ allowed := input.parameters.allowedSysctls[_]
+ endswith(allowed, "*")
+ startswith(sysctl, trim_suffix(allowed, "*"))
+ }
+
+ allowed_sysctl(_) {
+ not input.parameters.allowedSysctls
+ }
+ allowed_sysctl_string() = out {
+ not input.parameters.allowedSysctls
+ out = "unspecified"
+ }
+ allowed_sysctl_string() = out {
+ out = input.parameters.allowedSysctls
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/README.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..b70d94d454af31a1f05e19fce86eea5f0671402d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/README.md
@@ -0,0 +1,7 @@
+# Deprecated
+
+**This Policy is deprecated**
+
+Please use the FSGroup settings on the users policy to enforce FSGroup Settings.
+
+[Users Policy](../users)
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4eb14fe3c28c24fb79ed90e50128ba0e9575d7d3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint.yaml
@@ -0,0 +1,14 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPFSGroup
+metadata:
+ name: psp-fsgroup
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ rule: "MayRunAs" #"MustRunAs" #"MayRunAs", "RunAsAny"
+ ranges:
+ - min: 1
+ max: 1000
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint2.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..64739ab9460193cdfb2c4d1ce1800fca7494dbb2
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint2.yaml
@@ -0,0 +1,13 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPFSGroup
+metadata:
+ name: psp-fsgroup
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ ranges:
+ - min: 1
+ max: 1000
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint3.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint3.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b0176f83264637a4597d9985d6e21f7277e26686
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint3.yaml
@@ -0,0 +1,12 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPFSGroup
+metadata:
+ name: psp-fsgroup
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ rule: "MustRunAs" #"MayRunAs", "RunAsAny"
+ ranges: [] # empty ranges should result in violation
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c5f697269f563b0c3cc75e4384775163da4f171f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_allowed.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: fsgroup-allowed
+spec:
+ securityContext:
+ fsGroup: 500 # directory will have group ID 500
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: ["sh", "-c", "sleep 1h"]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9caf7c0a3148ff35335cb70926fc8348ad2926ea
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_disallowed.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: fsgroup-disallowed
+spec:
+ securityContext:
+ fsGroup: 2000 # directory will have group ID 2000
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: [ "sh", "-c", "sleep 1h" ]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c0de7258a10aa87f740fb1de2a61a6c441799115
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/samples/psp-fsgroup/update.yaml
@@ -0,0 +1,22 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: fsgroup-disallowed
+ spec:
+ securityContext:
+ fsGroup: 2000 # directory will have group ID 2000
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: [ "sh", "-c", "sleep 1h" ]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9f75c7138f674c04ddb66f9bf7dd762ad35faa3f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/suite.yaml
@@ -0,0 +1,53 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: fsgroup
+tests:
+ - name: fsgroup
+ template: template.yaml
+ constraint: samples/psp-fsgroup/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-fsgroup/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-fsgroup/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: update
+ object: samples/psp-fsgroup/update.yaml
+ assertions:
+ - violations: no
+ - name: fsgroup-no-rules
+ template: template.yaml
+ constraint: samples/psp-fsgroup/constraint2.yaml
+ cases:
+ - name: example-allowed
+ object: samples/psp-fsgroup/example_disallowed.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed
+ object: samples/psp-fsgroup/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: update
+ object: samples/psp-fsgroup/update.yaml
+ assertions:
+ - violations: no
+ - name: fsgroup-empty-ranges
+ template: template.yaml
+ constraint: samples/psp-fsgroup/constraint3.yaml
+ cases:
+ - name: example-disallowed-2000
+ object: samples/psp-fsgroup/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed-500
+ object: samples/psp-fsgroup/example_allowed.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-fsgroup/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48d58644a96434bc550fb163a2d6ae260f6d8bbf
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/fsgroup/template.yaml
@@ -0,0 +1,127 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspfsgroup
+ annotations:
+ metadata.gatekeeper.sh/title: "FS Group"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: >-
+ Controls allocating an FSGroup that owns the Pod's volumes. Corresponds
+ to the `fsGroup` field in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPFSGroup
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls allocating an FSGroup that owns the Pod's volumes. Corresponds
+ to the `fsGroup` field in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ rule:
+ description: "An FSGroup rule name."
+ enum:
+ - MayRunAs
+ - MustRunAs
+ - RunAsAny
+ type: string
+ ranges:
+ type: array
+ description: "GID ranges affected by the rule."
+ items:
+ type: object
+ properties:
+ min:
+ description: "The minimum GID in the range, inclusive."
+ type: integer
+ max:
+ description: "The maximum GID in the range, inclusive."
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ - name: fsGroup
+ expression: '!has(variables.anyObject.spec.securityContext) ? "" : !has(variables.anyObject.spec.securityContext.fsGroup) ? "" : variables.anyObject.spec.securityContext.fsGroup'
+ - name: ruleString
+ expression: |
+ !has(variables.params.rule) ? "unspecified" : string(variables.params.rule)
+ - name: rangesString
+ expression: |
+ !has(variables.params.ranges) ? "unspecified" : size(variables.params.ranges) == 0 ? "empty" : variables.params.ranges.map(r, string(r)).join(", ")
+ - name: input_fsGroup_allowed
+ expression: |
+ !has(variables.params.rule) ? true : variables.params.rule == "RunAsAny" ? true : variables.params.rule == "MayRunAs" && variables.fsGroup == "" ? true : (variables.params.rule == "MayRunAs" || variables.params.rule == "MustRunAs") && has(variables.params.ranges) && size(variables.params.ranges) > 0 ? variables.params.ranges.exists(range, range.min <= variables.fsGroup && range.max >= variables.fsGroup) : false
+ validations:
+ - expression: 'variables.isUpdate || variables.input_fsGroup_allowed'
+ messageExpression: '"The provided pod spec fsGroup is not allowed, pod: " + variables.anyObject.metadata.name + ". Allowed fsGroup rule: " + variables.ruleString + ", allowed fsGroup ranges: " + variables.rangesString'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspfsgroup
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.fsGroup field is immutable.
+ not is_update(input.review)
+ has_field(input.parameters, "rule")
+ spec := input.review.object.spec
+ not input_fsGroup_allowed(spec)
+ msg := sprintf("The provided pod spec fsGroup is not allowed, pod: %v. Allowed fsGroup: %v", [input.review.object.metadata.name, input.parameters])
+ }
+
+ input_fsGroup_allowed(_) {
+ # RunAsAny - No range is required. Allows any fsGroup ID to be specified.
+ input.parameters.rule == "RunAsAny"
+ }
+ input_fsGroup_allowed(spec) {
+ # MustRunAs - Validates pod spec fsgroup against all ranges
+ input.parameters.rule == "MustRunAs"
+ fg := spec.securityContext.fsGroup
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, fg)
+ }
+ input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ not has_field(spec, "securityContext")
+ }
+ input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ not spec.securityContext.fsGroup
+ }
+ input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ fg := spec.securityContext.fsGroup
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, fg)
+ }
+ value_within_range(range, value) {
+ range.min <= value
+ range.max >= value
+ }
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/no-host-paths/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/no-host-paths/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2e828a7e34cc4b8888931697d00a179708c02766
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/no-host-paths/constraint.yaml
@@ -0,0 +1,9 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostFilesystem
+metadata:
+ name: no-host-paths
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/no-host-paths/example_allowed_no_volumes.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/no-host-paths/example_allowed_no_volumes.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f7c59253f2cda35a0d0e496685e2b2bf8ccc9e56
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/no-host-paths/example_allowed_no_volumes.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-no-volumes
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7cbd7b824ea10da782da4d13cb70415f1cb02687
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/constraint.yaml
@@ -0,0 +1,13 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostFilesystem
+metadata:
+ name: psp-host-filesystem
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedHostPaths:
+ - readOnly: true
+ pathPrefix: "/foo"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d18cc85eb3cc269dee79c2c325095ef88abea5c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/disallowed_ephemeral.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-filesystem
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ readOnly: true
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /tmp # directory location on host
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..806101e8c5fe110ca44d0fd7af385fa22f7ff965
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_allowed.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-filesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ readOnly: true
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /foo/bar
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..51ecf14b52d625a77e528520f8e52e97eccdb161
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_disallowed.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-filesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ readOnly: true
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /tmp # directory location on host
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..68b28a536de2085853b8d6524d4d59977ea873b7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/update.yaml
@@ -0,0 +1,23 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-host-filesystem
+ labels:
+ app: nginx-host-filesystem-disallowed
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ readOnly: true
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /tmp # directory location on host
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7087a24e49f2f03cd44ac59338ad300297cee5ce
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/suite.yaml
@@ -0,0 +1,37 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: host-filesystem
+tests:
+ - name: host-filesystem
+ template: template.yaml
+ constraint: samples/psp-host-filesystem/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-host-filesystem/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-host-filesystem/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-host-filesystem/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-host-filesystem/update.yaml
+ assertions:
+ - violations: no
+ - name: no-host-paths
+ template: template.yaml
+ constraint: samples/no-host-paths/constraint.yaml
+ cases:
+ - name: previously-allowed-path-disallowed
+ object: samples/psp-host-filesystem/example_allowed.yaml
+ assertions:
+ - violations: yes
+ - name: no-volumes-is-allowed
+ object: samples/no-host-paths/example_allowed_no_volumes.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..64e89ecc6a2b15de6bf60d553683a3d11608e922
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-filesystem/template.yaml
@@ -0,0 +1,182 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostfilesystem
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Filesystem"
+ metadata.gatekeeper.sh/version: 1.1.2
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls usage of the host filesystem. Corresponds to the
+ `allowedHostPaths` field in a PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostFilesystem
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls usage of the host filesystem. Corresponds to the
+ `allowedHostPaths` field in a PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ allowedHostPaths:
+ type: array
+ description: "An array of hostpath objects, representing paths and read/write configuration."
+ items:
+ type: object
+ properties:
+ pathPrefix:
+ type: string
+ description: "The path prefix that the host volume must match."
+ readOnly:
+ type: boolean
+ description: "when set to true, any container volumeMounts matching the pathPrefix must include `readOnly: true`."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+ - name: allowedPaths
+ expression: |
+ !has(variables.params.allowedHostPaths) ? [] : variables.params.allowedHostPaths
+ - name: volumes
+ expression: |
+ !has(variables.anyObject.spec.volumes) ? [] : variables.anyObject.spec.volumes.filter(volume, has(volume.hostPath))
+ - name: badHostPaths
+ expression: |
+ variables.volumes.filter(volume,
+ (size(variables.allowedPaths) == 0) ||
+ !(variables.allowedPaths.exists(allowedPath,
+ volume.hostPath.path.startsWith(allowedPath.pathPrefix) && (
+ (!has(allowedPath.readOnly) || !(allowedPath.readOnly)) ||
+ (has(allowedPath.readOnly) && allowedPath.readOnly && !variables.allContainers.exists(c,
+ c.volumeMounts.exists(m, m.name == volume.name && (!has(m.readOnly) || !m.readOnly)))))))
+ ).map(volume, "{ hostPath: { path : " + volume.hostPath.path + " }, name: " + volume.name + "}").map(volume, "HostPath volume " + volume + " is not allowed, pod: " + object.metadata.name + ". Allowed path: " + variables.allowedPaths.map(path, path.pathPrefix + ", readOnly: " + (path.readOnly ? "true" : "false") + "}").join(", "))
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badHostPaths) == 0'
+ messageExpression: 'variables.badHostPaths.join("\n")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostfilesystem
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume := input_hostpath_volumes[_]
+ allowedPaths := get_allowed_paths(input)
+ input_hostpath_violation(allowedPaths, volume)
+ msg := sprintf("HostPath volume %v is not allowed, pod: %v. Allowed path: %v", [volume, input.review.object.metadata.name, allowedPaths])
+ }
+
+ input_hostpath_violation(allowedPaths, _) {
+ # An empty list means all host paths are blocked
+ allowedPaths == []
+ }
+ input_hostpath_violation(allowedPaths, volume) {
+ not input_hostpath_allowed(allowedPaths, volume)
+ }
+
+ get_allowed_paths(arg) = out {
+ not arg.parameters
+ out = []
+ }
+ get_allowed_paths(arg) = out {
+ not arg.parameters.allowedHostPaths
+ out = []
+ }
+ get_allowed_paths(arg) = out {
+ out = arg.parameters.allowedHostPaths
+ }
+
+ input_hostpath_allowed(allowedPaths, volume) {
+ allowedHostPath := allowedPaths[_]
+ path_matches(allowedHostPath.pathPrefix, volume.hostPath.path)
+ not allowedHostPath.readOnly == true
+ }
+
+ input_hostpath_allowed(allowedPaths, volume) {
+ allowedHostPath := allowedPaths[_]
+ path_matches(allowedHostPath.pathPrefix, volume.hostPath.path)
+ allowedHostPath.readOnly
+ not writeable_input_volume_mounts(volume.name)
+ }
+
+ writeable_input_volume_mounts(volume_name) {
+ container := input_containers[_]
+ mount := container.volumeMounts[_]
+ mount.name == volume_name
+ not mount.readOnly
+ }
+
+ # This allows "/foo", "/foo/", "/foo/bar" etc., but
+ # disallows "/fool", "/etc/foo" etc.
+ path_matches(prefix, path) {
+ a := path_array(prefix)
+ b := path_array(path)
+ prefix_matches(a, b)
+ }
+ path_array(p) = out {
+ p != "/"
+ out := split(trim(p, "/"), "/")
+ }
+ # This handles the special case for "/", since
+ # split(trim("/", "/"), "/") == [""]
+ path_array("/") = []
+
+ prefix_matches(a, b) {
+ count(a) <= count(b)
+ not any_not_equal_upto(a, b, count(a))
+ }
+
+ any_not_equal_upto(a, b, n) {
+ a[i] != b[i]
+ i < n
+ }
+
+ input_hostpath_volumes[v] {
+ v := input.review.object.spec.volumes[_]
+ has_field(v, "hostPath")
+ }
+
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5b3ebba3af3cf58326f9f9699832c958187acc52
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/constraint.yaml
@@ -0,0 +1,9 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostNamespace
+metadata:
+ name: psp-host-namespace
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f765f5b4dd71a47c22c1d8edc69fd15ba62b9e82
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_allowed.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-namespace-allowed
+ labels:
+ app: nginx-host-namespace
+spec:
+ hostPID: false
+ hostIPC: false
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b979e8134905c8b2856c2f385c98ae11e6d8cb79
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_disallowed.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-namespace-disallowed
+ labels:
+ app: nginx-host-namespace
+spec:
+ hostPID: true
+ hostIPC: true
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..29e17f13a79588dd5eb0eacf769cda6b22c965e1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/update.yaml
@@ -0,0 +1,17 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-host-namespace-disallowed
+ labels:
+ app: nginx-host-namespace
+ spec:
+ hostPID: true
+ hostIPC: true
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b8e853d5f82eaef0bcb44d61735918eb8adc23a3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/suite.yaml
@@ -0,0 +1,21 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: host-namespaces
+tests:
+ - name: host-namespace
+ template: template.yaml
+ constraint: samples/psp-host-namespace/constraint.yaml
+ cases:
+ - name: example-allowed
+ object: samples/psp-host-namespace/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: example-disallowed
+ object: samples/psp-host-namespace/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-host-namespace/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e798f66b9c46cde1718b764ff11bea3d197c30be
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-namespaces/template.yaml
@@ -0,0 +1,73 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostnamespace
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Namespace"
+ metadata.gatekeeper.sh/version: 1.1.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows sharing of host PID and IPC namespaces by pod containers.
+ Corresponds to the `hostPID` and `hostIPC` fields in a PodSecurityPolicy.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostNamespace
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows sharing of host PID and IPC namespaces by pod containers.
+ Corresponds to the `hostPID` and `hostIPC` fields in a PodSecurityPolicy.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: sharingHostIPC
+ expression: |
+ has(variables.anyObject.spec.hostIPC) ? variables.anyObject.spec.hostIPC : false
+ - name: sharingHostPID
+ expression: |
+ has(variables.anyObject.spec.hostPID) ? variables.anyObject.spec.hostPID : false
+ - name: sharingNamespace
+ expression: |
+ variables.sharingHostIPC || variables.sharingHostPID
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || !variables.sharingNamespace'
+ messageExpression: '"Sharing the host namespace is not allowed: " + variables.anyObject.metadata.name'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostnamespace
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.hostPID and spec.hostIPC fields are immutable.
+ not is_update(input.review)
+
+ input_share_hostnamespace(input.review.object)
+ msg := sprintf("Sharing the host namespace is not allowed: %v", [input.review.object.metadata.name])
+ }
+
+ input_share_hostnamespace(o) {
+ o.spec.hostPID
+ }
+ input_share_hostnamespace(o) {
+ o.spec.hostIPC
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/block_host_network/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/block_host_network/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b5f2e9f44a0fd5edbad02b586de7ab2ef5c296f0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/block_host_network/constraint.yaml
@@ -0,0 +1,11 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostNetworkingPorts
+metadata:
+ name: psp-host-network
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ hostNetwork: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c315f9e23706224395cb195fd7faa1c79eacb856
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/constraint.yaml
@@ -0,0 +1,15 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostNetworkingPorts
+metadata:
+ name: psp-host-network-ports
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ hostNetwork: false
+ min: 80
+ max: 9000
+ exemptImages:
+ - "safeimages.com/*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_exempted_container_host_network_enabled.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_exempted_container_host_network_enabled.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0056f9b1d356e4d03473eec89eb174e9ac999cc8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_exempted_container_host_network_enabled.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-hn-ok-bad-port
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: safeimages.com/nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9a496cd6062640e1765b322a0173c4b38a80f3fa
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b6176404c801611804a72e1a64ad2ddb30fea533
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/constraint.yaml
@@ -0,0 +1,15 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostNetworkingPorts
+metadata:
+ name: psp-host-network-ports
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ hostNetwork: true
+ min: 80
+ max: 9000
+ exemptImages:
+ - "safeimages.com/*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7a4fa311441a0ec30a4cd6a984a5ac09f00f8c92
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/disallowed_ephemeral.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_in_range.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_in_range.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2b4f7c92660b8a889ef3d995009f524852128686
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_in_range.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-allowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9000
+ hostPort: 80
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e009decf9069da65cdde451d5541cbc518db6a38
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports.yaml
@@ -0,0 +1,11 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8c0b0ef577e15523bc5eaf7678cb35b12c4d9de1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml
@@ -0,0 +1,9 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-network-false
+spec:
+ hostNetwork: false
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..91cd7f4cd7e708d2099ada8bbea7bf312e164f44
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml
@@ -0,0 +1,9 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-network-true
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_out_of_range_exempted.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_out_of_range_exempted.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e4d013447e4d7629688e7a13dd841b79e88ca682
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_out_of_range_exempted.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-exempted
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: safeimages.com/nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..231096430ee6f449b3d92d6bc5e2cb85aecf8809
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/update.yaml
@@ -0,0 +1,19 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+ spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8879f7fc99cc2d3c378ca1bc597962c70c57e888
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/suite.yaml
@@ -0,0 +1,69 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: host-network-ports
+tests:
+- name: port-range-with-host-network-allowed
+ template: template.yaml
+ constraint: samples/psp-host-network-ports/constraint.yaml
+ cases:
+ - name: out-of-range
+ object: samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-host-network-ports/example_allowed_in_range.yaml
+ assertions:
+ - violations: no
+ - name: out-of-range-ephemeral
+ object: samples/psp-host-network-ports/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-host-network-ports/update.yaml
+ assertions:
+ - violations: no
+ - name: no-ports-specified
+ object: samples/psp-host-network-ports/example_allowed_no_ports.yaml
+ assertions:
+ - violations: no
+ - name: port-violation-exempted
+ object: samples/psp-host-network-ports/example_allowed_out_of_range_exempted.yaml
+ assertions:
+ - violations: no
+- name: host-network-forbidden
+ template: template.yaml
+ constraint: samples/block_host_network/constraint.yaml
+ cases:
+ - name: hostnetwork-true
+ object: samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml
+ assertions:
+ - violations: yes
+ - name: hostnetwork-false
+ object: samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml
+ assertions:
+ - violations: no
+- name: port-range-with-host-network-forbidden
+ template: template.yaml
+ constraint: samples/port_range_block_host_network/constraint.yaml
+ cases:
+ - name: out-of-range-and-host-network-true
+ object: samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml
+ assertions:
+ - violations: yes
+ - name: exempted-image-still-violates-on-hostnetwork
+ object: samples/port_range_block_host_network/example_disallowed_exempted_container_host_network_enabled.yaml
+ assertions:
+ - violations: yes
+ - name: in-range-host-network-false
+ object: samples/psp-host-network-ports/example_allowed_in_range.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-host-network-ports/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-host-network-ports/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f45d1879be9db3ebbfe6ef8c5492a92a0014a793
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-network-ports/template.yaml
@@ -0,0 +1,167 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostnetworkingports
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Networking Ports"
+ metadata.gatekeeper.sh/version: 1.1.5
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls usage of host network namespace by pod containers. HostNetwork verification happens without exception for exemptImages. Specific
+ ports must be specified. Corresponds to the `hostNetwork` and
+ `hostPorts` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostNetworkingPorts
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls usage of host network namespace by pod containers. HostNetwork verification happens without exception for exemptImages. Specific
+ ports must be specified. Corresponds to the `hostNetwork` and
+ `hostPorts` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ hostNetwork:
+ description: "Determines if the policy allows the use of HostNetwork in the pod spec."
+ type: boolean
+ min:
+ description: "The start of the allowed port range, inclusive."
+ type: integer
+ max:
+ description: "The end of the allowed port range, inclusive."
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) && has(container.ports) &&
+ (
+ (container.ports.all(port, has(port.hostPort) && has(variables.params.min) && port.hostPort < variables.params.min)) ||
+ (container.ports.all(port, has(port.hostPort) && has(variables.params.max) && port.hostPort > variables.params.max))
+ )
+ )
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ - name: hostNetworkAllowed
+ expression: has(variables.params.hostNetwork) && variables.params.hostNetwork
+ - name: hostNetworkEnabled
+ expression: has(variables.anyObject.spec.hostNetwork) && variables.anyObject.spec.hostNetwork
+ - name: hostNetworkViolation
+ expression: variables.hostNetworkEnabled && !variables.hostNetworkAllowed
+ validations:
+ - expression: 'variables.isUpdate || size(variables.badContainers) == 0'
+ messageExpression: '"The specified hostNetwork and hostPort are not allowed, pod: " + variables.anyObject.metadata.name'
+ - expression: variables.isUpdate || !variables.hostNetworkViolation
+ messageExpression: '"The specified hostNetwork and hostPort are not allowed, pod: " + variables.anyObject.metadata.name'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostnetworkingports
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.hostNetwork field is immutable.
+ not is_update(input.review)
+
+ input_share_hostnetwork(input.review.object)
+ msg := sprintf("The specified hostNetwork and hostPort are not allowed, pod: %v. Allowed values: %v", [input.review.object.metadata.name, input.parameters])
+ }
+
+ input_share_hostnetwork(o) {
+ not input.parameters.hostNetwork
+ o.spec.hostNetwork
+ }
+
+ input_share_hostnetwork(_) {
+ hostPort := input_containers[_].ports[_].hostPort
+ hostPort < input.parameters.min
+ }
+
+ input_share_hostnetwork(_) {
+ hostPort := input_containers[_].ports[_].hostPort
+ hostPort > input.parameters.max
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ not is_exempt(c)
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ not is_exempt(c)
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(c)
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9d8a5d702e501727561311267955be23a65ddc32
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/constraint.yaml
@@ -0,0 +1,9 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostProbesLifecycle
+metadata:
+ name: psp-host-probes-lifecycle
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_lifecycle.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_lifecycle.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..67cb7a40de52c3e5bbdfc70312f6130049b08880
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_lifecycle.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-ephemeral-lifecycle-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ ephemeralContainers:
+ - name: debug
+ image: nginx
+ lifecycle:
+ postStart:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_probe.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_probe.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7990b9389e2cfa4635ec7369d0e84fa3f609f600
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_probe.yaml
@@ -0,0 +1,18 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-ephemeral-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ ephemeralContainers:
+ - name: debug
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_lifecycle.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_lifecycle.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3756d860a690ed54d4ae81b5714234c962b72976
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_lifecycle.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-init-lifecycle-host-disallowed
+ labels:
+ app: nginx
+spec:
+ initContainers:
+ - name: init
+ image: nginx
+ lifecycle:
+ postStart:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_probe.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_probe.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c045fe349f354b91d3b4f587f301132b14aaa65c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_probe.yaml
@@ -0,0 +1,18 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-init-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ initContainers:
+ - name: init
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_no_probes.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_no_probes.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b90345fa5b942efdd39f2b7338d96be62d7cffba
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_no_probes.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-no-probes-allowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_probe_no_host.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_probe_no_host.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f4b2c73ed4b12626a709aed71b2dc80f94a0ae1c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_probe_no_host.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-probe-no-host-allowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_poststart.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_poststart.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8a120dc8b6cac0974f8378f29b762e957a117e7a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_poststart.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-lifecycle-poststart-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ lifecycle:
+ postStart:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_prestop.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_prestop.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d49fcc9cb7a09c65d249c19fdf94175536805d08
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_prestop.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-lifecycle-prestop-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ lifecycle:
+ preStop:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_liveness_probe.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_liveness_probe.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..148cd5a41abd21ddd37f520daa73f92666f50ae3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_liveness_probe.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-liveness-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_readiness_probe.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_readiness_probe.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2ae0e90612608853cd0f1193cc80092e58faf02d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_readiness_probe.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readiness-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ readinessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_startup_probe.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_startup_probe.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8cb8a92c193f01d04e4f0814c6d38ff219cb9120
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_startup_probe.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-startup-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ startupProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_tcp_probe.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_tcp_probe.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..183cab49e1545c071586d0aa2b87cb757db9e62f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_tcp_probe.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-tcp-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ livenessProbe:
+ tcpSocket:
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0397a404abf8a7be1b709c003bde99377e67abbe
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/update.yaml
@@ -0,0 +1,20 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-probe-host-update
+ labels:
+ app: nginx
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e1eea1065813155d2b6e5ac98493836d1df3b3c7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/suite.yaml
@@ -0,0 +1,61 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: host-probes-lifecycle
+tests:
+- name: host-probes-lifecycle-disallowed
+ template: template.yaml
+ constraint: samples/psp-host-probes-lifecycle/constraint.yaml
+ cases:
+ - name: example-allowed-no-probes
+ object: samples/psp-host-probes-lifecycle/example_allowed_no_probes.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-probe-no-host
+ object: samples/psp-host-probes-lifecycle/example_allowed_probe_no_host.yaml
+ assertions:
+ - violations: no
+ - name: example-disallowed-liveness-probe
+ object: samples/psp-host-probes-lifecycle/example_disallowed_liveness_probe.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed-readiness-probe
+ object: samples/psp-host-probes-lifecycle/example_disallowed_readiness_probe.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed-startup-probe
+ object: samples/psp-host-probes-lifecycle/example_disallowed_startup_probe.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed-lifecycle-poststart
+ object: samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_poststart.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed-lifecycle-prestop
+ object: samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_prestop.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed-tcp-probe
+ object: samples/psp-host-probes-lifecycle/example_disallowed_tcp_probe.yaml
+ assertions:
+ - violations: yes
+ - name: disallowed-init-probe
+ object: samples/psp-host-probes-lifecycle/disallowed_init_probe.yaml
+ assertions:
+ - violations: yes
+ - name: disallowed-ephemeral-probe
+ object: samples/psp-host-probes-lifecycle/disallowed_ephemeral_probe.yaml
+ assertions:
+ - violations: yes
+ - name: disallowed-init-lifecycle
+ object: samples/psp-host-probes-lifecycle/disallowed_init_lifecycle.yaml
+ assertions:
+ - violations: yes
+ - name: disallowed-ephemeral-lifecycle
+ object: samples/psp-host-probes-lifecycle/disallowed_ephemeral_lifecycle.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-host-probes-lifecycle/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..00fd835e35b999073779f9f17614ea43357c2881
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-probes-lifecycle/template.yaml
@@ -0,0 +1,208 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostprobeslifecycle
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Probes and Lifecycle Hooks"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows specifying the host field in probes and lifecycle hooks.
+ The Baseline profile (v1.34+) requires that probes (livenessProbe,
+ readinessProbe, startupProbe) and lifecycle hooks (postStart, preStop)
+ must not specify a host field. This prevents containers from executing
+ network requests to the host node.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostProbesLifecycle
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows specifying the host field in probes and lifecycle hooks.
+ The Baseline profile (v1.34+) requires that probes (livenessProbe,
+ readinessProbe, startupProbe) and lifecycle hooks (postStart, preStop)
+ must not specify a host field. This prevents containers from executing
+ network requests to the host node.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+ - name: badProbeContainers
+ expression: |
+ variables.allContainers.filter(container,
+ !(container.image in variables.exemptImages) &&
+ (
+ (has(container.livenessProbe) && has(container.livenessProbe.httpGet) && has(container.livenessProbe.httpGet.host) && container.livenessProbe.httpGet.host != "") ||
+ (has(container.livenessProbe) && has(container.livenessProbe.tcpSocket) && has(container.livenessProbe.tcpSocket.host) && container.livenessProbe.tcpSocket.host != "") ||
+ (has(container.readinessProbe) && has(container.readinessProbe.httpGet) && has(container.readinessProbe.httpGet.host) && container.readinessProbe.httpGet.host != "") ||
+ (has(container.readinessProbe) && has(container.readinessProbe.tcpSocket) && has(container.readinessProbe.tcpSocket.host) && container.readinessProbe.tcpSocket.host != "") ||
+ (has(container.startupProbe) && has(container.startupProbe.httpGet) && has(container.startupProbe.httpGet.host) && container.startupProbe.httpGet.host != "") ||
+ (has(container.startupProbe) && has(container.startupProbe.tcpSocket) && has(container.startupProbe.tcpSocket.host) && container.startupProbe.tcpSocket.host != "")
+ )
+ ).map(container, "Container " + container.name + " has probe with host field set")
+ - name: badLifecycleContainers
+ expression: |
+ variables.allContainers.filter(container,
+ !(container.image in variables.exemptImages) &&
+ (
+ (has(container.lifecycle) && has(container.lifecycle.postStart) && has(container.lifecycle.postStart.httpGet) && has(container.lifecycle.postStart.httpGet.host) && container.lifecycle.postStart.httpGet.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.postStart) && has(container.lifecycle.postStart.tcpSocket) && has(container.lifecycle.postStart.tcpSocket.host) && container.lifecycle.postStart.tcpSocket.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.preStop) && has(container.lifecycle.preStop.httpGet) && has(container.lifecycle.preStop.httpGet.host) && container.lifecycle.preStop.httpGet.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.preStop) && has(container.lifecycle.preStop.tcpSocket) && has(container.lifecycle.preStop.tcpSocket.host) && container.lifecycle.preStop.tcpSocket.host != "")
+ )
+ ).map(container, "Container " + container.name + " has lifecycle hook with host field set")
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ validations:
+ - expression: variables.isUpdate || size(variables.badProbeContainers) == 0
+ messageExpression: 'variables.badProbeContainers.join(", ")'
+ - expression: variables.isUpdate || size(variables.badLifecycleContainers) == 0
+ messageExpression: 'variables.badLifecycleContainers.join(", ")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostprobeslifecycle
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ probe := get_probe(c)
+ probe.httpGet.host != ""
+ msg := sprintf("Container %v has probe with host field set: %v", [c.name, probe.httpGet.host])
+ }
+
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ probe := get_probe(c)
+ probe.tcpSocket.host != ""
+ msg := sprintf("Container %v has probe with host field set: %v", [c.name, probe.tcpSocket.host])
+ }
+
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ hook := get_lifecycle_hook(c)
+ hook.httpGet.host != ""
+ msg := sprintf("Container %v has lifecycle hook with host field set: %v", [c.name, hook.httpGet.host])
+ }
+
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ hook := get_lifecycle_hook(c)
+ hook.tcpSocket.host != ""
+ msg := sprintf("Container %v has lifecycle hook with host field set: %v", [c.name, hook.tcpSocket.host])
+ }
+
+ get_probe(c) = probe {
+ probe := c.livenessProbe
+ }
+
+ get_probe(c) = probe {
+ probe := c.readinessProbe
+ }
+
+ get_probe(c) = probe {
+ probe := c.startupProbe
+ }
+
+ get_lifecycle_hook(c) = hook {
+ hook := c.lifecycle.postStart
+ }
+
+ get_lifecycle_hook(c) = hook {
+ hook := c.lifecycle.preStop
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a6d8f00b0650de3b907e74c5147225a6aa261d26
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/constraint.yaml
@@ -0,0 +1,9 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostProcess
+metadata:
+ name: psp-host-process
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ea829ffe0d08e2000f57de7bf9a1c0b3872df47a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/disallowed_ephemeral.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ windowsOptions:
+ hostProcess: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/disallowed_init.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/disallowed_init.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8d71f9adaad3e631a211a2b996b16b03c9e09b12
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/disallowed_init.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ initContainers:
+ - name: nginx-init
+ image: nginx
+ securityContext:
+ windowsOptions:
+ hostProcess: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e9b3c53cc62542cc5014855bd9bdf9e553f6f1ef
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_allowed.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-allowed
+ labels:
+ app: nginx-host-process
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_container_level.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_container_level.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..67c7d96b426b284cf66ad39aa48487d2dc433b22
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_container_level.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ windowsOptions:
+ hostProcess: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_pod_level.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_pod_level.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..533259916b9ff537ce42ccb05f79c51a094af251
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_pod_level.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+spec:
+ securityContext:
+ windowsOptions:
+ hostProcess: true
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f244a763dae7674c1fb7deae0d28ea4d9d016526
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/samples/psp-host-process/update.yaml
@@ -0,0 +1,18 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ windowsOptions:
+ hostProcess: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..60194040fdf46ec021bd1c49162672d8c8d66449
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/suite.yaml
@@ -0,0 +1,33 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: host-process
+tests:
+- name: host-process-disallowed
+ template: template.yaml
+ constraint: samples/psp-host-process/constraint.yaml
+ cases:
+ - name: example-disallowed-pod-level
+ object: samples/psp-host-process/example_disallowed_pod_level.yaml
+ assertions:
+ - violations: yes
+ - name: example-disallowed-container-level
+ object: samples/psp-host-process/example_disallowed_container_level.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-host-process/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-host-process/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: disallowed-init
+ object: samples/psp-host-process/disallowed_init.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-host-process/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..dd0469ffa1eda5a47bf67139ade5a96fe91f34c4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/host-process/template.yaml
@@ -0,0 +1,156 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostprocess
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Process"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows HostProcess containers for Windows pods.
+ HostProcess containers enable privileged access on Windows nodes
+ and must be disallowed in Baseline and Restricted policies.
+ Corresponds to the windowsOptions.hostProcess field in a Pod's
+ securityContext or container securityContext.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostProcess
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows HostProcess containers for Windows pods.
+ HostProcess containers enable privileged access on Windows nodes
+ and must be disallowed in Baseline and Restricted policies.
+ Corresponds to the windowsOptions.hostProcess field in a Pod's
+ securityContext or container securityContext.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: podHostProcess
+ expression: |
+ has(variables.anyObject.spec.securityContext) &&
+ has(variables.anyObject.spec.securityContext.windowsOptions) &&
+ has(variables.anyObject.spec.securityContext.windowsOptions.hostProcess) &&
+ variables.anyObject.spec.securityContext.windowsOptions.hostProcess
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ has(container.securityContext) &&
+ has(container.securityContext.windowsOptions) &&
+ has(container.securityContext.windowsOptions.hostProcess) &&
+ container.securityContext.windowsOptions.hostProcess
+ ).map(container, "HostProcess container is not allowed: " + container.name + ", securityContext.windowsOptions.hostProcess: true")
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ validations:
+ - expression: 'variables.isUpdate || !variables.podHostProcess'
+ messageExpression: '"HostProcess is not allowed at pod level: " + variables.anyObject.metadata.name'
+ - expression: variables.isUpdate || size(variables.badContainers) == 0
+ messageExpression: 'variables.badContainers.join(", ")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostprocess
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.windowsOptions.hostProcess field is immutable.
+ not is_update(input.review)
+
+ # Check pod-level securityContext
+ input.review.object.spec.securityContext.windowsOptions.hostProcess == true
+ msg := sprintf("HostProcess is not allowed at pod level: %v", [input.review.object.metadata.name])
+ }
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.windowsOptions.hostProcess field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ c.securityContext.windowsOptions.hostProcess == true
+ msg := sprintf("HostProcess container is not allowed: %v, securityContext.windowsOptions.hostProcess: true", [c.name])
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..294e1c7bfa50bf22b2eb66111ad10ec2030bd89c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/kustomization.yaml
@@ -0,0 +1,22 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+resources:
+- allow-privilege-escalation
+- apparmor
+- capabilities
+- flexvolume-drivers
+- forbidden-sysctls
+- fsgroup
+- host-filesystem
+- host-namespaces
+- host-network-ports
+- host-probes-lifecycle
+- host-process
+- privileged-containers
+- proc-mount
+- read-only-root-filesystem
+- seccomp
+- selinux
+- users
+- volumes
+- seccompv2
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bf2fe519d6ff8181b67b06385da3203a0e34582f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/constraint.yaml
@@ -0,0 +1,13 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPPrivilegedContainer
+metadata:
+ name: psp-privileged-container
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ excludedNamespaces: ["kube-system"]
+ parameters:
+ exemptImages:
+ - "safeimages.com/*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e8c8b99453ab07993a68d8c9fef39b7dacc8d442
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/disallowed_ephemeral.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privileged-disallowed
+ labels:
+ app: nginx-privileged
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ privileged: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bb65a2c0e7e975598e22224a8813d9e83085a371
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privileged-allowed
+ labels:
+ app: nginx-privileged
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ privileged: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed_exempt.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed_exempt.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..782a6036a1e9e818b8e0f971b6c0bd3da8192781
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed_exempt.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privileged-allowed-exempt
+ labels:
+ app: nginx-privileged
+spec:
+ containers:
+ - name: nginx
+ image: safeimages.com/nginx
+ securityContext:
+ privileged: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..92353f5b3dc2db701b825abf9f99ee48062e5972
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_disallowed.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privileged-disallowed
+ labels:
+ app: nginx-privileged
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ privileged: true
+ initContainers:
+ - name: nginx-init
+ image: nginx
+ securityContext:
+ privileged: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..08f36044ca9c28b6ef4da177e5ebadcdb9b56fe2
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/update.yaml
@@ -0,0 +1,17 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-privileged-disallowed
+ labels:
+ app: nginx-privileged
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ privileged: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3dd4ff86393b54a58ee0edb86e919007dce00536
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/suite.yaml
@@ -0,0 +1,29 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: privileged-containers
+tests:
+- name: privileged-containers-disallowed
+ template: template.yaml
+ constraint: samples/psp-privileged-container/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-privileged-container/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-privileged-container/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-privileged-container/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-privileged-container/update.yaml
+ assertions:
+ - violations: no
+ - name: exempted-image
+ object: samples/psp-privileged-container/example_allowed_exempt.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..aa548b6b5bb25744756e08f780694ea740c3dafe
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/privileged-containers/template.yaml
@@ -0,0 +1,130 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspprivilegedcontainer
+ annotations:
+ metadata.gatekeeper.sh/title: "Privileged Container"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the ability of any container to enable privileged mode.
+ Corresponds to the `privileged` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPPrivilegedContainer
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the ability of any container to enable privileged mode.
+ Corresponds to the `privileged` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ (has(container.securityContext) && has(container.securityContext.privileged) && container.securityContext.privileged)
+ ).map(container, "Privileged container is not allowed: " + container.name +", securityContext.privileged: true")
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ validations:
+ - expression: variables.isUpdate || size(variables.badContainers) == 0
+ messageExpression: 'variables.badContainers.join(", ")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspprivileged
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.privileged field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ c.securityContext.privileged
+ msg := sprintf("Privileged container is not allowed: %v, securityContext: %v", [c.name, c.securityContext])
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/README.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..9e45b72071f32f9f1d15b9758e8b7e2b95328d0a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/README.md
@@ -0,0 +1,12 @@
+# ProcMount security context policy
+
+`procMount` denotes the type of proc mount to use for the containers. The default is `DefaultProcMount` which uses the container runtime defaults for readonly paths and masked paths.
+
+Types of proc mount are:
+
+- `DefaultProcMount` uses the container runtime default ProcType. Most container runtimes mask certain paths in /proc to avoid accidental security exposure of special devices or information.
+
+- `UnmaskedProcMount` bypasses the default masking behavior of the container runtime and ensures the newly created /proc the container stays in tact with no modifications.
+
+This requires the `ProcMountType` feature flag to be enabled. Set `--feature-gates=ProcMountType=true` in Kubernetes API Server to be able to use `Unmasked` procMount type (requires v1.12 and above). For more information, see
+https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/#options and https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/.
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..79ad221ab31deea16685231d675652585f4a10b3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/constraint.yaml
@@ -0,0 +1,13 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPProcMount
+metadata:
+ name: psp-proc-mount
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ procMount: Default
+ exemptImages:
+ - "safeimages.com/*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..74e034148d03627f1ae6060512e5f4ddfce5ba83
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/disallowed_ephemeral.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-disallowed
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ procMount: Unmasked #Default
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cc272bafb81969457edae9d0d833c81d3466fe8b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-allowed
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ procMount: Default
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_exempt_image.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_exempt_image.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c197740a4ec1dd0b559dc0e0e3950fee463892fb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_exempt_image.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-exempt-image
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ containers:
+ - name: nginx
+ image: safeimages.com/nginx
+ securityContext:
+ procMount: Unmasked #Default
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_missing.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_missing.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cf5f273865aa3dc688a05e2a617ccf0f5ee61311
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_missing.yaml
@@ -0,0 +1,18 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-disallowed
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ containers:
+ - name: no-proc-mount-value
+ image: nginx
+ securityContext:
+ procMount: null
+ - name: no-proc-mount
+ image: nginx
+ securityContext: {}
+ - name: no-context
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f0c3b030a8db824fa56e8aee3ae4ff76429c10b8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_disallowed.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-disallowed
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ procMount: Unmasked #Default
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..dc21b1142b2c3125990fe2b47ce49c3d900cf873
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/samples/psp-proc-mount/update.yaml
@@ -0,0 +1,17 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-proc-mount-disallowed
+ labels:
+ app: nginx-proc-mount
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ procMount: Unmasked #Default
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..066655c04c80ff87cf468a7ef2df23d9be5b76e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/suite.yaml
@@ -0,0 +1,33 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: proc-mount
+tests:
+- name: default-proc-mount-required
+ template: template.yaml
+ constraint: samples/psp-proc-mount/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-proc-mount/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-proc-mount/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-missing
+ object: samples/psp-proc-mount/example_allowed_missing.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-proc-mount/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-proc-mount/update.yaml
+ assertions:
+ - violations: no
+ - name: image-exempt-prefix-match
+ object: samples/psp-proc-mount/example_allowed_exempt_image.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e7f7384b56798448221ed012ef05e534714fdcc4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/proc-mount/template.yaml
@@ -0,0 +1,186 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspprocmount
+ annotations:
+ metadata.gatekeeper.sh/title: "Proc Mount"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the allowed `procMount` types for the container. Corresponds to
+ the `allowedProcMountTypes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#allowedprocmounttypes
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPProcMount
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the allowed `procMount` types for the container. Corresponds to
+ the `allowedProcMountTypes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#allowedprocmounttypes
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ procMount:
+ type: string
+ description: >-
+ Defines the strategy for the security exposure of certain paths
+ in `/proc` by the container runtime. Setting to `Default` uses
+ the runtime defaults, where `Unmasked` bypasses the default
+ behavior.
+ enum:
+ - Default
+ - Unmasked
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(
+ container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(
+ exemption,
+ string(container.image).startsWith(exemption)
+ )
+ ).map(container, container.image)
+ - name: allowedProcMount
+ expression: |
+ !has(variables.params) ? "default" :
+ !has(variables.params.procMount) ? "default" :
+ (variables.params.procMount.lowerAscii() == "default" || variables.params.procMount.lowerAscii() == "unmasked") ? variables.params.procMount.lowerAscii() : "default"
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ !(
+ (variables.allowedProcMount == "unmasked") ||
+ (variables.allowedProcMount == "default" && (!has(container.securityContext) || !has(container.securityContext.procMount) || container.securityContext.procMount == null || container.securityContext.procMount.lowerAscii() == "default"))
+ )
+ ).map(container, "ProcMount type is not allowed, container: " + container.name +". Allowed procMount types: " + variables.allowedProcMount)
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badContainers) == 0'
+ messageExpression: 'variables.badContainers.join("\n")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspprocmount
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.procMount field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ allowedProcMount := get_allowed_proc_mount(input)
+ not input_proc_mount_type_allowed(allowedProcMount, c)
+ msg := sprintf("ProcMount type is not allowed, container: %v. Allowed procMount types: %v", [c.name, allowedProcMount])
+ }
+
+ input_proc_mount_type_allowed(allowedProcMount, c) {
+ allowedProcMount == "default"
+ lower(c.securityContext.procMount) == "default"
+ }
+ input_proc_mount_type_allowed(allowedProcMount, _) {
+ allowedProcMount == "unmasked"
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ c.securityContext.procMount != null
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ c.securityContext.procMount != null
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ c.securityContext.procMount != null
+ }
+
+ get_allowed_proc_mount(arg) = out {
+ not arg.parameters
+ out = "default"
+ }
+ get_allowed_proc_mount(arg) = out {
+ not arg.parameters.procMount
+ out = "default"
+ }
+ get_allowed_proc_mount(arg) = out {
+ arg.parameters.procMount
+ not valid_proc_mount(arg.parameters.procMount)
+ out = "default"
+ }
+ get_allowed_proc_mount(arg) = out {
+ valid_proc_mount(arg.parameters.procMount)
+ out = lower(arg.parameters.procMount)
+ }
+
+ valid_proc_mount(str) {
+ lower(str) == "default"
+ }
+ valid_proc_mount(str) {
+ lower(str) == "unmasked"
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/full_wildcard/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/full_wildcard/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b5497e7611f438d1727eed9bfd8c0db19ea99363
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/full_wildcard/constraint.yaml
@@ -0,0 +1,12 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPReadOnlyRootFilesystem
+metadata:
+ name: psp-readonlyrootfilesystem
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - "*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d32dc33ab7292783f4eee16840d48f5e8ab3a610
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/constraint.yaml
@@ -0,0 +1,12 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPReadOnlyRootFilesystem
+metadata:
+ name: psp-readonlyrootfilesystem
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - "specialprogram"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d0ce2c4dc5f6e27106561a6de45fde33839741fe
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-disallowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ readOnlyRootFilesystem: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9c96bd18cdc0e6a15d51b672fd80d507e7c319c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-allowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ readOnlyRootFilesystem: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed_exempted.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed_exempted.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1f86b59aed4db20e9b371a6e2bbbc12b55fcd1f0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed_exempted.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-disallowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: specialprogram
+ image: specialprogram
+ securityContext:
+ readOnlyRootFilesystem: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7571bfd9fbe441a2b3d27dea453b96e711127f19
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_disallowed.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-disallowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ readOnlyRootFilesystem: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b31ae5e3a8412e84b6fd9baffbec73d76e655710
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/update.yaml
@@ -0,0 +1,17 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-readonlyrootfilesystem-disallowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ readOnlyRootFilesystem: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8bac93140907ba90d7702072818ee130daa32162
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/constraint.yaml
@@ -0,0 +1,12 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPReadOnlyRootFilesystem
+metadata:
+ name: psp-readonlyrootfilesystem
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - "safe-images.com/*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_allowed_safe_prefix.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_allowed_safe_prefix.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6c4c60d104dba90a7ff220760c74d8167b6e612f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_allowed_safe_prefix.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-allowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: "safe-images.com/nginx"
+ securityContext:
+ readOnlyRootFilesystem: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_disallowed_unsafe_prefix.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_disallowed_unsafe_prefix.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..563abb05f7b54dbcffd1f27d391ff9dd0430d118
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_disallowed_unsafe_prefix.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-allowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: "unsafe-images.com/nginx"
+ securityContext:
+ readOnlyRootFilesystem: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bb064b179fec31460be3aec5672e23d6ae22f6a1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/suite.yaml
@@ -0,0 +1,51 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: read-only-root-filesystem
+tests:
+- name: require-read-only-root-filesystem
+ template: template.yaml
+ constraint: samples/psp-readonlyrootfilesystem/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-readonlyrootfilesystem/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ message: "only read-only root filesystem container is allowed: nginx"
+ - name: example-allowed
+ object: samples/psp-readonlyrootfilesystem/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ message: "only read-only root filesystem container is allowed: nginx"
+ - name: update
+ object: samples/psp-readonlyrootfilesystem/update.yaml
+ assertions:
+ - violations: no
+ - name: exact-exemption
+ object: samples/psp-readonlyrootfilesystem/example_allowed_exempted.yaml
+ assertions:
+ - violations: no
+- name: full-wildcard
+ template: template.yaml
+ constraint: samples/full_wildcard/constraint.yaml
+ cases:
+ - name: allow-normally-disallowed
+ object: samples/psp-readonlyrootfilesystem/example_disallowed.yaml
+ assertions:
+ - violations: no
+- name: wildcard-prefix
+ template: template.yaml
+ constraint: samples/wildcard-prefix/constraint.yaml
+ cases:
+ - name: image-with-exempt-prefix-readOnlyRootFilesystem-not-required
+ object: samples/wildcard-prefix/example_allowed_safe_prefix.yaml
+ assertions:
+ - violations: no
+ - name: image-with-different-prefix-must-set-readOnlyRootFilesystem
+ object: samples/wildcard-prefix/example_disallowed_unsafe_prefix.yaml
+ assertions:
+ - violations: yes
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7f3a402e80070590deb34f77eed3401fb86630c4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/read-only-root-filesystem/template.yaml
@@ -0,0 +1,140 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspreadonlyrootfilesystem
+ annotations:
+ metadata.gatekeeper.sh/title: "Read Only Root Filesystem"
+ metadata.gatekeeper.sh/version: 1.1.1
+ description: >-
+ Requires the use of a read-only root file system by pod containers.
+ Corresponds to the `readOnlyRootFilesystem` field in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPReadOnlyRootFilesystem
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires the use of a read-only root file system by pod containers.
+ Corresponds to the `readOnlyRootFilesystem` field in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ (!has(container.securityContext) ||
+ !has(container.securityContext.readOnlyRootFilesystem) ||
+ container.securityContext.readOnlyRootFilesystem != true)
+ ).map(container, container.name)
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badContainers) == 0'
+ messageExpression: '"only read-only root filesystem container is allowed: " + variables.badContainers.join(", ")'
+
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspreadonlyrootfilesystem
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.readOnlyRootFilesystem field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ input_read_only_root_fs(c)
+ msg := sprintf("only read-only root filesystem container is allowed: %v", [c.name])
+ }
+
+ input_read_only_root_fs(c) {
+ not has_field(c, "securityContext")
+ }
+ input_read_only_root_fs(c) {
+ not c.securityContext.readOnlyRootFilesystem == true
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0d28be8d9160aad4965fa55c5880d40e10010792
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/constraint.yaml
@@ -0,0 +1,15 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPSeccomp
+metadata:
+ name: psp-seccomp
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - nginx-exempt
+ allowedProfiles:
+ - runtime/default
+ - localhost/profile.json
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1555d700e9161c24432f12d92fa5705cb722e737
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/disallowed_ephemeral.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ annotations:
+ container.seccomp.security.alpha.kubernetes.io/nginx: unconfined
+ labels:
+ app: nginx-seccomp
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2ff43d307a8406d08609715be2cf8dc92677f978
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed
+ annotations:
+ container.seccomp.security.alpha.kubernetes.io/nginx: runtime/default
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed2.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f8766e7744026875dd30c888b9b7afd1b3b18c1d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed2.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed2
+ annotations:
+ seccomp.security.alpha.kubernetes.io/pod: runtime/default
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_exempt_image.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_exempt_image.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d5f42987d6eedc58577fc724ffaceb1c89e2e97e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_exempt_image.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx-exempt
+ securityContext:
+ seccompProfile:
+ type: Unconfined
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_localhost.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_localhost.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..856f3217b1f9e9e7bd63d7036d75a1993671d754
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_localhost.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-localhost
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Localhost
+ localhostProfile: profile.json
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8e94ca7e6454beff60d521187e7bee4409c8d018
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ annotations:
+ container.seccomp.security.alpha.kubernetes.io/nginx: unconfined
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed2.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6008d8f72909aaaeed7487b39e5529dcec55f6fe
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed2.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed2
+ annotations:
+ seccomp.security.alpha.kubernetes.io/pod: unconfined
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed_localhost.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed_localhost.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c566f7ca442755020ab91627b96145ca7d4c1e1b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed_localhost.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed-localhost
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Localhost
+ localhostProfile: profile.log
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0347d33fbdeb871e45bd5c9ee3ab7d029ae230eb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/suite.yaml
@@ -0,0 +1,45 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: seccomp
+tests:
+- name: default-seccomp-required
+ template: template.yaml
+ constraint: samples/psp-seccomp/constraint.yaml
+ cases:
+ - name: example-disallowed-global
+ object: samples/psp-seccomp/example_disallowed2.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'unconfined' is not allowed for container 'nginx'. Found at: annotation seccomp.security.alpha.kubernetes.io/pod"
+ - name: example-disallowed-container
+ object: samples/psp-seccomp/example_disallowed.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'unconfined' is not allowed for container 'nginx'. Found at: annotation container.seccomp.security.alpha.kubernetes.io/nginx"
+ - name: example-allowed-container
+ object: samples/psp-seccomp/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-global
+ object: samples/psp-seccomp/example_allowed2.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-seccomp/disallowed_ephemeral.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'unconfined' is not allowed for container 'nginx'. Found at: annotation container.seccomp.security.alpha.kubernetes.io/nginx"
+ - name: example-allowed-container-exempt-image
+ object: samples/psp-seccomp/example_allowed_exempt_image.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-container-localhost-profile
+ object: samples/psp-seccomp/example_allowed_localhost.yaml
+ assertions:
+ - violations: no
+ - name: example-disallowed-container-localhost-profile
+ object: samples/psp-seccomp/example_disallowed_localhost.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'localhost/profile.log' is not allowed for container 'nginx'. Found at: container securityContext."
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d1b676d97e22193295a089f2a17fe57f06451b09
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccomp/template.yaml
@@ -0,0 +1,398 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspseccomp
+ annotations:
+ metadata.gatekeeper.sh/title: "Seccomp"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `seccomp.security.alpha.kubernetes.io/allowedProfileNames` annotation on
+ a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSeccomp
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `seccomp.security.alpha.kubernetes.io/allowedProfileNames` annotation on
+ a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedProfiles:
+ type: array
+ description: >-
+ An array of allowed profile values for seccomp on Pods/Containers.
+
+ Can use the annotation naming scheme: `runtime/default`, `docker/default`, `unconfined` and/or
+ `localhost/some-profile.json`. The item `localhost/*` will allow any localhost based profile.
+
+ Can also use the securityContext naming scheme: `RuntimeDefault`, `Unconfined`
+ and/or `Localhost`. For securityContext `Localhost`, use the parameter `allowedLocalhostProfiles`
+ to list the allowed profile JSON files.
+
+ The policy code will translate between the two schemes so it is not necessary to use both.
+
+ Putting a `*` in this array allows all Profiles to be used.
+
+ This field is required since with an empty list this policy will block all workloads.
+ items:
+ type: string
+ allowedLocalhostFiles:
+ type: array
+ description: >-
+ When using securityContext naming scheme for seccomp and including `Localhost` this array holds
+ the allowed profile JSON files.
+
+ Putting a `*` in this array will allows all JSON files to be used.
+
+ This field is required to allow `Localhost` in securityContext as with an empty list it will block.
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: allowAllProfiles
+ expression: |
+ has(variables.params.allowedProfiles) && variables.params.allowedProfiles.exists(profile, profile == "*")
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+ - name: unverifiedContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !variables.allowAllProfiles &&
+ !(container.image in variables.exemptImages))
+ - name: inputAllowedProfiles
+ expression: |
+ !has(variables.params.allowedProfiles) ? [] : variables.params.allowedProfiles
+ - name: allowedLocalhostFiles
+ expression: |
+ has(variables.params.allowedLocalhostFiles) ? variables.params.allowedLocalhostFiles : []
+ - name: allowedProfilesTranslation
+ expression: |
+ (variables.inputAllowedProfiles.filter(profile,
+ profile != "Localhost").map(profile, profile == "Unconfined" ? "unconfined" : profile)) +
+ (variables.inputAllowedProfiles.exists(profile, profile == "RuntimeDefault") ? ["runtime/default", "docker/default"] : [])
+ - name: allowSecurityContextLocalhost
+ expression: |
+ variables.inputAllowedProfiles.exists(profile, profile == "Localhost")
+ - name: derivedAllowedLocalhostFiles
+ expression: |
+ variables.allowSecurityContextLocalhost ? variables.params.allowedLocalhostFiles.map(file, "localhost/" + file) : []
+ - name: localhostWildcardAllowed
+ expression: |
+ variables.inputAllowedProfiles.exists(profile, profile == "localhost/*") || variables.derivedAllowedLocalhostFiles.exists(profile, profile == "localhost/*")
+ - name: allowedProfiles
+ expression: |
+ (variables.allowedProfilesTranslation + variables.derivedAllowedLocalhostFiles)
+ - name: hasPodSeccomp
+ expression: |
+ has(variables.anyObject.spec.securityContext) && has(variables.anyObject.spec.securityContext.seccompProfile)
+ - name: hasPodAnnotations
+ expression: |
+ has(variables.anyObject.metadata.annotations) && ("seccomp.security.alpha.kubernetes.io/pod" in variables.anyObject.metadata.annotations)
+ - name: podAnnotationsProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !(has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)) &&
+ !variables.hasPodSeccomp &&
+ variables.hasPodAnnotations
+ ).map(container, {
+ "container" : container.name,
+ "profile" : variables.anyObject.metadata.annotations["seccomp.security.alpha.kubernetes.io/pod"],
+ "file" : dyn(""),
+ "location" : dyn("annotation seccomp.security.alpha.kubernetes.io/pod"),
+ })
+ - name: containerAnnotationsProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !variables.hasPodSeccomp &&
+ has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : variables.anyObject.metadata.annotations["container.seccomp.security.alpha.kubernetes.io/" + container.name],
+ "file" : dyn(""),
+ "location" : dyn("annotation container.seccomp.security.alpha.kubernetes.io/" + container.name),
+ })
+ - name: podLocalHostProfile
+ expression: |
+ variables.hasPodSeccomp && has(variables.anyObject.spec.securityContext.seccompProfile.localhostProfile) ? variables.anyObject.spec.securityContext.seccompProfile.localhostProfile : ""
+ - name: canonicalPodSecurityContextProfile
+ expression: |
+ has(variables.hasPodSeccomp) && has(variables.anyObject.spec.securityContext.seccompProfile.type) ?
+ (variables.anyObject.spec.securityContext.seccompProfile.type == "RuntimeDefault" ? (
+ variables.allowedProfiles.exists(profile, profile == "runtime/default") ? "runtime/default" : variables.allowedProfiles.exists(profile, profile == "docker/default") ? "docker/default" : "runtime/default") :
+ variables.anyObject.spec.securityContext.seccompProfile.type == "Unconfined" ? "unconfined" : variables.anyObject.spec.securityContext.seccompProfile.type == "Localhost" ? "localhost/" + variables.podLocalHostProfile : "")
+ : ""
+ - name: podSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(variables.canonicalPodSecurityContextProfile),
+ "file" : variables.podLocalHostProfile,
+ "location" : dyn("pod securityContext"),
+ })
+ - name: containerSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ has(container.securityContext) && has(container.securityContext.seccompProfile)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(has(container.securityContext.seccompProfile.type) ? (container.securityContext.seccompProfile.type == "RuntimeDefault" ? (
+ variables.allowedProfiles.exists(profile, profile == "runtime/default") ? "runtime/default" : variables.allowedProfiles.exists(profile, profile == "docker/default") ? "docker/default" : "runtime/default") :
+ container.securityContext.seccompProfile.type == "Unconfined" ? "unconfined" : container.securityContext.seccompProfile.type == "Localhost" ? "localhost/" + container.securityContext.seccompProfile.localhostProfile : "")
+ : ""),
+ "file" : has(container.securityContext.seccompProfile.localhostProfile) ? container.securityContext.seccompProfile.localhostProfile : dyn(""),
+ "location" : dyn("container securityContext"),
+ })
+ - name: containerProfilesMissing
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !(has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)) &&
+ !variables.hasPodSeccomp &&
+ !variables.hasPodAnnotations
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn("not configured"),
+ "file" : dyn(""),
+ "location" : dyn("no explicit profile found"),
+ })
+ - name: allContainerProfiles
+ expression: |
+ variables.podAnnotationsProfiles + variables.containerAnnotationsProfiles + variables.podSecurityContextProfiles + variables.containerSecurityContextProfiles + variables.containerProfilesMissing
+ - name: badContainerProfiles
+ expression: |
+ variables.allContainerProfiles.filter(badContainerProfile,
+ !((badContainerProfile.profile in variables.allowedProfiles) || (badContainerProfile.profile.startsWith("localhost/") && variables.localhostWildcardAllowed))
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.allowedProfiles.join(", "))
+ validations:
+ - expression: 'size(variables.badContainerProfiles) == 0'
+ messageExpression: |
+ variables.badContainerProfiles.join(", ")
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspseccomp
+
+ import data.lib.exempt_container.is_exempt
+
+ container_annotation_key_prefix = "container.seccomp.security.alpha.kubernetes.io/"
+
+ pod_annotation_key = "seccomp.security.alpha.kubernetes.io/pod"
+
+ violation[{"msg": msg}] {
+ not input_wildcard_allowed_profiles
+ allowed_profiles := get_allowed_profiles
+ container := input_containers[name]
+ not is_exempt(container)
+ result := get_profile(container)
+ not allowed_profile(result.profile, result.file, allowed_profiles)
+ msg := get_message(result.profile, result.file, name, result.location, allowed_profiles)
+ }
+
+ get_message(profile, _, name, location, allowed_profiles) = message {
+ message := sprintf("Seccomp profile '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, name, location, allowed_profiles])
+ }
+
+ input_wildcard_allowed_profiles {
+ input.parameters.allowedProfiles[_] == "*"
+ }
+
+ input_wildcard_allowed_files {
+ input.parameters.allowedLocalhostFiles[_] == "*"
+ }
+
+ input_wildcard_allowed_files {
+ "localhost/*" == input.parameters.allowedProfiles[_]
+ }
+
+ # Simple allowed Profiles
+ allowed_profile(profile, _, allowed) {
+ not startswith(profile, "localhost/")
+ profile == allowed[_]
+ }
+
+ # annotation localhost with wildcard
+ allowed_profile(profile, _, allowed) {
+ "localhost/*" == allowed[_]
+ startswith(profile, "localhost/")
+ }
+
+ # annotation localhost without wildcard
+ allowed_profile(profile, _, allowed) {
+ startswith(profile, "localhost/")
+ profile == allowed[_]
+ }
+
+ # The profiles explicitly in the list
+ get_allowed_profiles[allowed] {
+ allowed := input.parameters.allowedProfiles[_]
+ }
+
+ # Seccomp Localhost to annotation translation
+ get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ not contains(profile, "/")
+ file := object.get(input.parameters, "allowedLocalhostFiles", [])[_]
+ allowed := canonicalize_seccomp_profile({"type": profile, "localhostProfile": file}, "")[_]
+ }
+
+ # Container profile as defined in pod annotation
+ get_profile(container) = {"profile": profile, "file": "", "location": location} {
+ not has_securitycontext_container(container)
+ not has_annotation(get_container_annotation_key(container.name))
+ not has_securitycontext_pod
+ profile := input.review.object.metadata.annotations[pod_annotation_key]
+ location := sprintf("annotation %v", [pod_annotation_key])
+ }
+
+ # Container profile as defined in container annotation
+ get_profile(container) = {"profile": profile, "file": "", "location": location} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+ container_annotation := get_container_annotation_key(container.name)
+ has_annotation(container_annotation)
+ profile := input.review.object.metadata.annotations[container_annotation]
+ location := sprintf("annotation %v", [container_annotation])
+ }
+
+ # Container profile as defined in pods securityContext
+ get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ not has_securitycontext_container(container)
+ profile := canonicalize_seccomp_profile(input.review.object.spec.securityContext.seccompProfile, canonicalize_runtime_default_profile)[_]
+ file := object.get(input.review.object.spec.securityContext.seccompProfile, "localhostProfile", "")
+ location := "pod securityContext"
+ }
+
+ # Container profile as defined in containers securityContext
+ get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ has_securitycontext_container(container)
+ profile := canonicalize_seccomp_profile(container.securityContext.seccompProfile, canonicalize_runtime_default_profile)[_]
+ file := object.get(container.securityContext.seccompProfile, "localhostProfile", "")
+ location := "container securityContext"
+ }
+
+ # Container profile missing
+ get_profile(container) = {"profile": "not configured", "file": "", "location": "no explicit profile found"} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+ not has_annotation(get_container_annotation_key(container.name))
+ not has_annotation(pod_annotation_key)
+ }
+
+ has_annotation(annotation) {
+ input.review.object.metadata.annotations[annotation]
+ }
+
+ has_securitycontext_pod {
+ input.review.object.spec.securityContext.seccompProfile
+ }
+
+ has_securitycontext_container(container) {
+ container.securityContext.seccompProfile
+ }
+
+ get_container_annotation_key(name) = annotation {
+ annotation := concat("", [container_annotation_key_prefix, name])
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.containers[_]
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.ephemeralContainers[_]
+ }
+
+ canonicalize_runtime_default_profile() = out {
+ "runtime/default" == input.parameters.allowedProfiles[_]
+ out := "runtime/default"
+ } else = out {
+ "docker/default" == input.parameters.allowedProfiles[_]
+ out := "docker/default"
+ } else = out {
+ out := "runtime/default"
+ }
+
+ canonicalize_seccomp_profile(profile, def) = out {
+ profile.type == "RuntimeDefault"
+ def == ""
+ out := ["runtime/default", "docker/default"]
+ } else = out {
+ profile.type == "RuntimeDefault"
+ def != ""
+ out := [def]
+ } else = out {
+ profile.type == "Localhost"
+ out := [sprintf("localhost/%s", [profile.localhostProfile])]
+ } else = out {
+ profile.type == "Unconfined"
+ out := ["unconfined"]
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/allowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/allowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5588b285cbc3e34d7631b1b55ce53009a94d9c56
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/allowed_ephemeral.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-ephemeral
+ labels:
+ app: nginx-seccomp
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..24e7f75446d94b155cc7a75a12db37f510bd113e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/constraint.yaml
@@ -0,0 +1,18 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPSeccompV2
+metadata:
+ name: psp-seccomp-baseline
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - nginx-exempt
+ allowedProfiles:
+ - RuntimeDefault
+ - Localhost
+ - not configured
+ allowedLocalhostFiles:
+ - "*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..65dfc5be89dcd8a20628cbd9cdea9eb7cf9effbb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: RuntimeDefault
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_exempt_image.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_exempt_image.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d5f42987d6eedc58577fc724ffaceb1c89e2e97e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_exempt_image.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx-exempt
+ securityContext:
+ seccompProfile:
+ type: Unconfined
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_localhost.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_localhost.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..856f3217b1f9e9e7bd63d7036d75a1993671d754
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_localhost.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-localhost
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Localhost
+ localhostProfile: profile.json
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_no_profile.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_no_profile.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8271d3c6bcfa791c969cca446fcb7ef86016a865
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_no_profile.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-no-profile
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..40c115b86f62ee914b10359b433f31434105b738
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Unconfined
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed2.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e08463f18064f42ad280de1cd98725763b85bee3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed2.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed2
+ labels:
+ app: nginx-seccomp
+spec:
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..81c54929e71c437100d7296e769f517f22b703a3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/constraint.yaml
@@ -0,0 +1,17 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPSeccompV2
+metadata:
+ name: psp-seccomp-restricted
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - nginx-exempt
+ allowedProfiles:
+ - RuntimeDefault
+ - Localhost
+ allowedLocalhostFiles:
+ - "*"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4b32243a9d797dad930c168396f7b542a3706de4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/disallowed_ephemeral.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..65dfc5be89dcd8a20628cbd9cdea9eb7cf9effbb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: RuntimeDefault
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_exempt_image.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_exempt_image.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d5f42987d6eedc58577fc724ffaceb1c89e2e97e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_exempt_image.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx-exempt
+ securityContext:
+ seccompProfile:
+ type: Unconfined
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_localhost.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_localhost.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..856f3217b1f9e9e7bd63d7036d75a1993671d754
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_localhost.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-localhost
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Localhost
+ localhostProfile: profile.json
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..40c115b86f62ee914b10359b433f31434105b738
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Unconfined
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed2.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e08463f18064f42ad280de1cd98725763b85bee3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed2.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed2
+ labels:
+ app: nginx-seccomp
+spec:
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a55a6cc020f4c078ad00793dae058197ad20b39e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/suite.yaml
@@ -0,0 +1,70 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: seccomp
+tests:
+- name: seccomp-baseline
+ template: template.yaml
+ constraint: samples/psp-seccomp-baseline/constraint.yaml
+ cases:
+ - name: example-disallowed-global
+ object: samples/psp-seccomp-baseline/example_disallowed2.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'Unconfined' is not allowed for container 'nginx'. Found at: pod securityContext."
+ - name: example-disallowed-container
+ object: samples/psp-seccomp-baseline/example_disallowed.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'Unconfined' is not allowed for container 'nginx'. Found at: container securityContext."
+ - name: example-allowed-container
+ object: samples/psp-seccomp-baseline/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-localhost
+ object: samples/psp-seccomp-baseline/example_allowed_localhost.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-no-profile
+ object: samples/psp-seccomp-baseline/example_allowed_no_profile.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-exempt-image
+ object: samples/psp-seccomp-baseline/example_allowed_exempt_image.yaml
+ assertions:
+ - violations: no
+ - name: allowed-ephemeral-no-profile
+ object: samples/psp-seccomp-baseline/allowed_ephemeral.yaml
+ assertions:
+ - violations: no
+- name: seccomp-restricted
+ template: template.yaml
+ constraint: samples/psp-seccomp-restricted/constraint.yaml
+ cases:
+ - name: example-disallowed-global
+ object: samples/psp-seccomp-restricted/example_disallowed2.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'Unconfined' is not allowed for container 'nginx'. Found at: pod securityContext."
+ - name: example-disallowed-container
+ object: samples/psp-seccomp-restricted/example_disallowed.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'Unconfined' is not allowed for container 'nginx'. Found at: container securityContext."
+ - name: example-allowed-container
+ object: samples/psp-seccomp-restricted/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-localhost
+ object: samples/psp-seccomp-restricted/example_allowed_localhost.yaml
+ assertions:
+ - violations: no
+ - name: example-allowed-exempt-image
+ object: samples/psp-seccomp-restricted/example_allowed_exempt_image.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral-no-profile
+ object: samples/psp-seccomp-restricted/disallowed_ephemeral.yaml
+ assertions:
+ - violations: 1
+ message: "Seccomp profile 'not configured' is not allowed for container 'nginx'. Found at: no explicit profile found"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cba0c36c595d83fb86dbcd89d0289f40885ea639
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/seccompv2/template.yaml
@@ -0,0 +1,302 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspseccompv2
+ annotations:
+ metadata.gatekeeper.sh/title: "Seccomp V2"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `securityContext.seccompProfile` field. Security contexts from the annotation is not considered as Kubernetes no longer reads security contexts from the annotation.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSeccompV2
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `securityContext.seccompProfile` field. Security contexts from the annotation is not considered as Kubernetes no longer reads security contexts from the annotation.
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedProfiles:
+ type: array
+ description: >-
+ An array of allowed profile values for seccomp on Pods/Containers.
+
+ Can use the securityContext naming scheme: `RuntimeDefault`, `Unconfined`
+ and/or `Localhost`. For securityContext `Localhost`, use the parameter `allowedLocalhostFiles`
+ to list the allowed profile JSON files.
+
+ The policy code will translate between the two schemes so it is not necessary to use both.
+
+ Putting a `*` in this array allows all Profiles to be used.
+
+ This field is required since with an empty list this policy will block all workloads.
+ items:
+ type: string
+ allowedLocalhostFiles:
+ type: array
+ description: >-
+ When using securityContext naming scheme for seccomp and including `Localhost` this array holds
+ the allowed profile JSON files.
+
+ Putting a `*` in this array will allows all JSON files to be used.
+
+ This field is required to allow `Localhost` in securityContext as with an empty list it will block.
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: allowAllProfiles
+ expression: |
+ has(variables.params.allowedProfiles) && variables.params.allowedProfiles.exists(profile, profile == "*")
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+ - name: unverifiedContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !variables.allowAllProfiles &&
+ !(container.image in variables.exemptImages))
+ - name: inputNonLocalHostProfiles
+ expression: |
+ variables.params.allowedProfiles.filter(profile, profile != "Localhost").map(profile, {"type": profile})
+ - name: inputLocalHostProfiles
+ expression: |
+ variables.params.allowedProfiles.exists(profile, profile == "Localhost") ? variables.params.allowedLocalhostFiles.map(file, {"type": "Localhost", "localHostProfile": string(file)}) : []
+ - name: inputAllowedProfiles
+ expression: |
+ variables.inputNonLocalHostProfiles + variables.inputLocalHostProfiles
+ - name: hasPodSeccomp
+ expression: |
+ has(variables.anyObject.spec.securityContext) && has(variables.anyObject.spec.securityContext.seccompProfile)
+ - name: podLocalHostProfile
+ expression: |
+ variables.hasPodSeccomp && has(variables.anyObject.spec.securityContext.seccompProfile.localhostProfile) ? variables.anyObject.spec.securityContext.seccompProfile.localhostProfile : ""
+ - name: podSecurityContextProfileType
+ expression: |
+ has(variables.hasPodSeccomp) && has(variables.anyObject.spec.securityContext.seccompProfile.type) ? variables.anyObject.spec.securityContext.seccompProfile.type
+ : ""
+ - name: podSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(variables.podSecurityContextProfileType),
+ "file" : variables.podLocalHostProfile,
+ "location" : dyn("pod securityContext"),
+ })
+ - name: containerSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ has(container.securityContext) && has(container.securityContext.seccompProfile)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(container.securityContext.seccompProfile.type),
+ "file" : has(container.securityContext.seccompProfile.localhostProfile) ? container.securityContext.seccompProfile.localhostProfile : dyn(""),
+ "location" : dyn("container securityContext"),
+ })
+ - name: containerProfilesMissing
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn("not configured"),
+ "file" : dyn(""),
+ "location" : dyn("no explicit profile found"),
+ })
+ - name: allContainerProfiles
+ expression: |
+ variables.podSecurityContextProfiles + variables.containerSecurityContextProfiles + variables.containerProfilesMissing
+ - name: badContainerProfilesWithoutFiles
+ expression: |
+ variables.allContainerProfiles.filter(container,
+ container.profile != "Localhost" &&
+ !variables.inputAllowedProfiles.exists(profile, profile.type == container.profile)
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.inputAllowedProfiles.map(profile, "{\"type\": \"" + profile.type + "\"" + (has(profile.localHostProfile) ? ", \"localHostProfile\": \"" + profile.localHostProfile + "\"}" : "}")).join(", "))
+ - name: badContainerProfilesWithFiles
+ expression: |
+ variables.allContainerProfiles.filter(container,
+ container.profile == "Localhost" &&
+ !variables.inputAllowedProfiles.exists(profile, profile.type == "Localhost" && (has(profile.localHostProfile) && (profile.localHostProfile == container.file || profile.localHostProfile == "*")))
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' With file '" + badProfile.file + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.inputAllowedProfiles.map(profile, "{\"type\": \"" + profile.type + "\"" + (has(profile.localHostProfile) ? ", \"localHostProfile\": \"" + profile.localHostProfile + "\"}" : "}")).join(", "))
+ validations:
+ - expression: 'size(variables.badContainerProfilesWithoutFiles) == 0'
+ messageExpression: |
+ variables.badContainerProfilesWithoutFiles.join(", ")
+ - expression: 'size(variables.badContainerProfilesWithFiles) == 0'
+ messageExpression: |
+ variables.badContainerProfilesWithFiles.join(", ")
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspseccomp
+
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ not input_wildcard_allowed_profiles
+ allowed_profiles := get_allowed_profiles
+ container := input_containers[name]
+ not is_exempt(container)
+ result := get_profile(container)
+ not allowed_profile(result.profile, result.file, allowed_profiles)
+ msg := get_message(result.profile, result.file, name, result.location, allowed_profiles)
+ }
+
+ get_message(profile, _, name, location, allowed_profiles) = message {
+ profile != "Localhost"
+ message := sprintf("Seccomp profile '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, name, location, allowed_profiles])
+ }
+
+ get_message(profile, file, name, location, allowed_profiles) = message {
+ profile == "Localhost"
+ message := sprintf("Seccomp profile '%v' with file '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, file, name, location, allowed_profiles])
+ }
+
+ input_wildcard_allowed_profiles {
+ input.parameters.allowedProfiles[_] == "*"
+ }
+
+ input_wildcard_allowed_files {
+ input.parameters.allowedLocalhostFiles[_] == "*"
+ }
+
+ allowed_profile(_, _, _) {
+ input_wildcard_allowed_profiles
+ }
+
+ allowed_profile(profile, _, _) {
+ profile == "Localhost"
+ input_wildcard_allowed_files
+ }
+
+ # Simple allowed Profiles
+ allowed_profile(profile, _, allowed) {
+ profile != "Localhost"
+ allow_profile = allowed[_]
+ profile == allow_profile.type
+ }
+
+ # annotation localhost without wildcard
+ allowed_profile(profile, file, allowed) {
+ profile == "Localhost"
+ allow_profile = allowed[_]
+ allow_profile.type == "Localhost"
+ file == allow_profile.localHostProfile
+ }
+
+ # The profiles explicitly in the list
+ get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ profile != "Localhost"
+ allowed := {"type": profile}
+ }
+
+ get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ profile == "Localhost"
+ file := object.get(input.parameters, "allowedLocalhostFiles", [""])[_]
+ allowed := {"type": "Localhost", "localHostProfile": file}
+ }
+
+ # Container profile as defined in containers securityContext
+ get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ has_securitycontext_container(container)
+ profile := container.securityContext.seccompProfile.type
+ file := object.get(container.securityContext.seccompProfile, "localhostProfile", "")
+ location := "container securityContext"
+ }
+
+ # Container profile as defined in pods securityContext
+ get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ not has_securitycontext_container(container)
+ profile := input.review.object.spec.securityContext.seccompProfile.type
+ file := object.get(input.review.object.spec.securityContext.seccompProfile, "localhostProfile", "")
+ location := "pod securityContext"
+ }
+
+ # Container profile missing
+ get_profile(container) = {"profile": "not configured", "file": "", "location": "no explicit profile found"} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+ }
+
+ has_securitycontext_pod {
+ input.review.object.spec.securityContext.seccompProfile
+ }
+
+ has_securitycontext_container(container) {
+ container.securityContext.seccompProfile
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.containers[_]
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f38381182dcbec9668a80ebca9142d4d5a273637
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/constraint.yaml
@@ -0,0 +1,15 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPSELinuxV2
+metadata:
+ name: psp-selinux-v2
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedSELinuxOptions:
+ - type: container_t
+ - type: container_init_t
+ - type: container_kvm_t
+ - type: container_engine_t
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0cce95eac0e4af1a7877e1a065fc04f1a30598cc
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/disallowed_ephemeral.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-selinux-disallowed
+ labels:
+ app: nginx-selinux
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seLinuxOptions:
+ type: svirt_lxc_net_t
+ user: sysadm_u
+ role: sysadm_r
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8d914f2be0ba460b52dd57749efa5fa91e74bbdb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/example_allowed.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-selinux-allowed
+ labels:
+ app: nginx-selinux
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seLinuxOptions:
+ type: container_t
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7c715f8ee4590a97df283f625cf79debe2171e75
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/example_disallowed.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-selinux-disallowed
+ labels:
+ app: nginx-selinux
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seLinuxOptions:
+ type: svirt_lxc_net_t
+ user: sysadm_u
+ role: sysadm_r
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..698fc6f75fb846db08a58c0f775a13bc7bb1e165
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/samples/psp-selinux-v2/update.yaml
@@ -0,0 +1,20 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-selinux-disallowed
+ labels:
+ app: nginx-selinux
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seLinuxOptions:
+ type: svirt_lxc_net_t
+ user: sysadm_u
+ role: sysadm_r
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1bbaf360ede8fd308d913c96d38117f6c6069d2a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/suite.yaml
@@ -0,0 +1,25 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: selinux
+tests:
+- name: require-matching-selinux-options
+ template: template.yaml
+ constraint: samples/psp-selinux-v2/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-selinux-v2/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-selinux-v2/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-selinux-v2/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-selinux-v2/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5c8730e740d4687695c6e5e56a8773780146b089
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/selinux/template.yaml
@@ -0,0 +1,145 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspselinuxv2
+ annotations:
+ metadata.gatekeeper.sh/title: "SELinux V2"
+ metadata.gatekeeper.sh/version: 1.0.4
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Defines an allow-list of seLinuxOptions configurations for pod
+ containers. Corresponds to a PodSecurityPolicy requiring SELinux configs.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#selinux
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSELinuxV2
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Defines an allow-list of seLinuxOptions configurations for pod
+ containers. Corresponds to a PodSecurityPolicy requiring SELinux configs.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#selinux
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedSELinuxOptions:
+ type: array
+ description: "An allow-list of SELinux options configurations."
+ items:
+ type: object
+ description: "An allowed configuration of SELinux options for a pod container."
+ properties:
+ level:
+ type: string
+ description: "An SELinux level."
+ role:
+ type: string
+ description: "An SELinux role."
+ type:
+ type: string
+ description: "An SELinux type."
+ user:
+ type: string
+ description: "An SELinux user."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spspselinux
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ # Disallow top level custom SELinux options
+ violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.seLinuxOptions field is immutable.
+ not is_update(input.review)
+
+ has_field(input.review.object.spec.securityContext, "seLinuxOptions")
+ not input_seLinuxOptions_allowed(input.review.object.spec.securityContext.seLinuxOptions)
+ msg := sprintf("SELinux options is not allowed, pod: %v. Allowed options: %v", [input.review.object.metadata.name, input.parameters.allowedSELinuxOptions])
+ }
+ # Disallow container level custom SELinux options
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.seLinuxOptions field is immutable.
+ not is_update(input.review)
+
+ c := input_security_context[_]
+ not is_exempt(c)
+ has_field(c.securityContext, "seLinuxOptions")
+ not input_seLinuxOptions_allowed(c.securityContext.seLinuxOptions)
+ msg := sprintf("SELinux options is not allowed, pod: %v, container: %v. Allowed options: %v", [input.review.object.metadata.name, c.name, input.parameters.allowedSELinuxOptions])
+ }
+
+ input_seLinuxOptions_allowed(options) {
+ params := input.parameters.allowedSELinuxOptions[_]
+ field_allowed("level", options, params)
+ field_allowed("role", options, params)
+ field_allowed("type", options, params)
+ field_allowed("user", options, params)
+ }
+
+ field_allowed(field, options, params) {
+ params[field] == options[field]
+ }
+ field_allowed(field, options, _) {
+ not has_field(options, field)
+ }
+
+ input_security_context[c] {
+ c := input.review.object.spec.containers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+ }
+ input_security_context[c] {
+ c := input.review.object.spec.initContainers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+ }
+ input_security_context[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+ }
+
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/test.sh b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..5ad1e63528c3a2ca4f738243bdc2bc76b8b58813
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/test.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -e
+
+for path in $PWD/*; do
+ if [ -d $path ]
+ then
+ echo $path
+ cd $path
+ docker run -v $path:/tests openpolicyagent/opa test /tests/src.rego /tests/src_test.rego
+ fi
+done
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..90fbd308c2ac658c467711802004721a4e865e04
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/constraint.yaml
@@ -0,0 +1,18 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPAllowedUsers
+metadata:
+ name: psp-pods-allowed-user-ranges
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ runAsUser:
+ rule: MustRunAsNonRoot
+ runAsGroup:
+ rule: RunAsAny
+ supplementalGroups:
+ rule: RunAsAny
+ fsGroup:
+ rule: RunAsAny
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..66156be8407fd449ec16f7c5bafdc404fa8590af
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-users-disallowed
+ labels:
+ app: nginx-users
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ runAsUser: 0
+ runAsGroup: 0
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8028ef49c974c3733cbaa39100f173b5c4755620
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_allowed.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-users-allowed
+ labels:
+ app: nginx-users
+spec:
+ securityContext:
+ runAsNonRoot: true
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ runAsUser: 1000
+ runAsGroup: 1000
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ce7e633fb5e6095a368e6e1b257a8dd359be92a6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-users-disallowed
+ labels:
+ app: nginx-users
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ runAsUser: 0
+ runAsGroup: 0
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ac182bf4c8b2bb9d47d25cb77ec18d7f99ec6303
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/update.yaml
@@ -0,0 +1,18 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-users-disallowed
+ labels:
+ app: nginx-users
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ runAsUser: 0
+ runAsGroup: 0
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5c6e49640204906e63545a83dc52d995fcf43037
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/suite.yaml
@@ -0,0 +1,25 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: users
+tests:
+- name: users-and-groups-together
+ template: template.yaml
+ constraint: samples/psp-pods-allowed-user-ranges/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-pods-allowed-user-ranges/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-pods-allowed-user-ranges/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: disallowed-ephemeral
+ object: samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml
+ assertions:
+ - violations: yes
+ - name: update
+ object: samples/psp-pods-allowed-user-ranges/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..631da2fe8ebb70893e584e6a92fbcf0df1bf7f31
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/users/template.yaml
@@ -0,0 +1,290 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspallowedusers
+ annotations:
+ metadata.gatekeeper.sh/title: "Allowed Users"
+ metadata.gatekeeper.sh/version: 1.0.3
+ metadata.gatekeeper.sh/bundle: "pod-security-restricted"
+ description: >-
+ Controls the user and group IDs of the container and some volumes.
+ Corresponds to the `runAsUser`, `runAsGroup`, `supplementalGroups`, and
+ `fsGroup` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#users-and-groups
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAllowedUsers
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the user and group IDs of the container and some volumes.
+ Corresponds to the `runAsUser`, `runAsGroup`, `supplementalGroups`, and
+ `fsGroup` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#users-and-groups
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ runAsUser:
+ type: object
+ description: "Controls which user ID values are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the runAsUser restriction."
+ enum:
+ - MustRunAs
+ - MustRunAsNonRoot
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of user ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of user IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum user ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum user ID in the range, inclusive."
+ runAsGroup:
+ type: object
+ description: "Controls which group ID values are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the runAsGroup restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ supplementalGroups:
+ type: object
+ description: "Controls the supplementalGroups values that are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the supplementalGroups restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ fsGroup:
+ type: object
+ description: "Controls the fsGroup values that are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the fsGroup restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spspallowedusers
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ # runAsUser, runAsGroup, supplementalGroups, fsGroup fields are immutable.
+ not is_update(input.review)
+
+ fields := ["runAsUser", "runAsGroup", "supplementalGroups", "fsGroup"]
+ field := fields[_]
+ container := input_containers[_]
+ not is_exempt(container)
+ msg := get_type_violation(field, container)
+ }
+
+ get_type_violation(field, container) = msg {
+ field == "runAsUser"
+ params := input.parameters[field]
+ msg := get_user_violation(params, container)
+ }
+
+ get_type_violation(field, container) = msg {
+ field != "runAsUser"
+ params := input.parameters[field]
+ msg := get_violation(field, params, container)
+ }
+
+ # RunAsUser (separate due to "MustRunAsNonRoot")
+ get_user_violation(params, container) = msg {
+ rule := params.rule
+ provided_user := get_field_value("runAsUser", container, input.review)
+ not accept_users(rule, provided_user)
+ msg := sprintf("Container %v is attempting to run as disallowed user %v. Allowed runAsUser: %v", [container.name, provided_user, params])
+ }
+
+ get_user_violation(params, container) = msg {
+ not get_field_value("runAsUser", container, input.review)
+ params.rule = "MustRunAs"
+ msg := sprintf("Container %v is attempting to run without a required securityContext/runAsUser", [container.name])
+ }
+
+ get_user_violation(params, container) = msg {
+ params.rule = "MustRunAsNonRoot"
+ not get_field_value("runAsUser", container, input.review)
+ not get_field_value("runAsNonRoot", container, input.review)
+ msg := sprintf("Container %v is attempting to run without a required securityContext/runAsNonRoot or securityContext/runAsUser != 0", [container.name])
+ }
+
+ accept_users("RunAsAny", _)
+
+ accept_users("MustRunAsNonRoot", provided_user) := provided_user != 0
+
+ accept_users("MustRunAs", provided_user) := res {
+ ranges := input.parameters.runAsUser.ranges
+ res := is_in_range(provided_user, ranges)
+ }
+
+ # Group Options
+ get_violation(field, params, container) = msg {
+ rule := params.rule
+ provided_value := get_field_value(field, container, input.review)
+ not is_array(provided_value)
+ not accept_value(rule, provided_value, params.ranges)
+ msg := sprintf("Container %v is attempting to run as disallowed group %v. Allowed %v: %v", [container.name, provided_value, field, params])
+ }
+ # SupplementalGroups is array value
+ get_violation(field, params, container) = msg {
+ rule := params.rule
+ array_value := get_field_value(field, container, input.review)
+ is_array(array_value)
+ provided_value := array_value[_]
+ not accept_value(rule, provided_value, params.ranges)
+ msg := sprintf("Container %v is attempting to run with disallowed supplementalGroups %v. Allowed %v: %v", [container.name, array_value, field, params])
+ }
+
+ get_violation(field, params, container) = msg {
+ not get_field_value(field, container, input.review)
+ params.rule == "MustRunAs"
+ msg := sprintf("Container %v is attempting to run without a required securityContext/%v. Allowed %v: %v", [container.name, field, field, params])
+ }
+
+ accept_value("RunAsAny", _, _)
+
+ accept_value("MayRunAs", provided_value, ranges) := is_in_range(provided_value, ranges)
+
+ accept_value("MustRunAs", provided_value, ranges) := is_in_range(provided_value, ranges)
+
+
+ # If container level is provided, that takes precedence
+ get_field_value(field, container, _) := get_seccontext_field(field, container)
+
+ # If no container level exists, use pod level
+ get_field_value(field, container, review) = out {
+ not has_seccontext_field(field, container)
+ review.kind.kind == "Pod"
+ pod_value := get_seccontext_field(field, review.object.spec)
+ out := pod_value
+ }
+
+ # Helper Functions
+ is_in_range(val, ranges) = res {
+ matching := {1 | val >= ranges[j].min; val <= ranges[j].max}
+ res := count(matching) > 0
+ }
+
+ has_seccontext_field(field, obj) {
+ get_seccontext_field(field, obj)
+ }
+
+ has_seccontext_field(field, obj) {
+ get_seccontext_field(field, obj) == false
+ }
+
+ get_seccontext_field(field, obj) = out {
+ out = obj.securityContext[field]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/kustomization.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/kustomization.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d70d11b719ca4d91f8218f217c28b961662a7f3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/kustomization.yaml
@@ -0,0 +1,2 @@
+resources:
+ - template.yaml
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/constraint.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/constraint.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..57a19fe6356db0d130b9ba682c1160de68062565
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/constraint.yaml
@@ -0,0 +1,20 @@
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPVolumeTypes
+metadata:
+ name: psp-volume-types
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ volumes:
+ # - "*" # * may be used to allow all volume types
+ - configMap
+ - csi
+ - downwardAPI
+ - emptyDir
+ - ephemeral
+ - persistentVolumeClaim
+ - projected
+ - secret
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/example_allowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/example_allowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..df6251e7d4ce369dde5a878c03a735c8f96c794e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/example_allowed.yaml
@@ -0,0 +1,23 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-volume-types-allowed
+ labels:
+ app: nginx-volume-types
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ - name: nginx2
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache2
+ name: demo-vol
+ volumes:
+ - name: cache-volume
+ emptyDir: {}
+ - name: demo-vol
+ emptyDir: {}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/example_disallowed.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/example_disallowed.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..562cf59d8abfa521e36e948c8681e5e89b5f1808
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/example_disallowed.yaml
@@ -0,0 +1,24 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-volume-types-disallowed
+ labels:
+ app: nginx-volume-types
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ - name: nginx2
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache2
+ name: demo-vol
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /tmp # directory location on host
+ - name: demo-vol
+ emptyDir: {}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/update.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/update.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f25f0726720605792c5e643c845902cb49bc4fee
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/samples/psp-volume-types/update.yaml
@@ -0,0 +1,29 @@
+kind: AdmissionReview
+apiVersion: admission.k8s.io/v1beta1
+request:
+ operation: "UPDATE"
+ object:
+ apiVersion: v1
+ kind: Pod
+ metadata:
+ name: nginx-volume-types-disallowed
+ labels:
+ app: nginx-volume-types
+ spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ - name: nginx2
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache2
+ name: demo-vol
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /tmp # directory location on host
+ - name: demo-vol
+ emptyDir: {}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/suite.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/suite.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..083aad6ebaacae20b6b9c0c62014fdc59293339b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/suite.yaml
@@ -0,0 +1,21 @@
+kind: Suite
+apiVersion: test.gatekeeper.sh/v1alpha1
+metadata:
+ name: volumes
+tests:
+- name: host-path-disallowed
+ template: template.yaml
+ constraint: samples/psp-volume-types/constraint.yaml
+ cases:
+ - name: example-disallowed
+ object: samples/psp-volume-types/example_disallowed.yaml
+ assertions:
+ - violations: yes
+ - name: example-allowed
+ object: samples/psp-volume-types/example_allowed.yaml
+ assertions:
+ - violations: no
+ - name: update
+ object: samples/psp-volume-types/update.yaml
+ assertions:
+ - violations: no
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/template.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/template.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b32d468bf172630231ea82be7ae5a634b02ad2b5
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/library/pod-security-policy/volumes/template.yaml
@@ -0,0 +1,65 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspvolumetypes
+ annotations:
+ metadata.gatekeeper.sh/title: "Volume Types"
+ metadata.gatekeeper.sh/version: 1.0.3
+ metadata.gatekeeper.sh/bundle: "pod-security-restricted"
+ description: >-
+ Restricts mountable volume types to those specified by the user.
+ Corresponds to the `volumes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPVolumeTypes
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Restricts mountable volume types to those specified by the user.
+ Corresponds to the `volumes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ volumes:
+ description: "`volumes` is an array of volume types. All volume types can be enabled using `*`."
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spspvolumetypes
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume_fields := {x | input.review.object.spec.volumes[_][x]; x != "name"}
+ field := volume_fields[_]
+ not input_volume_type_allowed(field)
+ msg := sprintf("The volume type %v is not allowed, pod: %v. Allowed volume types: %v", [field, input.review.object.metadata.name, input.parameters.volumes])
+ }
+
+ # * may be used to allow all volume types
+ input_volume_type_allowed(_) {
+ input.parameters.volumes[_] == "*"
+ }
+
+ input_volume_type_allowed(field) {
+ field == input.parameters.volumes[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/allow-privilege-escalation/samples/default-allow-privilege-escalation/example.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/allow-privilege-escalation/samples/default-allow-privilege-escalation/example.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..11d046b2e440108b1349ff90fad3196cbc9b0f84
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/allow-privilege-escalation/samples/default-allow-privilege-escalation/example.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-default-privilege-escalation
+ labels:
+ app: nginx-default-privilege-escalation
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/allow-privilege-escalation/samples/mutation.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/allow-privilege-escalation/samples/mutation.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0350d2b9e755b03bb5c04784937dd33002f51913
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/allow-privilege-escalation/samples/mutation.yaml
@@ -0,0 +1,50 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspdefaultallowprivilegeescalation
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.containers[name:*].securityContext.allowPrivilegeEscalation"
+ parameters:
+ pathTests:
+ - subPath: "spec.containers[name:*].securityContext.allowPrivilegeEscalation"
+ condition: MustNotExist
+ assign:
+ value: false
+---
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspdefaultallowprivilegeescalation-init
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.initContainers[name:*].securityContext.allowPrivilegeEscalation"
+ parameters:
+ pathTests:
+ - subPath: "spec.initContainers[name:*].securityContext.allowPrivilegeEscalation"
+ condition: MustNotExist
+ assign:
+ value: false
+---
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspdefaultallowprivilegeescalation-ephemeral
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.ephemeralContainers[name:*].securityContext.allowPrivilegeEscalation"
+ parameters:
+ pathTests:
+ - subPath: "spec.ephemeralContainers[name:*].securityContext.allowPrivilegeEscalation"
+ condition: MustNotExist
+ assign:
+ value: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/README.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..b0c2de2544b4ceb8c1f8b0dad074dff89fbae6c5
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/README.md
@@ -0,0 +1,9 @@
+# Capabilities
+
+This library example demonstrates the [`defaultAddCapabilities`](https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities) in Pod Security Policies.
+
+There are two variations of this example:
+1. `Assign`: Overrides each containers' security context capabilities with the provided list in `spec.parameters.assign.value`.
+1. `ModifySet`: Appends `spec.parameters.values.fromList` to each containers' security context capabilities. `ModifySet` requires Gatekeeper v3.7.0 and later.
+
+For more information, please see [Gatekeeper mutation docs](https://open-policy-agent.github.io/gatekeeper/website/docs/mutation).
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/default-add-capabilities/example.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/default-add-capabilities/example.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..452a83f27d350158f1d50dd6028efca26336093c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/default-add-capabilities/example.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-default-add-capabilities
+ labels:
+ app: nginx-default-add-capabilities
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/mutation-assign.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/mutation-assign.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a90a2ed57b82ed5f58b82a29f86cb0cce2700dd5
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/mutation-assign.yaml
@@ -0,0 +1,13 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspcapabilities
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.containers[name:*].securityContext.capabilities.add"
+ parameters:
+ assign:
+ value: ["NEW_CAPABILITY"] # default add capability
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/mutation-modifyset.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/mutation-modifyset.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4413e58b0d4463209db084f1ddd3111815b1089b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/capabilities/samples/mutation-modifyset.yaml
@@ -0,0 +1,19 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: ModifySet
+metadata:
+ name: k8spspcapabilities
+spec:
+ applyTo:
+ - groups: [""]
+ versions: ["v1"]
+ kinds: ["Pod"]
+ match:
+ scope: Namespaced
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ location: "spec.containers[name:*].securityContext.capabilities.add"
+ parameters:
+ operation: merge
+ values:
+ fromList: ["NEW_CAPABILITY"]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/read-only-root-filesystem/samples/mutation.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/read-only-root-filesystem/samples/mutation.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..40417e0bad29cfef5dab29505f912524b4015212
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/read-only-root-filesystem/samples/mutation.yaml
@@ -0,0 +1,16 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspreadonlyrootfs
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.containers[name:*].securityContext.readOnlyRootFilesystem"
+ parameters:
+ pathTests:
+ - subPath: "spec.containers[name:*].securityContext.readOnlyRootFilesystem"
+ condition: MustNotExist
+ assign:
+ value: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/read-only-root-filesystem/samples/read-only-root-filesystem/example.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/read-only-root-filesystem/samples/read-only-root-filesystem/example.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e49389f4e6e4fa3ad765b044e8c88fa2138e4dde
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/read-only-root-filesystem/samples/read-only-root-filesystem/example.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfs
+ labels:
+ app: nginx-readonlyrootfs
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/seccomp/samples/default-seccomp/example.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/seccomp/samples/default-seccomp/example.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..dcad070a632520cd87c2a12924d9fa62aaa7dd5d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/seccomp/samples/default-seccomp/example.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-default-seccomp
+ labels:
+ app: nginx-default-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/seccomp/samples/mutation.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/seccomp/samples/mutation.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fb45aba8354b160ed881b86912a728df85b02e97
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/seccomp/samples/mutation.yaml
@@ -0,0 +1,17 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspseccomp
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: spec.securityContext.seccompProfile
+ parameters:
+ pathTests:
+ - subPath: spec.securityContext.seccompProfile
+ condition: MustNotExist
+ assign:
+ value:
+ type: RuntimeDefault
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/selinux/samples/default-selinux/example.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/selinux/samples/default-selinux/example.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1a14a44b031435855a72cbc40e99f5277b0f6c6a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/selinux/samples/default-selinux/example.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-default-selinux
+ labels:
+ app: nginx-default-selinux
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/selinux/samples/mutation.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/selinux/samples/mutation.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b945f644a3e3db10706c54a05474dad98dd6785a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/selinux/samples/mutation.yaml
@@ -0,0 +1,20 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspselinux
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: spec.containers[name:*].securityContext.seLinuxOptions
+ parameters:
+ pathTests:
+ - subPath: spec.containers[name:*].securityContext.seLinuxOptions
+ condition: MustNotExist
+ assign:
+ value:
+ level: s1:c234,c567
+ user: sysadm_u
+ role: sysadm_r
+ type: svirt_lxc_net_t
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-fsGroup.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-fsGroup.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..05dbc5ebbcd4b25e02b50ce1734721cc9b706237
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-fsGroup.yaml
@@ -0,0 +1,16 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspfsGroup
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.securityContext.fsGroup"
+ parameters:
+ pathTests:
+ - subPath: "spec.securityContext.fsGroup"
+ condition: MustNotExist
+ assign:
+ value: 3000
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-mustRunAsNonRoot.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-mustRunAsNonRoot.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..07d7940245e86fed510fd95c75d5cb03fa7a10d4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-mustRunAsNonRoot.yaml
@@ -0,0 +1,33 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spsprunasnonroot
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.containers[name:*].securityContext.runAsNonRoot"
+ parameters:
+ pathTests:
+ - subPath: "spec.containers[name:*].securityContext.runAsNonRoot"
+ condition: MustNotExist
+ assign:
+ value: true
+---
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spsprunasnonroot-init
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.initContainers[name:*].securityContext.runAsNonRoot"
+ parameters:
+ pathTests:
+ - subPath: "spec.initContainers[name:*].securityContext.runAsNonRoot"
+ condition: MustNotExist
+ assign:
+ value: true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-runAsGroup.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-runAsGroup.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d1ba1df7b4dba6e1ce4509aa711d7684fc0af68f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-runAsGroup.yaml
@@ -0,0 +1,33 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spsprunasgroup
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.containers[name:*].securityContext.runAsGroup"
+ parameters:
+ pathTests:
+ - subPath: "spec.containers[name:*].securityContext.runAsGroup"
+ condition: MustNotExist
+ assign:
+ value: 2000
+---
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spsprunasgroup-init
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.initContainers[name:*].securityContext.runAsGroup"
+ parameters:
+ pathTests:
+ - subPath: "spec.initContainers[name:*].securityContext.runAsGroup"
+ condition: MustNotExist
+ assign:
+ value: 2000
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-runAsUser.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-runAsUser.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f388cbd727c5abf8bd5e3ed9c5a8a6b0de638279
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-runAsUser.yaml
@@ -0,0 +1,33 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spsprunasuser
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.containers[name:*].securityContext.runAsUser"
+ parameters:
+ pathTests:
+ - subPath: "spec.containers[name:*].securityContext.runAsUser"
+ condition: MustNotExist
+ assign:
+ value: 1000
+---
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spsprunasuser-init
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.initContainers[name:*].securityContext.runAsUser"
+ parameters:
+ pathTests:
+ - subPath: "spec.initContainers[name:*].securityContext.runAsUser"
+ condition: MustNotExist
+ assign:
+ value: 1000
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-supplementalGroups.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-supplementalGroups.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..15c7bae1cdee25dc71eb4f0fb44dce55132c1b19
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/mutation-supplementalGroups.yaml
@@ -0,0 +1,16 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspsupplementalgroups
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.securityContext.supplementalGroups"
+ parameters:
+ pathTests:
+ - subPath: "spec.securityContext.supplementalGroups"
+ condition: MustNotExist
+ assign:
+ value: [3000]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/users/example-nomutation.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/users/example-nomutation.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c00e63bffd1fe323ca39b72b8574beedc923314e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/users/example-nomutation.yaml
@@ -0,0 +1,16 @@
+# Pods which have specified neither runAsNonRoot nor runAsUser settings will be mutated to set runAsNonRoot=true
+# thus requiring a defined non-zero numeric USER directive in the container.
+# https://kubernetes.io/docs/concepts/policy/pod-security-policy/#users-and-groups
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-run-as-root
+ labels:
+ app: nginx-run-as-root
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ runAsUser: 0
+ runAsNonRoot: false
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/users/example.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/users/example.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a6f68cbd514ade2708a2ec70e5586932768b2eea
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/mutation/pod-security-policy/users/samples/users/example.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-users
+ labels:
+ app: nginx-users
+spec:
+ containers:
+ - name: nginx
+ image: nginx
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/go.mod b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/go.mod
new file mode 100644
index 0000000000000000000000000000000000000000..134f8e4519648bac4bbcfd97cd42be5376de9da4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/go.mod
@@ -0,0 +1,11 @@
+module artifacthub
+
+go 1.19
+
+require gopkg.in/yaml.v3 v3.0.1
+
+require (
+ github.com/kr/text v0.2.0 // indirect
+ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
+ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
+)
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/go.sum b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/go.sum
new file mode 100644
index 0000000000000000000000000000000000000000..48b82fab0253e40426d2ce4805f338cb63ff790c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/go.sum
@@ -0,0 +1,12 @@
+github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
+github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
+gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/hub.go b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/hub.go
new file mode 100644
index 0000000000000000000000000000000000000000..8cbb5975c028c032a035855b2c600b0a5ef16f60
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/hub.go
@@ -0,0 +1,416 @@
+package main
+
+import (
+ "crypto/sha256"
+ "encoding/hex"
+ "fmt"
+ "io"
+ "io/fs"
+ "net/http"
+ "os"
+ "path"
+ "path/filepath"
+ "time"
+
+ "gopkg.in/yaml.v3"
+)
+
+// ArtifactHubMetadata ...
+type ArtifactHubMetadata struct {
+ Version string `yaml:"version,omitempty"`
+ Name string `yaml:"name,omitempty"`
+ DisplayName string `yaml:"displayName,omitempty"`
+ CreatedAt string `yaml:"createdAt,omitempty"`
+ Description string `yaml:"description,omitempty"`
+ LogoPath string `yaml:"logoPath,omitempty"`
+ LogoURL string `yaml:"logoURL,omitempty"`
+ Digest string `yaml:"digest,omitempty"`
+ License string `yaml:"license,omitempty"`
+ HomeURL string `yaml:"homeURL,omitempty"`
+ AppVersion string `yaml:"appVersion,omitempty"`
+ ContainersImages []struct {
+ Name string `yaml:"name,omitempty"`
+ Image string `yaml:"image,omitempty"`
+ Whitelisted string `yaml:"whitelisted,omitempty"`
+ } `yaml:"containersImages,omitempty"`
+ ContainsSecurityUpdates string `yaml:"containsSecurityUpdates,omitempty"`
+ Operator string `yaml:"operator,omitempty"`
+ Deprecated string `yaml:"deprecated,omitempty"`
+ Prerelease string `yaml:"prerelease,omitempty"`
+ Keywords []string `yaml:"keywords,omitempty"`
+ Links []struct {
+ Name string `yaml:"name,omitempty"`
+ URL string `yaml:"url,omitempty"`
+ } `yaml:"links,omitempty"`
+ Readme string `yaml:"readme,omitempty"`
+ Install string `yaml:"install,omitempty"`
+ Changes []struct {
+ Kind string `yaml:"kind,omitempty"`
+ Description string `yaml:"description,omitempty"`
+ Links []struct {
+ Name string `yaml:"name,omitempty"`
+ URL string `yaml:"url,omitempty"`
+ } `yaml:"links,omitempty"`
+ } `yaml:"changes,omitempty"`
+ Maintainers []struct {
+ Name string `yaml:"name,omitempty"`
+ Email string `yaml:"email,omitempty"`
+ } `yaml:"maintainers,omitempty"`
+ Provider struct {
+ Name string `yaml:"name,omitempty"`
+ } `yaml:"provider,omitempty"`
+ Ignore []string `yaml:"ignore,omitempty"`
+ Recommendations []struct {
+ URL string `yaml:"url,omitempty"`
+ } `yaml:"recommendations,omitempty"`
+ Screenshots []struct {
+ Title string `yaml:"title,omitempty"`
+ URL string `yaml:"url,omitempty"`
+ } `yaml:"screenshots,omitempty"`
+ Annotations struct {
+ Key1 string `yaml:"key1,omitempty"`
+ Key2 string `yaml:"key2,omitempty"`
+ } `yaml:"annotations,omitempty"`
+}
+
+// HTTPClient is an interface that matches the methods needed from http.Client.
+type HTTPClient interface {
+ Get(url string) (*http.Response, error)
+}
+
+// DefaultClient is a default implementation of the HTTPClient interface.
+type DefaultClient struct{}
+
+// Get is a method of DefaultClient that makes the actual HTTP GET request.
+func (c DefaultClient) Get(url string) (*http.Response, error) {
+ return http.Get(url) //nolint
+}
+
+const (
+ // entryPoint is the directory entry point for artifact hub.
+ ahEntryPoint = "artifacthub"
+
+ // directory entry point for library.
+ entryPoint = "library"
+
+ // raw github source URL.
+ sourceURL = "https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/"
+)
+
+func main() {
+ pwd, err := os.Getwd()
+ if err != nil {
+ fmt.Println("error while getting pwd")
+ panic(err)
+ }
+
+ rootDir := filepath.Join(pwd, "..", "..")
+ libraryPath := filepath.Join(rootDir, entryPoint)
+ dirEntry, err := os.ReadDir(libraryPath)
+ if err != nil {
+ fmt.Println("error while listing directories under library")
+ panic(err)
+ }
+
+ for _, entry := range dirEntry {
+ if entry.Type().IsDir() {
+ basePath, _ := filepath.Abs(filepath.Join(libraryPath, entry.Name()))
+ directories, err := os.ReadDir(basePath)
+ if err != nil {
+ fmt.Println("error while listing directories under ", entry.Name())
+ panic(err)
+ }
+
+ for _, dir := range directories {
+ if dir.Type().IsDir() {
+ fmt.Println("Generating artifact hub content for ", filepath.Join(basePath, dir.Name()))
+ constraintTemplateContent, err := os.ReadFile(filepath.Join(basePath, dir.Name(), "template.yaml"))
+ if err != nil {
+ fmt.Println("error while reading template.yaml")
+ panic(err)
+ }
+
+ constraintTemplate := make(map[string]interface{})
+ err = yaml.Unmarshal(constraintTemplateContent, &constraintTemplate)
+ if err != nil {
+ fmt.Println("error while unmarshaling template.yaml")
+ panic(err)
+ }
+
+ githubSourceRelativePath := filepath.Join(entryPoint, entry.Name(), dir.Name(), "template.yaml")
+ createVersionDirectory(
+ rootDir,
+ filepath.Join(entryPoint, entry.Name(), dir.Name()),
+ githubSourceRelativePath,
+ constraintTemplate,
+ )
+ }
+ }
+ }
+ }
+}
+
+func createVersionDirectory(rootDir, basePath, githubSourceRelativePath string, constraintTemplate map[string]interface{}) {
+ version := getConstraintTemplateVersion(constraintTemplate)
+
+ // create directory if not exists
+ destination := filepath.Join(rootDir, ahEntryPoint, basePath, version)
+ if _, err := os.Stat(destination); os.IsNotExist(err) {
+ err = os.MkdirAll(destination, 0o755)
+ if err != nil {
+ fmt.Println("error while creating version directory")
+ panic(err)
+ }
+ }
+
+ source := filepath.Join(rootDir, basePath)
+ ahBasePath := filepath.Join(ahEntryPoint, basePath, version)
+
+ // create artifacthub-pkg.yml file first then copy rest of the files. This will avoid unnecessary diff if there is any error while generating or updating artifacthub-pkg.yml
+ // add artifact hub metadata
+ addArtifactHubMetadata(filepath.Base(source), destination, ahBasePath, githubSourceRelativePath, constraintTemplate)
+
+ // copy directory content
+ err := copyDirectory(source, destination)
+ if err != nil {
+ fmt.Println("error while copying directories")
+ panic(err)
+ }
+}
+
+func addArtifactHubMetadata(sourceDirectory, destinationPath, ahBasePath, githubSourceRelativePath string, constraintTemplate map[string]interface{}) {
+ metadataFilePath := filepath.Join(destinationPath, "artifacthub-pkg.yml")
+
+ constraintTemplateHash := getConstraintTemplateHash(constraintTemplate)
+ artifactHubMetadata := getMetadataIfExist(metadataFilePath)
+ if artifactHubMetadata == nil {
+ format := "2006-01-02 15:04:05Z"
+ currentDateTime, err := time.Parse(format, time.Now().UTC().Format(format))
+ if err != nil {
+ fmt.Println("error while parsing current date time")
+ panic(err)
+ }
+
+ artifactHubMetadata = &ArtifactHubMetadata{
+ Version: getConstraintTemplateVersion(constraintTemplate),
+ Name: getConstraintTemplateName(constraintTemplate),
+ DisplayName: getConstraintTemplateTitle(constraintTemplate),
+ CreatedAt: currentDateTime.Format(time.RFC3339),
+ Description: getConstraintTemplateDescription(constraintTemplate),
+ License: "Apache-2.0",
+ HomeURL: "https://open-policy-agent.github.io/gatekeeper-library/website/" + sourceDirectory,
+ Keywords: []string{
+ "gatekeeper",
+ "open-policy-agent",
+ "policies",
+ },
+ Provider: struct {
+ Name string `yaml:"name,omitempty"`
+ }{
+ Name: "Gatekeeper Library",
+ },
+ Install: fmt.Sprintf("### Usage\n```shell\nkubectl apply -f %s\n```", sourceURL+filepath.Join(ahBasePath, "template.yaml")),
+ Readme: fmt.Sprintf(`# %s
+%s`, getConstraintTemplateTitle(constraintTemplate), getConstraintTemplateDescription(constraintTemplate)),
+ }
+ } else {
+ // when metadata file already exists, check version to make sure it's updated if constraint template is changed
+ err := checkVersion(&DefaultClient{}, artifactHubMetadata, githubSourceRelativePath)
+ if err != nil {
+ panic(err)
+ }
+ }
+
+ // updating digest triggers artifact hub to update the package
+ artifactHubMetadata.Digest = constraintTemplateHash
+
+ artifactHubMetadataBytes, err := yaml.Marshal(artifactHubMetadata)
+ if err != nil {
+ fmt.Println("error while marshaling artifact hub metadata")
+ panic(err)
+ }
+
+ err = os.WriteFile(filepath.Join(destinationPath, "artifacthub-pkg.yml"), artifactHubMetadataBytes, 0o600)
+ if err != nil {
+ fmt.Println("error while writing artifact hub metadata")
+ panic(err)
+ }
+}
+
+func checkVersion(httpClient HTTPClient, artifactHubMetadata *ArtifactHubMetadata, githubSourceRelativePath string) error {
+ // compare hash with template.yaml in github
+ githubTemplateURL := sourceURL + githubSourceRelativePath
+ resp, err := httpClient.Get(githubTemplateURL)
+ if err != nil {
+ return fmt.Errorf("error while getting constraint template from github: %w", err)
+ }
+ if resp.StatusCode == http.StatusNotFound {
+ fmt.Printf("constraint template %s not found in github. It is likely that constraint template is being updated locally and not merged to github yet.\n", githubSourceRelativePath)
+
+ return nil
+ }
+ defer resp.Body.Close()
+
+ githubConstraintTemplateBytes, err := io.ReadAll(resp.Body)
+ if err != nil {
+ return fmt.Errorf("error while reading constraint template from github")
+ }
+
+ githubConstraintTemplate := make(map[string]interface{})
+ err = yaml.Unmarshal(githubConstraintTemplateBytes, &githubConstraintTemplate)
+ if err != nil {
+ return fmt.Errorf("error while unmarshaling constraint template from github")
+ }
+
+ githubConstraintTemplateHash := getConstraintTemplateHash(githubConstraintTemplate)
+ if artifactHubMetadata.Digest != githubConstraintTemplateHash {
+ // compare version
+ if artifactHubMetadata.Version == getConstraintTemplateVersion(githubConstraintTemplate) {
+ // panic if version is same but hash is different
+ return fmt.Errorf("looks like template.yaml is updated but the version is not. Please update the 'metadata.gatekeeper.sh/version' annotation in the template.yaml source")
+ }
+ }
+
+ return nil
+}
+
+func getConstraintTemplateHash(constraintTemplate map[string]interface{}) string {
+ constraintTemplateBytes, err := yaml.Marshal(constraintTemplate)
+ if err != nil {
+ fmt.Println("error while marshaling constraint template")
+ panic(err)
+ }
+
+ hash := sha256.New()
+ hash.Write(constraintTemplateBytes)
+ return hex.EncodeToString(hash.Sum(nil))
+}
+
+func getMetadataIfExist(metadataFilePath string) *ArtifactHubMetadata {
+ if _, err := os.Stat(metadataFilePath); err == nil {
+ // file exists
+ metadataFile, err := os.ReadFile(metadataFilePath)
+ if err != nil {
+ fmt.Println("error while reading artifact hub metadata")
+ panic(err)
+ }
+
+ artifactHubMetadata := ArtifactHubMetadata{}
+ err = yaml.Unmarshal(metadataFile, &artifactHubMetadata)
+ if err != nil {
+ fmt.Println("error while unmarshaling artifact hub metadata")
+ panic(err)
+ }
+
+ return &artifactHubMetadata
+ }
+
+ return nil
+}
+
+// copyDirectory copies a whole directory recursively.
+func copyDirectory(src string, dst string) error {
+ var err error
+ var directoryFileInfo []fs.DirEntry
+ var sourceFileInfo os.FileInfo
+
+ if sourceFileInfo, err = os.Stat(src); err != nil {
+ return err
+ }
+
+ if err = os.MkdirAll(dst, sourceFileInfo.Mode()); err != nil {
+ return err
+ }
+
+ if directoryFileInfo, err = os.ReadDir(src); err != nil {
+ return err
+ }
+
+ for _, fd := range directoryFileInfo {
+ sourceFilePath := path.Join(src, fd.Name())
+ destinationFilePath := path.Join(dst, fd.Name())
+
+ if fd.IsDir() {
+ if err = copyDirectory(sourceFilePath, destinationFilePath); err != nil {
+ fmt.Println(err)
+ panic(err)
+ }
+ } else {
+ if err = copyFile(sourceFilePath, destinationFilePath); err != nil {
+ fmt.Println(err)
+ panic(err)
+ }
+ }
+ }
+ return nil
+}
+
+// copyFile copies a single file from src to dst.
+func copyFile(src, dst string) error {
+ var err error
+ var sourceFile *os.File
+ var destinationFile *os.File
+ var sourceFileInfo os.FileInfo
+
+ if sourceFile, err = os.Open(src); err != nil {
+ return err
+ }
+ defer sourceFile.Close()
+
+ if destinationFile, err = os.Create(dst); err != nil {
+ return err
+ }
+ defer destinationFile.Close()
+
+ if _, err = io.Copy(destinationFile, sourceFile); err != nil {
+ return err
+ }
+
+ if sourceFileInfo, err = os.Stat(src); err != nil {
+ return err
+ }
+ return os.Chmod(dst, sourceFileInfo.Mode())
+}
+
+func getConstraintTemplateMetadata(constraintTemplate map[string]interface{}) map[string]interface{} {
+ metadata, ok := constraintTemplate["metadata"].(map[string]interface{})
+ if !ok {
+ panic("error while retrieving constraintTemplate metadata")
+ }
+ return metadata
+}
+
+func getConstraintTemplateAnnotations(constraintTemplate map[string]interface{}) map[string]interface{} {
+ metadata := getConstraintTemplateMetadata(constraintTemplate)
+
+ annotations, ok := metadata["annotations"].(map[string]interface{})
+ if !ok {
+ panic("error while retrieving constraintTemplate annotations")
+ }
+
+ return annotations
+}
+
+func getConstraintTemplateName(constraintTemplate map[string]interface{}) string {
+ metadata := getConstraintTemplateMetadata(constraintTemplate)
+
+ return fmt.Sprintf("%s", metadata["name"])
+}
+
+func getConstraintTemplateVersion(constraintTemplate map[string]interface{}) string {
+ annotations := getConstraintTemplateAnnotations(constraintTemplate)
+
+ return fmt.Sprintf("%s", annotations["metadata.gatekeeper.sh/version"])
+}
+
+func getConstraintTemplateTitle(constraintTemplate map[string]interface{}) string {
+ annotations := getConstraintTemplateAnnotations(constraintTemplate)
+
+ return fmt.Sprintf("%s", annotations["metadata.gatekeeper.sh/title"])
+}
+
+func getConstraintTemplateDescription(constraintTemplate map[string]interface{}) string {
+ annotations := getConstraintTemplateAnnotations(constraintTemplate)
+
+ return fmt.Sprintf("%s", annotations["description"])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/hub_test.go b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/hub_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..79db063d6621116d3f034aeb74063704a8dce92d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/hub_test.go
@@ -0,0 +1,275 @@
+package main
+
+import (
+ "errors"
+ "io"
+ "net/http"
+ "os"
+ "strings"
+ "testing"
+
+ "gopkg.in/yaml.v3"
+)
+
+const (
+ expectedHash = "dc888d5c05f7e0421a47adfe2d4e59b5264d6e56ec0b3392fe9b3d224bd61a3e" //nolint
+)
+
+func TestGetConstraintTemplateHash(t *testing.T) {
+ testCases := []struct {
+ name string
+ template map[string]interface{}
+ expectedHash string
+ expectedError bool
+ }{
+ {
+ name: "valid hash",
+ template: map[string]interface{}{
+ "apiVersion": "constraints.gatekeeper.sh/v1beta1",
+ "kind": "K8sRequiredLabels",
+ "metadata": map[string]interface{}{
+ "name": "ns-must-have-gk",
+ },
+ "spec": map[string]interface{}{
+ "match": map[string]interface{}{
+ "kinds": []interface{}{
+ map[string]interface{}{
+ "apiGroups": []interface{}{"*"},
+ "kinds": []interface{}{"Namespace"},
+ },
+ },
+ },
+ "parameters": map[string]interface{}{
+ "labels": []interface{}{"gatekeeper"},
+ },
+ },
+ },
+ expectedHash: expectedHash,
+ expectedError: false,
+ },
+ {
+ name: "invalid hash",
+ template: map[string]interface{}{
+ "apiVersion": "constraints.gatekeeper.sh/v1beta1",
+ "kind": "K8sRequiredLabels",
+ "metadata": map[string]interface{}{
+ "name": "ns-must-have-gk",
+ },
+ "spec": map[string]interface{}{
+ "match": map[string]interface{}{
+ "kinds": []interface{}{
+ map[string]interface{}{
+ "apiGroups": []interface{}{"*"},
+ },
+ },
+ },
+ },
+ },
+ expectedHash: expectedHash,
+ expectedError: true,
+ },
+ }
+
+ for _, tc := range testCases {
+ t.Run(tc.name, func(t *testing.T) {
+ hash := getConstraintTemplateHash(tc.template)
+ if hash != tc.expectedHash && !tc.expectedError {
+ t.Errorf("expected hash to be %s, got %s", tc.expectedHash, hash)
+ }
+ })
+ }
+}
+
+func TestGetMetadataIfExist(t *testing.T) {
+ testCases := []struct {
+ name string
+ metadataFilePath string
+ expectedNil bool
+ }{
+ {
+ name: "invalid metadata file",
+ metadataFilePath: "testdata/invalid-metadata.yaml",
+ expectedNil: true,
+ },
+ {
+ name: "valid metadata file",
+ metadataFilePath: "testdata/artifacthub-pkg.yml",
+ expectedNil: false,
+ },
+ }
+
+ for _, tc := range testCases {
+ t.Run(tc.name, func(t *testing.T) {
+ metadata := getMetadataIfExist(tc.metadataFilePath)
+ if metadata == nil && !tc.expectedNil {
+ t.Errorf("expected metadata not to be nil")
+ }
+ })
+ }
+}
+
+func TestCopyDirectory(t *testing.T) {
+ // create a temp directory
+ srcDirPath, _ := os.MkdirTemp("", "src")
+ defer os.RemoveAll(srcDirPath)
+
+ // create a temp directory
+ destDirPath, _ := os.MkdirTemp("", "dest")
+ defer os.RemoveAll(destDirPath)
+
+ // create a file in the src directory
+ srcFilePath := srcDirPath + "/test.txt"
+ if os.WriteFile(srcFilePath, []byte("test"), 0o600) != nil {
+ t.Errorf("error writing file")
+ }
+
+ testCases := []struct {
+ name string
+ src string
+ dst string
+ expectedError bool
+ expectedText func() string
+ }{
+ {
+ name: "invalid directory",
+ src: "invalid-src",
+ dst: destDirPath,
+ expectedError: true,
+ },
+ {
+ name: "valid copy",
+ src: srcDirPath,
+ dst: destDirPath,
+ expectedError: false,
+ expectedText: func() string {
+ // read the file in the dest directory
+ destFilePath := destDirPath + "/test.txt"
+ b, _ := os.ReadFile(destFilePath)
+ return string(b)
+ },
+ },
+ }
+
+ for _, tc := range testCases {
+ t.Run(tc.name, func(t *testing.T) {
+ err := copyDirectory(tc.src, tc.dst)
+ if err != nil && !tc.expectedError {
+ t.Errorf("expected error to be nil")
+ }
+
+ if tc.expectedText != nil {
+ if tc.expectedText() != "test" {
+ t.Errorf("expected text to be 'test'")
+ }
+ }
+ })
+ }
+}
+
+// MockClient is a mock implementation of the HTTPClient interface for testing.
+type MockClient struct {
+ Resp *http.Response
+ Err error
+}
+
+// Get is a method of MockClient that returns the pre-configured response and error.
+func (c MockClient) Get(_ string) (*http.Response, error) {
+ return c.Resp, c.Err
+}
+
+func TestCheckVersion(t *testing.T) {
+ testCases := []struct {
+ name string
+ artifactHubMetadata *ArtifactHubMetadata
+ httpStatus int
+ httpError error
+ githubConstraintTemplate map[string]interface{}
+ expectedErrorMessage string
+ }{
+ {
+ name: "invalid version",
+ artifactHubMetadata: &ArtifactHubMetadata{
+ Digest: "invalid-digest",
+ Version: "v1.0.0",
+ },
+ httpStatus: http.StatusOK,
+ githubConstraintTemplate: map[string]interface{}{
+ "metadata": map[string]interface{}{
+ "annotations": map[string]interface{}{
+ "metadata.gatekeeper.sh/version": "v1.0.0",
+ },
+ },
+ },
+ expectedErrorMessage: "looks like template.yaml is updated but the version is not. Please update the 'metadata.gatekeeper.sh/version' annotation in the template.yaml source",
+ },
+ {
+ name: "valid version with same digest",
+ artifactHubMetadata: &ArtifactHubMetadata{
+ Digest: "600ca4d7048b1b64a5d80aaabf015eceef5d613c2f5a0a3d31e5360535d3c6e8",
+ },
+ httpStatus: http.StatusOK,
+ githubConstraintTemplate: map[string]interface{}{
+ "metadata": map[string]interface{}{
+ "annotations": map[string]interface{}{
+ "metadata.gatekeeper.sh/version": "v1.0.0",
+ },
+ },
+ },
+ },
+ {
+ name: "valid version bump with different digest",
+ artifactHubMetadata: &ArtifactHubMetadata{
+ Digest: "digest",
+ Version: "v1.0.1",
+ },
+ httpStatus: http.StatusOK,
+ githubConstraintTemplate: map[string]interface{}{
+ "metadata": map[string]interface{}{
+ "annotations": map[string]interface{}{
+ "metadata.gatekeeper.sh/version": "v1.0.0",
+ },
+ },
+ },
+ },
+ {
+ name: "template not found",
+ httpStatus: http.StatusNotFound,
+ },
+ {
+ name: "get template error",
+ httpStatus: http.StatusOK,
+ httpError: errors.New("fake error"),
+ expectedErrorMessage: "error while getting constraint template from github: fake error",
+ },
+ }
+
+ for _, tc := range testCases {
+ t.Run(tc.name, func(t *testing.T) {
+ githubConstraintTemplateBytes, _ := yaml.Marshal(tc.githubConstraintTemplate)
+
+ // Create a mock client with a pre-configured response and error.
+ mockResp := &http.Response{
+ StatusCode: tc.httpStatus,
+ Body: io.NopCloser(strings.NewReader(string(githubConstraintTemplateBytes))),
+ }
+ mockClient := MockClient{
+ Resp: mockResp,
+ Err: tc.httpError,
+ }
+
+ err := checkVersion(mockClient, tc.artifactHubMetadata, "path/to/constraint/template.yaml")
+
+ if tc.expectedErrorMessage != "" {
+ if err == nil {
+ t.Errorf("Expected error '%s', but got no error", tc.expectedErrorMessage)
+ } else if err.Error() != tc.expectedErrorMessage {
+ t.Errorf("Expected error '%s', but got '%s'", tc.expectedErrorMessage, err.Error())
+ }
+ } else {
+ if err != nil {
+ t.Errorf("Expected no error, but got '%s'", err.Error())
+ }
+ }
+ })
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/testdata/artifacthub-pkg.yml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/testdata/artifacthub-pkg.yml
new file mode 100644
index 0000000000000000000000000000000000000000..1dc8a81ba91790ceaf3723ff1c9a24d3300c1fe7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/artifacthub/testdata/artifacthub-pkg.yml
@@ -0,0 +1,22 @@
+version: 1.0.0
+name: k8sallowedrepos
+displayName: Allowed Repositories
+createdAt: "2022-09-26T17:28:27Z"
+description: Requires container images to begin with a string from the specified list.
+digest: eaec68f7273f5d79ced3ed778d5c2fc26b241e5db3a0e5119650bab651f8f1ed
+license: Apache-2.0
+homeURL: https://open-policy-agent.github.io/gatekeeper-library/website/allowedrepos
+keywords:
+ - gatekeeper
+ - open-policy-agent
+ - policies
+readme: |-
+ # Allowed Repositories
+ Requires container images to begin with a string from the specified list.
+install: |-
+ ### Usage
+ ```shell
+ kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/artifacthub/library/general/allowedrepos/1.0.0/template.yaml
+ ```
+provider:
+ name: Gatekeeper Library
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/generate.sh b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/generate.sh
new file mode 100644
index 0000000000000000000000000000000000000000..1d94dabb13b9dbaaac9d814553a5c8e9ba9249f9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/generate.sh
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+main() {
+ for tmpl in $(find src -name 'constraint.tmpl'); do
+ src_dir="$(dirname "${tmpl}")"
+ lib_dir="library/${src_dir#src/}"
+ if [[ ! -d ${lib_dir} ]]; then
+ mkdir -p "${lib_dir}"
+ fi
+
+ echo "Generating ${lib_dir}/template.yaml"
+ gomplate -f "${src_dir}/constraint.tmpl" > "${lib_dir}/template.yaml"
+
+ for req in kustomization.yaml suite.yaml; do
+ if [[ ! -f "${lib_dir}/${req}" ]]; then
+ echo "${lib_dir}/${req} is missing"
+ exit 1
+ fi
+ done
+
+ if [[ ! -d "${lib_dir}/samples" ]]; then
+ echo "${lib_dir}/samples is missing"
+ exit 1
+ fi
+ done
+
+ for tmpl in $(find library -name 'template.yaml'); do
+ lib_dir="$(dirname "${tmpl}")"
+ src_dir=src/${lib_dir#library/}
+ if [[ ! -d "${src_dir}" ]]; then
+ echo "${lib_dir} is missing the corresponding ${src_dir} folder"
+ exit 1
+ fi
+
+ for req in src.rego src_test.rego constraint.tmpl; do
+ if [[ ! -f "${src_dir}/${req}" ]]; then
+ echo "${src_dir}/${req} is missing"
+ exit 1
+ fi
+ done
+ done
+}
+
+main
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-suites.sh b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-suites.sh
new file mode 100644
index 0000000000000000000000000000000000000000..b8f591ce5623c725c89a8ed8be4b1a41a6446993
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-suites.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Look in the library and find every `template.yaml` file
+TEMPLATE_PATHS=$(find . -name "*template.yaml")
+
+FAILURE=false
+for path in $TEMPLATE_PATHS; do
+
+ # cut off the filename
+ dir=$(dirname "$path")
+
+ # the suite.yaml should be in the exact same directory as the template.yaml
+ suite_path="${dir}/suite.yaml"
+
+ if ! [[ -s "$suite_path" ]]; then
+ printf " > ERROR: Directory '%s' must contain a non-empty suite.yaml file\n" "$dir"
+ FAILURE=true
+ fi
+done
+
+if "$FAILURE"; then
+ exit 1
+fi
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/go.mod b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/go.mod
new file mode 100644
index 0000000000000000000000000000000000000000..d7e279a3fd0d1e875966dd9a0ee5b87f02357a96
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/go.mod
@@ -0,0 +1,128 @@
+module require-sync
+
+go 1.20
+
+require (
+ github.com/open-policy-agent/frameworks/constraint v0.0.0-20231030230613-2e0cb3d68575
+ github.com/open-policy-agent/gatekeeper/v3 v3.14.2
+ k8s.io/apimachinery v0.27.16
+)
+
+require (
+ cloud.google.com/go/compute/metadata v0.2.3 // indirect
+ github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
+ github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
+ github.com/Microsoft/hcsshim v0.11.4 // indirect
+ github.com/OneOfOne/xxhash v1.2.8 // indirect
+ github.com/agnivade/levenshtein v1.1.1 // indirect
+ github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
+ github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
+ github.com/aws/aws-sdk-go v1.44.23 // indirect
+ github.com/beorn7/perks v1.0.1 // indirect
+ github.com/blang/semver/v4 v4.0.0 // indirect
+ github.com/cenkalti/backoff/v4 v4.2.1 // indirect
+ github.com/cespare/xxhash/v2 v2.2.0 // indirect
+ github.com/containerd/containerd v1.7.11 // indirect
+ github.com/containerd/log v0.1.0 // indirect
+ github.com/davecgh/go-spew v1.1.1 // indirect
+ github.com/docker/cli v24.0.6+incompatible // indirect
+ github.com/docker/distribution v2.8.2+incompatible // indirect
+ github.com/docker/docker v24.0.9+incompatible // indirect
+ github.com/docker/docker-credential-helpers v0.7.0 // indirect
+ github.com/docker/go-connections v0.4.0 // indirect
+ github.com/docker/go-metrics v0.0.1 // indirect
+ github.com/docker/go-units v0.5.0 // indirect
+ github.com/emicklei/go-restful/v3 v3.10.1 // indirect
+ github.com/evanphx/json-patch v5.6.0+incompatible // indirect
+ github.com/evanphx/json-patch/v5 v5.6.0 // indirect
+ github.com/felixge/httpsnoop v1.0.4 // indirect
+ github.com/fsnotify/fsnotify v1.6.0 // indirect
+ github.com/go-ini/ini v1.67.0 // indirect
+ github.com/go-logr/logr v1.4.1 // indirect
+ github.com/go-logr/stdr v1.2.2 // indirect
+ github.com/go-openapi/jsonpointer v0.19.6 // indirect
+ github.com/go-openapi/jsonreference v0.20.1 // indirect
+ github.com/go-openapi/swag v0.22.3 // indirect
+ github.com/gobwas/glob v0.2.3 // indirect
+ github.com/gogo/protobuf v1.3.2 // indirect
+ github.com/golang/glog v1.2.0 // indirect
+ github.com/golang/protobuf v1.5.4 // indirect
+ github.com/google/cel-go v0.12.6 // indirect
+ github.com/google/gnostic v0.6.9 // indirect
+ github.com/google/go-cmp v0.6.0 // indirect
+ github.com/google/gofuzz v1.2.0 // indirect
+ github.com/google/pprof v0.0.0-20220318212150-b2ab0324ddda // indirect
+ github.com/google/uuid v1.6.0 // indirect
+ github.com/gorilla/mux v1.8.0 // indirect
+ github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
+ github.com/imdario/mergo v0.3.13 // indirect
+ github.com/josharian/intern v1.0.0 // indirect
+ github.com/json-iterator/go v1.1.12 // indirect
+ github.com/klauspost/compress v1.16.0 // indirect
+ github.com/mailru/easyjson v0.7.7 // indirect
+ github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
+ github.com/miekg/dns v1.1.48 // indirect
+ github.com/mitchellh/mapstructure v1.4.3 // indirect
+ github.com/moby/locker v1.0.1 // indirect
+ github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect
+ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
+ github.com/modern-go/reflect2 v1.0.2 // indirect
+ github.com/morikuni/aec v1.0.0 // indirect
+ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
+ github.com/open-policy-agent/opa v0.57.1 // indirect
+ github.com/opencontainers/go-digest v1.0.0 // indirect
+ github.com/opencontainers/image-spec v1.1.0-rc5 // indirect
+ github.com/pkg/errors v0.9.1 // indirect
+ github.com/prometheus/client_golang v1.16.0 // indirect
+ github.com/prometheus/client_model v0.4.0 // indirect
+ github.com/prometheus/common v0.42.0 // indirect
+ github.com/prometheus/procfs v0.10.1 // indirect
+ github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
+ github.com/sirupsen/logrus v1.9.3 // indirect
+ github.com/spf13/pflag v1.0.5 // indirect
+ github.com/stoewer/go-strcase v1.2.0 // indirect
+ github.com/tchap/go-patricia/v2 v2.3.1 // indirect
+ github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
+ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
+ github.com/yashtewari/glob-intersection v0.2.0 // indirect
+ go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
+ go.opentelemetry.io/otel v1.22.0 // indirect
+ go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
+ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 // indirect
+ go.opentelemetry.io/otel/metric v1.22.0 // indirect
+ go.opentelemetry.io/otel/sdk v1.21.0 // indirect
+ go.opentelemetry.io/otel/trace v1.22.0 // indirect
+ go.opentelemetry.io/proto/otlp v1.0.0 // indirect
+ go.uber.org/multierr v1.8.0 // indirect
+ golang.org/x/mod v0.14.0 // indirect
+ golang.org/x/net v0.23.0 // indirect
+ golang.org/x/oauth2 v0.17.0 // indirect
+ golang.org/x/sync v0.6.0 // indirect
+ golang.org/x/sys v0.18.0 // indirect
+ golang.org/x/term v0.18.0 // indirect
+ golang.org/x/text v0.14.0 // indirect
+ golang.org/x/time v0.5.0 // indirect
+ gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect
+ google.golang.org/appengine v1.6.8 // indirect
+ google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect
+ google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
+ google.golang.org/grpc v1.63.2 // indirect
+ google.golang.org/protobuf v1.33.0 // indirect
+ gopkg.in/inf.v0 v0.9.1 // indirect
+ gopkg.in/yaml.v2 v2.4.0 // indirect
+ gopkg.in/yaml.v3 v3.0.1 // indirect
+ k8s.io/api v0.27.4 // indirect
+ k8s.io/apiextensions-apiserver v0.27.4 // indirect
+ k8s.io/apiserver v0.27.4 // indirect
+ k8s.io/client-go v0.27.4 // indirect
+ k8s.io/component-base v0.27.4 // indirect
+ k8s.io/klog/v2 v2.90.1 // indirect
+ k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
+ k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
+ oras.land/oras-go v1.2.4 // indirect
+ sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
+ sigs.k8s.io/controller-runtime v0.15.0 // indirect
+ sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
+ sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
+ sigs.k8s.io/yaml v1.3.0 // indirect
+)
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/go.sum b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/go.sum
new file mode 100644
index 0000000000000000000000000000000000000000..3654a505a5dd667298c52575407408f4211d5655
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/go.sum
@@ -0,0 +1,553 @@
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.97.0 h1:3DXvAyifywvq64LfkKaMOmkWPS1CikIQdMe2lY9vxU8=
+cloud.google.com/go/compute v1.24.0 h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg=
+cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
+cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
+cloud.google.com/go/monitoring v1.18.0 h1:NfkDLQDG2UR3WYZVQE8kwSbUIEyIqJUPl+aOQdFH1T4=
+cloud.google.com/go/trace v1.10.5 h1:0pr4lIKJ5XZFYD9GtxXEWr0KkVeigc3wlGpZco0X1oA=
+contrib.go.opencensus.io/exporter/ocagent v0.7.0 h1:BEfdCTXfMV30tLZD8c9n64V/tIZX5+9sXiuFLnrr1k8=
+contrib.go.opencensus.io/exporter/prometheus v0.4.2 h1:sqfsYl5GIY/L570iT+l93ehxaWJs2/OwXtiWwew3oAg=
+contrib.go.opencensus.io/exporter/stackdriver v0.13.14 h1:zBakwHardp9Jcb8sQHcHpXy/0+JIb1M8KjigCJzx7+4=
+github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU=
+github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8=
+github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8=
+github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
+github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8=
+github.com/Microsoft/hcsshim v0.11.4/go.mod h1:smjE4dvqPX9Zldna+t5FG3rnoHhaB7QYxPRqGcpAD9w=
+github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
+github.com/OneOfOne/xxhash v1.2.8 h1:31czK/TI9sNkxIKfaUfGlU47BAxQ0ztGgd9vPyqimf8=
+github.com/OneOfOne/xxhash v1.2.8/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q=
+github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d h1:UrqY+r/OJnIp5u0s1SbQ8dVfLCZJsnvazdBP5hS4iRs=
+github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8=
+github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo=
+github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
+github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 h1:yL7+Jz0jTC6yykIK/Wh74gnTJnrGr5AyrNMXuA0gves=
+github.com/antlr/antlr4/runtime/Go/antlr v1.4.10/go.mod h1:F7bn7fEU90QkQ3tnmaTx3LTKLEDqnwWODIYppRQ5hnY=
+github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q=
+github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE=
+github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ=
+github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
+github.com/aws/aws-sdk-go v1.44.23 h1:oFvpKJk5qdprnCcuCWk2/CADdvfYtyduQ392bMXjlYI=
+github.com/aws/aws-sdk-go v1.44.23/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
+github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
+github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
+github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
+github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
+github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
+github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
+github.com/bshuster-repo/logrus-logstash-hook v1.0.0 h1:e+C0SB5R1pu//O4MQ3f9cFuPGoOVeF2fE4Og9otCc70=
+github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=
+github.com/bugsnag/bugsnag-go v0.0.0-20141110184014-b1d153021fcd h1:rFt+Y/IK1aEZkEHchZRSq9OQbsSzIT/OrI8YFFmRIng=
+github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b h1:otBG+dV+YK+Soembjv71DPz3uX/V/6MMlSyD9JBQ6kQ=
+github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0 h1:nvj0OLI3YqYXer/kZD8Ri1aaunCxIEsOst1BVJswV0o=
+github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA=
+github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM=
+github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
+github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g=
+github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
+github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
+github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
+github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
+github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
+github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
+github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
+github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
+github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM=
+github.com/containerd/containerd v1.7.11 h1:lfGKw3eU35sjV0aG2eYZTiwFEY1pCzxdzicHP3SZILw=
+github.com/containerd/containerd v1.7.11/go.mod h1:5UluHxHTX2rdvYuZ5OJTC5m/KJNs0Zs9wVoJm9zf5ZE=
+github.com/containerd/continuity v0.4.2 h1:v3y/4Yz5jwnvqPKJJ+7Wf93fyWoCB3F5EclWG023MDM=
+github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I=
+github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo=
+github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
+github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/dgraph-io/badger/v3 v3.2103.5 h1:ylPa6qzbjYRQMU6jokoj4wzcaweHylt//CH0AKt0akg=
+github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8=
+github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g=
+github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA=
+github.com/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2 h1:aBfCb7iqHmDEIp6fBvC/hQUddQfg+3qdYjwzaiP9Hnc=
+github.com/docker/cli v24.0.6+incompatible h1:fF+XCQCgJjjQNIMjzaSmiKJSCcfcXb3TWTcc7GAneOY=
+github.com/docker/cli v24.0.6+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
+github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8=
+github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
+github.com/docker/docker v24.0.9+incompatible h1:HPGzNmwfLZWdxHqK9/II92pyi1EpYKsAqcl4G0Of9v0=
+github.com/docker/docker v24.0.9+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
+github.com/docker/docker-credential-helpers v0.7.0 h1:xtCHsjxogADNZcdv1pKUHXryefjlVRqWqIhk/uXJp0A=
+github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0=
+github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
+github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
+github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c h1:+pKlWGMw7gf6bQ+oDZB4KHQFypsfjYlq/C4rfL7D3g8=
+github.com/docker/go-metrics v0.0.1 h1:AgB/0SvBxihN0X8OR4SjsblXkbMvalQ8cjmtKQ2rQV8=
+github.com/docker/go-metrics v0.0.1/go.mod h1:cG1hvH2utMXtqgqqYE9plW6lDxS3/5ayHzueweSI3Vw=
+github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
+github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
+github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1 h1:ZClxb8laGDf5arXfYcAtECDFgAgHklGI8CxgjHnXKJ4=
+github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
+github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
+github.com/emicklei/go-restful/v3 v3.10.1 h1:rc42Y5YTp7Am7CS630D7JmhRjq4UlEUuEKfrDac4bSQ=
+github.com/emicklei/go-restful/v3 v3.10.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
+github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
+github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
+github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
+github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/evanphx/json-patch v5.6.0+incompatible h1:jBYDEEiFBPxA0v50tFdvOzQQTCvpL6mnFh5mB2/l16U=
+github.com/evanphx/json-patch v5.6.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
+github.com/evanphx/json-patch/v5 v5.6.0 h1:b91NhWfaz02IuVxO9faSllyAtNXHMPkC5J8sJCLunww=
+github.com/evanphx/json-patch/v5 v5.6.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4=
+github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
+github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
+github.com/flowstack/go-jsonschema v0.1.1/go.mod h1:yL7fNggx1o8rm9RlgXv7hTBWxdBM0rVwpMwimd3F3N0=
+github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
+github.com/foxcpp/go-mockdns v1.0.0 h1:7jBqxd3WDWwi/6WhDvacvH1XsN3rOLXyHM1uhvIx6FI=
+github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
+github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
+github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
+github.com/go-ini/ini v1.67.0 h1:z6ZrTEZqSWOTyH2FlglNbNgARyHG8oLW9gMELqKr06A=
+github.com/go-ini/ini v1.67.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
+github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU=
+github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
+github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
+github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA=
+github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
+github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
+github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
+github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
+github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
+github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
+github.com/go-logr/zapr v1.2.4 h1:QHVo+6stLbfJmYGkQ7uGHUCu5hnAFAj6mDe6Ea0SeOo=
+github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE=
+github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs=
+github.com/go-openapi/jsonreference v0.20.1 h1:FBLnyygC4/IZZr893oiomc9XaghoveYTrLC1F86HID8=
+github.com/go-openapi/jsonreference v0.20.1/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k=
+github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g=
+github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
+github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
+github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI=
+github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
+github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
+github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
+github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
+github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68=
+github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
+github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
+github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
+github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
+github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
+github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
+github.com/gomodule/redigo v1.8.2 h1:H5XSIre1MB5NbPYFp+i1NBbb5qN1W8Y8YAQoAYbkm8k=
+github.com/google/cel-go v0.12.6 h1:kjeKudqV0OygrAqA9fX6J55S8gj+Jre2tckIm5RoG4M=
+github.com/google/cel-go v0.12.6/go.mod h1:Jk7ljRzLBhkmiAwBoUxB1sZSCVBAzkqPF25olK/iRDw=
+github.com/google/flatbuffers v1.12.1 h1:MVlul7pQNoDzWRLTw5imwYsl+usrS1TXG2H4jg6ImGw=
+github.com/google/gnostic v0.6.9 h1:ZK/5VhkoX835RikCHpSUJV9a+S3e1zLh59YnyWeBW+0=
+github.com/google/gnostic v0.6.9/go.mod h1:Nm8234We1lq6iB9OmlgNv3nH91XLLVZHCDayfA3xq+E=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
+github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/google/pprof v0.0.0-20220318212150-b2ab0324ddda h1:KdHPvlgeNEDs8rae032MqFG8LVwcSEivcCjNdVOXRmg=
+github.com/google/pprof v0.0.0-20220318212150-b2ab0324ddda/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg=
+github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o=
+github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
+github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs=
+github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas=
+github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4=
+github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
+github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
+github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
+github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms=
+github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg=
+github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
+github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
+github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk=
+github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg=
+github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
+github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
+github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
+github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
+github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
+github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
+github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
+github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
+github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
+github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
+github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
+github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
+github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/klauspost/compress v1.16.0 h1:iULayQNOReoYUe+1qtKOqw9CwJv3aNQu8ivo7lw1HU4=
+github.com/klauspost/compress v1.16.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
+github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
+github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
+github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
+github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
+github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
+github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo=
+github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
+github.com/miekg/dns v1.1.48 h1:Ucfr7IIVyMBz4lRE8qmGUuZ4Wt3/ZGu9hmcMT3Uu4tQ=
+github.com/miekg/dns v1.1.48/go.mod h1:e3IlAVfNqAllflbibAZEWOXOQ+Ynzk/dDozDxY7XnME=
+github.com/mitchellh/mapstructure v1.4.3 h1:OVowDSCllw/YjdLkam3/sm7wEtOy59d8ndGgCcyj8cs=
+github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
+github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg=
+github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc=
+github.com/moby/sys/mountinfo v0.6.2 h1:BzJjoreD5BMFNmD9Rus6gdd1pLuecOFPt8wC+Vygl78=
+github.com/moby/term v0.0.0-20221205130635-1aeaba878587 h1:HfkjXDfhgVaN5rmueG8cL8KKeFNecRCXFhaJ2qZ5SKA=
+github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
+github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
+github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
+github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
+github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
+github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
+github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
+github.com/onsi/ginkgo/v2 v2.9.5 h1:+6Hr4uxzP4XIUyAkg61dWBw8lb/gc4/X5luuxN/EC+Q=
+github.com/onsi/gomega v1.27.7 h1:fVih9JD6ogIiHUN6ePK7HJidyEDpWGVB5mzM7cWNXoU=
+github.com/open-policy-agent/frameworks/constraint v0.0.0-20231030230613-2e0cb3d68575 h1:rhln22JjTgsJGL8gDK4qEM372Ei1PPQk4ZTIOKM9WvY=
+github.com/open-policy-agent/frameworks/constraint v0.0.0-20231030230613-2e0cb3d68575/go.mod h1:AaCd/gbQ31R7btHO450Kdp18/Zmvn7hjEt7Qbp+MfJM=
+github.com/open-policy-agent/gatekeeper/v3 v3.14.2 h1:PTb1Wz5P/yHMBGGNGMtw+8MShas9Tk6LxTIn362qHWY=
+github.com/open-policy-agent/gatekeeper/v3 v3.14.2/go.mod h1:VeIVxeeXHZfeFjJHS8B6O3lbY2RzO4E81x/kCHBfg3o=
+github.com/open-policy-agent/opa v0.57.1 h1:LAa4Z0UkpjV94nRLy6XCvgOacQ6N1jf8TJLMUIzFRqc=
+github.com/open-policy-agent/opa v0.57.1/go.mod h1:YYcVsWcdOW47owR0zElx8HPYZK60vL0MOPsEmh13us4=
+github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
+github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
+github.com/opencontainers/image-spec v1.1.0-rc5 h1:Ygwkfw9bpDvs+c9E34SdgGOj41dX/cbdlwvlWt0pnFI=
+github.com/opencontainers/image-spec v1.1.0-rc5/go.mod h1:X4pATf0uXsnn3g5aiGIsVnJBR4mxhKzfwmvK/B2NTm8=
+github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5 h1:Ii+DKncOVM8Cu1Hc+ETb5K+23HdAMvESYE3ZJ5b5cMI=
+github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
+github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
+github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g=
+github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8=
+github.com/prometheus/client_golang v1.16.0/go.mod h1:Zsulrv/L9oM40tJ7T815tM89lFEugiJ9HzIqaAx4LKc=
+github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
+github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY=
+github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU=
+github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
+github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc=
+github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM=
+github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc=
+github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
+github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
+github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ=
+github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg=
+github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM=
+github.com/prometheus/prometheus v0.35.0 h1:N93oX6BrJ2iP3UuE2Uz4Lt+5BkUpaFer3L9CbADzesc=
+github.com/prometheus/statsd_exporter v0.22.7 h1:7Pji/i2GuhK6Lu7DHrtTkFmNBCudCPT1pX2CziuyQR0=
+github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM=
+github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
+github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
+github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
+github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
+github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
+github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
+github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
+github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
+github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/stoewer/go-strcase v1.2.0 h1:Z2iHWqGXH00XYgqDmNgQbIBxf3wrNq0F3feEy0ainaU=
+github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
+github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
+github.com/tchap/go-patricia/v2 v2.3.1 h1:6rQp39lgIYZ+MHmdEq4xzuk1t7OdC35z/xm0BGhTkes=
+github.com/tchap/go-patricia/v2 v2.3.1/go.mod h1:VZRHKAb53DLaG+nA9EaYYiaEx6YztwDlLElMsnSHD4k=
+github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
+github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo=
+github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
+github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=
+github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
+github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
+github.com/yashtewari/glob-intersection v0.2.0 h1:8iuHdN88yYuCzCdjt0gDe+6bAhUwBeEWqThExu54RFg=
+github.com/yashtewari/glob-intersection v0.2.0/go.mod h1:LK7pIC3piUjovexikBbJ26Yml7g8xa5bsjfx2v1fwok=
+github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
+github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
+github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43 h1:+lm10QQTNSBd8DVTNGHx7o/IKu9HYDvLMffDhbyLccI=
+github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50 h1:hlE8//ciYMztlGpl/VA+Zm1AcTPHYkHJPbHqE6WJUXE=
+github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f h1:ERexzlUfuTvpE74urLSbIQW0Z/6hF9t8U4NsJLaioAY=
+go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
+go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 h1:UNQQKPfTDe1J81ViolILjTKPr9WetKW6uei2hFgJmFs=
+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 h1:sv9kVfal0MK0wBMCOGr+HeJm9v803BkJxGrk2au7j08=
+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw=
+go.opentelemetry.io/otel v1.22.0 h1:xS7Ku+7yTFvDfDraDIJVpw7XPyuHlB9MCiqqX5mcJ6Y=
+go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 h1:Mne5On7VWdx7omSrSSZvM4Kw7cS7NQkOOmLcgscI51U=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0/go.mod h1:IPtUMKL4O3tH5y+iXVyAXqpAwMuzC1IrxVS81rummfE=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 h1:3d+S281UTjM+AbF31XSOYn1qXn3BgIdWl8HNEpx08Jk=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0/go.mod h1:0+KuTDyKL4gjKCF75pHOX4wuzYDUZYfAQdSu43o+Z2I=
+go.opentelemetry.io/otel/metric v1.22.0 h1:lypMQnGyJYeuYPhOM/bgjbFM6WE44W1/T45er4d8Hhg=
+go.opentelemetry.io/otel/metric v1.22.0/go.mod h1:evJGjVpZv0mQ5QBRJoBF64yMuOf4xCWdXjK8pzFvliY=
+go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8=
+go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E=
+go.opentelemetry.io/otel/trace v1.22.0 h1:Hg6pPujv0XG9QaVbGOBVHunyuLcCC3jN7WEhPx83XD0=
+go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo=
+go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
+go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
+go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
+go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
+go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
+go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
+go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8=
+go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak=
+go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60=
+golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
+golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
+golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
+golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
+golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
+golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
+golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
+golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
+golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.17.0 h1:6m3ZPmLEFdVxKKWnKq4VqZ60gutO35zm+zrAHVmHyDQ=
+golang.org/x/oauth2 v0.17.0/go.mod h1:OzPDGQiuQMguemayvdylqddI7qcD9lnSDb+1FiwQ5HA=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
+golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
+golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
+golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8=
+golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
+golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
+golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
+golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
+golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
+golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
+golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
+golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
+golang.org/x/tools v0.16.1 h1:TLyB3WofjdOEepBHAU20JdNC1Zbg87elYofWYAY5oZA=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+gomodules.xyz/jsonpatch/v2 v2.3.0 h1:8NFhfS6gzxNqjLIYnZxg319wZ5Qjnx4m/CcX+Klzazc=
+gomodules.xyz/jsonpatch/v2 v2.3.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY=
+google.golang.org/api v0.162.0 h1:Vhs54HkaEpkMBdgGdOT2P6F0csGG/vxDS0hWHJzmmps=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
+google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
+google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
+google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY=
+google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de h1:jFNzHPIeuzhdRwVhbZdiym9q0ory/xY3sA+v2wPg8I0=
+google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de h1:cZGRis4/ot9uVm639a+rHCUaG0JJHEsdyzSQTMX+suY=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
+google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
+google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
+google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
+google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
+google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM=
+google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
+google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
+google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
+google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
+gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
+gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
+gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+k8s.io/api v0.27.4 h1:0pCo/AN9hONazBKlNUdhQymmnfLRbSZjd5H5H3f0bSs=
+k8s.io/api v0.27.4/go.mod h1:O3smaaX15NfxjzILfiln1D8Z3+gEYpjEpiNA/1EVK1Y=
+k8s.io/apiextensions-apiserver v0.27.4 h1:ie1yZG4nY/wvFMIR2hXBeSVq+HfNzib60FjnBYtPGSs=
+k8s.io/apiextensions-apiserver v0.27.4/go.mod h1:KHZaDr5H9IbGEnSskEUp/DsdXe1hMQ7uzpQcYUFt2bM=
+k8s.io/apimachinery v0.27.16 h1:Nmbei3P/6w6vxbNxV8/sDCZz+TQrJ9A4+bVIRjDufuM=
+k8s.io/apimachinery v0.27.16/go.mod h1:TWo+8wOIz3CytsrlI9k/LBWXLRr9dqf5hRSCbbggMAg=
+k8s.io/apiserver v0.27.4 h1:ncZ0MBR9yQ/Gf34rtu1EK+HqT8In1YpfAUINu/Akvho=
+k8s.io/apiserver v0.27.4/go.mod h1:GDEFRfFZ4/l+pAvwYRnoSfz0K4j3TWiN4WsG2KnRteE=
+k8s.io/client-go v0.27.4 h1:vj2YTtSJ6J4KxaC88P4pMPEQECWMY8gqPqsTgUKzvjk=
+k8s.io/client-go v0.27.4/go.mod h1:ragcly7lUlN0SRPk5/ZkGnDjPknzb37TICq07WhI6Xc=
+k8s.io/component-base v0.27.4 h1:Wqc0jMKEDGjKXdae8hBXeskRP//vu1m6ypC+gwErj4c=
+k8s.io/component-base v0.27.4/go.mod h1:hoiEETnLc0ioLv6WPeDt8vD34DDeB35MfQnxCARq3kY=
+k8s.io/klog/v2 v2.90.1 h1:m4bYOKall2MmOiRaR1J+We67Do7vm9KiQVlT96lnHUw=
+k8s.io/klog/v2 v2.90.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
+k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f h1:2kWPakN3i/k81b0gvD5C5FJ2kxm1WrQFanWchyKuqGg=
+k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f/go.mod h1:byini6yhqGC14c3ebc/QwanvYwhuMWF6yz2F8uwW8eg=
+k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 h1:kmDqav+P+/5e1i9tFfHq1qcF3sOrDp+YEkVDAHu7Jwk=
+k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
+oras.land/oras-go v1.2.4 h1:djpBY2/2Cs1PV87GSJlxv4voajVOMZxqqtq9AB8YNvY=
+oras.land/oras-go v1.2.4/go.mod h1:DYcGfb3YF1nKjcezfX2SNlDAeQFKSXmf+qrFmrh4324=
+sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 h1:trsWhjU5jZrx6UvFu4WzQDrN7Pga4a7Qg+zcfcj64PA=
+sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2/go.mod h1:+qG7ISXqCDVVcyO8hLn12AKVYYUjM7ftlqsqmrhMZE0=
+sigs.k8s.io/controller-runtime v0.15.0 h1:ML+5Adt3qZnMSYxZ7gAverBLNPSMQEibtzAgp0UPojU=
+sigs.k8s.io/controller-runtime v0.15.0/go.mod h1:7ngYvp1MLT+9GeZ+6lH3LOlcHkp/+tzA/fmHa4iq9kk=
+sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
+sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
+sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kFxnAMREiWFE=
+sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E=
+sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
+sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/main.go b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/main.go
new file mode 100644
index 0000000000000000000000000000000000000000..9f7b05421a92fe96f330861e8806ce25dd3a79e0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-sync/main.go
@@ -0,0 +1,193 @@
+// Verify referential templates include sync data
+
+package main
+
+import (
+ "context"
+ "flag"
+ "fmt"
+ "io/fs"
+ "log"
+ "os"
+ "path/filepath"
+ "strings"
+
+ constraintclient "github.com/open-policy-agent/frameworks/constraint/pkg/client"
+ "github.com/open-policy-agent/frameworks/constraint/pkg/client/drivers/rego"
+ "github.com/open-policy-agent/frameworks/constraint/pkg/core/templates"
+ gkapis "github.com/open-policy-agent/gatekeeper/v3/apis"
+ "github.com/open-policy-agent/gatekeeper/v3/pkg/cachemanager/parser"
+ "github.com/open-policy-agent/gatekeeper/v3/pkg/gator/reader"
+ "github.com/open-policy-agent/gatekeeper/v3/pkg/target"
+ "k8s.io/apimachinery/pkg/runtime"
+)
+
+const syncAnnotation string = "metadata.gatekeeper.sh/requires-sync-data"
+
+var (
+ pathFlag = flag.String("path", "", "Path to verify referential templates include sync data.")
+ fileFlag = flag.Bool("sync-file", false, "When `true`, require a `sync.yaml` file for each referential template.")
+)
+
+var scheme *runtime.Scheme
+
+func init() {
+ scheme = runtime.NewScheme()
+ err := gkapis.AddToScheme(scheme)
+ if err != nil {
+ panic(fmt.Errorf("adding gatekeeper apis to scheme: %w", err))
+ }
+}
+
+func main() {
+ flag.Parse()
+ if *pathFlag == "" {
+ log.Fatal("Missing `path` flag")
+ }
+ log.Printf("Verifying path: %s\n", *pathFlag)
+
+ err := checkTemplates(*pathFlag)
+ if err != nil {
+ log.Fatal(err)
+ }
+}
+
+func checkTemplates(libraryPath string) error {
+ system := os.DirFS(libraryPath)
+
+ rc, err := newRefChecker()
+ if err != nil {
+ return fmt.Errorf("creating referentialChecker: %w", err)
+ }
+
+ err = fs.WalkDir(system, ".", func(path string, d fs.DirEntry, err error) error {
+ if err != nil {
+ return err
+ }
+
+ if d.IsDir() {
+ return nil
+ }
+
+ if d.Name() != "template.yaml" {
+ return nil
+ }
+
+ // we'll use this in error messages
+ absolutePath := filepath.Join(libraryPath, path)
+
+ // read template
+ tmpl, err := reader.ReadTemplate(scheme, system, path)
+ if err != nil {
+ return fmt.Errorf("reading template: %w", err)
+ }
+
+ // check if it's referential
+ isRef, err := rc.isReferential(tmpl)
+ if err != nil {
+ return fmt.Errorf("detecting referential: %w", err)
+ }
+
+ // nothing to check for non referential templates
+ if !isRef {
+ return nil
+ }
+
+ log.Printf("Referential template: %s\n", absolutePath)
+
+ // verify sync annotation is present and parsable by gatekeeper
+ _, err = parser.ReadSyncRequirements(tmpl)
+ if err != nil {
+ return fmt.Errorf("template at path %q is missing valid %s annotation: %w", absolutePath, syncAnnotation, err)
+ }
+
+ // verify that the sync object is present in the same directory as the template
+ if !*fileFlag {
+ return nil
+ }
+
+ syncPath := filepath.Join(filepath.Dir(path), "sync.yaml")
+ _, err = fs.Stat(system, syncPath)
+ if err != nil {
+ if os.IsNotExist(err) {
+ return fmt.Errorf("`sync.yaml` not found in dir '%s'", filepath.Dir(absolutePath))
+ }
+
+ return fmt.Errorf("stat on '%s': %w", syncPath, err)
+ }
+
+ return nil
+ })
+
+ return err
+}
+
+type referentialChecker struct {
+ refClient *constraintclient.Client
+ nonRefClient *constraintclient.Client
+}
+
+func newRefChecker() (*referentialChecker, error) {
+ refClient, err := opaClient(true)
+ if err != nil {
+ return nil, fmt.Errorf("creating referential client: %w", err)
+ }
+
+ nonRefClient, err := opaClient(false)
+ if err != nil {
+ return nil, fmt.Errorf("creating non-referential client: %w", err)
+ }
+
+ return &referentialChecker{
+ refClient: refClient,
+ nonRefClient: nonRefClient,
+ }, nil
+}
+
+func (rc *referentialChecker) isReferential(ct *templates.ConstraintTemplate) (bool, error) {
+ // Verify that we can add the template to a referential client. This is a sanity
+ // check for a malformed template.
+ if _, err := rc.refClient.AddTemplate(context.Background(), ct); err != nil {
+ return false, fmt.Errorf("adding template to referential client: %w", err)
+ }
+
+ // a referential template will fail when added to a client that does not
+ // have the `inventory` field enabled. Trying to add the template to the
+ // non-referential client thus serves as an indication of it being
+ // referential.
+ _, err := rc.nonRefClient.AddTemplate(context.Background(), ct)
+ if err == nil {
+ // no error, template isn't referential
+ return false, nil
+ }
+
+ // we got the specific error message that means referential
+ if errTextIsReferential(err) {
+ return true, nil
+ }
+
+ return false, fmt.Errorf("unrelated error when adding template to non-referential client: %w", err)
+}
+
+func errTextIsReferential(err error) bool {
+ return strings.Contains(err.Error(), "check refs failed on module")
+}
+
+func opaClient(referential bool) (*constraintclient.Client, error) {
+ externs := rego.Externs()
+ if referential {
+ externs = rego.Externs("inventory")
+ }
+
+ driver, err := rego.New(rego.Tracing(false), externs)
+ if err != nil {
+ return nil, fmt.Errorf("creating driver: %w", err)
+ }
+
+ client, err := constraintclient.NewClient(constraintclient.Targets(&target.K8sValidationTarget{}), constraintclient.Driver(driver))
+ if err != nil {
+ return nil, fmt.Errorf("creating client: %w", err)
+ }
+
+ return client, nil
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/go.mod b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/go.mod
new file mode 100644
index 0000000000000000000000000000000000000000..5e82c0ef9d34348d698a29f63a2cb826e942a7c2
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/go.mod
@@ -0,0 +1,3 @@
+module validate
+
+go 1.20
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/validate.go b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/validate.go
new file mode 100644
index 0000000000000000000000000000000000000000..3b21d690ff59085ec199172b5d57056feea834c7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/validate.go
@@ -0,0 +1,81 @@
+package main
+
+import (
+ "fmt"
+ "os"
+ "path/filepath"
+ "strings"
+)
+
+const (
+ docsDirEntry = "website/docs"
+)
+
+func main() {
+ pwd, err := os.Getwd()
+ if err != nil {
+ fmt.Println("error while getting pwd")
+ panic(err)
+ }
+ rootDir := filepath.Join(pwd, "..", "..")
+
+ err = validateDocsDirStructure(rootDir)
+ if err != nil {
+ fmt.Println("error while validating docs directory structure")
+ panic(err)
+ }
+}
+
+func validateDocsDirStructure(rootDir string) error {
+ docsDirPath := filepath.Join(rootDir, docsDirEntry)
+ // expected directory structure
+ expectedDirs := []string{"mutation-examples", "validation"}
+ expectedFiles := []string{"intro.md", "pspintro.md"}
+
+ // Get the list of files and directories in the docs directory
+ files, err := os.ReadDir(docsDirPath)
+ if err != nil {
+ return err
+ }
+
+ // Validate the directory structure
+ for _, file := range files {
+ if file.IsDir() {
+ if !contains(expectedDirs, file.Name()) {
+ err = fmt.Errorf("unexpected directory: %s, found at: %s", file.Name(), filepath.Join(docsDirPath, file.Name()))
+ return err
+ }
+ } else {
+ if !contains(expectedFiles, file.Name()) {
+ err = fmt.Errorf("unexpected file: %s, found at: %s", file.Name(), filepath.Join(docsDirPath, file.Name()))
+ return err
+ }
+ }
+ }
+
+ // Check for missing directories and files
+ for _, expectedDir := range expectedDirs {
+ if _, err := os.Stat(filepath.Join(docsDirPath, expectedDir)); os.IsNotExist(err) {
+ err = fmt.Errorf("missing directory: %s", expectedDir)
+ return err
+ }
+ }
+
+ for _, expectedFile := range expectedFiles {
+ if _, err := os.Stat(filepath.Join(docsDirPath, expectedFile)); os.IsNotExist(err) {
+ err = fmt.Errorf("missing file: %s", expectedFile)
+ return err
+ }
+ }
+
+ return nil
+}
+
+func contains(items []string, item string) bool {
+ for _, i := range items {
+ if strings.EqualFold(i, item) {
+ return true
+ }
+ }
+ return false
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/validate_test.go b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/validate_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..246a5cafd7c30f79f01b3c3f3d7e76fdac91f4a9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/validate/validate_test.go
@@ -0,0 +1,120 @@
+package main
+
+import (
+ "os"
+ "path/filepath"
+ "testing"
+)
+
+func TestValidateDocsDirStructure(t *testing.T) {
+ testCases := []struct {
+ name string
+ dirStructure []string
+ expectedErr bool
+ }{
+ {
+ name: "Valid directory structure",
+ dirStructure: []string{"mutation-examples", "validation", "intro.md", "pspintro.md"},
+ expectedErr: false,
+ },
+ {
+ name: "Unexpected directory",
+ dirStructure: []string{"mutation-examples", "unexpected-dir", "validation", "intro.md", "pspintro.md"},
+ expectedErr: true,
+ },
+ {
+ name: "Unexpected file",
+ dirStructure: []string{"mutation-examples", "validation", "unexpected-file.md", "intro.md", "pspintro.md"},
+ expectedErr: true,
+ },
+ {
+ name: "Missing file",
+ dirStructure: []string{"mutation-examples", "validation", "intro.md"},
+ expectedErr: true,
+ },
+ {
+ name: "Missing directory",
+ dirStructure: []string{"mutation-examples", "intro.md", "pspintro.md"},
+ expectedErr: true,
+ },
+ }
+
+ for _, tc := range testCases {
+ t.Run(tc.name, func(t *testing.T) {
+ // Create a temporary directory for testing
+ tmpDir, err := os.MkdirTemp("", "test")
+ if err != nil {
+ t.Fatalf("Error creating temp dir: %v", err)
+ }
+ defer os.RemoveAll(tmpDir)
+
+ // Create the directory structure
+ docsDirPath := filepath.Join(tmpDir, docsDirEntry)
+ err = os.MkdirAll(docsDirPath, 0o755)
+ if err != nil {
+ t.Fatalf("Error creating docs dir: %v", err)
+ }
+ for _, item := range tc.dirStructure {
+ path := filepath.Join(docsDirPath, item)
+ if filepath.Ext(path) == "" {
+ if os.Mkdir(path, 0o755) != nil {
+ t.Fatalf("Error creating directory: %v", path)
+ }
+ } else {
+ f, err := os.Create(path)
+ if err != nil {
+ t.Fatalf("Error creating the file %s: %v", item, err)
+ }
+ defer f.Close()
+
+ _, err = f.Write([]byte{})
+ if err != nil {
+ t.Fatalf("Error writing to the file %s: %v", item, err)
+ }
+ }
+ }
+
+ err = validateDocsDirStructure(tmpDir)
+ if tc.expectedErr && err == nil {
+ t.Errorf("Expected error, but got nil")
+ }
+ })
+ }
+}
+
+func TestContains(t *testing.T) {
+ testCases := []struct {
+ name string
+ items []string
+ item string
+ expected bool
+ }{
+ {
+ name: "Item in list",
+ items: []string{"item1", "item2", "item3"},
+ item: "item2",
+ expected: true,
+ },
+ {
+ name: "Item not in list",
+ items: []string{"item1", "item2", "item3"},
+ item: "item4",
+ expected: false,
+ },
+ {
+ name: "list is empty",
+ items: []string{},
+ item: "foo",
+ expected: false,
+ },
+ }
+
+ for _, tc := range testCases {
+ t.Run(tc.name, func(t *testing.T) {
+ result := contains(tc.items, tc.item)
+ if result != tc.expected {
+ t.Errorf("Expected %v, but got %v", tc.expected, result)
+ }
+ })
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/generate.go b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/generate.go
new file mode 100644
index 0000000000000000000000000000000000000000..842391c2fdd5af5393f45f008dc4fe70b919e1d1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/generate.go
@@ -0,0 +1,487 @@
+package main
+
+import (
+ "bytes"
+ "fmt"
+ "log"
+ "os"
+ "path/filepath"
+ "regexp"
+ "sort"
+ "strings"
+
+ "gopkg.in/yaml.v3"
+ k8sslices "k8s.io/utils/strings/slices"
+)
+
+const (
+ // raw github source URL.
+ sourceURL = "https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/"
+
+ // directory entry point for parsing.
+ entryPoint = "library"
+ mutationEntryPoint = "mutation"
+ sidebarPath = "website/sidebars.js"
+ sidebarTemplatePath = "scripts/website/sidebars-template.js"
+
+ // regex patterns.
+ pspReadmeLinkPattern = `\[([^\[\]]+)\]\(([^(]+)\)`
+)
+
+// Skip including examples for the following Kinds.
+var skipExampleKinds = []string{"AdmissionReview"}
+
+// Suite ...
+// ToDo (nilekh): Get this struct from the Gatekeeper repo.
+type Suite struct {
+ Kind string `yaml:"kind"`
+ APIVersion string `yaml:"apiVersion"`
+ Metadata struct {
+ Name string `yaml:"name"`
+ } `yaml:"metadata"`
+ Tests []struct {
+ Name string `yaml:"name"`
+ Template string `yaml:"template"`
+ Constraint string `yaml:"constraint"`
+ Cases []struct {
+ Name string `yaml:"name"`
+ Object string `yaml:"object"`
+ Assertions []struct {
+ Violations string `yaml:"violations"`
+ } `yaml:"assertions"`
+ } `yaml:"cases"`
+ } `yaml:"tests"`
+}
+
+func main() {
+ pwd, err := os.Getwd()
+ if err != nil {
+ fmt.Println("error while getting pwd")
+ panic(err)
+ }
+
+ rootDir := filepath.Join(pwd, "..", "..")
+ libraryPath := filepath.Join(rootDir, entryPoint)
+ dirEntry, err := os.ReadDir(libraryPath)
+ if err != nil {
+ fmt.Println("error while listing directories under library")
+ panic(err)
+ }
+
+ // create website validation directory if not exists
+ if _, err := os.Stat(filepath.Join(rootDir, "website/docs/validation")); os.IsNotExist(err) {
+ if os.Mkdir(filepath.Join(rootDir, "website/docs/validation"), 0o755) != nil {
+ fmt.Println("error while creating directory")
+ panic(err)
+ }
+ }
+
+ validationSidebarItems := make(map[string][]string)
+ // Track policies by bundle for bundle-based navigation
+ bundleItems := make(map[string][]string)
+ for _, entry := range dirEntry {
+ if entry.Type().IsDir() {
+ basePath, err := filepath.Abs(filepath.Join(libraryPath, entry.Name()))
+ if err != nil {
+ fmt.Println("error while getting absolute path for ", entry.Name())
+ panic(err)
+ }
+ directories, err := os.ReadDir(basePath)
+ if err != nil {
+ fmt.Println("error while listing directories under ", entry.Name())
+ panic(err)
+ }
+
+ for _, dir := range directories {
+ if dir.Type().IsDir() {
+ validationSidebarItems[entry.Name()] = append(validationSidebarItems[entry.Name()], dir.Name())
+ fmt.Println("Generating markdown for ", filepath.Join(basePath, dir.Name()))
+
+ suiteContent, err := os.ReadFile(filepath.Join(basePath, dir.Name(), "suite.yaml"))
+ if err != nil {
+ fmt.Println("error while reading suite.yaml")
+ panic(err)
+ }
+
+ suite := Suite{}
+ err = yaml.Unmarshal(suiteContent, &suite)
+ if err != nil {
+ fmt.Println("error while unmarshaling suite.yaml")
+ panic(err)
+ }
+
+ // ConstraintTemplate
+ // Get raw github source URL
+ constraintTemplateRawURL := sourceURL + filepath.Join(entryPoint, entry.Name(), dir.Name(), "template.yaml")
+ constraintTemplateContent, err := os.ReadFile(filepath.Join(basePath, dir.Name(), "template.yaml"))
+ if err != nil {
+ fmt.Println("error while reading template.yaml")
+ panic(err)
+ }
+
+ constraintTemplate := make(map[string]interface{})
+ err = yaml.Unmarshal(constraintTemplateContent, &constraintTemplate)
+ if err != nil {
+ fmt.Println("error while unmarshaling template.yaml")
+ panic(err)
+ }
+
+ // Track bundle membership for this policy
+ bundleAnnotation := getConstraintTemplateBundleAnnotation(constraintTemplate)
+ if bundleAnnotation != "" {
+ bundles := strings.Split(bundleAnnotation, ",")
+ for _, b := range bundles {
+ b = strings.TrimSpace(b)
+ if b != "" {
+ bundleItems[b] = append(bundleItems[b], dir.Name())
+ }
+ }
+ }
+
+ allExamples := ""
+ for _, test := range suite.Tests {
+ constraintRawURL := sourceURL + filepath.Join(entryPoint, entry.Name(), dir.Name(), test.Constraint)
+ constraintContent, err := os.ReadFile(filepath.Join(basePath, dir.Name(), test.Constraint))
+ if err != nil {
+ fmt.Println("error while reading constraint.yaml")
+ panic(err)
+ }
+ constraintExample := fmt.Sprintf("\nconstraint
\n\n```yaml\n%s\n```\n\nUsage\n\n```shell\nkubectl apply -f %s\n```\n\n \n", constraintContent, constraintRawURL)
+
+ examples := ""
+ for _, testCase := range test.Cases {
+ exampleRawURL := sourceURL + filepath.Join(entryPoint, entry.Name(), dir.Name(), testCase.Object)
+
+ exampleContent, err := os.ReadFile(filepath.Join(basePath, dir.Name(), testCase.Object))
+ if err != nil {
+ fmt.Println("error while reading ", testCase.Object)
+ panic(err)
+ }
+
+ exampleResource := make(map[string]interface{})
+ err = yaml.Unmarshal(exampleContent, &exampleResource)
+ if err != nil {
+ fmt.Printf("error while unmarshaling: %v", exampleRawURL)
+ panic(err)
+ }
+
+ if exampleKind, ok := exampleResource["kind"].(string); !ok {
+ fmt.Printf("error while parsing kind: %v", exampleRawURL)
+ panic(err)
+ } else if !k8sslices.Contains(skipExampleKinds, exampleKind) {
+ examples += fmt.Sprintf("\n%s
\n\n```yaml\n%s\n```\n\nUsage\n\n```shell\nkubectl apply -f %s\n```\n\n \n", testCase.Name, exampleContent, exampleRawURL)
+ }
+ }
+
+ allExamples += fmt.Sprintf("\n%s
\n\n%s\n%s\n\n ", test.Name, constraintExample, examples)
+ }
+
+ templateContent, err := os.ReadFile(filepath.Join(pwd, "template.md"))
+ if err != nil {
+ fmt.Println("error while reading template.md")
+ panic(err)
+ }
+
+ replacer := strings.NewReplacer(
+ "%TEMPLATE%", string(constraintTemplateContent),
+ "%RAWURL%", constraintTemplateRawURL,
+ "%EXAMPLES%", allExamples,
+ "%TITLE%", getConstraintTemplateTitle(constraintTemplate),
+ "%DESCRIPTION%", getConstraintTemplateDescription(constraintTemplate),
+ "%BUNDLE%", getConstraintTemplateBundle(constraintTemplate),
+ "%FILENAME%", dir.Name(),
+ )
+
+ err = os.WriteFile(
+ filepath.Join(rootDir, "website/docs/validation", fmt.Sprintf("%s.md", dir.Name())),
+ []byte(replacer.Replace(string(templateContent))),
+ 0o600,
+ )
+ if err != nil {
+ fmt.Println("error while writing file")
+ panic(err)
+ }
+ }
+ }
+ }
+ }
+
+ // mutation
+ mutationSidebarItems := make(map[string][]string)
+ mutationPath := filepath.Join(rootDir, mutationEntryPoint)
+ mutationDirEntry, err := os.ReadDir(mutationPath)
+ if err != nil {
+ fmt.Println("error while listing directories under mutation")
+ panic(err)
+ }
+
+ // create website mutation directory if not exists
+ if _, err := os.Stat(filepath.Join(rootDir, "website/docs/mutation-examples")); os.IsNotExist(err) {
+ if os.Mkdir(filepath.Join(rootDir, "website/docs/mutation-examples"), 0o755) != nil {
+ fmt.Println("error while creating directory")
+ panic(err)
+ }
+ }
+
+ for _, entry := range mutationDirEntry {
+ if entry.Type().IsDir() {
+ basePath, err := filepath.Abs(filepath.Join(mutationPath, entry.Name()))
+ if err != nil {
+ fmt.Println("error while getting absolute path for ", entry.Name())
+ panic(err)
+ }
+ directories, err := os.ReadDir(basePath)
+ if err != nil {
+ fmt.Println("error while listing directories under ", entry.Name())
+ panic(err)
+ }
+
+ for _, dir := range directories {
+ if dir.Type().IsDir() {
+ fmt.Println("Generating markdown for ", filepath.Join(basePath, dir.Name()))
+ }
+ mutationSidebarItems[entry.Name()] = append(mutationSidebarItems[entry.Name()], dir.Name())
+
+ // get all files with name starting with "mutation"
+ files, err := os.ReadDir(filepath.Join(basePath, dir.Name(), "samples"))
+ if err != nil {
+ panic(err)
+ }
+
+ mutationTemplateContent, err := os.ReadFile(filepath.Join(pwd, "mutation-template.md"))
+ if err != nil {
+ fmt.Println("error while reading mutation-template.md")
+ panic(err)
+ }
+
+ for _, file := range files {
+ var fileContentBytes []byte
+ if strings.HasPrefix(file.Name(), "mutation") {
+ // read mutation.yaml
+ fileContentBytes, err = os.ReadFile(filepath.Join(basePath, dir.Name(), "samples", file.Name()))
+ if err != nil {
+ fmt.Println("error while reading ", file.Name())
+ panic(err)
+ }
+
+ replacer := strings.NewReplacer(
+ "%RAWURL%", sourceURL+filepath.Join(mutationEntryPoint, entry.Name(), dir.Name(), "samples", file.Name()),
+ "%EXAMPLES%", string(fileContentBytes),
+ "%TITLE%", dir.Name(),
+ "%FILENAME%", dir.Name(),
+ )
+
+ err := os.WriteFile(
+ filepath.Join(rootDir, "website/docs/mutation-examples", fmt.Sprintf("%s.md", dir.Name())),
+ []byte(replacer.Replace(string(mutationTemplateContent))),
+ 0o600,
+ )
+ if err != nil {
+ fmt.Println("error while writing ", file.Name())
+ panic(err)
+ }
+ }
+ }
+ }
+ }
+ }
+
+ // update README.md
+ fmt.Println("Updating README.md")
+ readmeTemplateContent, err := os.ReadFile(filepath.Join(rootDir, "scripts/website", "readme-template.md"))
+ if err != nil {
+ fmt.Println("error while reading readme-template.md")
+ panic(err)
+ }
+
+ readmeContent, err := os.ReadFile(filepath.Join(rootDir, "README.md"))
+ if err != nil {
+ fmt.Println("error while reading README.md")
+ panic(err)
+ }
+
+ err = os.WriteFile(
+ filepath.Join(rootDir, "website/docs/intro.md"),
+ []byte(strings.Replace(string(readmeTemplateContent), "%CONTENT%", string(readmeContent), 1)),
+ 0o600,
+ )
+ if err != nil {
+ fmt.Println("error while updating README.md")
+ panic(err)
+ }
+
+ // update PSP README.md
+ fmt.Println("Updating PSP README.md")
+ pspReadmeTemplateContent, err := os.ReadFile(filepath.Join(rootDir, "scripts/website", "pspreadme-template.md"))
+ if err != nil {
+ fmt.Println("error while reading pspreadme-template.md")
+ panic(err)
+ }
+
+ pspReadmeContent, err := os.ReadFile(filepath.Join(rootDir, "library/pod-security-policy/README.md"))
+ if err != nil {
+ fmt.Println("error while reading psp README.md")
+ panic(err)
+ }
+
+ // find all directory path correct them to point inside validation directory
+ regex := regexp.MustCompile(pspReadmeLinkPattern)
+ matches := regex.FindAllStringSubmatch(string(pspReadmeContent), -1)
+
+ // iterate over matches and replace content within ()
+ for _, match := range matches {
+ // check if match does not start with http
+ if !strings.HasPrefix(match[2], "http") {
+ // replace content within ()
+ pspReadmeContent = bytes.ReplaceAll(pspReadmeContent, []byte(fmt.Sprintf("(%s)", match[2])), []byte(fmt.Sprintf("(validation/%s)", match[2])))
+ }
+ }
+
+ err = os.WriteFile(
+ filepath.Join(rootDir, "website/docs/pspintro.md"),
+ []byte(strings.Replace(string(pspReadmeTemplateContent), "%CONTENT%", string(pspReadmeContent), 1)),
+ 0o600,
+ )
+ if err != nil {
+ fmt.Println("error while updating psp README.md")
+ panic(err)
+ }
+
+ // update sidebar from template
+ fmt.Println("Updating sidebar")
+
+ // Generate General items
+ generalItemsList := generateSidebarItems(validationSidebarItems["general"], "validation/", " ")
+
+ // Generate Mutation items
+ mutationItemsList := generateSidebarItems(mutationSidebarItems["pod-security-policy"], "mutation-examples/", " ")
+
+ // Generate profile items for sidebar (policies organized by bundle)
+ // Policies appear in every profile they belong to, since baseline and restricted
+ // may require different constraint values (e.g. capabilities, seccomp).
+ baselineItemsList := generateSidebarItems(bundleItems["pod-security-baseline"], "validation/", " ")
+ restrictedItemsList := generateSidebarItems(bundleItems["pod-security-restricted"], "validation/", " ")
+
+ // Collect all bundled PSP policies
+ allBundledPSP := make(map[string]bool)
+ for _, items := range bundleItems {
+ for _, item := range items {
+ allBundledPSP[item] = true
+ }
+ }
+
+ // Generate "Other" PSP items: policies in pod-security-policy category without any bundle annotation
+ var otherPSPItems []string
+ for _, item := range validationSidebarItems["pod-security-policy"] {
+ if !allBundledPSP[item] {
+ otherPSPItems = append(otherPSPItems, item)
+ }
+ }
+ otherPSPItemsList := generateSidebarItems(otherPSPItems, "validation/", " ")
+
+ // Read from template file
+ sidebarTemplate, err := os.ReadFile(filepath.Join(rootDir, sidebarTemplatePath))
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ // Replace all placeholders in template
+ sidebarReplacer := strings.NewReplacer(
+ "%GENERAL_ITEMS%", generalItemsList,
+ "%MUTATION_ITEMS%", mutationItemsList,
+ "%BASELINE_ITEMS%", baselineItemsList,
+ "%RESTRICTED_ITEMS%", restrictedItemsList,
+ "%OTHER_PSP_ITEMS%", otherPSPItemsList,
+ )
+ updatedSidebar := sidebarReplacer.Replace(string(sidebarTemplate))
+
+ // write the updated content to the file
+ err = os.WriteFile(filepath.Join(rootDir, sidebarPath), []byte(updatedSidebar), 0o600)
+ if err != nil {
+ log.Fatal(err)
+ }
+}
+
+// generateSidebarItems creates a list of sidebar items with proper indentation.
+func generateSidebarItems(items []string, prefix string, indent string) string {
+ if len(items) == 0 {
+ return ""
+ }
+
+ sort.Strings(items)
+
+ var itemStrings []string
+ for _, item := range items {
+ itemStrings = append(itemStrings, fmt.Sprintf("%s'%s%s',", indent, prefix, item))
+ }
+
+ return strings.Join(itemStrings, "\n")
+}
+
+// TODO: Use shared pkg.
+func getConstraintTemplateMetadata(constraintTemplate map[string]interface{}) map[string]interface{} {
+ metadata, ok := constraintTemplate["metadata"].(map[string]interface{})
+ if !ok {
+ panic("error while retrieving constraintTemplate metadata")
+ }
+ return metadata
+}
+
+func getConstraintTemplateAnnotations(constraintTemplate map[string]interface{}) map[string]interface{} {
+ metadata := getConstraintTemplateMetadata(constraintTemplate)
+
+ annotations, ok := metadata["annotations"].(map[string]interface{})
+ if !ok {
+ panic("error while retrieving constraintTemplate annotations")
+ }
+
+ return annotations
+}
+
+func getConstraintTemplateTitle(constraintTemplate map[string]interface{}) string {
+ annotations := getConstraintTemplateAnnotations(constraintTemplate)
+
+ return fmt.Sprintf("%s", annotations["metadata.gatekeeper.sh/title"])
+}
+
+func getConstraintTemplateDescription(constraintTemplate map[string]interface{}) string {
+ annotations := getConstraintTemplateAnnotations(constraintTemplate)
+
+ return fmt.Sprintf("%s", annotations["description"])
+}
+
+func getConstraintTemplateBundle(constraintTemplate map[string]interface{}) string {
+ annotations := getConstraintTemplateAnnotations(constraintTemplate)
+
+ bundle, ok := annotations["metadata.gatekeeper.sh/bundle"].(string)
+ if !ok || bundle == "" {
+ return ""
+ }
+
+ // Parse comma-separated bundles and create badges
+ bundles := strings.Split(bundle, ",")
+ var badges []string
+ for _, b := range bundles {
+ b = strings.TrimSpace(b)
+ if b != "" {
+ // Create a badge for each bundle
+ badges = append(badges, fmt.Sprintf("`%s`", b))
+ }
+ }
+
+ if len(badges) == 0 {
+ return ""
+ }
+
+ return fmt.Sprintf("\n**Bundles:** %s\n", strings.Join(badges, " "))
+}
+
+func getConstraintTemplateBundleAnnotation(constraintTemplate map[string]interface{}) string {
+ annotations := getConstraintTemplateAnnotations(constraintTemplate)
+
+ bundle, ok := annotations["metadata.gatekeeper.sh/bundle"].(string)
+ if !ok {
+ return ""
+ }
+ return bundle
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/go.mod b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/go.mod
new file mode 100644
index 0000000000000000000000000000000000000000..902a0f8fb3fcd2d84702f60bbeef0f8764372487
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/go.mod
@@ -0,0 +1,5 @@
+module gatekeeper-library
+
+go 1.19
+
+require gopkg.in/yaml.v3 v3.0.1
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/go.sum b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/go.sum
new file mode 100644
index 0000000000000000000000000000000000000000..a62c313c5b0c799f83215509f742b13aebbe38e4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/go.sum
@@ -0,0 +1,4 @@
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/mutation-template.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/mutation-template.md
new file mode 100644
index 0000000000000000000000000000000000000000..c491463e92e1f77dd6e3582b2510f224a8f34b66
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/mutation-template.md
@@ -0,0 +1,15 @@
+---
+id: %FILENAME%
+title: %TITLE%
+---
+
+# %TITLE%
+
+### Usage
+```shell
+kubectl apply -f %RAWURL%
+```
+## Mutation Examples
+```yaml
+%EXAMPLES%
+```
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/pspreadme-template.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/pspreadme-template.md
new file mode 100644
index 0000000000000000000000000000000000000000..64729f2d24375a8406076f7f941c624b683b0b3b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/pspreadme-template.md
@@ -0,0 +1,6 @@
+---
+id: pspintro
+title: Introduction
+---
+
+%CONTENT%
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/readme-template.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/readme-template.md
new file mode 100644
index 0000000000000000000000000000000000000000..4ca05284b13ccd5e6eaf6dbd87352195dcbdf53d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/readme-template.md
@@ -0,0 +1,8 @@
+---
+id: intro
+title: Introduction
+sidebar_label: Introduction
+slug: /
+---
+
+%CONTENT%
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/sidebars-template.js b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/sidebars-template.js
new file mode 100644
index 0000000000000000000000000000000000000000..2370e35d3a95a69a01576c2d55ca599bbf8853b7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/sidebars-template.js
@@ -0,0 +1,74 @@
+module.exports = {
+ docs: [
+ {
+ type: 'category',
+ label: 'Introduction',
+ collapsed: true,
+ items: [
+ 'intro',
+ ]
+ },
+ {
+ type: 'category',
+ label: 'Validation',
+ collapsed: true,
+ items: [
+ {
+ type: 'category',
+ label: 'General',
+ collapsed: true,
+ items: [
+%GENERAL_ITEMS%
+ ],
+ },
+ {
+ type: 'category',
+ label: 'Pod Security Standards',
+ collapsed: true,
+ items: [
+ 'pspintro',
+ {
+ type: 'category',
+ label: 'Profiles',
+ collapsed: true,
+ items: [
+ {
+ type: 'category',
+ label: 'Baseline',
+ collapsed: true,
+ items: [
+%BASELINE_ITEMS%
+ ],
+ },
+ {
+ type: 'category',
+ label: 'Restricted',
+ collapsed: true,
+ items: [
+%RESTRICTED_ITEMS%
+ ],
+ },
+ ],
+ },
+ {
+ type: 'category',
+ label: 'Other',
+ collapsed: true,
+ items: [
+%OTHER_PSP_ITEMS%
+ ],
+ },
+ ],
+ },
+ ]
+ },
+ {
+ type: 'category',
+ label: 'Mutation',
+ collapsed: true,
+ items: [
+%MUTATION_ITEMS%
+ ]
+ },
+ ],
+};
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/template.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/template.md
new file mode 100644
index 0000000000000000000000000000000000000000..dbb475c0eac5e70c36677a69ea54cb65b18130d3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/website/template.md
@@ -0,0 +1,21 @@
+---
+id: %FILENAME%
+title: %TITLE%
+---
+
+# %TITLE%
+%BUNDLE%
+## Description
+%DESCRIPTION%
+
+## Template
+```yaml
+%TEMPLATE%
+```
+
+### Usage
+```shell
+kubectl apply -f %RAWURL%
+```
+## Examples
+%EXAMPLES%
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..f56543fbd0521568073ae7a998196b22f76b380d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/constraint.tmpl
@@ -0,0 +1,30 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sallowedrepos
+ annotations:
+ metadata.gatekeeper.sh/title: "Allowed Repositories"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires container images to begin with a string from the specified list.
+ To prevent bypasses, ensure a '/' is added when specifying DockerHub repositories or custom registries.
+ If exact matches or glob-like syntax are preferred, use the k8sallowedreposv2 policy.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sAllowedRepos
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ repos:
+ description: The list of prefixes a container image is allowed to have.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/allowedrepos/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..37ae159def1c40f620b33af5550ec8c3b9cc8d3e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/src.rego
@@ -0,0 +1,19 @@
+package k8sallowedrepos
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.containers[_]
+ not strings.any_prefix_match(container.image, input.parameters.repos)
+ msg := sprintf("container <%v> has an invalid image repo <%v>, allowed repos are %v", [container.name, container.image, input.parameters.repos])
+}
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.initContainers[_]
+ not strings.any_prefix_match(container.image, input.parameters.repos)
+ msg := sprintf("initContainer <%v> has an invalid image repo <%v>, allowed repos are %v", [container.name, container.image, input.parameters.repos])
+}
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.ephemeralContainers[_]
+ not strings.any_prefix_match(container.image, input.parameters.repos)
+ msg := sprintf("ephemeralContainer <%v> has an invalid image repo <%v>, allowed repos are %v", [container.name, container.image, input.parameters.repos])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..932bc4dc0e222443f04a8dbe50306521e252f13e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedrepos/src_test.rego
@@ -0,0 +1,132 @@
+package k8sallowedrepos
+
+test_input_allowed_container {
+ inp := { "review": input_review(input_container_allowed), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_container_x2 {
+ inp := { "review": input_review(input_container_allowed), "parameters": {"repos": ["other", "allowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_dual_container {
+ inp := { "review": input_review(input_container_dual_allowed), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_container {
+ inp := { "review": input_review(input_container_denied), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_x2 {
+ inp := { "review": input_review(input_container_denied), "parameters": {"repos": ["other", "allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_container {
+ inp := { "review": input_review(input_container_dual_denied), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_container {
+ inp := { "review": input_review(array.concat(input_container_allowed, input_container_denied)), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+# init containers
+test_input_allowed_container {
+ inp := { "review": input_init_review(input_container_allowed), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_container_x2 {
+ inp := { "review": input_init_review(input_container_allowed), "parameters": {"repos": ["other", "allowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_dual_container {
+ inp := { "review": input_init_review(input_container_dual_allowed), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_container {
+ inp := { "review": input_init_review(input_container_denied), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_x2 {
+ inp := { "review": input_init_review(input_container_denied), "parameters": {"repos": ["other", "allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_container {
+ inp := { "review": input_init_review(input_container_dual_denied), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_container {
+ inp := { "review": input_init_review(array.concat(input_container_allowed, input_container_denied)), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+input_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": containers,
+ }
+ }
+ }
+}
+
+input_init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": containers,
+ }
+ }
+ }
+}
+
+input_container_allowed = [
+{
+ "name": "nginx",
+ "image": "allowed/nginx",
+}]
+
+input_container_denied = [
+{
+ "name": "nginx",
+ "image": "denied/nginx",
+}]
+
+input_container_dual_allowed = [
+{
+ "name": "nginx",
+ "image": "allowed/nginx",
+},
+{
+ "name": "other",
+ "image": "allowed/other",
+}]
+
+input_container_dual_denied = [
+{
+ "name": "nginx",
+ "image": "denied/nginx",
+},
+{
+ "name": "other",
+ "image": "denied/other",
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..586cb10bd0fc0ff73e468ba3a11e55022977c245
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/constraint.tmpl
@@ -0,0 +1,32 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sallowedreposv2
+ annotations:
+ metadata.gatekeeper.sh/title: "Allowed Images"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ This policy enforces that container images must begin with a string from a specified list.
+ The updated version, K8sAllowedReposv2, introduces support for exact match and glob-like syntax to enhance security:
+ 1. Exact Match: By default, if the * character is not specified, the policy strictly checks for an exact match of the full registry, repository, and/or the image name.
+ 2. Glob-like Syntax: Adding * at the end of a prefix allows prefix-based matching (e.g., registry.example.com/project/*). Only the * wildcard at the end of a string is supported.
+ 3. Security Note: To avoid bypasses scenarios, ensure prefixes include a trailing / where appropriate (e.g., registry.example.com/project/*).
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sAllowedReposv2
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ allowedImages:
+ description: A list of allowed container image prefixes. Supports exact matches and prefixes ending with '*'.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/allowedreposv2/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..19b2bf1acb95335bbbe74664f1679f352dc57c70
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/src.rego
@@ -0,0 +1,32 @@
+package k8sallowedreposv2
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.containers[_]
+ not image_matches(container.image, input.parameters.allowedImages)
+ msg := sprintf("container <%v> has an invalid image <%v>, allowed images are %v", [container.name, container.image, input.parameters.allowedImages])
+}
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.initContainers[_]
+ not image_matches(container.image, input.parameters.allowedImages)
+ msg := sprintf("initContainer <%v> has an invalid image <%v>, allowed images are %v", [container.name, container.image, input.parameters.allowedImages])
+}
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.ephemeralContainers[_]
+ not image_matches(container.image, input.parameters.allowedImages)
+ msg := sprintf("ephemeralContainer <%v> has an invalid image <%v>, allowed images are %v", [container.name, container.image, input.parameters.allowedImages])
+}
+
+image_matches(image, images) {
+ i_image := images[_] # Iterate through all images in the allowed list
+ not endswith(i_image, "*") # Check for exact match if the image does not end with *
+ i_image == image
+}
+
+image_matches(image, images) {
+ i_image := images[_] # Iterate through all images in the allowed list
+ endswith(i_image, "*") # Check for prefix match if the image ends with *
+ prefix := trim_suffix(i_image, "*")
+ startswith(image, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..6a1225a294947388f187d3da3eb5ba0914f9c5c9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/allowedreposv2/src_test.rego
@@ -0,0 +1,132 @@
+package k8sallowedreposv2
+
+test_input_allowed_container {
+ inp := { "review": input_review(input_container_allowed), "parameters": {"allowedImages": ["allowed/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_container_x2 {
+ inp := { "review": input_review(input_container_allowed), "parameters": {"allowedImages": ["other", "allowed/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_dual_container {
+ inp := { "review": input_review(input_container_dual_allowed), "parameters": {"allowedImages": ["allowed/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_container {
+ inp := { "review": input_review(input_container_denied), "parameters": {"allowedImages": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_x2 {
+ inp := { "review": input_review(input_container_denied), "parameters": {"allowedImages": ["other", "allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_container {
+ inp := { "review": input_review(input_container_dual_denied), "parameters": {"allowedImages": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_container {
+ inp := { "review": input_review(array.concat(input_container_allowed, input_container_denied)), "parameters": {"allowedImages": ["allowed/nginx*"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+# init containers
+test_input_allowed_container {
+ inp := { "review": input_init_review(input_container_allowed), "parameters": {"allowedImages": ["allowed/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_container_x2 {
+ inp := { "review": input_init_review(input_container_allowed), "parameters": {"allowedImages": ["other", "allowed/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_dual_container {
+ inp := { "review": input_init_review(input_container_dual_allowed), "parameters": {"allowedImages": ["allowed/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_container {
+ inp := { "review": input_init_review(input_container_denied), "parameters": {"allowedImages": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_x2 {
+ inp := { "review": input_init_review(input_container_denied), "parameters": {"allowedImages": ["other", "allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_container {
+ inp := { "review": input_init_review(input_container_dual_denied), "parameters": {"allowedImages": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_container {
+ inp := { "review": input_init_review(array.concat(input_container_allowed, input_container_denied)), "parameters": {"allowedImages": ["allowed/nginx"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+input_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": containers,
+ }
+ }
+ }
+}
+
+input_init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": containers,
+ }
+ }
+ }
+}
+
+input_container_allowed = [
+{
+ "name": "nginx",
+ "image": "allowed/nginx",
+}]
+
+input_container_denied = [
+{
+ "name": "nginx",
+ "image": "denied/nginx",
+}]
+
+input_container_dual_allowed = [
+{
+ "name": "nginx",
+ "image": "allowed/nginx",
+},
+{
+ "name": "other",
+ "image": "allowed/other",
+}]
+
+input_container_dual_denied = [
+{
+ "name": "nginx",
+ "image": "denied/nginx",
+},
+{
+ "name": "other",
+ "image": "denied/other",
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..9b5a9531b7869bd994b5c658b023ddb10e23e1d3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/constraint.tmpl
@@ -0,0 +1,26 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspautomountserviceaccounttokenpod
+ annotations:
+ metadata.gatekeeper.sh/title: "Automount Service Account Token for Pod"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Controls the ability of any Pod to enable automountServiceAccountToken.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAutomountServiceAccountTokenPod
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the ability of any Pod to enable automountServiceAccountToken.
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/automount-serviceaccount-token/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/automount-serviceaccount-token/lib_exclude_update.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..55f6f43a702e0406eb7aed7392774b3ae72fad19
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/src.rego
@@ -0,0 +1,37 @@
+package k8sautomountserviceaccounttoken
+
+import data.lib.exclude_update.is_update
+
+violation[{"msg": msg}] {
+ # spec.automountServiceAccountToken and spec.containers.volumeMounts fields are immutable.
+ not is_update(input.review)
+
+ obj := input.review.object
+ mountServiceAccountToken(obj.spec)
+ msg := sprintf("Automounting service account token is disallowed, pod: %v", [obj.metadata.name])
+}
+
+mountServiceAccountToken(spec) {
+ spec.automountServiceAccountToken == true
+}
+
+# if there is no automountServiceAccountToken spec, check on volumeMount in containers. Service Account token is mounted on /var/run/secrets/kubernetes.io/serviceaccount
+# https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#serviceaccount-admission-controller
+mountServiceAccountToken(spec) {
+ not has_key(spec, "automountServiceAccountToken")
+ "/var/run/secrets/kubernetes.io/serviceaccount" == input_containers[_].volumeMounts[_].mountPath
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+
+# Ephemeral containers not checked as it is not possible to set field.
+
+has_key(x, k) {
+ _ = x[k]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..ef78ba6097c394f4feffef4721e4044eb4c647c3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/automount-serviceaccount-token/src_test.rego
@@ -0,0 +1,60 @@
+package k8sautomountserviceaccounttoken
+
+test_input_pod_not_automountserviceaccounttoken_allowed {
+ inp := {"review": input_review_disabled_automountserviceaccounttoken}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_pod_automountserviceaccounttoken_not_allowed {
+ inp := {"review": input_review_enabled_automountserviceaccounttoken}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_pod_automountserviceaccounttoken_not_defined {
+ inp := {"review": input_review_no_automountserviceaccounttoken_defined_and_enabled_volumemount}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_update {
+ inp := {"review": object.union(input_review_enabled_automountserviceaccounttoken, {"operation": "UPDATE"})}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review_disabled_automountserviceaccounttoken = {"object": {
+ "metadata": {"name": "nginx"},
+ "spec": {
+ "automountServiceAccountToken": false,
+ "containers": input_containers_one,
+ },
+}}
+
+input_review_enabled_automountserviceaccounttoken = {"object": {
+ "metadata": {"name": "nginx"},
+ "spec": {
+ "automountServiceAccountToken": true,
+ "containers": input_containers_one,
+ },
+}}
+
+input_review_no_automountserviceaccounttoken_defined_and_enabled_volumemount = {"object": {
+ "metadata": {"name": "nginx"},
+ "spec": {"containers": input_containers_volumemount},
+}}
+
+input_containers_one = [{
+ "name": "nginx",
+ "image": "nginx",
+}]
+
+input_containers_volumemount = [{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts": [{
+ "name": "serviceaccount-vm",
+ "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
+ }],
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..54d9e257acb5949b3fa0dad9a1d6e0a40856f1ca
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/constraint.tmpl
@@ -0,0 +1,26 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sblockendpointeditdefaultrole
+ annotations:
+ metadata.gatekeeper.sh/title: "Block Endpoint Edit Default Role"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Many Kubernetes installations by default have a system:aggregate-to-edit
+ ClusterRole which does not properly restrict access to editing Endpoints.
+ This ConstraintTemplate forbids the system:aggregate-to-edit ClusterRole
+ from granting permission to create/patch/update Endpoints.
+
+ ClusterRole/system:aggregate-to-edit should not allow
+ Endpoint edit permissions due to CVE-2021-25740, Endpoint & EndpointSlice
+ permissions allow cross-Namespace forwarding,
+ https://github.com/kubernetes/kubernetes/issues/103675
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sBlockEndpointEditDefaultRole
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/block-endpoint-edit-default-role/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..9dcf2fcfa61f0a687f8ad8205b447777e77a28fb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/src.rego
@@ -0,0 +1,24 @@
+package k8sblockendpointeditdefaultrole
+
+violation[{"msg": msg}] {
+ input.review.object.metadata.name == "system:aggregate-to-edit"
+ endpointRule(input.review.object.rules[_])
+ msg := "ClusterRole system:aggregate-to-edit should not allow endpoint edit permissions. For k8s version < 1.22, the Cluster Role should be annotated with rbac.authorization.kubernetes.io/autoupdate=false to prevent autoreconciliation back to default permissions for this role."
+}
+
+endpointRule(rule) {
+ "endpoints" == rule.resources[_]
+ hasEditVerb(rule.verbs)
+}
+
+hasEditVerb(verbs) {
+ "create" == verbs[_]
+}
+
+hasEditVerb(verbs) {
+ "patch" == verbs[_]
+}
+
+hasEditVerb(verbs) {
+ "update" == verbs[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..5eda05194fed516566f2bebfe9d4715c2aec9b86
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-endpoint-edit-default-role/src_test.rego
@@ -0,0 +1,112 @@
+package k8sblockendpointeditdefaultrole
+
+test_input_no_endpoints_edit_role_allow {
+ inp := { "review": input_review_withoutendpoints }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_endpoints_create_role_not_allow {
+ inp := { "review": input_review_with_endpoints_create }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_endpoints_update_role_not_allow {
+ inp := { "review": input_review_with_endpoints_update }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_endpoints_patch_role_not_allow {
+ inp := { "review": input_review_with_endpoints_patch }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_endpoints_delete_role_allow {
+ inp := { "review": input_review_with_endpoints_delete }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review_withoutendpoints() = {
+ "object": {
+ "metadata":{
+ "annotations":{
+ "rbac.authorization.kubernetes.io/autoupdate": "false"
+ },
+ "name": "system:aggregate-to-edit"
+ },
+ "rules": [
+ input_rule(["pods"], ["create"]),
+ input_rule(["services"], ["delete"])
+ ]
+ }
+}
+
+input_review_with_endpoints_create() = {
+ "object": {
+ "metadata":{
+ "annotations":{
+ "rbac.authorization.kubernetes.io/autoupdate": "false"
+ },
+ "name": "system:aggregate-to-edit"
+ },
+ "rules": [
+ input_rule(["pods", "endpoints"], ["create"]),
+ input_rule(["services"], ["delete"])
+ ]
+ }
+}
+
+input_review_with_endpoints_update() = {
+ "object": {
+ "metadata":{
+ "annotations":{
+ "rbac.authorization.kubernetes.io/autoupdate": "false"
+ },
+ "name": "system:aggregate-to-edit"
+ },
+ "rules": [
+ input_rule(["pods", "endpoints"], ["update"]),
+ input_rule(["services"], ["delete"])
+ ]
+ }
+}
+
+input_review_with_endpoints_patch() = {
+ "object": {
+ "metadata":{
+ "annotations":{
+ "rbac.authorization.kubernetes.io/autoupdate": "false"
+ },
+ "name": "system:aggregate-to-edit"
+ },
+ "rules": [
+ input_rule(["pods", "endpoints"], ["patch"]),
+ input_rule(["services"], ["delete"])
+ ]
+ }
+}
+
+input_review_with_endpoints_delete() = {
+ "object": {
+ "metadata":{
+ "annotations":{
+ "rbac.authorization.kubernetes.io/autoupdate": "false"
+ },
+ "name": "system:aggregate-to-edit"
+ },
+ "rules": [
+ input_rule(["pods"], ["create"]),
+ input_rule(["services", "endpoints"], ["delete"])
+ ]
+ }
+}
+
+input_rule(resources,verbs) = {
+ "apiGroups": [""],
+ "resources": resources,
+ "verbs": verbs
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..520971cd967fafa5a6c06c39a901b090e9650e0d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/constraint.tmpl
@@ -0,0 +1,20 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sblockloadbalancer
+ annotations:
+ metadata.gatekeeper.sh/title: "Block Services with type LoadBalancer"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Disallows all Services with type LoadBalancer.
+
+ https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sBlockLoadBalancer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/block-loadbalancer-services/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..86325e33ab985f3fd9fabaa38db0461ec1d47fa9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/src.rego
@@ -0,0 +1,7 @@
+package k8sblockloadbalancer
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "Service"
+ input.review.object.spec.type == "LoadBalancer"
+ msg := "User is not allowed to create service of type LoadBalancer"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..208f6af9864083a9a414958915529dac365f54f9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-loadbalancer-services/src_test.rego
@@ -0,0 +1,40 @@
+package k8sblockloadbalancer
+
+test_block_load_balancer {
+ inp := {
+ "review": {
+ "kind": {"kind": "Service"},
+ "object": {
+ "spec": {
+ "type": "LoadBalancer"
+ },
+ "ports": {
+ "protocol": "TCP",
+ "port": 80,
+ "targetPort": 80
+ }
+ }
+ }
+ }
+ result := violation with input as inp
+ count(result) == 1
+}
+test_allow_other_service_types {
+ inp := {
+ "review": {
+ "kind": {"kind": "Service"},
+ "object": {
+ "spec": {
+ "type": "NodePort"
+ },
+ "ports": {
+ "port": 80,
+ "targetPort": 9376,
+ "nodePort": 30007
+ }
+ }
+ }
+ }
+ result := violation with input as inp
+ count(result) == 0
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..7378fa324dadcef01e44558b1f14ccf38613a003
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/constraint.tmpl
@@ -0,0 +1,20 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sblocknodeport
+ annotations:
+ metadata.gatekeeper.sh/title: "Block NodePort"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Disallows all Services with type NodePort.
+
+ https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sBlockNodePort
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/block-nodeport-services/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..e7eb37a64def7c30ce8a5306f8ca894206e2c4a8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/src.rego
@@ -0,0 +1,7 @@
+package k8sblocknodeport
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "Service"
+ input.review.object.spec.type == "NodePort"
+ msg := "User is not allowed to create service of type NodePort"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c28c314ef0ca200ca57d15e8f4f5d0407d92ef45
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-nodeport-services/src_test.rego
@@ -0,0 +1,40 @@
+package k8sblocknodeport
+
+test_block_node_port {
+ inp := {
+ "review": {
+ "kind": {"kind": "Service"},
+ "object": {
+ "spec": {
+ "type": "NodePort"
+ },
+ "ports": {
+ "port": 80,
+ "targetPort": 80,
+ "nodePort": 30007
+ }
+ }
+ }
+ }
+ result := violation with input as inp
+ count(result) == 1
+}
+test_allow_other_service_types {
+ inp := {
+ "review": {
+ "kind": {"kind": "Service"},
+ "object": {
+ "spec": {
+ "type": "LoadBalancer"
+ },
+ "ports": {
+ "protocol": "TCP",
+ "port": 80,
+ "targetPort": 9376,
+ }
+ }
+ }
+ }
+ result := violation with input as inp
+ count(result) == 0
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..6650b71208092e47c89b8724dda426fde3ee9aba
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/constraint.tmpl
@@ -0,0 +1,18 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sblockwildcardingress
+ annotations:
+ metadata.gatekeeper.sh/title: "Block Wildcard Ingress"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Users should not be able to create Ingresses with a blank or wildcard (*) hostname since that would enable them to intercept traffic for other services in the cluster, even if they don't have access to those services.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sBlockWildcardIngress
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/block-wildcard-ingress/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..bf713a82612d2cf1960c017f050c254880b733ac
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/src.rego
@@ -0,0 +1,17 @@
+package K8sBlockWildcardIngress
+
+contains_wildcard(hostname) = true {
+ hostname == ""
+}
+
+contains_wildcard(hostname) = true {
+ contains(hostname, "*")
+}
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "Ingress"
+ # object.get is required to detect omitted host fields
+ hostname := object.get(input.review.object.spec.rules[_], "host", "")
+ contains_wildcard(hostname)
+ msg := sprintf("Hostname '%v' is not allowed since it counts as a wildcard, which can be used to intercept traffic from other applications.", [hostname])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..4030e8bcf6a81ccf6b1976bf82492fb0f1330aee
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/block-wildcard-ingress/src_test.rego
@@ -0,0 +1,60 @@
+package K8sBlockWildcardIngress
+
+test_input_ingress_allowed_host {
+ inp := { "review": input_review(input_ingress_allowed_host) }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_ingress_disallowed_wildcard_host {
+ inp := { "review": input_review(input_ingress_disallowed_wildcard_host) }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_ingress_disallowed_empty_host {
+ inp := { "review": input_review(input_ingress_disallowed_empty_host) }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_ingress_disallowed_empty_host {
+ inp := { "review": input_review(input_ingress_disallowed_empty_host) }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_ingress_no_rules {
+ inp := { "review": input_review(input_ingress_no_rules) }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+input_review(rules) = output {
+ output = {
+ "kind": {
+ "kind": "Ingress"
+ },
+ "object": {
+ "spec": {
+ "rules": rules
+ }
+ }
+ }
+}
+
+input_ingress_allowed_host = [{
+ "host": "foo.bar.com"
+}]
+
+input_ingress_disallowed_wildcard_host = [{
+ "host": "foo.bar.com"
+}, {
+ "host": "*.foo.com"
+}]
+
+input_ingress_disallowed_empty_host = [{
+ "host": ""
+}]
+
+input_ingress_no_rules = [{}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..5337a4505bc3116ab1a80099b41bb086bc9a0b57
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/constraint.tmpl
@@ -0,0 +1,45 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8scontainerlimits
+ annotations:
+ metadata.gatekeeper.sh/title: "Container Limits"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: >-
+ Requires containers to have memory and CPU limits set and constrains
+ limits to be within the specified maximum values.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sContainerLimits
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ cpu:
+ description: "The maximum allowed cpu limit on a Pod, exclusive. Set to -1 to disable."
+ type: string
+ memory:
+ description: "The maximum allowed memory limit on a Pod, exclusive."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/containerlimits/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/containerlimits/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c800ead8456c722c95b3f25f8a2c370d878acb4f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/src.rego
@@ -0,0 +1,205 @@
+package k8scontainerlimits
+
+import data.lib.exempt_container.is_exempt
+
+missing(obj, field) = true {
+ not obj[field]
+}
+
+missing(obj, field) = true {
+ obj[field] == ""
+}
+
+canonify_cpu(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+}
+
+canonify_cpu(orig) = new {
+ not is_number(orig)
+ endswith(orig, "m")
+ new := to_number(replace(orig, "m", ""))
+}
+
+canonify_cpu(orig) = new {
+ not is_number(orig)
+ not endswith(orig, "m")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", orig)
+ new := to_number(orig) * 1000
+}
+
+# 10 ** 21
+mem_multiple("E") = 1000000000000000000000 { true }
+
+# 10 ** 18
+mem_multiple("P") = 1000000000000000000 { true }
+
+# 10 ** 15
+mem_multiple("T") = 1000000000000000 { true }
+
+# 10 ** 12
+mem_multiple("G") = 1000000000000 { true }
+
+# 10 ** 9
+mem_multiple("M") = 1000000000 { true }
+
+# 10 ** 6
+mem_multiple("k") = 1000000 { true }
+
+# 10 ** 3
+mem_multiple("") = 1000 { true }
+
+# Kubernetes accepts millibyte precision when it probably shouldn't.
+# https://github.com/kubernetes/kubernetes/issues/28741
+# 10 ** 0
+mem_multiple("m") = 1 { true }
+
+# 1000 * 2 ** 10
+mem_multiple("Ki") = 1024000 { true }
+
+# 1000 * 2 ** 20
+mem_multiple("Mi") = 1048576000 { true }
+
+# 1000 * 2 ** 30
+mem_multiple("Gi") = 1073741824000 { true }
+
+# 1000 * 2 ** 40
+mem_multiple("Ti") = 1099511627776000 { true }
+
+# 1000 * 2 ** 50
+mem_multiple("Pi") = 1125899906842624000 { true }
+
+# 1000 * 2 ** 60
+mem_multiple("Ei") = 1152921504606846976000 { true }
+
+get_suffix(mem) = suffix {
+ not is_string(mem)
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 0
+ suffix := substring(mem, count(mem) - 1, -1)
+ mem_multiple(suffix)
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ suffix := substring(mem, count(mem) - 2, -1)
+ mem_multiple(suffix)
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ not mem_multiple(substring(mem, count(mem) - 2, -1))
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 0
+ suffix := ""
+}
+
+canonify_mem(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+}
+
+canonify_mem(orig) = new {
+ not is_number(orig)
+ suffix := get_suffix(orig)
+ raw := replace(orig, suffix, "")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", raw)
+ new := to_number(raw) * mem_multiple(suffix)
+}
+
+violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "containers"}]
+}
+
+violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "initContainers"}]
+}
+
+# Ephemeral containers not checked as it is not possible to set field.
+
+general_violation[{"msg": msg, "field": field}] {
+ input.parameters.cpu != "-1"
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.limits.cpu
+ not canonify_cpu(cpu_orig)
+ msg := sprintf("container <%v> cpu limit <%v> could not be parsed", [container.name, cpu_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.limits.memory
+ not canonify_mem(mem_orig)
+ msg := sprintf("container <%v> memory limit <%v> could not be parsed", [container.name, mem_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.limits
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ input.parameters.cpu != "-1"
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "cpu")
+ msg := sprintf("container <%v> has no cpu limit", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "memory")
+ msg := sprintf("container <%v> has no memory limit", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.limits.cpu
+ cpu := canonify_cpu(cpu_orig)
+ max_cpu_orig := input.parameters.cpu
+ max_cpu_orig != "-1"
+ max_cpu := canonify_cpu(max_cpu_orig)
+ cpu > max_cpu
+ msg := sprintf("container <%v> cpu limit <%v> is higher than the maximum allowed of <%v>", [container.name, cpu_orig, max_cpu_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.limits.memory
+ mem := canonify_mem(mem_orig)
+ max_mem_orig := input.parameters.memory
+ max_mem := canonify_mem(max_mem_orig)
+ mem > max_mem
+ msg := sprintf("container <%v> memory limit <%v> is higher than the maximum allowed of <%v>", [container.name, mem_orig, max_mem_orig])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..0f8fdfd2e71053add8d0fc7edff2335fab421358
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerlimits/src_test.rego
@@ -0,0 +1,217 @@
+package k8scontainerlimits
+
+test_input_no_violations_int {
+ inp := {"review": review([ctr("a", 10, 20)]), "parameters": {"memory": 20, "cpu": 40}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_str {
+ inp := {"review": review([ctr("a", "10", "20")]), "parameters": {"memory": "20", "cpu": "40"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_str_small {
+ inp := {"review": review([ctr("a", "1", "2")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_cpu_scale {
+ inp := {"review": review([ctr("a", "1", "2m")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_violations_int {
+ inp := {"review": review([ctr("a", 10, 20)]), "parameters": {"memory": 5, "cpu": 10}}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_violations_mem_int_v_str {
+ inp := {"review": review([ctr("a", 10, "4")]), "parameters": {"memory": "1000m", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_violations_str {
+ inp := {"review": review([ctr("a", "10", "20")]), "parameters": {"memory": "5", "cpu": "10"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_violations_str_small {
+ inp := {"review": review([ctr("a", "5", "6")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_violations_cpu_scale {
+ inp := {"review": review([ctr("a", "1", "2")]), "parameters": {"memory": "2", "cpu": "4m"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_parse_cpu {
+ inp := {"review": review([ctr("a", "1", "212asdf")]), "parameters": {"memory": "2", "cpu": "4m"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_parse_cpu_skip {
+ inp := {"review": review([ctr("a", "1", "212asdf")]), "parameters": {"memory": "2", "cpu": "-1"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_no_parse_ram {
+ inp := {"review": review([ctr("a", "1asdf", "2")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_1_bad_cpu {
+ inp := {"review": review([ctr("a", "1", "2"), ctr("b", "1", "8")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_2_bad_cpu {
+ inp := {"review": review([ctr("a", "1", "9"), ctr("b", "1", "8")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_1_bad_ram {
+ inp := {"review": review([ctr("a", "1", "2"), ctr("b", "8", "2")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_2_bad_ram {
+ inp := {"review": review([ctr("a", "9", "2"), ctr("b", "8", "2")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_no_ram_limit {
+ inp := {"review": review([{"name": "a", "resources": {"limits": {"cpu": 1}}}]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_cpu_limit {
+ inp := {"review": review([{"name": "a", "resources": {"limits": {"memory": 1}}}]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_limit {
+ inp := {"review": review([{"name": "a", "resources": {}}]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_resources {
+ inp := {"review": review([{"name": "a"}]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_init_containers_checked {
+ inp := {"review": init_review([ctr("a", "5", "5"), ctr("b", "5", "5")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 4
+}
+
+# MEM SCALE TESTS
+test_input_no_violations_mem_K {
+ inp := {"review": review([ctr("a", "1", "2")]), "parameters": {"memory": "1k", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_violations_mem_m {
+ inp := {"review": review([ctr("a", "1", "2")]), "parameters": {"memory": "1m", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_K {
+ inp := {"review": review([ctr("a", "1k", "2")]), "parameters": {"memory": "1", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_M {
+ inp := {"review": review([ctr("a", "1M", "2")]), "parameters": {"memory": "1k", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_G {
+ inp := {"review": review([ctr("a", "1G", "2")]), "parameters": {"memory": "1M", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_T {
+ inp := {"review": review([ctr("a", "1T", "2")]), "parameters": {"memory": "1G", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_P {
+ inp := {"review": review([ctr("a", "1P", "2")]), "parameters": {"memory": "1T", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_E {
+ inp := {"review": review([ctr("a", "1E", "2")]), "parameters": {"memory": "1P", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ki {
+ inp := {"review": review([ctr("a", "1Ki", "2")]), "parameters": {"memory": "1", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Mi {
+ inp := {"review": review([ctr("a", "1Mi", "2")]), "parameters": {"memory": "1Ki", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Gi {
+ inp := {"review": review([ctr("a", "1Gi", "2")]), "parameters": {"memory": "1Mi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_decimal_mem_Gi {
+ inp := {"review": review([ctr("a", "1Gi", "2")]), "parameters": {"memory": "1.5Mi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ti {
+ inp := {"review": review([ctr("a", "1Ti", "2")]), "parameters": {"memory": "1Gi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Pi {
+ inp := {"review": review([ctr("a", "1Pi", "2")]), "parameters": {"memory": "1Ti", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ei {
+ inp := {"review": review([ctr("a", "1Ei", "2")]), "parameters": {"memory": "1Pi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ei_with_exemption {
+ inp := {"review": review([ctr("a", "1Ei", "2")]), "parameters": {"exemptImages": ["nginx"], "memory": "1Pi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"containers": containers}
+ }
+ }
+}
+
+init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"initContainers": containers}
+ }
+ }
+}
+
+ctr(name, mem, cpu) = out {
+ out = {"name": name, "image": "nginx", "resources": {"limits": {"memory": mem, "cpu": cpu}}}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..fb96b6d10287f15e57d0cfc3b8a3f9902dab243e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/constraint.tmpl
@@ -0,0 +1,45 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8scontainerrequests
+ annotations:
+ metadata.gatekeeper.sh/title: "Container Requests"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Requires containers to have memory and CPU requests set and constrains
+ requests to be within the specified maximum values.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sContainerRequests
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ cpu:
+ description: "The maximum allowed cpu request on a Pod, exclusive."
+ type: string
+ memory:
+ description: "The maximum allowed memory request on a Pod, exclusive."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/containerrequests/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/containerrequests/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..94ac1f8311b6b1061c7a44a94a158ededcbda3ce
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/src.rego
@@ -0,0 +1,202 @@
+package k8scontainerrequests
+
+import data.lib.exempt_container.is_exempt
+
+missing(obj, field) = true {
+ not obj[field]
+}
+
+missing(obj, field) = true {
+ obj[field] == ""
+}
+
+canonify_cpu(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+}
+
+canonify_cpu(orig) = new {
+ not is_number(orig)
+ endswith(orig, "m")
+ new := to_number(replace(orig, "m", ""))
+}
+
+canonify_cpu(orig) = new {
+ not is_number(orig)
+ not endswith(orig, "m")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", orig)
+ new := to_number(orig) * 1000
+}
+
+# 10 ** 21
+mem_multiple("E") = 1000000000000000000000 { true }
+
+# 10 ** 18
+mem_multiple("P") = 1000000000000000000 { true }
+
+# 10 ** 15
+mem_multiple("T") = 1000000000000000 { true }
+
+# 10 ** 12
+mem_multiple("G") = 1000000000000 { true }
+
+# 10 ** 9
+mem_multiple("M") = 1000000000 { true }
+
+# 10 ** 6
+mem_multiple("k") = 1000000 { true }
+
+# 10 ** 3
+mem_multiple("") = 1000 { true }
+
+# Kubernetes accepts millibyte precision when it probably shouldn't.
+# https://github.com/kubernetes/kubernetes/issues/28741
+# 10 ** 0
+mem_multiple("m") = 1 { true }
+
+# 1000 * 2 ** 10
+mem_multiple("Ki") = 1024000 { true }
+
+# 1000 * 2 ** 20
+mem_multiple("Mi") = 1048576000 { true }
+
+# 1000 * 2 ** 30
+mem_multiple("Gi") = 1073741824000 { true }
+
+# 1000 * 2 ** 40
+mem_multiple("Ti") = 1099511627776000 { true }
+
+# 1000 * 2 ** 50
+mem_multiple("Pi") = 1125899906842624000 { true }
+
+# 1000 * 2 ** 60
+mem_multiple("Ei") = 1152921504606846976000 { true }
+
+get_suffix(mem) = suffix {
+ not is_string(mem)
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 0
+ suffix := substring(mem, count(mem) - 1, -1)
+ mem_multiple(suffix)
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ suffix := substring(mem, count(mem) - 2, -1)
+ mem_multiple(suffix)
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ not mem_multiple(substring(mem, count(mem) - 2, -1))
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 0
+ suffix := ""
+}
+
+canonify_mem(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+}
+
+canonify_mem(orig) = new {
+ not is_number(orig)
+ suffix := get_suffix(orig)
+ raw := replace(orig, suffix, "")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", raw)
+ new := to_number(raw) * mem_multiple(suffix)
+}
+
+violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "containers"}]
+}
+
+violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "initContainers"}]
+}
+
+# Ephemeral containers not checked as it is not possible to set field.
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.requests.cpu
+ not canonify_cpu(cpu_orig)
+ msg := sprintf("container <%v> cpu request <%v> could not be parsed", [container.name, cpu_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.requests.memory
+ not canonify_mem(mem_orig)
+ msg := sprintf("container <%v> memory request <%v> could not be parsed", [container.name, mem_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources
+ msg := sprintf("container <%v> has no resource requests", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.requests
+ msg := sprintf("container <%v> has no resource requests", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.requests, "cpu")
+ msg := sprintf("container <%v> has no cpu request", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.requests, "memory")
+ msg := sprintf("container <%v> has no memory request", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.requests.cpu
+ cpu := canonify_cpu(cpu_orig)
+ max_cpu_orig := input.parameters.cpu
+ max_cpu := canonify_cpu(max_cpu_orig)
+ cpu > max_cpu
+ msg := sprintf("container <%v> cpu request <%v> is higher than the maximum allowed of <%v>", [container.name, cpu_orig, max_cpu_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.requests.memory
+ mem := canonify_mem(mem_orig)
+ max_mem_orig := input.parameters.memory
+ max_mem := canonify_mem(max_mem_orig)
+ mem > max_mem
+ msg := sprintf("container <%v> memory request <%v> is higher than the maximum allowed of <%v>", [container.name, mem_orig, max_mem_orig])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..4479e825fa9f8da36724faa4987083eeebb7d5d4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerrequests/src_test.rego
@@ -0,0 +1,212 @@
+package k8scontainerrequests
+
+test_input_no_violations_int {
+ inp := {"review": review([ctr("a", 10, 20)]), "parameters": {"memory": 20, "cpu": 40}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_str {
+ inp := {"review": review([ctr("a", "10", "20")]), "parameters": {"memory": "20", "cpu": "40"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_str_small {
+ inp := {"review": review([ctr("a", "1", "2")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_cpu_scale {
+ inp := {"review": review([ctr("a", "1", "2m")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_violations_int {
+ inp := {"review": review([ctr("a", 10, 20)]), "parameters": {"memory": 5, "cpu": 10}}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_violations_mem_int_v_str {
+ inp := {"review": review([ctr("a", 10, "4")]), "parameters": {"memory": "1000m", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_violations_str {
+ inp := {"review": review([ctr("a", "10", "20")]), "parameters": {"memory": "5", "cpu": "10"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_violations_str_small {
+ inp := {"review": review([ctr("a", "5", "6")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_violations_cpu_scale {
+ inp := {"review": review([ctr("a", "1", "2")]), "parameters": {"memory": "2", "cpu": "4m"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_parse_cpu {
+ inp := {"review": review([ctr("a", "1", "212asdf")]), "parameters": {"memory": "2", "cpu": "4m"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_parse_ram {
+ inp := {"review": review([ctr("a", "1asdf", "2")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_1_bad_cpu {
+ inp := {"review": review([ctr("a", "1", "2"), ctr("b", "1", "8")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_2_bad_cpu {
+ inp := {"review": review([ctr("a", "1", "9"), ctr("b", "1", "8")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_1_bad_ram {
+ inp := {"review": review([ctr("a", "1", "2"), ctr("b", "8", "2")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_2_bad_ram {
+ inp := {"review": review([ctr("a", "9", "2"), ctr("b", "8", "2")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_no_ram_request {
+ inp := {"review": review([{"name": "a", "resources": {"requests": {"cpu": 1}}}]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_cpu_request {
+ inp := {"review": review([{"name": "a", "resources": {"requests": {"memory": 1}}}]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_request {
+ inp := {"review": review([{"name": "a", "resources": {}}]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_resources {
+ inp := {"review": review([{"name": "a"}]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_init_containers_checked {
+ inp := {"review": init_review([ctr("a", "5", "5"), ctr("b", "5", "5")]), "parameters": {"memory": "2", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 4
+}
+
+# MEM SCALE TESTS
+test_input_no_violations_mem_K {
+ inp := {"review": review([ctr("a", "1", "2")]), "parameters": {"memory": "1k", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_violations_mem_m {
+ inp := {"review": review([ctr("a", "1", "2")]), "parameters": {"memory": "1m", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_K {
+ inp := {"review": review([ctr("a", "1k", "2")]), "parameters": {"memory": "1", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_M {
+ inp := {"review": review([ctr("a", "1M", "2")]), "parameters": {"memory": "1k", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_G {
+ inp := {"review": review([ctr("a", "1G", "2")]), "parameters": {"memory": "1M", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_T {
+ inp := {"review": review([ctr("a", "1T", "2")]), "parameters": {"memory": "1G", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_P {
+ inp := {"review": review([ctr("a", "1P", "2")]), "parameters": {"memory": "1T", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_E {
+ inp := {"review": review([ctr("a", "1E", "2")]), "parameters": {"memory": "1P", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ki {
+ inp := {"review": review([ctr("a", "1Ki", "2")]), "parameters": {"memory": "1", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Mi {
+ inp := {"review": review([ctr("a", "1Mi", "2")]), "parameters": {"memory": "1Ki", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Gi {
+ inp := {"review": review([ctr("a", "1Gi", "2")]), "parameters": {"memory": "1Mi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_decimal_mem_Gi {
+ inp := {"review": review([ctr("a", "1Gi", "2")]), "parameters": {"memory": "1.5Mi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ti {
+ inp := {"review": review([ctr("a", "1Ti", "2")]), "parameters": {"memory": "1Gi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Pi {
+ inp := {"review": review([ctr("a", "1Pi", "2")]), "parameters": {"memory": "1Ti", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ei {
+ inp := {"review": review([ctr("a", "1Ei", "2")]), "parameters": {"memory": "1Pi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ei_with_exemption {
+ inp := {"review": review([ctr("a", "1Ei", "2")]), "parameters": {"exemptImages": ["nginx"], "memory": "1Pi", "cpu": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"containers": containers}
+ }
+ }
+}
+
+init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"initContainers": containers}
+ }
+ }
+}
+
+ctr(name, mem, cpu) = out {
+ out = {"name": name, "image": "nginx", "resources": {"requests": {"memory": mem, "cpu": cpu}}}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..88a838d4585a6943fa15674b98b68c6f70768740
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/constraint.tmpl
@@ -0,0 +1,48 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8scontainerratios
+ annotations:
+ metadata.gatekeeper.sh/title: "Container Ratios"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Sets a maximum ratio for container resource limits to requests.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sContainerRatios
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ ratio:
+ type: string
+ description: >-
+ The maximum allowed ratio of `resources.limits` to
+ `resources.requests` on a container.
+ cpuRatio:
+ type: string
+ description: >-
+ The maximum allowed ratio of `resources.limits.cpu` to
+ `resources.requests.cpu` on a container. If not specified,
+ equal to `ratio`.
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/containerresourceratios/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/containerresourceratios/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..9d269e681dc2603c515d6a6331434c3ea9d2103b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/src.rego
@@ -0,0 +1,248 @@
+package k8scontainerratios
+
+import data.lib.exempt_container.is_exempt
+
+missing(obj, field) = true {
+ not obj[field]
+}
+
+missing(obj, field) = true {
+ obj[field] == ""
+}
+
+canonify_cpu(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+}
+
+canonify_cpu(orig) = new {
+ not is_number(orig)
+ endswith(orig, "m")
+ new := to_number(replace(orig, "m", ""))
+}
+
+canonify_cpu(orig) = new {
+ not is_number(orig)
+ not endswith(orig, "m")
+ regex.match("^[0-9]+$", orig)
+ new := to_number(orig) * 1000
+}
+
+canonify_cpu(orig) = new {
+ not is_number(orig)
+ not endswith(orig, "m")
+ regex.match("^[0-9]+[.][0-9]+$", orig)
+ new := to_number(orig) * 1000
+}
+
+# 10 ** 21
+mem_multiple("E") = 1000000000000000000000 { true }
+
+# 10 ** 18
+mem_multiple("P") = 1000000000000000000 { true }
+
+# 10 ** 15
+mem_multiple("T") = 1000000000000000 { true }
+
+# 10 ** 12
+mem_multiple("G") = 1000000000000 { true }
+
+# 10 ** 9
+mem_multiple("M") = 1000000000 { true }
+
+# 10 ** 6
+mem_multiple("k") = 1000000 { true }
+
+# 10 ** 3
+mem_multiple("") = 1000 { true }
+
+# Kubernetes accepts millibyte precision when it probably shouldn't.
+# https://github.com/kubernetes/kubernetes/issues/28741
+# 10 ** 0
+mem_multiple("m") = 1 { true }
+
+# 1000 * 2 ** 10
+mem_multiple("Ki") = 1024000 { true }
+
+# 1000 * 2 ** 20
+mem_multiple("Mi") = 1048576000 { true }
+
+# 1000 * 2 ** 30
+mem_multiple("Gi") = 1073741824000 { true }
+
+# 1000 * 2 ** 40
+mem_multiple("Ti") = 1099511627776000 { true }
+
+# 1000 * 2 ** 50
+mem_multiple("Pi") = 1125899906842624000 { true }
+
+# 1000 * 2 ** 60
+mem_multiple("Ei") = 1152921504606846976000 { true }
+
+get_suffix(mem) = suffix {
+ not is_string(mem)
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 0
+ suffix := substring(mem, count(mem) - 1, -1)
+ mem_multiple(suffix)
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ suffix := substring(mem, count(mem) - 2, -1)
+ mem_multiple(suffix)
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ not mem_multiple(substring(mem, count(mem) - 2, -1))
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ suffix := ""
+}
+
+get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 0
+ suffix := ""
+}
+
+canonify_mem(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+}
+
+canonify_mem(orig) = new {
+ not is_number(orig)
+ suffix := get_suffix(orig)
+ raw := replace(orig, suffix, "")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", raw)
+ new := to_number(raw) * mem_multiple(suffix)
+}
+
+violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "containers"}]
+}
+
+violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "initContainers"}]
+}
+
+# Ephemeral containers not checked as it is not possible to set field.
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.limits.cpu
+ not canonify_cpu(cpu_orig)
+ msg := sprintf("container <%v> cpu limit <%v> could not be parsed", [container.name, cpu_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.limits.memory
+ not canonify_mem(mem_orig)
+ msg := sprintf("container <%v> memory limit <%v> could not be parsed", [container.name, mem_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.requests.cpu
+ not canonify_cpu(cpu_orig)
+ msg := sprintf("container <%v> cpu request <%v> could not be parsed", [container.name, cpu_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.requests.memory
+ not canonify_mem(mem_orig)
+ msg := sprintf("container <%v> memory request <%v> could not be parsed", [container.name, mem_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.limits
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "cpu")
+ msg := sprintf("container <%v> has no cpu limit", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "memory")
+ msg := sprintf("container <%v> has no memory limit", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.requests
+ msg := sprintf("container <%v> has no resource requests", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.requests, "cpu")
+ msg := sprintf("container <%v> has no cpu request", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.requests, "memory")
+ msg := sprintf("container <%v> has no memory request", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_limits_orig := container.resources.limits.cpu
+ cpu_limits := canonify_cpu(cpu_limits_orig)
+ cpu_requests_orig := container.resources.requests.cpu
+ cpu_requests := canonify_cpu(cpu_requests_orig)
+ cpu_ratio := object.get(input.parameters, "cpuRatio", input.parameters.ratio)
+ to_number(cpu_limits) > to_number(cpu_ratio) * to_number(cpu_requests)
+ msg := sprintf("container <%v> cpu limit <%v> is higher than the maximum allowed ratio of <%v>", [container.name, cpu_limits_orig, cpu_ratio])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_limits_orig := container.resources.limits.memory
+ mem_requests_orig := container.resources.requests.memory
+ mem_limits := canonify_mem(mem_limits_orig)
+ mem_requests := canonify_mem(mem_requests_orig)
+ mem_ratio := input.parameters.ratio
+ to_number(mem_limits) > to_number(mem_ratio) * to_number(mem_requests)
+ msg := sprintf("container <%v> memory limit <%v> is higher than the maximum allowed ratio of <%v>", [container.name, mem_limits_orig, mem_ratio])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..1148390c9a77ad374bf40247598e96ad0c82d776
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresourceratios/src_test.rego
@@ -0,0 +1,295 @@
+package k8scontainerratios
+
+test_input_no_violations_int {
+ inp := {"review": review([ctr("a", 10, 20, 5, 10)]), "parameters": {"ratio": 2}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+test_input_no_violations_str {
+ inp := {"review": review([ctr("a", "10", "20", "5", "10")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+test_input_no_violations_str_small {
+ inp := {"review": review([ctr("a", "1", "2", "1", "1")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+test_input_no_violations_cpu_scale {
+ inp := {"review": review([ctr("a", "2", "4m", "1", "2m")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+test_input_no_violations_cpu_decimal {
+ inp := {"review": review([ctr("a", "2", "3", "1", "1.5")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+test_input_violations_int {
+ inp := {"review": review([ctr("a", 20, 40, 5, 10)]), "parameters": {"ratio": 2}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+test_input_violations_mem_int_v_str {
+ inp := {"review": review([ctr("a", 1, "3", "1m", "1.5")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+test_input_violations_str {
+ inp := {"review": review([ctr("a", "10", "20", "2", "4")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+test_input_violations_str_small {
+ inp := {"review": review([ctr("a", "5", "6", "1", "1")]), "parameters": {"ratio": "3"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_violations_cpu_scale {
+ inp := {"review": review([ctr("a", "1", "2", "1", "4m")]), "parameters": {"ratio": "10"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_cpu_decimal {
+ inp := {"review": review([ctr("a", "1", "2", "1", "0.5")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+test_no_parse_cpu_limits {
+ inp := {"review": review([ctr("a", "1", "212asdf", "2", "2")]), "parameters": {"raio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_parse_cpu_requests {
+ inp := {"review": review([ctr("a", "1", "2", "2", "212asdf")]), "parameters": {"raio": "4"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+test_no_parse_cpu_requests_and_limits {
+ inp := {"review": review([ctr("a", "1", "212asdf", "2", "212asdf")]), "parameters": {"raio": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_no_parse_ram_limits {
+ inp := {"review": review([ctr("a", "1asdf", "2", "1", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_parse_ram_requests {
+ inp := {"review": review([ctr("a", "1", "2", "1asdf", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_parse_ram_requests_and_limits {
+ inp := {"review": review([ctr("a", "1asdf", "2", "1asdf", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_1_bad_cpu {
+ inp := {"review": review([ctr("a", "1", "2", "1", "2"), ctr("b", "1", "8", "1", "2")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_2_bad_cpu {
+ inp := {"review": review([ctr("a", "1", "9", "1", "3"), ctr("b", "1", "8", "1", "2")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_1_bad_ram {
+ inp := {"review": review([ctr("a", "1", "2", "1" ,"2"), ctr("b", "8", "2", "2", "2")]), "parameters": {"ratio": "1"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_2_bad_ram {
+ inp := {"review": review([ctr("a", "9", "2", "3", "2"), ctr("b", "8", "2", "2", "2")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_no_ram_limit {
+ inp := {"review": review([{"name": "a", "resources": {"limits": {"cpu": 1}}}]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+test_no_cpu_limit {
+ inp := {"review": review([{"name": "a", "resources": {"limits": {"memory": 1}}}]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_no_limit {
+ inp := {"review": review([{"name": "a", "resources": {}}]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_no_ram_request {
+ inp := {"review": review([{"name": "a", "resources": {"requests": {"cpu": 1}}}]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+test_no_cpu_request {
+ inp := {"review": review([{"name": "a", "resources": {"requests": {"memory": 1}}}]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_no_resources {
+ inp := {"review": review([{"name": "a"}]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+test_init_containers_checked {
+ inp := {"review": init_review([ctr("a", "5", "5", "1", "1"), ctr("b", "5", "5", "1", "1")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 4
+}
+# MEM SCALE TESTS
+test_input_no_violations_mem_K {
+ inp := {"review": review([ctr("a", "1k", "2", "1k", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_violations_mem_K {
+ inp := {"review": review([ctr("a", "4k", "2", "1k", "2")]), "parameters": {"ratio": "2"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_m {
+ inp := {"review": review([ctr("a", "1", "2", "1m", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_M {
+ inp := {"review": review([ctr("a", "1M", "2", "1k", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_G {
+ inp := {"review": review([ctr("a", "1G", "2", "1M", "1")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_T {
+ inp := {"review": review([ctr("a", "1T", "2", "1G", "1")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_P {
+ inp := {"review": review([ctr("a", "1P", "2", "1T", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_E {
+ inp := {"review": review([ctr("a", "1E", "2", "1P", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ki {
+ inp := {"review": review([ctr("a", "1Ki", "2", "1", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Mi {
+ inp := {"review": review([ctr("a", "1Mi", "2", "1Ki", "1")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Gi {
+ inp := {"review": review([ctr("a", "1Gi", "2", "1Mi", "2")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ti {
+ inp := {"review": review([ctr("a", "1Ti", "2", "1Gi", "1")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Pi {
+ inp := {"review": review([ctr("a", "1Pi", "2", "1Ti", "1")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ei {
+ inp := {"review": review([ctr("a", "1Ei", "2", "1Pi", "1")]), "parameters": {"ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_mem_Ei_with_exemption {
+ inp := {"review": review([ctr("a", "1Ei", "2", "1Pi", "1")]), "parameters": {"exemptImages": ["nginx"], "ratio": "4"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+## cpuRatio tests
+
+test_input_no_violations_int_cpu_ratio_1 {
+ inp := {"review": review([ctr("a", 5, 10, 5, 10)]), "parameters": {"ratio": 1, "cpuRatio": 1}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_input_violations_int_cpu_ratio_1 {
+ inp := {"review": review([ctr("a", 30, 15, 5, 10)]), "parameters": {"ratio": 10, "cpuRatio": 1}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+
+test_input_no_violation_int_cpu_ratio_2 {
+ inp := {"review": review([ctr("a", 5, 20, 5, 10)]), "parameters": {"ratio": 1, "cpuRatio": 2}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+
+test_input_violation_int_cpu_ratio_2 {
+ inp := {"review": review([ctr("a", 5, 21, 5, 10)]), "parameters": {"ratio": 1, "cpuRatio": 2}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+test_input_violation_int_cpu_ratio_2_with_exemption {
+ inp := {"review": review([ctr("a", 5, 21, 5, 10)]), "parameters": {"exemptImages": ["nginx"], "ratio": 1, "cpuRatio": 2}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"containers": containers}
+ }
+ }
+}
+
+init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"initContainers": containers}
+ }
+ }
+}
+
+ctr(name, mem_limits, cpu_limits, mem_requests, cpu_requests) = out {
+ out = {"name": name, "image": "nginx", "resources": {"limits": {"memory": mem_limits, "cpu": cpu_limits},"requests": {"memory": mem_requests, "cpu": cpu_requests}}}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..16cd04369d33189ead6563f75327fbc49a35712c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/constraint.tmpl
@@ -0,0 +1,54 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8srequiredresources
+ annotations:
+ metadata.gatekeeper.sh/title: "Required Resources"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Requires containers to have defined resources set.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sRequiredResources
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ limits:
+ type: array
+ description: "A list of limits that should be enforced (`cpu`, `memory`, or both)."
+ items:
+ type: string
+ enum:
+ - cpu
+ - memory
+ requests:
+ type: array
+ description: "A list of requests that should be enforced (`cpu`, `memory`, or both)."
+ items:
+ type: string
+ enum:
+ - cpu
+ - memory
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/containerresources/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/containerresources/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..77072c28244b71126859d872bae1e2e0f1c652ff
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/src.rego
@@ -0,0 +1,31 @@
+package k8srequiredresources
+
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "containers"}]
+}
+
+violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "initContainers"}]
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ provided := {resource_type | container.resources.limits[resource_type]}
+ required := {resource_type | resource_type := input.parameters.limits[_]}
+ missing := required - provided
+ count(missing) > 0
+ msg := sprintf("container <%v> does not have <%v> limits defined", [container.name, missing])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ provided := {resource_type | container.resources.requests[resource_type]}
+ required := {resource_type | resource_type := input.parameters.requests[_]}
+ missing := required - provided
+ count(missing) > 0
+ msg := sprintf("container <%v> does not have <%v> requests defined", [container.name, missing])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..355cb7b7a8e78e593aa8827044474fea2ac1fdee
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/containerresources/src_test.rego
@@ -0,0 +1,379 @@
+package k8srequiredresources
+
+# "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}
+test_without_resources_violations {
+ inp := {"review": review([ctr_without_resources("test")]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+
+test_requests_cpu_violations {
+ inp := {"review": review([ctr_requests_cpu("test", 1)]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+
+test_requests_memory_violations {
+ inp := {"review": review([ctr_requests_memory("test", 1)]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+
+test_requests_violations {
+ inp := {"review": review([ctr_requests("test", 1)]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_limits_cpu_violations {
+ inp := {"review": review([ctr_limits_cpu("test", 1)]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+
+test_limits_memory_violations {
+ inp := {"review": review([ctr_limits_memory("test", 1)]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+
+test_limits_violations {
+ inp := {"review": review([ctr_limits("test", 1)]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_with_resources_no_violations {
+ inp := {"review": review([ctr_with_resources("test", 1)]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+# "parameters": {"limits": ["memory"], "requests": ["cpu"]}
+test_without_resources_with_empty_requests_memory_no_violations {
+ inp := {"review": review([ctr_without_resources("test")]), "parameters": {"limits": ["memory"], "requests": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+
+test_requests_cpu_with_empty_requests_memory_no_violations {
+ inp := {"review": review([ctr_requests_cpu("test", 1)]), "parameters": {"limits": ["memory"], "requests": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_requests_memory_with_empty_requests_memory_no_violations {
+ inp := {"review": review([ctr_requests_memory("test", 1)]), "parameters": {"limits": ["memory"], "requests": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+
+test_requests_with_empty_requests_memory_no_violations {
+ inp := {"review": review([ctr_requests("test", 1)]), "parameters": {"limits": ["memory"], "requests": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_limits_cpu_with_empty_requests_memory_no_violations {
+ inp := {"review": review([ctr_limits_cpu("test", 1)]), "parameters": {"limits": ["memory"], "requests": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 2
+}
+
+test_limits_memory_with_empty_requests_memory_no_violations {
+ inp := {"review": review([ctr_limits_memory("test", 1)]), "parameters": {"limits": ["memory"], "requests": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_limits_with_empty_requests_memory_no_violations {
+ inp := {"review": review([ctr_limits("test", 1)]), "parameters": {"limits": ["memory"], "requests": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_with_resources_with_empty_requests_memory_no_violations {
+ inp := {"review": review([ctr_with_resources("test", 1)]), "parameters": {"limits": ["memory"], "requests": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+# "parameters": {"limits": ["cpu"]}
+test_without_resources_with_empty_requests_and_limits_memory_no_violations {
+ inp := {"review": review([ctr_without_resources("test")]), "parameters": {"limits": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_requests_cpu_with_empty_requests_and_limits_memory_no_violations {
+ inp := {"review": review([ctr_requests_cpu("test", 1)]), "parameters": {"limits": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_requests_memory_with_empty_requests_and_limits_memory_no_violations {
+ inp := {"review": review([ctr_requests_memory("test", 1)]), "parameters": {"limits": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_requests_with_empty_requests_and_limits_memory_no_violations {
+ inp := {"review": review([ctr_requests("test", 1)]), "parameters": {"limits": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_limits_cpu_with_empty_requests_and_limits_memory_no_violations {
+ inp := {"review": review([ctr_limits_cpu("test", 1)]), "parameters": {"limits": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_limits_memory_with_empty_requests_and_limits_memory_no_violations {
+ inp := {"review": review([ctr_limits_memory("test", 1)]), "parameters": {"limits": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 1
+}
+
+test_limits_with_empty_requests_and_limits_memory_no_violations {
+ inp := {"review": review([ctr_limits("test", 1)]), "parameters": {"limits": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_with_resources_with_empty_requests_and_limits_memory_no_violations {
+ inp := {"review": review([ctr_with_resources("test", 1)]), "parameters": {"limits": ["cpu"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+# "parameters": {"limits": [], "requests": []}
+test_without_resources_with_empty_limits_and_requests_no_violations {
+ inp := {"review": review([ctr_without_resources("test")]), "parameters": {"limits": [], "requests": []}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_requests_cpu_with_empty_limits_and_requests_no_violations {
+ inp := {"review": review([ctr_requests_cpu("test", 1)]), "parameters": {"limits": [], "requests": []}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_requests_memory_with_empty_limits_and_requests_no_violations {
+ inp := {"review": review([ctr_requests_memory("test", 1)]), "parameters": {"limits": [], "requests": []}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_requests_with_empty_limits_and_requests_no_violations {
+ inp := {"review": review([ctr_requests("test", 1)]), "parameters": {"limits": [], "requests": []}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_limits_cpu_with_empty_limits_and_requests_no_violations {
+ inp := {"review": review([ctr_limits_cpu("test", 1)]), "parameters": {"limits": [], "requests": []}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_limits_memory_with_empty_limits_and_requests_no_violations {
+ inp := {"review": review([ctr_limits_memory("test", 1)]), "parameters": {"limits": [], "requests": []}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_limits_with_empty_limits_and_requests_no_violations {
+ inp := {"review": review([ctr_limits("test", 1)]), "parameters": {"limits": [], "requests": []}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_with_resources_with_empty_limits_and_requests_no_violations {
+ inp := {"review": review([ctr_with_resources("test", 1)]), "parameters": {"limits": [], "requests": []}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+# multiple containers, "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}
+test_multiple_without_resources_violations {
+ inp := {"review": review([ctr_without_resources("test1"),ctr_without_resources("test2"),ctr_without_resources("test3")]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 6
+}
+
+test_multiple_with_resources_no_violations {
+ inp := {"review": review([ctr_with_resources("test1", 1),ctr_with_resources("test2", 2),ctr_with_resources("test3", 3)]), "parameters": {"limits": ["cpu", "memory"], "requests": ["cpu", "memory"]}}
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+# multiple containers
+test_multiple_with_init_violations_1 {
+ inp := {
+ "review": review_with_init(
+ [
+ ctr_without_resources("test1"),
+ ctr_with_resources("test2", 2),
+ ctr_limits_memory("test3", 3)
+ ],
+ [
+ ctr_requests("test4", 1),
+ ctr_requests_memory("test5", 2),
+ ctr_limits_cpu("test6", 3)
+ ]
+ ),
+ "parameters": {
+ "requests": [
+ "cpu",
+ "memory"
+ ]
+ }
+ }
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 4
+}
+
+test_multiple_with_init_no_violations {
+ inp := {
+ "review": review_with_init(
+ [
+ ctr_with_resources("test1", 1),
+ ctr_requests("test2", 2),
+ ],
+ [
+ ctr_with_resources("test3", 1),
+ ctr_requests("test4", 2),
+ ]
+ ),
+ "parameters": {
+ "requests": [
+ "cpu",
+ "memory"
+ ]
+ }
+ }
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 0
+}
+
+test_multiple_with_init_violations_2 {
+ inp := {
+ "review": review_with_init(
+ [
+ ctr_without_resources("test1"),
+ ctr_limits_memory("test2", 2),
+ ctr_limits("test3", 3)
+ ],
+ [
+ ctr_requests_cpu("test4", 1),
+ ctr_with_resources("test5", 2),
+ ctr_limits_cpu("test6", 3)
+ ]
+ ),
+ "parameters": {
+ "limits": [
+ "memory"
+ ],
+ "requests": [
+ "cpu",
+ "memory"
+ ]
+ }
+ }
+ results := violation with input as inp
+ trace(sprintf("results - <%v>", [results]))
+ count(results) == 8
+}
+
+review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"containers": containers}
+ }
+ }
+}
+
+review_with_init(containers, init_containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"containers": containers, "initContainers": init_containers}
+ }
+ }
+}
+
+
+ctr_without_resources(name) = out {
+ out = {"name": name, "image": "nginx", "resources": {}}
+}
+
+ctr_requests_cpu(name, val) = out {
+ out = {"name": name, "image": "nginx", "resources": {"requests": {"cpu": val}}}
+}
+
+ctr_requests_memory(name, val) = out {
+ out = {"name": name, "image": "nginx", "resources": {"requests": {"memory": val}}}
+}
+
+ctr_requests(name, val) = out {
+ out = {"name": name, "image": "nginx", "resources": {"requests": {"cpu": val, "memory": val}}}
+}
+
+ctr_limits_cpu(name, val) = out {
+ out = {"name": name, "image": "nginx", "resources": {"limits": {"cpu": val}}}
+}
+
+ctr_limits_memory(name, val) = out {
+ out = {"name": name, "image": "nginx", "resources": {"limits": {"memory": val}}}
+}
+
+ctr_limits(name, val) = out {
+ out = {"name": name, "image": "nginx", "resources": {"limits": {"cpu": val, "memory": val}}}
+}
+
+ctr_with_resources(name, val) = out {
+ out = {"name": name, "image": "nginx", "resources": {"limits": {"cpu": val, "memory": val}, "requests": {"cpu": val, "memory": val}}}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..a2bdb1136f4bed073bf83d83b8025c7c9cf5f45c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/constraint.tmpl
@@ -0,0 +1,36 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sdisallowanonymous
+ annotations:
+ metadata.gatekeeper.sh/title: "Disallow Anonymous Access"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: Disallows associating ClusterRole and Role resources to the system:anonymous user and system:unauthenticated group.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sDisallowAnonymous
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ allowedRoles:
+ description: >-
+ The list of ClusterRoles and Roles that may be associated
+ with the `system:unauthenticated` group and `system:anonymous`
+ user.
+ type: array
+ items:
+ type: string
+ disallowAuthenticated:
+ description: >-
+ A boolean indicating whether `system:authenticated` should also
+ be disallowed by this policy.
+ type: boolean
+ default: false
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/disallowanonymous/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..0361db26f817592bf74b8da6644083051dfed074
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/src.rego
@@ -0,0 +1,33 @@
+package k8sdisallowanonymous
+
+violation[{"msg": msg}] {
+ not is_allowed(input.review.object.roleRef, object.get(input, ["parameters", "allowedRoles"], []))
+
+ group := ["system:unauthenticated", "system:anonymous"][_]
+ subject_is(input.review.object.subjects[_], group)
+
+ msg := message(group)
+}
+
+violation[{"msg": msg}] {
+ not is_allowed(input.review.object.roleRef, object.get(input, ["parameters", "allowedRoles"], []))
+
+ object.get(input, ["parameters", "disallowAuthenticated"], false)
+
+ group := "system:authenticated"
+ subject_is(input.review.object.subjects[_], group)
+
+ msg := message(group)
+}
+
+is_allowed(role, allowedRoles) {
+ role.name == allowedRoles[_]
+}
+
+subject_is(subject, expected) {
+ subject.name == expected
+}
+
+message(name) := val {
+ val := sprintf("%v is not allowed as a subject name in %v %v", [name, input.review.object.kind, input.review.object.metadata.name])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..fbc8e87a94ff30f486cf4766e060baa4ed462a1d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowanonymous/src_test.rego
@@ -0,0 +1,292 @@
+package k8sdisallowanonymous
+
+test_blank_subject_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_non_anonymous_user_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "user-1", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_anonymous_user_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_anonymous_user_clusterrolebinding_no_param {
+ inp := {"review": clusterrolebinding([{"name": "system:anonymous", "kind": "User"}], "role-2")}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_role_anonymous_user_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_subjects_anonymous_user_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:anonymous", "kind": "User"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_role_multiple_subjects_anonymous_user_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:anonymous", "kind": "User"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_role_multiple_subjects_anonymous_user_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:anonymous", "kind": "User"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-3"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_multiple_role_multiple_subjects_anonymous_user_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:anonymous", "kind": "User"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_unauthenticated_group_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_unauthenticated_group_clusterrolebinding_no_param {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}], "role-2")}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_role_unauthenticated_group_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_subjects_unauthenticated_group_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_role_multiple_subjects_unauthenticated_group_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_role_multiple_subjects_unauthenticated_group_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-3"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_multiple_role_multiple_subjects_unauthenticated_group_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_subjects_mix_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_allowed_role_multiple_subjects_mix_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_role_multiple_subjects_mix_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-3"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_allowed_multiple_role_multiple_subjects_mix_clusterrolebinding {
+ inp := {"review": clusterrolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_blank_subject_rolebinding {
+ inp := {"review": rolebinding([{}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_non_anonymous_rolebinding {
+ inp := {"review": rolebinding([{"name": "user-1", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_anonymous_user_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_anonymous_user_rolebinding_no_param {
+ inp := {"review": rolebinding([{"name": "system:anonymous", "kind": "User"}], "role-2")}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_role_anonymous_user_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_subjects_anonymous_user_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:anonymous", "kind": "User"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_role_multiple_subjects_anonymous_user_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:anonymous", "kind": "User"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_role_multiple_subjects_anonymous_user_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:anonymous", "kind": "User"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-3"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_multiple_role_multiple_subjects_anonymous_user_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:anonymous", "kind": "User"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_unauthenticated_group_rolebinding_no_param {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}], "role-2")}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_unauthenticated_group_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_role_unauthenticated_group_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_subjects_unauthenticated_group_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_role_multiple_subjects_unauthenticated_group_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_role_multiple_subjects_unauthenticated_group_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-3"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_allowed_multiple_role_multiple_subjects_unauthenticated_group_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:authenticated", "kind": "Group"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_subjects_mix_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_allowed_role_multiple_subjects_mix_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_multiple_role_multiple_subjects_mix_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-3"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_allowed_multiple_role_multiple_subjects_mix_rolebinding {
+ inp := {"review": rolebinding([{"name": "system:unauthenticated", "kind": "Group"}, {"name": "system:anonymous", "kind": "User"}], "role-2"), "parameters": {"allowedRoles": ["role-1", "role-2"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+authenticated_rolebinding := rolebinding([{"name": "system:authenticated", "kind": "Group"}], "role-2")
+
+test_authenticated_with_disallow_authenticated_true {
+ inp := {"review": authenticated_rolebinding, "parameters": { "allowedRoles": [], "disallowAuthenticated": true }}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_authenticated_with_disallow_authenticated_false {
+ inp := {"review": authenticated_rolebinding, "parameters": { "allowedRoles": [], "disallowAuthenticated": false }}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_authenticated_with_disallow_authenticated_undefined {
+ inp := {"review": authenticated_rolebinding, "parameters": { "allowedRoles": [] }}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+clusterrolebinding(subjects, roleref_name) = {
+ "object": {
+ "kind": "ClusterRoleBinding",
+ "metadata": {
+ "name": "cluster-role-binding"
+ },
+ "roleRef": {
+ "apiGroup": "rbac.authorization.k8s.io",
+ "kind": "ClusterRole",
+ "name": roleref_name
+ },
+ "subjects": subjects
+ }
+}
+
+rolebinding(subjects, roleref_name) = {
+ "object": {
+ "kind": "RoleBinding",
+ "metadata": {
+ "name": "role-binding",
+ "namespace": "namespace-1"
+ },
+ "roleRef": {
+ "apiGroup": "rbac.authorization.k8s.io",
+ "kind": "ClusterRole",
+ "name": roleref_name
+ },
+ "subjects": subjects
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..d49f468bd8044d3cd7cd4854ddeec22f3d24ca48
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/constraint.tmpl
@@ -0,0 +1,28 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sdisallowedrepos
+ annotations:
+ metadata.gatekeeper.sh/title: "Disallowed Repositories"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Disallowed container repositories that begin with a string from the specified list.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sDisallowedRepos
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ repos:
+ description: The list of prefixes a container image is not allowed to have.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/disallowedrepos/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..eead0b4e55f553d430526d97753c3d8446d7676a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/src.rego
@@ -0,0 +1,22 @@
+package k8sdisallowedrepos
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.containers[_]
+ image := container.image
+ startswith(image, input.parameters.repos[_])
+ msg := sprintf("container <%v> has an invalid image repo <%v>, disallowed repos are %v", [container.name, container.image, input.parameters.repos])
+}
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.initContainers[_]
+ image := container.image
+ startswith(image, input.parameters.repos[_])
+ msg := sprintf("initContainer <%v> has an invalid image repo <%v>, disallowed repos are %v", [container.name, container.image, input.parameters.repos])
+}
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.ephemeralContainers[_]
+ image := container.image
+ startswith(image, input.parameters.repos[_])
+ msg := sprintf("ephemeralContainer <%v> has an invalid image repo <%v>, disallowed repos are %v", [container.name, container.image, input.parameters.repos])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..b05d7e62ee9df5eef6f08687a12459fe61ec46a1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedrepos/src_test.rego
@@ -0,0 +1,132 @@
+package k8sdisallowedrepos
+
+test_input_allowed_container {
+ inp := { "review": input_review(input_container_allowed), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_container_x2 {
+ inp := { "review": input_review(input_container_allowed), "parameters": {"repos": ["other", "disallowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_dual_container {
+ inp := { "review": input_review(input_container_dual_allowed), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_container {
+ inp := { "review": input_review(input_container_denied), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_x2 {
+ inp := { "review": input_review(input_container_denied), "parameters": {"repos": ["other", "disallowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_container {
+ inp := { "review": input_review(input_container_dual_denied), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_container {
+ inp := { "review": input_review(array.concat(input_container_allowed, input_container_denied)), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+# init containers
+test_input_allowed_initcontainer {
+ inp := { "review": input_init_review(input_container_allowed), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_initcontainer_x2 {
+ inp := { "review": input_init_review(input_container_allowed), "parameters": {"repos": ["other", "disallowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_dual_initcontainer {
+ inp := { "review": input_init_review(input_container_dual_allowed), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_initcontainer {
+ inp := { "review": input_init_review(input_container_denied), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_initcontainer_x2 {
+ inp := { "review": input_init_review(input_container_denied), "parameters": {"repos": ["other", "disallowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_initcontainer {
+ inp := { "review": input_init_review(input_container_dual_denied), "parameters": {"repos": ["disallowed"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_initcontainer {
+ inp := { "review": input_init_review(array.concat(input_container_allowed, input_container_denied)), "parameters": {"repos": ["allowed"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+input_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": containers,
+ }
+ }
+ }
+}
+
+input_init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": containers,
+ }
+ }
+ }
+}
+
+input_container_allowed = [
+{
+ "name": "nginx",
+ "image": "allowed/nginx",
+}]
+
+input_container_denied = [
+{
+ "name": "nginx",
+ "image": "disallowed/nginx",
+}]
+
+input_container_dual_allowed = [
+{
+ "name": "nginx",
+ "image": "allowed/nginx",
+},
+{
+ "name": "other",
+ "image": "allowed/other",
+}]
+
+input_container_dual_denied = [
+{
+ "name": "nginx",
+ "image": "disallowed/nginx",
+},
+{
+ "name": "other",
+ "image": "disallowed/other",
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..483e894a3a9f9e2f124402d30a8a1f6568608bc1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/constraint.tmpl
@@ -0,0 +1,44 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sdisallowedtags
+ annotations:
+ metadata.gatekeeper.sh/title: "Disallow tags"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires container images to have an image tag different from the ones in
+ the specified list.
+
+ https://kubernetes.io/docs/concepts/containers/images/#image-names
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sDisallowedTags
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ tags:
+ type: array
+ description: Disallowed container image tags.
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/disallowedtags/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/containerlimits/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c9ee26779480a04ac020082694b27ff05947d3cf
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/src.rego
@@ -0,0 +1,29 @@
+package k8sdisallowedtags
+
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg}] {
+ container := input_containers[_]
+ not is_exempt(container)
+ tags := [tag_with_prefix | tag := input.parameters.tags[_]; tag_with_prefix := concat(":", ["", tag])]
+ strings.any_suffix_match(container.image, tags)
+ msg := sprintf("container <%v> uses a disallowed tag <%v>; disallowed tags are %v", [container.name, container.image, input.parameters.tags])
+}
+
+violation[{"msg": msg}] {
+ container := input_containers[_]
+ not is_exempt(container)
+ parts := split(container.image, "/")
+ not contains(parts[count(parts) - 1], ":")
+ msg := sprintf("container <%v> didn't specify an image tag <%v>", [container.name, container.image])
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..cc0e583fd67f6ba57dcd65c5634a9f6ab0b977c8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowedtags/src_test.rego
@@ -0,0 +1,189 @@
+package k8sdisallowedtags
+
+test_input_allowed_container {
+ inp := { "review": input_review(input_container_allowed), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_dual_container {
+ inp := { "review": input_review(input_container_dual_allowed), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_container_emtpy {
+ inp := { "review": input_review(input_container_denied_empty), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_empty_with_port {
+ inp := { "review": input_review(input_container_denied_empty_with_port), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_latest {
+ inp := { "review": input_review(input_container_denied_latest), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_testing {
+ inp := { "review": input_review(input_container_denied_testing), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_container_empty_tag {
+ inp := { "review": input_review(array.concat(input_container_denied_empty, input_container_denied_latest)), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_dual_container_2tags {
+ inp := { "review": input_review(array.concat(input_container_denied_testing, input_container_denied_latest)), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_container_empty {
+ inp := { "review": input_review(array.concat(input_container_allowed, input_container_denied_empty)), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_mixed_container_latest {
+ inp := { "review": input_review(array.concat(input_container_allowed, input_container_denied_latest)), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+# init containers
+test_input_allowed_container {
+ inp := { "review": input_init_review(input_container_allowed), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_dual_container {
+ inp := { "review": input_init_review(input_container_dual_allowed), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_container_emtpy {
+ inp := { "review": input_init_review(input_container_denied_empty), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_latest {
+ inp := { "review": input_init_review(input_container_denied_latest), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_container_testing {
+ inp := { "review": input_init_review(input_container_denied_testing), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_container_empty_tag {
+ inp := { "review": input_init_review(array.concat(input_container_denied_empty, input_container_denied_latest)), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_dual_container_2tags {
+ inp := { "review": input_init_review(array.concat(input_container_denied_testing, input_container_denied_latest)), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_container_empty {
+ inp := { "review": input_init_review(array.concat(input_container_allowed, input_container_denied_empty)), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_mixed_container_latest {
+ inp := { "review": input_init_review(array.concat(input_container_allowed, input_container_denied_latest)), "parameters": {"tags": ["latest", "testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_mixed_container_with_some_exempt_image {
+ inp := { "review": input_init_review(array.concat(input_container_exempt, input_container_denied_latest)), "parameters": {"tags": ["latest", "testing"], "exemptImages": ["exempt:latest"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_dual_container_with_all_exempt_image {
+ inp := { "review": input_init_review(array.concat(input_container_exempt, input_container_denied_latest)), "parameters": {"tags": ["latest", "testing"], "exemptImages": ["exempt:latest", "exempt:testing"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_allowed_dual_container_with_exempt_image {
+ inp := { "review": input_init_review(input_container_exempt), "parameters": {"tags": ["latest", "testing"], "exemptImages": ["exempt:latest", "exempt:testing"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": containers,
+ }
+ }
+ }
+}
+
+input_init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": containers,
+ }
+ }
+ }
+}
+
+input_container_allowed = [
+{
+ "name": "nginx",
+ "image": "nginx:1.0.0",
+}]
+
+input_container_denied_empty = [
+{
+ "name": "nginx",
+ "image": "nginx",
+}]
+
+input_container_denied_empty_with_port = [
+{
+ "name": "nginx",
+ "image": "nginx:443/nginx",
+}]
+
+input_container_denied_latest = [
+{
+ "name": "nginx",
+ "image": "nginx:latest",
+}]
+
+
+input_container_denied_testing = [
+{
+ "name": "other",
+ "image": "other:testing",
+}]
+
+input_container_dual_allowed = [
+{
+ "name": "nginx",
+ "image": "nginx:1.0.0",
+},
+{
+ "name": "other",
+ "image": "other:2.0.0",
+}]
+input_container_exempt = [
+{
+ "name": "exempt",
+ "image": "exempt:latest",
+}, {
+ "name": "exempt",
+ "image": "exempt:testing",
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..7af7d52c3072dab4d7f2ed37e4795211cab8d532
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/constraint.tmpl
@@ -0,0 +1,39 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sdisallowinteractivetty
+ annotations:
+ metadata.gatekeeper.sh/title: "Disallow Interactive TTY Containers"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Requires that objects have the fields `spec.tty` and `spec.stdin` set to false or unset.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sDisallowInteractiveTTY
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls use of fields related to gaining an interactive session. Corresponds to the `tty` and
+ `stdin` fields in the Pod `spec.containers`, `spec.ephemeralContainers`, and `spec.initContainers`.
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/disallowinteractive/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/disallowinteractive/lib_exempt_container.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..3552206958b3650bdabfab5a1495ff50158bcd30
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/src.rego
@@ -0,0 +1,32 @@
+package k8sdisallowinteractivetty
+
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ c := input_containers[_]
+ not is_exempt(c)
+ input_allow_interactive_fields(c)
+ msg := sprintf("Containers using tty or stdin (%v) are not allowed running image: %v", [c.name, c.image])
+}
+
+input_allow_interactive_fields(c) {
+ has_field(c, "stdin")
+ not c.stdin == false
+}
+input_allow_interactive_fields(c) {
+ has_field(c, "tty")
+ not c.tty == false
+}
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+# has_field returns whether an object has a field
+has_field(object, field) = true {
+ object[field]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..5a408ae3d62984a47d2244c251699d641b029b70
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/disallowinteractive/src_test.rego
@@ -0,0 +1,165 @@
+package k8sdisallowinteractivetty
+
+test_input_container_not_tty_allowed {
+ inp := {"review": input_review}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_stdin_not_allowed {
+ inp:= {"review": input_review_stdin}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_container_tty_not_allowed {
+ inp := {"review": input_review_tty}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_one_container_with_exemption {
+ inp := {"review": input_review_stdin, "parameters": {"exemptImages": ["one/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_many_not_stdin_allowed {
+ inp := {"review": input_review_many}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_container_many_mixed_stdin_not_allowed {
+ inp := {"review": input_review_many_mixed}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_container_many_mixed_stdin_not_allowed_one_exempted {
+ inp := {"review": input_review_many_mixed, "parameters": {"exemptImages": ["one/*"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_container_many_mixed_stdin_not_allowed_all_exempted {
+ inp := {"review": input_review_many_mixed, "parameters": {"exemptImages": ["one/*", "two/*", "three/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_many_mixed_stdin_not_allowed_two {
+ inp := {"review": input_review_many_mixed_two}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_stdin = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_stdin,
+ }
+ }
+}
+
+input_review_tty = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_tty,
+ }
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one
+ }
+ }
+}
+
+input_review_many_mixed = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one_stdin
+ }
+ }
+}
+
+input_review_many_mixed_two = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many_mixed,
+ "initContainers": input_containers_one_stdin
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+}]
+
+input_containers_one_stdin = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+ "stdin": true
+}]
+
+input_containers_one_tty = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+ "tty": true
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+ "stdin": false
+},
+{
+ "name": "nginx1",
+ "image": "two/nginx"
+},
+{
+ "name": "nginx2",
+ "image": "three/nginx",
+ "stdin": true
+
+}]
+
+input_containers_many_mixed = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+ "stdin": false
+},
+{
+ "name": "nginx1",
+ "image": "two/nginx",
+ "tty": true
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..488f8a47d914360bddb2d192b078e34578cda32b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/constraint.tmpl
@@ -0,0 +1,44 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8scontainerephemeralstoragelimit
+ annotations:
+ metadata.gatekeeper.sh/title: "Container ephemeral storage limit"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires containers to have an ephemeral storage limit set and constrains
+ the limit to be within the specified maximum values.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sContainerEphemeralStorageLimit
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ ephemeral-storage:
+ description: "The maximum allowed ephemeral storage limit on a Pod, exclusive."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/ephemeralstoragelimit/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/ephemeralstoragelimit/lib_exclude_update.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/general/ephemeralstoragelimit/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..f7951ca66a32d66965c579369f46926e3ee60f0d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/src.rego
@@ -0,0 +1,167 @@
+package k8scontainerephemeralstoragelimit
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+missing(obj, field) = true {
+ not obj[field]
+}
+
+missing(obj, field) = true {
+ obj[field] == ""
+}
+
+has_field(object, field) = true {
+ object[field]
+}
+
+# 10 ** 21
+storage_multiple("E") = 1000000000000000000000 { true }
+
+# 10 ** 18
+storage_multiple("P") = 1000000000000000000 { true }
+
+# 10 ** 15
+storage_multiple("T") = 1000000000000000 { true }
+
+# 10 ** 12
+storage_multiple("G") = 1000000000000 { true }
+
+# 10 ** 9
+storage_multiple("M") = 1000000000 { true }
+
+# 10 ** 6
+storage_multiple("k") = 1000000 { true }
+
+# 10 ** 3
+storage_multiple("") = 1000 { true }
+
+# Kubernetes accepts millibyte precision when it probably shouldn't.
+# https://github.com/kubernetes/kubernetes/issues/28741
+# 10 ** 0
+storage_multiple("m") = 1 { true }
+
+# 1000 * 2 ** 10
+storage_multiple("Ki") = 1024000 { true }
+
+# 1000 * 2 ** 20
+storage_multiple("Mi") = 1048576000 { true }
+
+# 1000 * 2 ** 30
+storage_multiple("Gi") = 1073741824000 { true }
+
+# 1000 * 2 ** 40
+storage_multiple("Ti") = 1099511627776000 { true }
+
+# 1000 * 2 ** 50
+storage_multiple("Pi") = 1125899906842624000 { true }
+
+# 1000 * 2 ** 60
+storage_multiple("Ei") = 1152921504606846976000 { true }
+
+get_suffix(storage) = suffix {
+ not is_string(storage)
+ suffix := ""
+}
+
+get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) > 0
+ suffix := substring(storage, count(storage) - 1, -1)
+ storage_multiple(suffix)
+}
+
+get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) > 1
+ suffix := substring(storage, count(storage) - 2, -1)
+ storage_multiple(suffix)
+}
+
+get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) > 1
+ not storage_multiple(substring(storage, count(storage) - 1, -1))
+ not storage_multiple(substring(storage, count(storage) - 2, -1))
+ suffix := ""
+}
+
+get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) == 1
+ not storage_multiple(substring(storage, count(storage) - 1, -1))
+ suffix := ""
+}
+
+get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) == 0
+ suffix := ""
+}
+
+canonify_storage(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+}
+
+canonify_storage(orig) = new {
+ not is_number(orig)
+ suffix := get_suffix(orig)
+ raw := replace(orig, suffix, "")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", raw)
+ new := to_number(raw) * storage_multiple(suffix)
+}
+
+violation[{"msg": msg}] {
+ # spec.containers.resources.limits["ephemeral-storage"] field is immutable.
+ not is_update(input.review)
+
+ general_violation[{"msg": msg, "field": "containers"}]
+}
+
+violation[{"msg": msg}] {
+ not is_update(input.review)
+ general_violation[{"msg": msg, "field": "initContainers"}]
+}
+
+# Ephemeral containers not checked as it is not possible to set field.
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ storage_orig := container.resources.limits["ephemeral-storage"]
+ not canonify_storage(storage_orig)
+ msg := sprintf("container <%v> ephemeral-storage limit <%v> could not be parsed", [container.name, storage_orig])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.limits
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "ephemeral-storage")
+ msg := sprintf("container <%v> has no ephemeral-storage limit", [container.name])
+}
+
+general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ storage_orig := container.resources.limits["ephemeral-storage"]
+ storage := canonify_storage(storage_orig)
+ max_storage_orig := input.parameters["ephemeral-storage"]
+ max_storage := canonify_storage(max_storage_orig)
+ storage > max_storage
+ msg := sprintf("container <%v> ephemeral-storage limit <%v> is higher than the maximum allowed of <%v>", [container.name, storage_orig, max_storage_orig])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..fa3d60ac95cace84dbc4dc9a98fa7cf559faca89
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/ephemeralstoragelimit/src_test.rego
@@ -0,0 +1,180 @@
+package k8scontainerephemeralstoragelimit
+
+test_input_no_violations_int {
+ inp := {"review": review([ctr("a", 4096)]), "parameters": {"ephemeral-storage": "8192"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_str {
+ inp := {"review": review([ctr("a", "1Gi")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_str_small {
+ inp := {"review": review([ctr("a", "100")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_violations_int {
+ inp := {"review": review([ctr("a", 4096)]), "parameters": {"ephemeral-storage": "2048"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_str {
+ inp := {"review": review([ctr("a", "2.5Gi")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_str_small {
+ inp := {"review": review([ctr("a", "130")]), "parameters": {"ephemeral-storage": 128}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_parse_ephemeral_storage {
+ inp := {"review": review([ctr("a", "123def")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_1_bad_eph {
+ inp := {"review": review([ctr("a", "1Gi"), ctr("a", "3Gi")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_2_bad_eph {
+ inp := {"review": review([ctr("a", "2.5Gi"), ctr("a", "3Gi")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_no_eph_limit {
+ inp := {"review": review([{"name": "a", "resources": {"limits": {"cpu": 1}}}]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_limit {
+ inp := {"review": review([{"name": "a", "resources": {}}]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_no_resources {
+ inp := {"review": review([{"name": "a"}]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_init_containers_checked {
+ inp := {"review": init_review([ctr("a", "2.2 Ti")]), "parameters": {"ephemeral-storage": "3Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+# # EPH SCALE TESTS
+test_input_no_violations_eph_k {
+ inp := {"review": review([ctr("a", "100k")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_violations_eph_m {
+ inp := {"review": review([ctr("a", "10000m")]), "parameters": {"ephemeral-storage": "9"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_K {
+ inp := {"review": review([ctr("a", "1k")]), "parameters": {"ephemeral-storage": "999"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_M {
+ inp := {"review": review([ctr("a", "1M")]), "parameters": {"ephemeral-storage": 999999}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_G {
+ inp := {"review": review([ctr("a", "1G")]), "parameters": {"ephemeral-storage": "999999999"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_T {
+ inp := {"review": review([ctr("a", "1T")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_P {
+ inp := {"review": review([ctr("a", "1P")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_E {
+ inp := {"review": review([ctr("a", "1E")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_Ki {
+ inp := {"review": review([ctr("a", "1Ki")]), "parameters": {"ephemeral-storage": "1023"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_Mi {
+ inp := {"review": review([ctr("a", "1Mi")]), "parameters": {"ephemeral-storage": "0.5Mi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_Gi {
+ inp := {"review": review([ctr("a", "1Gi")]), "parameters": {"ephemeral-storage": "0.22Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_decimal_eph_Gi {
+ inp := {"review": review([ctr("a", "1.4Gi")]), "parameters": {"ephemeral-storage": "1Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_Ti {
+ inp := {"review": review([ctr("a", "1Ti")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_Pi {
+ inp := {"review": review([ctr("a", "1Pi")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_Ei {
+ inp := {"review": review([ctr("a", "1Ei")]), "parameters": {"ephemeral-storage": "2Gi"}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_eph_Ei_with_exemption {
+ inp := {"review": review([ctr("a", "1Ei")]), "parameters": {"exemptImages": ["nginx"], "ephemeral-storage": "1Pi"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_update {
+ inp := {"review": object.union(review([ctr("a", 4096)]), {"operation": "UPDATE"}), "parameters": {"ephemeral-storage": "2048"}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"containers": containers}
+ }
+ }
+}
+
+init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ },
+ "spec": {"initContainers": containers}
+ }
+ }
+}
+
+ctr(name, eph_sto) = out {
+ out = {"name": name, "image": "nginx", "resources": {"limits": {"ephemeral-storage": eph_sto}}}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..1b615308e1ea48892d506a044a8f95c06d6b2d79
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/constraint.tmpl
@@ -0,0 +1,30 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sexternalips
+ annotations:
+ metadata.gatekeeper.sh/title: "External IPs"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Restricts Service externalIPs to an allowed list of IP addresses.
+
+ https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sExternalIPs
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ allowedIPs:
+ type: array
+ description: "An allow-list of external IP addresses."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/externalip/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..8a6a4e74da68f185e95f6bf78ff6218534da57c2
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/src.rego
@@ -0,0 +1,11 @@
+package k8sexternalips
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "Service"
+ input.review.kind.group == ""
+ allowedIPs := {ip | ip := input.parameters.allowedIPs[_]}
+ externalIPs := {ip | ip := input.review.object.spec.externalIPs[_]}
+ forbiddenIPs := externalIPs - allowedIPs
+ count(forbiddenIPs) > 0
+ msg := sprintf("service has forbidden external IPs: %v", [forbiddenIPs])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..f5e050afed10bc0d40d5f23e87a32962322beac5
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/externalip/src_test.rego
@@ -0,0 +1,108 @@
+package k8sexternalips
+
+test_input_non_svc {
+ inp := {"review": non_svc, "parameters": {"allowedIPs": ["1.2.3.4"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_external_ip {
+ inp := {"review": non_externalip_svc, "parameters": {"allowedIPs": ["1.2.3.4"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_externalip {
+ inp := {"review": externalip_svc(["1.2.3.4"]), "parameters": {"allowedIPs": ["1.2.3.4"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_externalip_multiple {
+ inp := {"review": externalip_svc(["1.2.3.4", "203.0.113.0"]), "parameters": {"allowedIPs": ["1.1.1.1", "203.0.113.0", "1.2.3.4", "203.0.113.1"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_violations_empty {
+ inp := {"review": externalip_svc([]), "parameters": {"allowedIPs": []}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_violations_externalip {
+ inp := {"review": externalip_svc(["203.0.113.0"]), "parameters": {"allowedIPs": ["1.1.1.1", "1.2.3.4"]}}
+ results := violation with input as inp
+ results
+ count(results) == 1
+}
+test_input_violations_none_allowed {
+ inp := {"review": externalip_svc(["203.0.113.0"]), "parameters": {"allowedIPs": []}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_partial {
+ inp := {"review": externalip_svc(["1.2.3.4", "203.0.113.0"]), "parameters": {"allowedIPs": ["1.1.1.1", "1.2.3.4", "203.0.113.1"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_violations_multiple {
+ inp := {"review": externalip_svc(["1.2.3.4", "203.0.113.0"]), "parameters": {"allowedIPs": ["1.1.1.1", "203.0.113.1"]}}
+ results := violation with input as inp
+ count(results) == 1 # Multiple failing IPs reported in single error message.
+}
+
+externalip_svc(ips) = output {
+ output = {
+ "kind": {
+ "group": "",
+ "version": "v1",
+ "kind": "Service",
+ },
+ "object": {
+ "metadata": {
+ "name": "baz",
+ },
+ "spec": {
+ "externalIPs": ips,
+ }
+ }
+ }
+}
+
+non_externalip_svc = output {
+ output = {
+ "kind": {
+ "group": "",
+ "version": "v1",
+ "kind": "Service",
+ },
+ "object": {
+ "metadata": {
+ "name": "baz",
+ },
+ "spec": {
+ "selector": "MyApp",
+ "ports": [{
+ "name": "http",
+ "protocol": "TCP",
+ "port": 80,
+ "targetPort": 8080,
+ }]
+ }
+ }
+ }
+}
+
+non_svc = output {
+ output = {
+ "kind": {
+ "group": "",
+ "version": "v1",
+ "kind": "Foo",
+ },
+ "object": {
+ "metadata": {
+ "name": "bar",
+ },
+ "spec": {
+ "externalIPs": ["1.1.1.1"],
+ }
+ }
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..b00b6a6d3ea361d3204bcd1f91ebf6f8f4336886
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/constraint.tmpl
@@ -0,0 +1,60 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8shorizontalpodautoscaler
+ annotations:
+ metadata.gatekeeper.sh/title: "Horizontal Pod Autoscaler"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups":["apps"],
+ "versions": ["v1"],
+ "kinds": ["Deployment"]
+ },
+ {
+ "groups":["apps"],
+ "versions": ["v1"],
+ "kinds": ["StatefulSet"]
+ }
+ ]
+ ]"
+ description: >-
+ Disallow the following scenarios when deploying `HorizontalPodAutoscalers`
+ 1. Deployment of HorizontalPodAutoscalers with `.spec.minReplicas` or `.spec.maxReplicas` outside the ranges defined in the constraint
+ 2. Deployment of HorizontalPodAutoscalers where the difference between `.spec.minReplicas` and `.spec.maxReplicas` is less than the configured `minimumReplicaSpread`
+ 3. Deployment of HorizontalPodAutoscalers that do not reference a valid `scaleTargetRef` (e.g. Deployment, ReplicationController, ReplicaSet, StatefulSet).
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sHorizontalPodAutoscaler
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ enforceScaleTargetRef:
+ description: If set to true it validates the HPA scaleTargetRef exists
+ type: boolean
+ minimumReplicaSpread:
+ description: If configured it enforces the minReplicas and maxReplicas in an HPA must have a spread of at least this many replicas
+ type: integer
+ ranges:
+ type: array
+ description: Allowed ranges for numbers of replicas. Values are inclusive.
+ items:
+ type: object
+ description: A range of allowed replicas. Values are inclusive.
+ properties:
+ min_replicas:
+ description: The minimum number of replicas allowed, inclusive.
+ type: integer
+ max_replicas:
+ description: The maximum number of replicas allowed, inclusive.
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/horizontalpodautoscaler/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..536393b55070a833f8c2fc0f7d60feeb96f94c59
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/src.rego
@@ -0,0 +1,43 @@
+package k8shorizontalpodautoscaler
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "HorizontalPodAutoscaler"
+ hpa := input.review.object
+
+ not input_replica_limit(hpa)
+ msg := sprintf("The %v <%v> minReplicas %v or maxReplicas %v is not allowed: %v. Allowed ranges: %v", [hpa.kind, hpa.metadata.name, hpa.spec.minReplicas, hpa.spec.maxReplicas, input.parameters.ranges])
+}
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "HorizontalPodAutoscaler"
+ hpa := input.review.object
+
+ not input_replica_spread(hpa)
+
+ msg := sprintf("The %v <%v> is configured with minReplicas %v and maxReplicas %v which is a spread of %v replica(s). The spread must be at least %v replica(s)", [hpa.kind, hpa.metadata.name, hpa.spec.minReplicas, hpa.spec.maxReplicas, hpa.spec.maxReplicas - hpa.spec.minReplicas, input.parameters.minimumReplicaSpread])
+}
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "HorizontalPodAutoscaler"
+ hpa := input.review.object
+ input.parameters.enforceScaleTargetRef
+
+ not data.inventory.namespace[hpa.metadata.namespace][hpa.spec.scaleTargetRef.apiVersion][hpa.spec.scaleTargetRef.kind][hpa.spec.scaleTargetRef.name]
+ msg := sprintf("The HorizontalPodAutoscaler <%v> has a scaleTargetRef of <%v/%v> but it does not exist. The scaleTargetRef for the HorizontalPodAutoscaler must exist", [hpa.metadata.name, hpa.spec.scaleTargetRef.kind, hpa.spec.scaleTargetRef.name])
+}
+
+input_replica_limit(hpa) {
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, hpa.spec.minReplicas, hpa.spec.maxReplicas)
+}
+
+value_within_range(range, min_provided, max_provided) {
+ range.min_replicas <= min_provided
+ range.max_replicas >= max_provided
+}
+
+input_replica_spread(hpa) {
+ input.parameters.minimumReplicaSpread
+ (hpa.spec.maxReplicas - hpa.spec.minReplicas) >= input.parameters.minimumReplicaSpread
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..6822cd7870f88684ac5a26229ee44c76e0885bc7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/horizontalpodautoscaler/src_test.rego
@@ -0,0 +1,130 @@
+package k8shorizontalpodautoscaler
+
+namespace := "namespace-1"
+
+valid_scale_target_ref := {
+ "apiVersion": "apps/v1",
+ "kind": "Deployment",
+ "name": "deployment-1"
+}
+
+invalid_scale_target_ref := {
+ "apiVersion": "apps/v1",
+ "kind": "Deployment",
+ "name": "deployment-invalid"
+}
+
+deployment := {
+ "apiVersion": "apps/v1",
+ "kind": "Deployment",
+ "metadata": {
+ "name": "deployment-1",
+ "namespace": "namespace-1",
+ },
+ "spec": {
+ "replicas": 1,
+ }
+}
+
+test_input_hpa_min_replicas_outside_range {
+ inp := {"review": input_hpa(2,5,valid_scale_target_ref), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_hpa_max_replicas_outside_range {
+ inp := {"review": input_hpa(4,7,valid_scale_target_ref), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_hpa_replicas_within_range {
+ inp := {"review": input_hpa(4,5,valid_scale_target_ref), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_hpa_replicas_equal_range {
+ inp := {"review": input_hpa(3,6,valid_scale_target_ref), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_hpa_replicas_below_min_spread {
+ inp := {"review": input_hpa(3,4,valid_scale_target_ref), "parameters": input_parameters_min_spread}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_hpa_replicas_above_min_spread {
+ inp := {"review": input_hpa(3,6,valid_scale_target_ref), "parameters": input_parameters_min_spread}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_hpa_replicas_equal_min_spread {
+ inp := {"review": input_hpa(4,6,valid_scale_target_ref), "parameters": input_parameters_min_spread}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_hpa_invalid_scale_target{
+ inp := {"review": input_hpa(3,6,invalid_scale_target_ref), "parameters": input_parameters_enforce_scale_target_ref}
+ inv := inv_deployment(deployment)
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+
+test_input_hpa_valid_scale_target{
+ inp := {"review": input_hpa(3,6,valid_scale_target_ref), "parameters": input_parameters_enforce_scale_target_ref}
+ inv := inv_deployment(deployment)
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+
+hpa(min_replicas, max_replicas, scale_target_ref) = output {
+ output := {
+ "apiVersion": "autoscaling/v1",
+ "kind": "HorizontalPodAutoscaler",
+ "metadata": {
+ "name": "hpa-1",
+ "namespace": "namespace-1",
+ },
+ "spec": {
+ "scaleTargetRef": scale_target_ref,
+ "minReplicas": min_replicas,
+ "maxReplicas": max_replicas,
+ },
+ }
+}
+
+input_hpa(min_replicas, max_replicas, scale_target_ref) = output {
+ output := {
+ "kind": {"kind": "HorizontalPodAutoscaler"},
+ "object": hpa(min_replicas, max_replicas, scale_target_ref),
+ }
+}
+
+inventory(obj) = output {
+ output := {"namespace": {namespace: {obj.apiVersion: {obj.kind: {obj.metadata.name: obj}}}}}
+}
+
+inv_deployment(deploy) = output {
+ output := inventory(deploy)
+}
+
+input_parameters_valid_range = {
+ "ranges": [
+ {
+ "min_replicas": 3,
+ "max_replicas": 6
+ }]
+}
+
+input_parameters_min_spread = {
+ "minimumReplicaSpread": 2
+}
+
+input_parameters_enforce_scale_target_ref = {
+ "enforceScaleTargetRef": true
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..5eff2a7c491209dcb9a31557dc02a23078e8de86
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/constraint.tmpl
@@ -0,0 +1,38 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8shttpsonly
+ annotations:
+ metadata.gatekeeper.sh/title: "HTTPS Only"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires Ingress resources to be HTTPS only. Ingress resources must
+ include the `kubernetes.io/ingress.allow-http` annotation, set to `false`.
+ By default a valid TLS {} configuration is required, this can be made
+ optional by setting the `tlsOptional` parameter to `true`.
+
+ https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sHttpsOnly
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires Ingress resources to be HTTPS only. Ingress resources must
+ include the `kubernetes.io/ingress.allow-http` annotation, set to
+ `false`. By default a valid TLS {} configuration is required, this
+ can be made optional by setting the `tlsOptional` parameter to
+ `true`.
+ properties:
+ tlsOptional:
+ type: boolean
+ description: "When set to `true` the TLS {} is optional, defaults
+ to false."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/httpsonly/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..b6b58b298525b93820e7af46fc2b0f9a45947db1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/src.rego
@@ -0,0 +1,34 @@
+package k8shttpsonly
+
+violation[{"msg": msg}] {
+ input.review.object.kind == "Ingress"
+ regex.match("^(extensions|networking.k8s.io)/", input.review.object.apiVersion)
+ ingress := input.review.object
+ not https_complete(ingress)
+ not tls_is_optional
+ msg := sprintf("Ingress should be https. tls configuration and allow-http=false annotation are required for %v", [ingress.metadata.name])
+}
+
+violation[{"msg": msg}] {
+ input.review.object.kind == "Ingress"
+ regex.match("^(extensions|networking.k8s.io)/", input.review.object.apiVersion)
+ ingress := input.review.object
+ not annotation_complete(ingress)
+ tls_is_optional
+ msg := sprintf("Ingress should be https. The allow-http=false annotation is required for %v", [ingress.metadata.name])
+}
+
+https_complete(ingress) = true {
+ ingress.spec["tls"]
+ count(ingress.spec.tls) > 0
+ ingress.metadata.annotations["kubernetes.io/ingress.allow-http"] == "false"
+}
+
+annotation_complete(ingress) = true {
+ ingress.metadata.annotations["kubernetes.io/ingress.allow-http"] == "false"
+}
+
+tls_is_optional {
+ parameters := object.get(input, "parameters", {})
+ object.get(parameters, "tlsOptional", false) == true
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..0c3cf387867527e63d98eb437ef0d6f5f982985c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/httpsonly/src_test.rego
@@ -0,0 +1,91 @@
+package k8shttpsonly
+
+test_http_disallowed {
+ inp := {"review": review_ingress(annotation("false"), tls)}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_boolean_annotation {
+ inp := {"review": review_ingress(annotation(false), tls)}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_true_annotation {
+ inp := {"review": review_ingress(annotation("true"), tls)}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_missing_annotation {
+ inp := {"review": review_ingress({}, tls)}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_empty_tls {
+ inp := {"review": review_ingress({}, empty_tls)}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_missing_tls {
+ inp := {"review": review_ingress(annotation("false"), {})}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_missing_all {
+ inp := {"review": review_ingress({}, {})}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_tls_optional_missing_tls {
+ inp := {"review": review_ingress(annotation("false"), {}), "parameters": {"tlsOptional": true}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_tls_optional_empty_tls {
+ inp := {"review": review_ingress(annotation("false"), empty_tls), "parameters": {"tlsOptional": true}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_tls_optional_with_tls {
+ inp := {"review": review_ingress(annotation("false"), tls), "parameters": {"tlsOptional": true}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_tls_optional_true_annotation {
+ inp := {"review": review_ingress(annotation("true"), {}), "parameters": {"tlsOptional": true}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_tls_optional_missing_annotation {
+ inp := {"review": review_ingress({}, {}), "parameters": {"tlsOptional": true}}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+
+review_ingress(annotationVal, tlsVal) = out {
+ out = {
+ "object": {
+ "kind": "Ingress",
+ "apiVersion": "extensions/v1beta1",
+ "metadata": {
+ "name": "my-ingress",
+ "annotations": annotationVal
+ },
+ "spec": tlsVal
+ }
+ }
+}
+
+annotation(val) = out {
+ out = {
+ "kubernetes.io/ingress.allow-http": val
+ }
+}
+
+empty_tls = {
+ "tls": []
+}
+
+tls = {
+ "tls": [{"secretName": "secret-cert"}]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..2b9193c621eecf88949340b7cf845391fcd08ab6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/constraint.tmpl
@@ -0,0 +1,41 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8simagedigests
+ annotations:
+ metadata.gatekeeper.sh/title: "Image Digests"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Requires container images to contain a digest.
+
+ https://kubernetes.io/docs/concepts/containers/images/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sImageDigests
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires container images to contain a digest.
+
+ https://kubernetes.io/docs/concepts/containers/images/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/imagedigests/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/imagedigests/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..0170f8c04254db85be14c75a16b245f24a6c1a75
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/src.rego
@@ -0,0 +1,24 @@
+package k8simagedigests
+
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.containers[_]
+ not is_exempt(container)
+ not regex.match("@[a-z0-9]+([+._-][a-z0-9]+)*:[a-zA-Z0-9=_-]+", container.image)
+ msg := sprintf("container <%v> uses an image without a digest <%v>", [container.name, container.image])
+}
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.initContainers[_]
+ not is_exempt(container)
+ not regex.match("@[a-z0-9]+([+._-][a-z0-9]+)*:[a-zA-Z0-9=_-]+", container.image)
+ msg := sprintf("initContainer <%v> uses an image without a digest <%v>", [container.name, container.image])
+}
+
+violation[{"msg": msg}] {
+ container := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(container)
+ not regex.match("@[a-z0-9]+([+._-][a-z0-9]+)*:[a-zA-Z0-9=_-]+", container.image)
+ msg := sprintf("ephemeralContainer <%v> uses an image without a digest <%v>", [container.name, container.image])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..14084515764fd61185309d7f010cdcbae5113ba7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/imagedigests/src_test.rego
@@ -0,0 +1,152 @@
+package k8simagedigests
+
+test_input_allowed_container {
+ inp := { "review": input_review(input_container_allowed) }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_container_with_tag_and_digest {
+ inp := { "review": input_review(input_container_allowed_with_tag) }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_containers_with_registered_algorithms {
+ inp := { "review": input_review(input_container_allowed_registered_algorithms) }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_allowed_containers_with_unregistered_algorithms {
+ inp := { "review": input_review(input_container_allowed_unregistered_algorithms) }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_denied_container {
+ inp := { "review": input_review(input_container_denied) }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_dual_container {
+ inp := { "review": input_review(input_container_dual_denied) }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_denied_mixed_container {
+ inp := { "review": input_review(array.concat(input_container_allowed, input_container_denied)) }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_denied_mixed_container_with_exemption {
+ inp := { "review": input_review(array.concat(input_container_allowed, input_container_denied)), "parameters": {"exemptImages": ["denied/*"]} }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+# init containers
+test_input_init_allowed_container {
+ inp := { "review": input_init_review(input_container_allowed) }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_init_allowed_container_with_tag_and_digest {
+ inp := { "review": input_init_review(input_container_allowed_with_tag) }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_init_allowed_containers_with_registered_algorithms {
+ inp := { "review": input_init_review(input_container_allowed_registered_algorithms) }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_init_allowed_containers_with_unregistered_algorithms {
+ inp := { "review": input_init_review(input_container_allowed_unregistered_algorithms) }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_init_denied_container {
+ inp := { "review": input_init_review(input_container_denied) }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_init_denied_dual_container {
+ inp := { "review": input_init_review(input_container_dual_denied) }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_init_denied_mixed_container {
+ inp := { "review": input_init_review(array.concat(input_container_allowed, input_container_denied)) }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_init_denied_mixed_container_with_exemption {
+ inp := { "review": input_init_review(array.concat(input_container_allowed, input_container_denied)), "parameters": {"exemptImages": ["denied/*"]} }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": containers,
+ }
+ }
+ }
+}
+
+input_init_review(containers) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": containers,
+ }
+ }
+ }
+}
+
+input_container_allowed = [{
+ "name": "image-with-sha256",
+ "image": "allowed/nginx@sha256:b0ad43f7ee5edbc0effbc14645ae7055e21bc1973aee5150745632a24a752661",
+}]
+
+input_container_allowed_with_tag = [{
+ "name": "image-with-tag-and-sha256",
+ "image": "allowed/nginx:1.19.2@sha256:b0ad43f7ee5edbc0effbc14645ae7055e21bc1973aee5150745632a24a752661",
+}]
+
+input_container_allowed_registered_algorithms = [{
+ "name": "image-with-sha256",
+ "image": "allowed/nginx@sha256:b0ad43f7ee5edbc0effbc14645ae7055e21bc1973aee5150745632a24a752661",
+},
+{
+ "name": "image-with-sha512",
+ "image": "allowed/nginx@sha512:4b8bea0e757264767b373ba4963f4e972c428f42bf5335c2abb2e7f15a1b07c8aeddd2e62cacd0f2d669f49d8d975d952031e3041371639ec84baab400ab4802",
+}]
+
+input_container_allowed_unregistered_algorithms = [{
+ "name": "unreg-multihash",
+ "image": "allowed/unreg@multihash+base58:QmRZxt2b1FVZPNqd8hsiykDL3TdBDeTSPX9Kv46HmX4Gx8",
+},
+{
+ "name": "unreg-sha256-with-base64url",
+ "image": "allowed/unreg@sha256+b64u:LCa0a2j_xo_5m0U8HTBBNBNCLXBkg7-g-YpeiGJm564",
+}]
+
+input_container_denied = [{
+ "name": "nginx",
+ "image": "denied/nginx:1.19.2",
+}]
+
+input_container_dual_denied = [{
+ "name": "nginx",
+ "image": "denied/nginx:1.19.2",
+},
+{
+ "name": "other",
+ "image": "denied/other",
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..fa25c9b020a88060d8143e07f2cd699371ca501c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/constraint.tmpl
@@ -0,0 +1,31 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: noupdateserviceaccount
+ annotations:
+ metadata.gatekeeper.sh/title: "Block updating Service Account"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: "Blocks updating the service account on resources that abstract over Pods. This policy is ignored in audit mode."
+spec:
+ crd:
+ spec:
+ names:
+ kind: NoUpdateServiceAccount
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ allowedGroups:
+ description: Groups that should be allowed to bypass the policy.
+ type: array
+ items:
+ type: string
+ allowedUsers:
+ description: Users that should be allowed to bypass the policy.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/noupdateserviceaccount/src.rego" | strings.Indent 6 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..53f8cf3213bb7d276982bac6239d0b32a5c92f61
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/src.rego
@@ -0,0 +1,76 @@
+package noupdateserviceaccount
+
+privileged(userInfo, allowedUsers, _) {
+ # Allow if the user is in allowedUsers.
+ # Use object.get so omitted parameters can't cause policy bypass by
+ # evaluating to undefined.
+ username := object.get(userInfo, "username", "")
+ allowedUsers[_] == username
+}
+
+privileged(userInfo, _, allowedGroups) {
+ # Allow if the user's groups intersect allowedGroups.
+ # Use object.get so omitted parameters can't cause policy bypass by
+ # evaluating to undefined.
+ userGroups := object.get(userInfo, "groups", [])
+ groups := {g | g := userGroups[_]}
+ allowed := {g | g := allowedGroups[_]}
+ intersection := groups & allowed
+ count(intersection) > 0
+}
+
+get_service_account(obj) = spec {
+ obj.kind == "Pod"
+ spec := obj.spec.serviceAccountName
+} {
+ obj.kind == "ReplicationController"
+ spec := obj.spec.template.spec.serviceAccountName
+} {
+ obj.kind == "ReplicaSet"
+ spec := obj.spec.template.spec.serviceAccountName
+} {
+ obj.kind == "Deployment"
+ spec := obj.spec.template.spec.serviceAccountName
+} {
+ obj.kind == "StatefulSet"
+ spec := obj.spec.template.spec.serviceAccountName
+} {
+ obj.kind == "DaemonSet"
+ spec := obj.spec.template.spec.serviceAccountName
+} {
+ obj.kind == "Job"
+ spec := obj.spec.template.spec.serviceAccountName
+} {
+ obj.kind == "CronJob"
+ spec := obj.spec.jobTemplate.spec.template.spec.serviceAccountName
+}
+
+violation[{"msg": msg}] {
+ # This policy only applies to updates of existing resources.
+ input.review.operation == "UPDATE"
+
+ # Use object.get so omitted parameters can't cause policy bypass by
+ # evaluating to undefined.
+ params := object.get(input, "parameters", {})
+ allowedUsers := object.get(params, "allowedUsers", [])
+ allowedGroups := object.get(params, "allowedGroups", [])
+
+ # Extract the service account.
+ oldKSA := get_service_account(input.review.oldObject)
+ newKSA := get_service_account(input.review.object)
+
+ # Deny unprivileged users and groups from changing serviceAccountName.
+ not privileged(input.review.userInfo, allowedUsers, allowedGroups)
+ oldKSA != newKSA
+ msg := "user does not have permission to modify serviceAccountName"
+} {
+ # Defensively require object to have a serviceAccountName.
+ input.review.operation == "UPDATE"
+ not get_service_account(input.review.object)
+ msg := "missing serviceAccountName field in object under review"
+} {
+ # Defensively require oldObject to have a serviceAccountName.
+ input.review.operation == "UPDATE"
+ not get_service_account(input.review.oldObject)
+ msg := "missing serviceAccountName field in oldObject under review"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..11eb2a52ab976f20699c8860fcc373e2afc333dc
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/noupdateserviceaccount/src_test.rego
@@ -0,0 +1,317 @@
+package noupdateserviceaccount
+
+# Pod
+pod_spec(sa_name) = spec {
+ spec = {
+ "serviceAccountName": sa_name,
+ }
+}
+
+pod(sa_name) = obj {
+ obj = {
+ "kind": "Pod",
+ "spec": pod_spec(sa_name),
+ }
+}
+
+test_deny_pod {
+ inp := {
+ "review": update(pod("sa1"), pod("sa2"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ result == policy_violation
+}
+
+# ReplicationController
+rc(sa_name) = obj {
+ obj = {
+ "kind": "ReplicationController",
+ "spec": {
+ "template": {
+ "spec": pod_spec(sa_name),
+ }
+ }
+ }
+}
+
+test_deny_rc {
+ inp := {
+ "review": update(rc("sa1"), rc("sa2"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ result == policy_violation
+}
+
+# ReplicaSet
+rs(sa_name) = obj {
+ obj = {
+ "kind": "ReplicaSet",
+ "spec": {
+ "template": {
+ "spec": pod_spec(sa_name),
+ }
+ }
+ }
+}
+
+test_deny_rs {
+ inp := {
+ "review": update(rs("sa1"), rs("sa2"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ result == policy_violation
+}
+
+# Deployment
+deploy(sa_name) = obj {
+ obj = {
+ "kind": "Deployment",
+ "spec": {
+ "template": {
+ "spec": pod_spec(sa_name),
+ }
+ }
+ }
+}
+
+test_deny_deploy {
+ inp := {
+ "review": update(deploy("sa1"), deploy("sa2"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ result == policy_violation
+}
+
+# StatefulSet
+ss(sa_name) = obj {
+ obj = {
+ "kind": "StatefulSet",
+ "spec": {
+ "template": {
+ "spec": pod_spec(sa_name),
+ }
+ }
+ }
+}
+
+test_deny_ss {
+ inp := {
+ "review": update(ss("sa1"), ss("sa2"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ result == policy_violation
+}
+
+# DaemonSet
+ds(sa_name) = obj {
+ obj = {
+ "kind": "DaemonSet",
+ "spec": {
+ "template": {
+ "spec": pod_spec(sa_name),
+ }
+ }
+ }
+}
+
+test_deny_ds {
+ inp := {
+ "review": update(ds("sa1"), ds("sa2"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ result == policy_violation
+}
+
+# Job
+job(sa_name) = obj {
+ obj = {
+ "kind": "Job",
+ "spec": {
+ "template": {
+ "spec": pod_spec(sa_name),
+ }
+ }
+ }
+}
+
+test_deny_job {
+ inp := {
+ "review": update(job("sa1"), job("sa2"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ result == policy_violation
+}
+
+# CronJob
+cronjob(sa_name) = obj {
+ obj = {
+ "kind": "CronJob",
+ "spec": {
+ "jobTemplate": {
+ "spec": {
+ "template": {
+ "spec": pod_spec(sa_name),
+ }
+ }
+ }
+ }
+ }
+}
+
+test_deny_cronjob {
+ inp := {
+ "review": update(cronjob("sa1"), cronjob("sa2"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ result == policy_violation
+}
+
+# Allow unrelated modification
+test_allow_unrelated {
+ a := deploy("sa")
+ b := {
+ "kind": "Deployment",
+ "spec": {
+ "template": {
+ "spec": {
+ "serviceAccountName": "sa",
+ "containers": [{"name": "newcontainer"}],
+ }
+ }
+ }
+ }
+ inp := {
+ "review": update(a, b, {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ count(result) == 0
+}
+
+# Allow create and delete
+test_allow_create {
+ inp := {
+ "review": create(deploy("sa1")),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ count(result) == 0
+}
+
+test_allow_delete {
+ inp := {
+ "review": delete(deploy("sa1")),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ count(result) == 0
+}
+
+# Allowlist users and groups
+test_allow_users {
+ inp := {
+ "review": update(deploy("sa1"), deploy("sa2"), {"username": "myuser"}),
+ "parameters": allow(["myuser"], []),
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ count(result) == 0
+}
+
+test_allow_groups {
+ inp := {
+ "review": update(deploy("sa1"), deploy("sa2"), {"groups": ["mygroup"]}),
+ "parameters": allow([], ["mygroup"]),
+ }
+ result := violation with input as inp
+ trace(sprintf("result: %v", [result]))
+ count(result) == 0
+}
+
+# Malformed
+test_deny_missing_old {
+ inp := {
+ "review": update({}, pod("sa"), {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("%v", [result]))
+ result == missing_old_violation
+}
+
+test_deny_missing_new {
+ inp := {
+ "review": update(pod("sa"), {}, {}),
+ "parameters": {},
+ }
+ result := violation with input as inp
+ trace(sprintf("%v", [result]))
+ result == missing_new_violation
+}
+
+# Other helpers
+
+update(old, new, user) = output {
+ output = {
+ "operation": "UPDATE",
+ "oldObject": old,
+ "object": new,
+ "userInfo": user,
+ }
+}
+
+create(obj) = output {
+ output = {
+ "operation": "CREATE",
+ "oldObject": null,
+ "object": obj,
+ "userInfo": {},
+ }
+}
+
+delete(obj) = output {
+ output = {
+ "operation": "DELETE",
+ "oldObject": obj,
+ "object": null,
+ "userInfo": {},
+ }
+}
+
+allow(users, groups) = params {
+ params = {
+ "allowedUsers": users,
+ "allowedGroups": groups,
+ }
+}
+
+missing_old_violation[{"msg": msg}] {
+ msg := "missing serviceAccountName field in oldObject under review"
+}
+
+missing_new_violation[{"msg": msg}] {
+ msg := "missing serviceAccountName field in object under review"
+}
+
+policy_violation[{"msg": msg}] {
+ msg := "user does not have permission to modify serviceAccountName"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..4ec6be3ffbb0b5a556d5061156ebbfd4b4c1b04c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/constraint.tmpl
@@ -0,0 +1,33 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spoddisruptionbudget
+ annotations:
+ metadata.gatekeeper.sh/title: "Pod Disruption Budget"
+ metadata.gatekeeper.sh/version: 1.0.4
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups":["policy"],
+ "versions": ["v1"],
+ "kinds": ["PodDisruptionBudget"]
+ }
+ ]
+ ]"
+ description: >-
+ Disallow the following scenarios when deploying PodDisruptionBudgets or resources that implement the replica subresource (e.g. Deployment, ReplicationController, ReplicaSet, StatefulSet):
+ 1. Deployment of PodDisruptionBudgets with .spec.maxUnavailable == 0
+ 2. Deployment of PodDisruptionBudgets with .spec.minAvailable == .spec.replicas of the resource with replica subresource
+ This will prevent PodDisruptionBudgets from blocking voluntary disruptions such as node draining.
+
+ https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPodDisruptionBudget
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/poddisruptionbudget/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..cb3376739ef2493bfd1a40a205df070d44cf6bea
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/src.rego
@@ -0,0 +1,58 @@
+package k8spoddisruptionbudget
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "PodDisruptionBudget"
+ pdb := input.review.object
+
+ not valid_pdb_max_unavailable(pdb)
+ msg := sprintf(
+ "PodDisruptionBudget <%v> has maxUnavailable of 0, only positive integers are allowed for maxUnavailable",
+ [pdb.metadata.name],
+ )
+}
+
+violation[{"msg": msg}] {
+ obj := input.review.object
+ pdb := data.inventory.namespace[obj.metadata.namespace]["policy/v1"].PodDisruptionBudget[_]
+
+ matchLabels := { [label, value] | some label; value := pdb.spec.selector.matchLabels[label] }
+ labels := { [label, value] | some label; value := obj.spec.selector.matchLabels[label] }
+ count(matchLabels - labels) == 0
+
+ not valid_pdb_max_unavailable(pdb)
+ msg := sprintf(
+ "%v <%v> has been selected by PodDisruptionBudget <%v> but has maxUnavailable of 0, only positive integers are allowed for maxUnavailable",
+ [obj.kind, obj.metadata.name, pdb.metadata.name],
+ )
+}
+
+violation[{"msg": msg}] {
+ obj := input.review.object
+ pdb := data.inventory.namespace[obj.metadata.namespace]["policy/v1"].PodDisruptionBudget[_]
+
+ matchLabels := { [label, value] | some label; value := pdb.spec.selector.matchLabels[label] }
+ labels := { [label, value] | some label; value := obj.spec.selector.matchLabels[label] }
+ count(matchLabels - labels) == 0
+
+ not valid_pdb_min_available(obj, pdb)
+ msg := sprintf(
+ "%v <%v> has %v replica(s) but PodDisruptionBudget <%v> has minAvailable of %v, PodDisruptionBudget count should always be lower than replica(s), and not used when replica(s) is set to 1",
+ [obj.kind, obj.metadata.name, obj.spec.replicas, pdb.metadata.name, pdb.spec.minAvailable],
+ )
+}
+
+valid_pdb_min_available(obj, pdb) {
+ # default to -1 if minAvailable is not set so valid_pdb_min_available is always true
+ # for objects with >= 0 replicas. If minAvailable defaults to >= 0, objects with
+ # replicas field might violate this constraint if they are equal to the default set here
+ min_available := object.get(pdb.spec, "minAvailable", -1)
+ obj.spec.replicas > min_available
+}
+
+valid_pdb_max_unavailable(pdb) {
+ # default to 1 if maxUnavailable is not set so valid_pdb_max_unavailable always returns true.
+ # If maxUnavailable defaults to 0, it violates this constraint because all pods needs to be
+ # available and no pods can be evicted voluntarily
+ max_unavailable := object.get(pdb.spec, "maxUnavailable", 1)
+ max_unavailable > 0
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..73f1327cf59a2c3a244f9b46500f69981240458e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/poddisruptionbudget/src_test.rego
@@ -0,0 +1,121 @@
+package k8spoddisruptionbudget
+
+namespace := "namespace-1"
+
+match_labels := {"matchLabels": {
+ "key1": "val1",
+ "key2": "val2",
+}}
+
+test_input_pdb_0_max_unavailable {
+ inp := {"review": input_pdb_max_unavailable(0)}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_pdb_1_max_unavailable {
+ inp := {"review": input_pdb_max_unavailable(1)}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_deployment_1_replica_pdb_1_min_available {
+ inp := {"review": input_deployment(1)}
+ inv := inv_pdb_min_available(1)
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+
+test_input_deployment_2_replicas_pdb_1_min_available {
+ inp := {"review": input_deployment(2)}
+ inv := inv_pdb_min_available(1)
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+
+test_input_deployment_pdb_0_max_unavailable {
+ inp := {"review": input_deployment(2)}
+ inv := inv_pdb_max_unavailable(0)
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+
+test_input_deployment_pdb_1_max_unavailable {
+ inp := {"review": input_deployment(2)}
+ inv := inv_pdb_max_unavailable(1)
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+
+pdb_min_available(min_available) = output {
+ output := {
+ "apiVersion": "policy/v1",
+ "kind": "PodDisruptionBudget",
+ "metadata": {
+ "name": "pdb-1",
+ "namespace": "namespace-1",
+ },
+ "spec": {
+ "selector": match_labels,
+ "minAvailable": min_available,
+ },
+ }
+}
+
+pdb_max_unavailable(max_unavailable) = output {
+ output := {
+ "apiVersion": "policy/v1",
+ "kind": "PodDisruptionBudget",
+ "metadata": {
+ "name": "pdb-1",
+ "namespace": "namespace-1",
+ },
+ "spec": {
+ "selector": match_labels,
+ "maxUnavailable": max_unavailable,
+ },
+ }
+}
+
+deployment(replicas) = output {
+ output := {
+ "apiVersion": "apps/v1",
+ "kind": "Deployment",
+ "metadata": {
+ "name": "deployment-1",
+ "namespace": "namespace-1",
+ },
+ "spec": {
+ "replicas": replicas,
+ "selector": match_labels,
+ },
+ }
+}
+
+input_pdb_max_unavailable(max_unavailable) = output {
+ output := {
+ "kind": {"kind": "PodDisruptionBudget"},
+ "object": pdb_max_unavailable(max_unavailable),
+ }
+}
+
+input_deployment(replicas) = output {
+ output := {
+ "kind": {"kind": "Deployment"},
+ "object": deployment(replicas),
+ }
+}
+
+inventory(obj) = output {
+ output := {"namespace": {namespace: {obj.apiVersion: {obj.kind: [obj]}}}}
+}
+
+inv_pdb_min_available(min_available) = output {
+ pdb = pdb_min_available(min_available)
+ output := inventory(pdb)
+}
+
+inv_pdb_max_unavailable(max_unavailable) = output {
+ pdb = pdb_max_unavailable(max_unavailable)
+ output := inventory(pdb)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..55a3803605cbddfb5242fc57de6edbe4ec12aa4e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/constraint.tmpl
@@ -0,0 +1,37 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sreplicalimits
+ annotations:
+ metadata.gatekeeper.sh/title: "Replica Limits"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires that objects with the field `spec.replicas` (Deployments,
+ ReplicaSets, etc.) specify a number of replicas within defined ranges.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sReplicaLimits
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ ranges:
+ type: array
+ description: Allowed ranges for numbers of replicas. Values are inclusive.
+ items:
+ type: object
+ description: A range of allowed replicas. Values are inclusive.
+ properties:
+ min_replicas:
+ description: The minimum number of replicas allowed, inclusive.
+ type: integer
+ max_replicas:
+ description: The maximum number of replicas allowed, inclusive.
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/replicalimits/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..066fe924b6444f70d73d4db2cb2177cd2d7f612f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/src.rego
@@ -0,0 +1,22 @@
+package k8sreplicalimits
+
+object_name = input.review.object.metadata.name
+object_kind = input.review.kind.kind
+
+violation[{"msg": msg}] {
+ spec := input.review.object.spec
+ not input_replica_limit(spec)
+ msg := sprintf("The provided number of replicas is not allowed for %v: %v. Allowed ranges: %v", [object_kind, object_name, input.parameters])
+}
+
+input_replica_limit(spec) {
+ provided := spec.replicas
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, provided)
+}
+
+value_within_range(range, value) {
+ range.min_replicas <= value
+ range.max_replicas >= value
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..5cb1f8a97f9dcf2ae52956be4ca1ef182ffa1af7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/replicalimits/src_test.rego
@@ -0,0 +1,86 @@
+package k8sreplicalimits
+
+test_input_empty {
+ inp := { "review": empty, "parameters": {}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_within_required_replicas {
+ inp := { "review": review(6), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_exact_required_replicas_min {
+ inp := { "review": review(5), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_exact_required_replicas_max {
+ inp := { "review": review(35), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_not_enough_required_replicas {
+ inp := { "review": review(1), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_too_many_replicas {
+ inp := { "review": review(100), "parameters": input_parameters_valid_range}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_zero_replicas {
+ inp := { "review": review(0), "parameters": input_parameters_zero_range}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+empty = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ }
+}
+
+review(replicas) = output {
+ output = {
+ "kind": {
+ "kind": "Deployment",
+ "version": "v1",
+ "group": "apps",
+ },
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "replicas": replicas,
+ },
+ }
+ }
+}
+
+input_parameters_valid_range = {
+ "ranges": [
+ {
+ "min_replicas": 5,
+ "max_replicas": 35
+ }]
+}
+
+input_parameters_zero_range = {
+ "ranges": [
+ {
+ "min_replicas": 0,
+ "max_replicas": 0
+ }]
+}
+
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..869ab9994346b2725b4a0af8d327179763dcc8fd
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/constraint.tmpl
@@ -0,0 +1,42 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8srequiredannotations
+ annotations:
+ metadata.gatekeeper.sh/title: "Required Annotations"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Requires resources to contain specified annotations, with values matching
+ provided regular expressions.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sRequiredAnnotations
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ message:
+ type: string
+ annotations:
+ type: array
+ description: >-
+ A list of annotations and values the object must specify.
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ description: >-
+ The required annotation.
+ allowedRegex:
+ type: string
+ description: >-
+ If specified, a regular expression the annotation's value
+ must match. The value must contain at least one match for
+ the regular expression.
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/requiredannotations/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..f9f624a8080e78e9eb7342be2ac281f8c027d698
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/src.rego
@@ -0,0 +1,18 @@
+package k8srequiredannotations
+
+violation[{"msg": msg, "details": {"missing_annotations": missing}}] {
+ provided := {annotation | input.review.object.metadata.annotations[annotation]}
+ required := {annotation | annotation := input.parameters.annotations[_].key}
+ missing := required - provided
+ count(missing) > 0
+ msg := sprintf("you must provide annotation(s): %v", [missing])
+}
+
+violation[{"msg": msg}] {
+ value := input.review.object.metadata.annotations[key]
+ expected := input.parameters.annotations[_]
+ expected.key == key
+ expected.allowedRegex != ""
+ not regex.match(expected.allowedRegex, value)
+ msg := sprintf("Annotation <%v: %v> does not satisfy allowed regex: %v", [key, value, expected.allowedRegex])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..a9ab36b0b54d843067eae44ec26d0f18d48f2d10
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredannotations/src_test.rego
@@ -0,0 +1,87 @@
+package k8srequiredannotations
+
+test_input_no_required_annotations {
+ inp := { "review": review({"some": "annotation"}), "parameters": {}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_required_annotations {
+ inp := { "review": empty, "parameters": {}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_has_annotation {
+ inp := { "review": review({"some": "annotation"}), "parameters": {"annotations": [lbl("some", "annotation")]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_has_extra_annotation {
+ inp := { "review": review({"some": "annotation", "new": "thing"}), "parameters": {"annotations": [lbl("some", "annotation")]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_has_extra_annotation_req2 {
+ inp := { "review": review({"some": "annotation", "new": "thing"}), "parameters": {"annotations": [lbl("some", "annotation"), lbl("new", "thing")]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_missing_annotation {
+ inp := { "review": review({"some_other": "annotation"}), "parameters": {"annotations": [lbl("some", "annotation")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_wrong_value {
+ inp := { "review": review({"some": "annotation2"}), "parameters": {"annotations": [lbl("some", "annotation$")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_one_missing {
+ inp := { "review": review({"some": "annotation"}), "parameters": {"annotations": [lbl("some", "annotation"), lbl("other", "annotation")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_wrong_empty {
+ inp := { "review": empty, "parameters": {"annotations": [lbl("some", "label$")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_two_missing {
+ inp := { "review": empty, "parameters": {"annotations": [lbl("some", "annotation"), lbl("other", "annotation")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_two_wrong {
+ inp := { "review": review({"some": "lbe", "other": "lbe"}), "parameters": {"annotations": [lbl("some", "annotation"), lbl("other", "annotation")]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_two_allowed {
+ inp := { "review": review({"some": "gray", "other": "grey"}), "parameters": {"annotations": [lbl("some", "gr[ae]y"), lbl("other", "gr[ae]y")]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+
+empty = {
+ "object": {
+ "metadata": {
+ "name": "service"
+ },
+ }
+
+}
+
+review(annotations) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "service",
+ "annotations": annotations,
+ },
+ }
+ }
+}
+
+lbl(k, v) = out {
+ out = {"key": k, "allowedRegex": v}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..fd436f50b5f68a7da36c86e48b74b0a745ac4002
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/constraint.tmpl
@@ -0,0 +1,49 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8srequiredlabels
+ annotations:
+ metadata.gatekeeper.sh/title: "Required Labels"
+ metadata.gatekeeper.sh/version: 1.1.2
+ description: >-
+ Requires resources to contain specified labels, with values matching
+ provided regular expressions.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sRequiredLabels
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ message:
+ type: string
+ labels:
+ type: array
+ description: >-
+ A list of labels and values the object must specify.
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ description: >-
+ The required label.
+ allowedRegex:
+ type: string
+ description: >-
+ If specified, a regular expression the annotation's value
+ must match. The value must contain at least one match for
+ the regular expression.
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/general/requiredlabels/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/general/requiredlabels/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..41ae481ddf30715b9eb56fa008383331f97de47e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src.cel
@@ -0,0 +1,5 @@
+validations:
+- expression: '(has(variables.anyObject.metadata) && variables.params.labels.all(entry, has(variables.anyObject.metadata.labels) && entry.key in variables.anyObject.metadata.labels))'
+ messageExpression: '"missing required label, requires all of: " + variables.params.labels.map(entry, entry.key).join(", ")'
+- expression: '(has(variables.anyObject.metadata) && variables.params.labels.all(entry, has(variables.anyObject.metadata.labels) && entry.key in variables.anyObject.metadata.labels && (!has(entry.allowedRegex) || string(variables.anyObject.metadata.labels[entry.key]).matches(string(entry.allowedRegex)))))'
+ message: "regex mismatch"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..df365ea88e8c7fc725c3cda296a1b4c982066214
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src.rego
@@ -0,0 +1,27 @@
+package k8srequiredlabels
+
+get_message(parameters, _default) := _default {
+ not parameters.message
+}
+
+get_message(parameters, _) := parameters.message
+
+violation[{"msg": msg, "details": {"missing_labels": missing}}] {
+ provided := {label | input.review.object.metadata.labels[label]}
+ required := {label | label := input.parameters.labels[_].key}
+ missing := required - provided
+ count(missing) > 0
+ def_msg := sprintf("you must provide labels: %v", [missing])
+ msg := get_message(input.parameters, def_msg)
+}
+
+violation[{"msg": msg}] {
+ value := input.review.object.metadata.labels[key]
+ expected := input.parameters.labels[_]
+ expected.key == key
+ # do not match if allowedRegex is not defined, or is an empty string
+ expected.allowedRegex != ""
+ not regex.match(expected.allowedRegex, value)
+ def_msg := sprintf("Label <%v: %v> does not satisfy allowed regex: %v", [key, value, expected.allowedRegex])
+ msg := get_message(input.parameters, def_msg)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..41b67a4a71b1454b09affc429a3af69fd8e9d72e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredlabels/src_test.rego
@@ -0,0 +1,91 @@
+package k8srequiredlabels
+
+test_input_no_required_labels {
+ inp := { "review": review({"some": "label"}), "parameters": {}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_required_labels {
+ inp := { "review": empty, "parameters": {}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_has_label {
+ inp := { "review": review({"some": "label"}), "parameters": {"labels": [lbl("some", "label")]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_has_extra_label {
+ inp := { "review": review({"some": "label", "new": "thing"}), "parameters": {"labels": [lbl("some", "label")]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_has_extra_label_req2 {
+ inp := { "review": review({"some": "label", "new": "thing"}), "parameters": {"labels": [lbl("some", "label"), lbl("new", "thing")]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_missing_label {
+ inp := { "review": review({"some_other": "label"}), "parameters": {"labels": [lbl("some", "label")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_wrong_value {
+ inp := { "review": review({"some": "label2"}), "parameters": {"labels": [lbl("some", "label$")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_one_missing {
+ inp := { "review": review({"some": "label"}), "parameters": {"labels": [lbl("some", "label"), lbl("other", "label")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_wrong_empty {
+ inp := { "review": empty, "parameters": {"labels": [lbl("some", "label$")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_two_missing {
+ inp := { "review": empty, "parameters": {"labels": [lbl("some", "label"), lbl("other", "label")]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_two_wrong {
+ inp := { "review": review({"some": "lbe", "other": "lbe"}), "parameters": {"labels": [lbl("some", "label"), lbl("other", "label")]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_two_allowed {
+ inp := { "review": review({"some": "gray", "other": "grey"}), "parameters": {"labels": [lbl("some", "gr[ae]y"), lbl("other", "gr[ae]y")]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_message {
+ inp := { "review": review({"some": "label2"}), "parameters": {"message": "WRONG_VALUE", "labels": [lbl("some", "label$")]}}
+ results := violation with input as inp
+ results[_].msg == "WRONG_VALUE"
+}
+
+empty = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ }
+
+}
+
+review(labels) = output {
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ "labels": labels,
+ },
+ }
+ }
+}
+
+lbl(k, v) = out {
+ out = {"key": k, "allowedRegex": v}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..7ebfbb77a772d71841c76372e4236c53c543863d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/constraint.tmpl
@@ -0,0 +1,34 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8srequiredprobes
+ annotations:
+ metadata.gatekeeper.sh/title: "Required Probes"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: Requires Pods to have readiness and/or liveness probes.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sRequiredProbes
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ probes:
+ description: "A list of probes that are required (ex: `readinessProbe`)"
+ type: array
+ items:
+ type: string
+ probeTypes:
+ description: "The probe must define a field listed in `probeType` in order to satisfy the constraint (ex. `tcpSocket` satisfies `['tcpSocket', 'exec']`)"
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/requiredprobes/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/general/requiredprobes/lib_exclude_update.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..b94ca6f2c6fe0799f1e66ce04c6450000e71f63e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/src.rego
@@ -0,0 +1,35 @@
+package k8srequiredprobes
+
+import data.lib.exclude_update.is_update
+
+probe_type_set = probe_types {
+ probe_types := {type | type := input.parameters.probeTypes[_]}
+}
+
+violation[{"msg": msg}] {
+ # Probe fields are immutable.
+ not is_update(input.review)
+
+ container := input.review.object.spec.containers[_]
+ probe := input.parameters.probes[_]
+ probe_is_missing(container, probe)
+ msg := get_violation_message(container, input.review, probe)
+}
+
+probe_is_missing(ctr, probe) = true {
+ not ctr[probe]
+}
+
+probe_is_missing(ctr, probe) = true {
+ probe_field_empty(ctr, probe)
+}
+
+probe_field_empty(ctr, probe) = true {
+ probe_fields := {field | ctr[probe][field]}
+ diff_fields := probe_type_set - probe_fields
+ count(diff_fields) == count(probe_type_set)
+}
+
+get_violation_message(container, review, probe) = msg {
+ msg := sprintf("Container <%v> in your <%v> <%v> has no <%v>", [container.name, review.kind.kind, review.object.metadata.name, probe])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..e888e35006666cd47f8de90902a5006ec31b51d0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/requiredprobes/src_test.rego
@@ -0,0 +1,322 @@
+package k8srequiredprobes
+
+test_one_ctr_no_violations {
+ inp := {"review": review([{"name": "my-container","image": "my-image:latest","readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_one_ctr_readiness_violation {
+ inp := {"review": review([{"name": "my-container","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_one_ctr_liveness_violation {
+ inp := {"review": review([{"name": "my-container","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_one_ctr_all_violations {
+ inp := {"review": review([{"name": "my-container","image": "my-image:latest"}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_no_violations {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest","readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest","readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_two_ctrs_all_violations_in_both {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest"},
+ {"name": "my-container2","image": "my-image:latest"}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 4
+}
+
+test_two_ctrs_all_violations_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest"},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_all_violations_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest"}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_readiness_violation_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest","readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_two_ctrs_readiness_violation_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}},
+ {"name": "my-container2","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_two_ctrs_readiness_violation_in_both {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_liveness_violation_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_two_ctrs_liveness_violation_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_two_ctrs_liveness_violation_in_both {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_readiness_in_one_liveness_in_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest","readinessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_liveness_in_one_readiness_in_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_readiness_violation_in_ctr_one_all_violations_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest"}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_two_ctrs_liveness_violation_in_ctr_one_all_violations_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest"}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_two_ctrs_readiness_violation_in_ctr_two_all_violations_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest"},
+ {"name": "my-container2","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_two_ctrs_liveness_violation_in_ctr_two_all_violations_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest"},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_one_ctr_empty_readiness_violation {
+ inp := {"review": review([{"name": "my-container","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_one_ctr_empty_liveness_violation {
+ inp := {"review": review([{"name": "my-container","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_one_ctr_empty_probes_violations {
+ inp := {"review": review([{"name": "my-container","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_empty_probes_violation_in_both {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 4
+}
+
+test_two_ctrs_empty_probes_violation_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_empty_probes_violation_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_empty_readiness_violation_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}, "readinessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest","readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_two_ctrs_empty_readiness_violation_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_two_ctrs_empty_readiness_violation_in_both {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_empty_liveness_violation_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_two_ctrs_empty_liveness_violation_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {"tcpSocket": {"port":8080}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_two_ctrs_empty_liveness_violation_in_both {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_empty_readiness_in_ctr_one_empty_liveness_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe":{}, "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":8080}}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_empty_liveness_in_one_empty_readiness_in_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {"tcpSocket": {"port":8080}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_two_ctrs_empty_readiness_in_ctr_one_both_empty_probes_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {"tcpSocket": {"port":80}}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_two_ctrs_empty_liveness_in_ctr_one_both_empty_probes_in_ctr_two {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_two_ctrs_empty_readiness_in_ctr_two_both_empty_probes_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {"tcpSocket": {"port":80}}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_two_ctrs_empty_liveness_in_ctr_two_both_empty_probes_in_ctr_one {
+ inp := {"review": review([{"name": "my-container1","image": "my-image:latest", "readinessProbe": {}, "livenessProbe": {}},
+ {"name": "my-container2","image": "my-image:latest", "readinessProbe": {"tcpSocket": {"port":80}}, "livenessProbe": {}}]),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_update {
+ inp := {"review": object.union(review([{"name": "my-container","image": "my-image:latest", "livenessProbe": {"tcpSocket": {"port":80}}}]), {"operation": "UPDATE"}),
+ "parameters": parameters}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+review(containers) := {
+ "kind": {
+ "kind": "Pod"
+ },
+ "object": {
+ "metadata": {
+ "name": "some-name"
+ },
+ "spec": {
+ "containers": containers
+ }
+ }
+}
+
+parameters = {"probes": ["readinessProbe", "livenessProbe"], "probeTypes": ["tcpSocket", "httpGet", "exec"]}
+kinds = ["Pod"]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..b192cc8f4c62eab1044ec522e0ecd830db54d42d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/constraint.tmpl
@@ -0,0 +1,42 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sstorageclass
+ annotations:
+ metadata.gatekeeper.sh/title: "Storage Class"
+ metadata.gatekeeper.sh/version: 1.1.2
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups":["storage.k8s.io"],
+ "versions": ["v1"],
+ "kinds": ["StorageClass"]
+ }
+ ]
+ ]"
+ description: >-
+ Requires storage classes to be specified when used. Only Gatekeeper 3.9+ and non-ephemeral containers are supported.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sStorageClass
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires storage classes to be specified when used.
+ properties:
+ includeStorageClassesInMessage:
+ type: boolean
+ default: true
+ allowedStorageClasses:
+ type: array
+ description: "An optional allow-list of storage classes. If specified, any storage class not in the `allowedStorageClasses` parameter is disallowed."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/storageclass/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..383bedc744fc3a866a02f186224fcaad39e53b24
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/src.rego
@@ -0,0 +1,112 @@
+package k8sstorageclass
+
+is_pvc(obj) {
+ obj.apiVersion == "v1"
+ obj.kind == "PersistentVolumeClaim"
+}
+
+is_statefulset(obj) {
+ obj.apiVersion == "apps/v1"
+ obj.kind == "StatefulSet"
+}
+
+violation[{"msg": msg}] {
+ not data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"]
+ msg := sprintf("StorageClasses not synced. Gatekeeper may be misconfigured. Please have a cluster-admin consult the documentation.", [])
+}
+
+storageclass_allowed(name) {
+ data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][name]
+ # support both direct use of * and as the default value
+ object.get(input.parameters, "allowedStorageClasses", ["*"])[_] == "*"
+}
+
+storageclass_allowed(name) {
+ data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][name]
+ input.parameters.allowedStorageClasses[_] == name
+}
+
+violation[{"msg": pvc_storageclass_badname_msg}] {
+ is_pvc(input.review.object)
+ not storageclass_allowed(input.review.object.spec.storageClassName)
+}
+pvc_storageclass_badname_msg := sprintf("pvc did not specify a valid storage class name <%v>. Must be one of [%v]", args) {
+ input.parameters.includeStorageClassesInMessage
+ object.get(input.parameters, "allowedStorageClasses", null) == null
+ args := [
+ input.review.object.spec.storageClassName,
+ concat(", ", [n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]])
+ ]
+} else := sprintf("pvc did not specify an allowed and valid storage class name <%v>. Must be one of [%v]", args) {
+ input.parameters.includeStorageClassesInMessage
+ object.get(input.parameters, "allowedStorageClasses", null) != null
+ sc := {n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]} & {x | x = object.get(input.parameters, "allowedStorageClasses", [])[_]}
+ args := [
+ input.review.object.spec.storageClassName,
+ concat(", ", sc)
+ ]
+} else := sprintf(
+ "pvc did not specify a valid storage class name <%v>.",
+ [input.review.object.spec.storageClassName]
+)
+
+violation[{"msg": pvc_storageclass_noname_msg}] {
+ is_pvc(input.review.object)
+ not input.review.object.spec.storageClassName
+}
+pvc_storageclass_noname_msg := sprintf("pvc did not specify a storage class name. Must be one of [%v]", args) {
+ input.parameters.includeStorageClassesInMessage
+ args := [
+ concat(", ", [n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]])
+ ]
+} else := sprintf(
+ "pvc did not specify a storage class name.",
+ []
+)
+
+violation[{"msg": statefulset_vct_badname_msg(vct)}] {
+ is_statefulset(input.review.object)
+ vct := input.review.object.spec.volumeClaimTemplates[_]
+ not storageclass_allowed(vct.spec.storageClassName)
+}
+statefulset_vct_badname_msg(vct) := msg {
+ input.parameters.includeStorageClassesInMessage
+ object.get(input.parameters, "allowedStorageClasses", null) == null
+ msg := sprintf(
+ "statefulset did not specify a valid storage class name <%v>. Must be one of [%v]", [
+ vct.spec.storageClassName,
+ concat(", ", [n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]])
+ ])
+}
+statefulset_vct_badname_msg(vct) := msg {
+ input.parameters.includeStorageClassesInMessage
+ object.get(input.parameters, "allowedStorageClasses", null) != null
+ sc := {n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]} & {x | x = object.get(input.parameters, "allowedStorageClasses", [])[_]}
+ msg := sprintf(
+ "statefulset did not specify an allowed and valid storage class name <%v>. Must be one of [%v]", [
+ vct.spec.storageClassName,
+ concat(", ", sc)
+ ])
+}
+statefulset_vct_badname_msg(vct) := msg {
+ not input.parameters.includeStorageClassesInMessage
+ msg := sprintf(
+ "statefulset did not specify a valid storage class name <%v>.", [
+ vct.spec.storageClassName
+ ])
+}
+
+violation[{"msg": statefulset_vct_noname_msg}] {
+ is_statefulset(input.review.object)
+ vct := input.review.object.spec.volumeClaimTemplates[_]
+ not vct.spec.storageClassName
+}
+statefulset_vct_noname_msg := sprintf("statefulset did not specify a storage class name. Must be one of [%v]", args) {
+ input.parameters.includeStorageClassesInMessage
+ args := [
+ concat(", ", [n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]])
+ ]
+} else := sprintf(
+ "statefulset did not specify a storage class name.",
+ []
+)
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..4064c61d3345c9005a245d2c7df0d304c24a41bf
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/storageclass/src_test.rego
@@ -0,0 +1,205 @@
+package k8sstorageclass
+
+test_input_denied_no_datasync {
+ inp := { "review": input_review_pvc_name("fast"), "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv_nosync
+ results[result]
+ contains(result.msg, "misconfigured")
+}
+test_input_allowed_pvc_fast {
+ inp := { "review": input_review_pvc_name("fast"), "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_input_allowed_pvc_slow {
+ inp := { "review": input_review_pvc_name("slow"), "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_input_denied_pvc_bad_storageclassname {
+ inp := { "review": input_review_pvc_name("other"), "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_input_denied_pvc_bad_storageclassname_excludestorageclassesinmessage {
+ inp := { "review": input_review_pvc_name("other"), "parameters": { "includeStorageClassesInMessage": false } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_input_denied_pvc_storageclassname_missing {
+ inp := { "review": input_review_pvc_storageclassname_missing, "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_input_allowed_pvc_sc {
+ inp := { "review": input_review_pvc_name("slow"), "parameters": { "includeStorageClassesInMessage": true, "allowedStorageClasses": ["slow"] } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_input_denied_pvc_sc {
+ inp := { "review": input_review_pvc_name("slow"), "parameters": { "includeStorageClassesInMessage": true, "allowedStorageClasses": ["fast"] } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_input_allowed_pvc_mixed_sc {
+ inp := { "review": input_review_pvc_name("slow"), "parameters": { "includeStorageClassesInMessage": true, "allowedStorageClasses": ["fast", "slow"] } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_input_denied_pvc_multiple_sc {
+ inp := { "review": input_review_pvc_name("slow"), "parameters": { "includeStorageClassesInMessage": true, "allowedStorageClasses": ["other", "fast"] } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_input_allowed_statefulset_fast {
+ inp := { "review": input_review_statefulset_name("fast"), "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_input_allowed_statefulset_slow {
+ inp := { "review": input_review_statefulset_name("slow"), "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_input_denied_statefulset_bad_storageclassname {
+ inp := { "review": input_review_statefulset_name("other"), "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_input_denied_statefulset_storageclassname_missing {
+ inp := { "review": input_review_statefulset_storageclassname_missing, "parameters": { "includeStorageClassesInMessage": true } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_input_allowed_statefulset_sc {
+ inp := { "review": input_review_statefulset_name("slow"), "parameters": { "includeStorageClassesInMessage": true, "allowedStorageClasses": ["slow"] } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_input_denied_statefulset_sc {
+ inp := { "review": input_review_statefulset_name("slow"), "parameters": { "includeStorageClassesInMessage": true, "allowedStorageClasses": ["fast"] } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_input_allowed_statefulset_mixed_sc {
+ inp := { "review": input_review_statefulset_name("slow"), "parameters": { "includeStorageClassesInMessage": true, "allowedStorageClasses": ["fast", "slow"] } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_input_denied_statefulset_multiple_sc {
+ inp := { "review": input_review_statefulset_name("slow"), "parameters": { "includeStorageClassesInMessage": true, "allowedStorageClasses": ["other","fast"] } }
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+
+input_review_pvc_name(name) = output {
+ output = {
+ "object": {
+ "apiVersion": "v1",
+ "kind": "PersistentVolumeClaim",
+ "metadata": {
+ "name": "foo"
+ },
+ "spec": {
+ "accessModes": ["ReadWriteOnce"],
+ "volumeMode": "Filesystem",
+ "resources": {
+ "requests": {
+ "storage": "8Gi"
+ }
+ },
+ "storageClassName": name
+ }
+ }
+ }
+}
+
+input_review_pvc_storageclassname_missing = {
+ "object": {
+ "apiVersion": "v1",
+ "kind": "PersistentVolumeClaim",
+ "metadata": {
+ "name": "foo"
+ },
+ "spec": {
+ "accessModes": ["ReadWriteOnce"],
+ "volumeMode": "Filesystem",
+ "resources": {
+ "requests": {
+ "storage": "8Gi"
+ }
+ },
+ }
+ }
+}
+
+input_review_statefulset_name(name) = output {
+ output = {
+ "object": {
+ "apiVersion": "apps/v1",
+ "kind": "StatefulSet",
+ "metadata": {
+ "name": "foo"
+ },
+ "spec": {
+ "volumeClaimTemplates": [{
+ "metadata": {"name": "bar"},
+ "spec": {
+ "accessModes": ["ReadWriteOnce"],
+ "volumeMode": "Filesystem",
+ "resources": {
+ "requests": {
+ "storage": "8Gi"
+ }
+ },
+ "storageClassName": name
+ }
+ }]
+ }
+ }
+ }
+}
+
+input_review_statefulset_storageclassname_missing = {
+ "object": {
+ "apiVersion": "apps/v1",
+ "kind": "StatefulSet",
+ "metadata": {
+ "name": "foo"
+ },
+ "spec": {
+ "volumeClaimTemplates": [{
+ "metadata": {"name": "bar"},
+ "spec": {
+ "accessModes": ["ReadWriteOnce"],
+ "volumeMode": "Filesystem",
+ "resources": {
+ "requests": {
+ "storage": "8Gi"
+ }
+ },
+ }
+ }]
+ }
+ }
+}
+
+inv = {
+ "cluster": {
+ "storage.k8s.io/v1": {
+ "StorageClass": {
+ "fast": {
+ "somestuff": 1
+ },
+ "slow": {
+ "somestuff": 2
+ },
+ }
+ }
+ }
+}
+
+inv_nosync = {
+ "cluster": {
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..e8fb572dee846f5f700cac7eda14d99528797ad8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/constraint.tmpl
@@ -0,0 +1,36 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8suniqueingresshost
+ annotations:
+ metadata.gatekeeper.sh/title: "Unique Ingress Host"
+ metadata.gatekeeper.sh/version: 1.0.4
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups": ["extensions"],
+ "versions": ["v1beta1"],
+ "kinds": ["Ingress"]
+ },
+ {
+ "groups": ["networking.k8s.io"],
+ "versions": ["v1beta1", "v1"],
+ "kinds": ["Ingress"]
+ }
+ ]
+ ]"
+ description: >-
+ Requires all Ingress rule hosts to be unique.
+
+ Does not handle hostname wildcards:
+ https://kubernetes.io/docs/concepts/services-networking/ingress/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sUniqueIngressHost
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/uniqueingresshost/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..24bb68d13c95d4866a5dde00ce29abb88ddbbbb3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/src.rego
@@ -0,0 +1,17 @@
+package k8suniqueingresshost
+
+identical(obj, review) {
+ obj.metadata.namespace == review.object.metadata.namespace
+ obj.metadata.name == review.object.metadata.name
+}
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "Ingress"
+ regex.match("^(extensions|networking.k8s.io)$", input.review.kind.group)
+ host := input.review.object.spec.rules[_].host
+ other := data.inventory.namespace[_][otherapiversion]["Ingress"][name]
+ regex.match("^(extensions|networking.k8s.io)/.+$", otherapiversion)
+ other.spec.rules[_].host == host
+ not identical(other, input.review)
+ msg := sprintf("ingress host conflicts with an existing ingress <%v>", [host])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..1368c41919191b3f463f6cc3ddffb38b63bb959a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueingresshost/src_test.rego
@@ -0,0 +1,174 @@
+package k8suniqueingresshost
+
+test_no_data {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules1, "extensions/v1beta1"), "extensions")}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_identical {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules1, "extensions/v1beta1"), "extensions")}
+ inv := inventory_data([ingress("my-ingress", "prod", my_rules1, "extensions/v1beta1")])
+ trace(sprintf("%v", [inv]))
+
+ results := violation with input as inp with data.inventory as inv
+ trace(sprintf("%v", [results]))
+
+ count(results) == 0
+}
+test_collision {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules1, "extensions/v1beta1"), "extensions")}
+ inv := inventory_data([ingress("my-ingress", "prod2", my_rules1, "extensions/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_collision_with_multiple {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules3, "extensions/v1beta1"), "extensions")}
+ inv := inventory_data([ingress("my-ingress", "prod2", my_rules1, "extensions/v1beta1"), ingress("my-ingress1", "prod2", my_rules2, "extensions/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 2
+}
+test_no_collision {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules1, "extensions/v1beta1"), "extensions")}
+ inv := inventory_data([ingress("my-ingress", "prod2", my_rules2, "extensions/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_no_collision_with_multiple {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules4, "extensions/v1beta1"), "extensions")}
+ inv := inventory_data([ingress("my-ingress", "prod2", my_rules1, "extensions/v1beta1"), ingress("my-ingress", "prod3", my_rules2, "extensions/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_no_collision_with_multiple_apis {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules4, "networking.k8s.io/v1beta1"), "networking.k8s.io")}
+ inv := inventory_data2([ingress("my-ingress", "prod2", my_rules1, "networking.k8s.io/v1beta1"), ingress("my-ingress", "prod3", my_rules2, "networking.k8s.io/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_collision_with_multiple_apis {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules3, "networking.k8s.io/v1beta1"), "networking.k8s.io")}
+ inv := inventory_data2([ingress("my-ingress", "prod2", my_rules1, "networking.k8s.io/v1beta1"), ingress("my-ingress", "prod3", my_rules2, "networking.k8s.io/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 2
+}
+test_no_collision_with_multiple_bad_review_apis {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules1, "app/v1beta1"), "app")}
+ inv := inventory_data([ingress("my-ingress", "prod2", my_rules1, "extensions/v1beta1"), ingress("my-ingress", "prod3", my_rules2, "extensions/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_no_collision_with_multiple_bad_review_apis2 {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules1, "test.extensions/v1beta1"), "test.extensions")}
+ inv := inventory_data([ingress("my-ingress", "prod2", my_rules1, "extensions/v1beta1"), ingress("my-ingress", "prod3", my_rules2, "extensions/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_collision_with_multiple_apis_mixed {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules1, "networking.k8s.io/v1beta1"), "networking.k8s.io")}
+ inv := inventory_data([ingress("my-ingress", "prod2", my_rules1, "extensions/v1beta1"), ingress("my-ingress", "prod3", my_rules2, "extensions/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_no_collision_with_multiple_apis_slash {
+ inp := {"review": review(ingress("my-ingress", "prod", my_rules1, "networking.k8s.io/v1beta1"), "networking.k8s.io")}
+ inv := inventory_data1([ingress("my-ingress", "prod2", my_rules1, "extensions.something.io/v1beta1"), ingress("my-ingress", "prod3", my_rules2, "extensions.something.io/v1beta1")])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+
+
+
+review(ing, group) = output {
+ output = {
+ "kind": {
+ "kind": "Ingress",
+ "version": "v1beta1",
+ "group": group,
+ },
+ "namespace": ing.metadata.namespace,
+ "name": ing.metadata.name,
+ "object": ing,
+ }
+}
+
+my_rule(host) = {
+ "host": host,
+ "http": {
+ "paths": [{"backend": {"serviceName": "nginx", "servicePort": 80}}]
+ },
+}
+
+my_rules1 = [
+ my_rule("a.abc.com")
+]
+my_rules2 = [
+ my_rule("a1.abc.com")
+]
+
+my_rules3 = [
+ my_rule("a.abc.com"),
+ my_rule("a1.abc.com")
+]
+
+my_rules4 = [
+ my_rule("a2.abc.com"),
+ my_rule("a3.abc.com")
+]
+
+
+ingress(name, ns, rules, apiversion) = out {
+ out = {
+ "kind": "Ingress",
+ "apiVersion": apiversion,
+ "metadata": {
+ "name": name,
+ "namespace": ns,
+ },
+ "spec": {
+ "rules": rules,
+ },
+ }
+}
+
+inventory_data(ingresses) = out {
+ namespaces := {ns | ns = ingresses[_].metadata.namespace}
+ out = {
+ "namespace": {
+ ns: {
+ "extensions/v1beta1": {
+ "Ingress": flatten_by_name(ingresses, ns)
+ }
+ } | ns := namespaces[_]
+ }
+ }
+}
+
+inventory_data1(ingresses) = out {
+ namespaces := {ns | ns = ingresses[_].metadata.namespace}
+ out = {
+ "namespace": {
+ ns: {
+ "extensions.something.io/v1beta1": {
+ "Ingress": flatten_by_name(ingresses, ns)
+ }
+ } | ns := namespaces[_]
+ }
+ }
+}
+
+inventory_data2(ingresses) = out {
+ namespaces := {ns | ns = ingresses[_].metadata.namespace}
+ out = {
+ "namespace": {
+ ns: {
+ "networking.k8s.io/v1beta1": {
+ "Ingress": flatten_by_name(ingresses, ns)
+ }
+ } | ns := namespaces[_]
+ }
+ }
+}
+
+flatten_by_name(ingresses, ns) = out {
+ out = {o.metadata.name: o | o = ingresses[_]; o.metadata.namespace = ns}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..e4bb1470f5b6b7202b7c8264899ca462e11783d9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/constraint.tmpl
@@ -0,0 +1,33 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8suniqueserviceselector
+ annotations:
+ metadata.gatekeeper.sh/title: "Unique Service Selector"
+ metadata.gatekeeper.sh/version: 1.0.2
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups":[""],
+ "versions": ["v1"],
+ "kinds": ["Service"]
+ }
+ ]
+ ]"
+ description: >-
+ Requires Services to have unique selectors within a namespace.
+ Selectors are considered the same if they have identical keys and values.
+ Selectors may share a key/value pair so long as there is at least one
+ distinct key/value pair between them.
+
+ https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sUniqueServiceSelector
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/uniqueserviceselector/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..46135d8dd6d21516169bddb7bd2aee53c22b1934
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/src.rego
@@ -0,0 +1,37 @@
+package k8suniqueserviceselector
+
+make_apiversion(kind) = apiVersion {
+ g := kind.group
+ v := kind.version
+ g != ""
+ apiVersion = sprintf("%v/%v", [g, v])
+}
+
+make_apiversion(kind) = apiVersion {
+ kind.group == ""
+ apiVersion = kind.version
+}
+
+identical(obj, review) {
+ obj.metadata.namespace == review.namespace
+ obj.metadata.name == review.name
+ obj.kind == review.kind.kind
+ obj.apiVersion == make_apiversion(review.kind)
+}
+
+flatten_selector(obj) = flattened {
+ selectors := [s | s = concat(":", [key, val]); val = obj.spec.selector[key]]
+ flattened := concat(",", sort(selectors))
+}
+
+violation[{"msg": msg}] {
+ input.review.kind.kind == "Service"
+ input.review.kind.version == "v1"
+ input.review.kind.group == ""
+ input_selector := flatten_selector(input.review.object)
+ other := data.inventory.namespace[namespace][_]["Service"][name]
+ not identical(other, input.review)
+ other_selector := flatten_selector(other)
+ input_selector == other_selector
+ msg := sprintf("same selector as service <%v> in namespace <%v>", [name, namespace])
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..84ac349fbfd0776b480348411ef36803f13eeda7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/uniqueserviceselector/src_test.rego
@@ -0,0 +1,160 @@
+package k8suniqueserviceselector
+
+test_no_data {
+ inp := {"review": review(service("my-service", "prod", {"a": "b"}))}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_identical {
+ inp := {"review": review(service("my-service", "prod", {"a": "b"}))}
+ inv := tmp_data([service("my-service", "prod", {"a": "b"})])
+ trace(sprintf("%v", [inv]))
+
+ results := violation with input as inp with data.inventory as inv
+ trace(sprintf("%v", [results]))
+
+ count(results) == 0
+}
+test_collision {
+ inp := {"review": review(service("my-service", "prod", {"a": "b"}))}
+ inv := tmp_data([service("my-service", "prod2", {"a": "b"})])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+test_collision_with_multiple {
+ inp := {"review": review(service("my-service", "prod", {"a": "b"}))}
+ inv := tmp_data([service("my-service", "prod2", {"a": "b"}), service("my-service", "prod3", {"a": "b"})])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 2
+}
+test_no_collision {
+ inp := {"review": review(service("my-service", "prod", {"a": "b"}))}
+ inv := tmp_data([service("my-service", "prod2", {"a": "c"})])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_no_collision_with_multiple {
+ inp := {"review": review(service("my-service", "prod", {"a": "b"}))}
+ inv := tmp_data([service("my-service", "prod2", {"a": "b2"}), service("my-service", "prod3", {"a": "b2"})])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+test_compound_selector_collision {
+ inp := {"review": review(service("my-service", "prod", {"r": "d", "a": "b"}))}
+ inv := tmp_data([service("my-service", "prod2", {"a": "b", "r": "d"})])
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 1
+}
+
+test_no_service_selector {
+ inp := {"review": review(service_without_selector("kubernetes", "default"))}
+ inv := data_networkpolicy("default")
+ results := violation with input as inp with data.inventory as inv
+ count(results) == 0
+}
+
+
+review(srv) = output {
+ output = {
+ "kind": {
+ "kind": "Service",
+ "version": "v1",
+ "group": "",
+ },
+ "namespace": srv.metadata.namespace,
+ "name": srv.metadata.name,
+ "object": srv,
+ }
+}
+
+service_without_selector(name, ns) = out {
+ out = {
+ "kind": "Service",
+ "apiVersion": "v1",
+ "metadata": {
+ "name": name,
+ "namespace": ns,
+ },
+ "spec": {
+ "clusterIP": "10.43.0.1",
+ "clusterIPs": [
+ "10.43.0.1"
+ ],
+ "ports": [
+ {
+ "name": "https",
+ "port": 443,
+ "protocol": "TCP",
+ "targetPort": 6443
+ }
+ ],
+ "sessionAffinity": "None",
+ "type": "ClusterIP"
+ }
+ }
+}
+
+service(name, ns, selector) = out {
+ out = {
+ "kind": "Service",
+ "apiVersion": "v1",
+ "metadata": {
+ "name": name,
+ "namespace": ns,
+ },
+ "spec": {"selector": selector}
+ }
+}
+
+data_networkpolicy(ns) = out {
+ out = {
+ "namespace": {
+ ns: {
+ "v1": {
+ "NetworkPolicy": {
+ "default-network-policy": {
+ "apiVersion": "networking.k8s.io/v1",
+ "kind": "NetworkPolicy",
+ "metadata": {
+ "name": "default-network-policy",
+ "namespace": ns
+ },
+ "spec": {
+ "ingress": [
+ {
+ "from": [
+ {
+ "podSelector": {}
+ }
+ ]
+ }
+ ],
+ "podSelector": {},
+ "policyTypes": [
+ "Ingress"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+tmp_data(services) = out {
+ namespaces := {ns | ns = services[_].metadata.namespace}
+ out = {
+ "namespace": {
+ ns: {
+ "v1": {
+ "Service": flatten_by_name(services, ns)
+ }
+ } | ns := namespaces[_]
+ }
+ }
+}
+
+flatten_by_name(services, ns) = out {
+ out = {o.metadata.name: o | o = services[_]; o.metadata.namespace = ns}
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..cf943e5be9116128719d6130ce8d7d217587583e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/constraint.tmpl
@@ -0,0 +1,45 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: verifydeprecatedapi
+ annotations:
+ metadata.gatekeeper.sh/title: "Verify deprecated APIs"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Verifies deprecated Kubernetes APIs to ensure all the API versions are up to date. This template does not apply to audit as audit looks at the resources which are already present in the cluster with non-deprecated API versions.
+spec:
+ crd:
+ spec:
+ names:
+ kind: VerifyDeprecatedAPI
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ kvs:
+ type: array
+ description: Deprecated api versions and corresponding kinds
+ items:
+ type: object
+ properties:
+ deprecatedAPI:
+ type: string
+ description: deprecated api
+ example: flowcontrol.apiserver.k8s.io/v1beta2
+ kinds:
+ type: array
+ items:
+ type: string
+ description: impacted list of kinds
+ example: '["FlowSchema", "PriorityLevelConfiguration"]'
+ targetAPI:
+ type: string
+ description: target api
+ example: flowcontrol.apiserver.k8s.io/v1beta3
+ k8sVersion:
+ type: number
+ description: kubernetes version
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/general/verifydeprecatedapi/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..e0aa2f8894041470a986101a3146034dd6d6b69b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/src.rego
@@ -0,0 +1,23 @@
+package verifydeprecatedapi
+
+violation[{"msg": msg}] {
+ kvs := input.parameters.kvs[_]
+ kvs.deprecatedAPI == input.review.object.apiVersion
+ k := kvs.kinds[_]
+ k == input.review.object.kind
+ msg := get_message(input.review.object.kind, input.review.object.apiVersion, input.parameters.k8sVersion, kvs.targetAPI)
+}
+
+get_message(kind, apiVersion, k8sVersion, targetAPI) = msg {
+ not match(targetAPI)
+ msg := sprintf("API %v for %v is deprecated in Kubernetes version %v, please use %v instead", [kind, apiVersion, k8sVersion, targetAPI])
+}
+
+get_message(kind, apiVersion, k8sVersion, targetAPI) = msg {
+ match(targetAPI)
+ msg := sprintf("API %v for %v is deprecated in Kubernetes version %v, please see Kubernetes API deprecation guide", [kind, apiVersion, k8sVersion])
+}
+
+match(api) {
+ api == "None"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..a8f6a27a50cdeb93c8dedec264820ed8736ed605
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/general/verifydeprecatedapi/src_test.rego
@@ -0,0 +1,43 @@
+package verifydeprecatedapi
+
+test_hpa_with_deprecated_api {
+ inp := {"review": hpa("autoscaling/v2beta2"), "parameters": {"kvs": [{"deprecatedAPI": "autoscaling/v2beta2", "kinds": ["HorizontalPodAutoscaler"], "targetAPI": "autoscaling/v2"}], "k8sVersion": 1.26}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_hpa_without_deprecated_api {
+ inp := {"review": hpa("autoscaling/v2"), "parameters": {"kvs": [{"deprecatedAPI": "autoscaling/v2beta2", "kinds": ["HorizontalPodAutoscaler"], "targetAPI": "autoscaling/v2"}], "k8sVersion": 1.26}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+hpa(api) = output {
+ output := {
+ "apiVersion": api,
+ "kind": "HorizontalPodAutoscaler",
+ "metadata": {
+ "name": "nginx-deployment",
+ "namespace": "default"
+ },
+ "spec": {
+ "maxReplicas": "10",
+ "metrics": [{
+ "resource": {
+ "name": "cpu",
+ "target": {
+ "averageUtilization": "80",
+ "type": "Utilization"
+ }
+ },
+ "type": "Resource"
+ }],
+ "minReplicas": "1",
+ "scaleTargetRef": {
+ "apiVersion": "apps/v1",
+ "kind": "Deployment",
+ "name": "nginx-deployment"
+ }
+ }
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..1982651cbd8a9d9ee95ea8cf0cdadc64e5f13c92
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/constraint.tmpl
@@ -0,0 +1,52 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspallowprivilegeescalationcontainer
+ annotations:
+ metadata.gatekeeper.sh/title: "Allow Privilege Escalation in Container"
+ metadata.gatekeeper.sh/version: 1.1.1
+ metadata.gatekeeper.sh/bundle: "pod-security-restricted"
+ description: >-
+ Controls restricting escalation to root privileges. Corresponds to the
+ `allowPrivilegeEscalation` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAllowPrivilegeEscalationContainer
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls restricting escalation to root privileges. Corresponds to the
+ `allowPrivilegeEscalation` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/allow-privilege-escalation/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/allow-privilege-escalation/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/allow-privilege-escalation/lib_exclude_update.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/allow-privilege-escalation/lib_exempt_container.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..f49fe66fc9b529726e01c7cd98d4db812ca6a399
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src.cel
@@ -0,0 +1,33 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+- name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) && (
+ !has(container.securityContext) ||
+ !has(container.securityContext.allowPrivilegeEscalation) ||
+ container.securityContext.allowPrivilegeEscalation != false
+ )
+ )
+validations:
+- expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badContainers) == 0'
+ messageExpression: '"Privilege escalation container is not allowed: " + variables.badContainers.map(c, c.image).join(", ")'
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..7c9d74bc18ee5accbb5dea73bde0679e4b2e0fb2
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src.rego
@@ -0,0 +1,34 @@
+package k8spspallowprivilegeescalationcontainer
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.allowPrivilegeEscalation field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ input_allow_privilege_escalation(c)
+ msg := sprintf("Privilege escalation container is not allowed: %v", [c.name])
+}
+
+input_allow_privilege_escalation(c) {
+ not has_field(c, "securityContext")
+}
+input_allow_privilege_escalation(c) {
+ not c.securityContext.allowPrivilegeEscalation == false
+}
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
+# has_field returns whether an object has a field
+has_field(object, field) = true {
+ object[field]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..8c1645675f7f0838ddb0096433842a23c0573d3d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/allow-privilege-escalation/src_test.rego
@@ -0,0 +1,160 @@
+package k8spspallowprivilegeescalationcontainer
+
+test_input_container_not_privilege_escalation_allowed {
+ inp := { "review": input_review}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_privilege_escalation_not_allowed {
+ inp := { "review": input_review_priv}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_one_container_with_exemption {
+ inp := { "review": input_review_priv, "parameters": {"exemptImages": ["one/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_many_not_privilege_escalation_allowed {
+ inp := { "review": input_review_many}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_container_many_mixed_privilege_escalation_not_allowed {
+ inp := { "review": input_review_many_mixed}
+ results := violation with input as inp
+ count(results) == 3
+}
+test_input_container_many_mixed_privilege_escalation_not_allowed_one_exempted {
+ inp := { "review": input_review_many_mixed, "parameters": {"exemptImages": ["one/*"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_container_many_mixed_privilege_escalation_not_allowed_all_exempted {
+ inp := { "review": input_review_many_mixed, "parameters": {"exemptImages": ["one/*", "two/*", "three/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_many_mixed_privilege_escalation_not_allowed_two {
+ inp := { "review": input_review_many_mixed_two}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_update {
+ inp := { "review": object.union(input_review_priv, {"operation": "UPDATE"})}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_priv = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_priv,
+ }
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one
+ }
+ }
+}
+
+input_review_many_mixed = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one_priv
+ }
+ }
+}
+
+input_review_many_mixed_two = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many_mixed,
+ "initContainers": input_containers_one_priv
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+ "securityContext": {
+ "allowPrivilegeEscalation": false
+ }
+}]
+
+input_containers_one_priv = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+ "securityContext": {
+ "allowPrivilegeEscalation": true
+ }
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+ "securityContext": {
+ "allowPrivilegeEscalation": false
+ }
+},
+{
+ "name": "nginx1",
+ "image": "two/nginx"
+},
+{
+ "name": "nginx2",
+ "image": "three/nginx",
+ "securityContext": {
+ "runAsUser": "1000"
+ }
+
+}]
+
+input_containers_many_mixed = [
+{
+ "name": "nginx",
+ "image": "one/nginx",
+ "securityContext": {
+ "allowPrivilegeEscalation": false
+ }
+},
+{
+ "name": "nginx1",
+ "image": "two/nginx",
+ "securityContext": {
+ "allowPrivilegeEscalation": true
+ }
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..9baecb5497d620d000efe7f7c1ca4bf0e6ff3ef3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/constraint.tmpl
@@ -0,0 +1,57 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspapparmor
+ annotations:
+ metadata.gatekeeper.sh/title: "App Armor"
+ metadata.gatekeeper.sh/version: 1.1.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Configures an allow-list of AppArmor profiles for use by containers.
+ This corresponds to specific annotations applied to a PodSecurityPolicy.
+ For information on AppArmor, see
+ https://kubernetes.io/docs/tutorials/clusters/apparmor/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAppArmor
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Configures an allow-list of AppArmor profiles for use by containers.
+ This corresponds to specific annotations applied to a PodSecurityPolicy.
+ For information on AppArmor, see
+ https://kubernetes.io/docs/tutorials/clusters/apparmor/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedProfiles:
+ description: "An array of AppArmor profiles. Examples: `runtime/default`, `unconfined`."
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/apparmor/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/apparmor/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/apparmor/lib_exempt_container.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..25539abcada7dc7896211aa2fdcfedb197e03751
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src.cel
@@ -0,0 +1,83 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: podAppArmor
+ expression: 'has(variables.anyObject.spec.securityContext) && has(variables.anyObject.spec.securityContext.appArmorProfile) ? variables.anyObject.spec.securityContext.appArmorProfile : null'
+- name: canonicalPodAppArmor
+ expression: |
+ variables.podAppArmor == null ? "runtime/default" :
+ variables.podAppArmor.type == "RuntimeDefault" ? "runtime/default" :
+ variables.podAppArmor.type == "Unconfined" ? "unconfined" :
+ variables.podAppArmor.type == "Localhost" ? "localhost/" + variables.podAppArmor.localhostProfile : ""
+# break this mapping up by container type (regular/init/ephemeral) to avoid problems with name collisions,
+# which may be a problem when running shift-left (no K8s API server to enforce uniqueness of container names)
+- name: appArmorByContainer
+ expression: |
+ variables.containers.map(container, [container.name,
+ has(container.securityContext) && has(container.securityContext.appArmorProfile) ?
+ (container.securityContext.appArmorProfile.type == "RuntimeDefault" ? "runtime/default" :
+ container.securityContext.appArmorProfile.type == "Unconfined" ? "unconfined" :
+ container.securityContext.appArmorProfile.type == "Localhost" ? "localhost/" + container.securityContext.appArmorProfile.localhostProfile : "") :
+ has(variables.anyObject.metadata.annotations) && ("container.apparmor.security.beta.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations ?
+ variables.anyObject.metadata.annotations["container.apparmor.security.beta.kubernetes.io/" + container.name] :
+ variables.canonicalPodAppArmor
+ ])
+- name: appArmorByInitContainer
+ expression: |
+ variables.initContainers.map(container, [container.name,
+ has(container.securityContext) && has(container.securityContext.appArmorProfile) ?
+ (container.securityContext.appArmorProfile.type == "RuntimeDefault" ? "runtime/default" :
+ container.securityContext.appArmorProfile.type == "Unconfined" ? "unconfined" :
+ container.securityContext.appArmorProfile.type == "Localhost" ? "localhost/" + container.securityContext.appArmorProfile.localhostProfile : "") :
+ has(variables.anyObject.metadata.annotations) && ("container.apparmor.security.beta.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations ?
+ variables.anyObject.metadata.annotations["container.apparmor.security.beta.kubernetes.io/" + container.name] :
+ variables.canonicalPodAppArmor
+ ])
+- name: appArmorByEphemeralContainer
+ expression: |
+ variables.ephemeralContainers.map(container, [container.name,
+ has(container.securityContext) && has(container.securityContext.appArmorProfile) ?
+ (container.securityContext.appArmorProfile.type == "RuntimeDefault" ? "runtime/default" :
+ container.securityContext.appArmorProfile.type == "Unconfined" ? "unconfined" :
+ container.securityContext.appArmorProfile.type == "Localhost" ? "localhost/" + container.securityContext.appArmorProfile.localhostProfile : "") :
+ has(variables.anyObject.metadata.annotations) && ("container.apparmor.security.beta.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations ?
+ variables.anyObject.metadata.annotations["container.apparmor.security.beta.kubernetes.io/" + container.name] :
+ variables.canonicalPodAppArmor
+ ])
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+validations:
+- expression: |
+ variables.containers.all(container,
+ (container.image in variables.exemptImages) ||
+ variables.appArmorByContainer.exists(pair, pair[0] == container.name && pair[1] in variables.params.allowedProfiles)
+ )
+ messageExpression: '"AppArmor profile is not allowed. Allowed Profiles: " + variables.params.allowedProfiles.join(", ")'
+- expression: |
+ variables.initContainers.all(container,
+ (container.image in variables.exemptImages) ||
+ variables.appArmorByInitContainer.exists(pair, pair[0] == container.name && pair[1] in variables.params.allowedProfiles)
+ )
+ messageExpression: '"AppArmor profile is not allowed. Allowed Profiles: " + variables.params.allowedProfiles.join(", ")'
+- expression: |
+ variables.ephemeralContainers.all(container,
+ (container.image in variables.exemptImages) ||
+ variables.appArmorByEphemeralContainer.exists(pair, pair[0] == container.name && pair[1] in variables.params.allowedProfiles)
+ )
+ messageExpression: '"AppArmor profile is not allowed. Allowed Profiles: " + variables.params.allowedProfiles.join(", ")'
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..ef4e3fb76e21b3ca575f8bd157b1ca0756bbea22
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src.rego
@@ -0,0 +1,63 @@
+package k8spspapparmor
+
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ container := input_containers[_]
+ not is_exempt(container)
+ not input_apparmor_allowed(input.review.object, container)
+ msg := sprintf("AppArmor profile is not allowed, pod: %v, container: %v. Allowed profiles: %v", [input.review.object.metadata.name, container.name, input.parameters.allowedProfiles])
+}
+
+input_apparmor_allowed(pod, container) {
+ get_apparmor_profile(pod, container) == input.parameters.allowedProfiles[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
+
+get_apparmor_profile(_, container) = out {
+ profile := object.get(container, ["securityContext", "appArmorProfile"], null)
+ profile != null
+ out := canonicalize_apparmor_profile(profile)
+}
+
+get_apparmor_profile(pod, container) = out {
+ profile := object.get(container, ["securityContext", "appArmorProfile"], null)
+ profile == null
+ out := pod.metadata.annotations[sprintf("container.apparmor.security.beta.kubernetes.io/%v", [container.name])]
+}
+
+get_apparmor_profile(pod, container) = out {
+ profile := object.get(container, ["securityContext", "appArmorProfile"], null)
+ profile == null
+ not pod.metadata.annotations[sprintf("container.apparmor.security.beta.kubernetes.io/%v", [container.name])]
+ out := canonicalize_apparmor_profile(object.get(pod, ["spec", "securityContext", "appArmorProfile"], null))
+}
+
+canonicalize_apparmor_profile(profile) = out {
+ profile.type == "RuntimeDefault"
+ out := "runtime/default"
+}
+
+canonicalize_apparmor_profile(profile) = out {
+ profile.type == "Unconfined"
+ out := "unconfined"
+}
+
+canonicalize_apparmor_profile(profile) = out {
+ profile.type = "Localhost"
+ out := sprintf("localhost/%s", [profile.localhostProfile])
+}
+
+canonicalize_apparmor_profile(profile) = out {
+ profile == null
+ out := "runtime/default"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..70c18fad10b63f196c6a199a9aae95ec1db1943c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/apparmor/src_test.rego
@@ -0,0 +1,172 @@
+package k8spspapparmor
+
+test_input_apparmor_allowed_empty {
+ inp := { "review": input_review_container, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_apparmor_allowed_empty_but_exempted {
+ inp := { "review": input_review_container, "parameters": input_parameters_exempt_container}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_apparmor_not_allowed_no_annotation_empty {
+ inp := { "review": input_review_no_annotation, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_apparmor_not_allowed_no_annotation {
+ inp := { "review": input_review_no_annotation, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_apparmor_container_allowed_in_list {
+ inp := { "review": input_review_container, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_apparmor_container_not_allowed_not_in_list {
+ inp := { "review": input_review_container, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_apparmor_containers_allowed_in_list {
+ inp := { "review": input_review_containers, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_apparmor_containers_not_allowed_not_in_list {
+ inp := { "review": input_review_containers, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_apparmor_containers_allowed_in_list_mixed_no_annotation {
+ inp := { "review": input_review_containers_missing_annotation, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_apparmor_containers_not_allowed_not_in_list_mixed_no_annotation {
+ inp := { "review": input_review_containers_missing_annotation, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_apparmor_containers_not_allowed_not_in_list_mixed {
+ inp := { "review": input_review_containers_mixed, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+input_review_container = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ "annotations": {
+ "container.apparmor.security.beta.kubernetes.io/nginx": "runtime/default"
+ }
+ },
+ "spec": {
+ "containers": [{
+ "name": "nginx",
+ "image": "nginx"
+ }]
+ }
+ }
+}
+
+
+input_review_no_annotation = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": [{
+ "name": "nginx",
+ "image": "nginx"
+ }]
+ }
+ }
+}
+
+input_review_containers = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ "annotations": {
+ "container.apparmor.security.beta.kubernetes.io/nginx": "runtime/default",
+ "container.apparmor.security.beta.kubernetes.io/nginx2": "runtime/default"
+ }
+ },
+ "spec": {
+ "containers": two_containers
+ }
+ }
+}
+
+input_review_containers_missing_annotation = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ "annotations": {
+ "container.apparmor.security.beta.kubernetes.io/nginx": "runtime/default"
+ }
+ },
+ "spec": {
+ "containers": two_containers
+ }
+ }
+}
+
+input_review_containers_mixed = {
+ "object": {
+ "metadata": {
+ "name": "nginx",
+ "annotations": {
+ "container.apparmor.security.beta.kubernetes.io/nginx": "runtime/default",
+ "container.apparmor.security.beta.kubernetes.io/nginx2": "unconfined"
+ }
+ },
+ "spec": {
+ "containers": two_containers
+ }
+ }
+}
+
+two_containers = [{
+ "name": "nginx",
+ "image": "nginx"
+},{
+ "name": "nginx2",
+ "image": "nginx"
+}]
+
+input_parameters_empty = {
+ "allowedProfiles": []
+}
+
+input_parameters_exempt_container = {
+ "allowedProfiles": [],
+ "exemptImages": "nginx"
+}
+
+input_parameters_in_list = {
+ "allowedProfiles": [
+ "runtime/default"
+ ]
+}
+
+input_parameters_not_in_list = {
+ "allowedProfiles": [
+ "unconfined"
+ ]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..4127dd346a848fcbf7665c0e0ef73ef705535461
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/constraint.tmpl
@@ -0,0 +1,63 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspcapabilities
+ annotations:
+ metadata.gatekeeper.sh/title: "Capabilities"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls Linux capabilities on containers. Corresponds to the
+ `allowedCapabilities` and `requiredDropCapabilities` fields in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPCapabilities
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls Linux capabilities on containers. Corresponds to the
+ `allowedCapabilities` and `requiredDropCapabilities` fields in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedCapabilities:
+ type: array
+ description: "A list of Linux capabilities that can be added to a container."
+ items:
+ type: string
+ requiredDropCapabilities:
+ type: array
+ description: "A list of Linux capabilities that are required to be dropped from a container."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/capabilities/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/capabilities/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/capabilities/lib_exclude_update.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/capabilities/lib_exempt_container.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..1069ccafb35e82e99db3752e696523e3b5a4d894
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src.cel
@@ -0,0 +1,59 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+- name: allowedCapabilities
+ expression: 'has(variables.params.allowedCapabilities) ? variables.params.allowedCapabilities : []'
+- name: allCapabilitiesAllowed
+ expression: '"*" in variables.allowedCapabilities'
+- name: disallowedCapabilitiesByContainer
+ expression: |
+ variables.allContainers.map(container, !(container.image in variables.exemptImages) &&
+ !variables.allCapabilitiesAllowed && has(container.securityContext) && has(container.securityContext.capabilities) && has(container.securityContext.capabilities.add) &&
+ container.securityContext.capabilities.add.exists(capability, !(capability in variables.allowedCapabilities)),
+ [container.name, dyn(container.securityContext.capabilities.add.filter(capability, !(capability in variables.allowedCapabilities)).join(", "))]
+ )
+- name: requiredDropCapabilities
+ expression: 'has(variables.params.requiredDropCapabilities) ? variables.params.requiredDropCapabilities : []'
+- name: missingDropCapabilitiesByContainer
+ expression: |
+ variables.allContainers.map(container, !(container.image in variables.exemptImages) &&
+ size(variables.requiredDropCapabilities) > 0 && (
+ !has(container.securityContext) || !has(container.securityContext.capabilities) || !has(container.securityContext.capabilities.drop) || (
+ !(container.securityContext.capabilities.drop.exists(capability, capability.lowerAscii() == "all")) &&
+ variables.requiredDropCapabilities.exists(capability, !(capability in container.securityContext.capabilities.drop))
+ )
+ ),
+ [container.name,
+ !has(container.securityContext) ? variables.requiredDropCapabilities :
+ !has(container.securityContext.capabilities) ? variables.requiredDropCapabilities :
+ !has(container.securityContext.capabilities.drop) ? variables.requiredDropCapabilities :
+ variables.requiredDropCapabilities.filter(capability, !(capability in container.securityContext.capabilities.drop))
+ ]
+ )
+validations:
+- expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.disallowedCapabilitiesByContainer) == 0'
+ messageExpression: |
+ "containers have disallowed capabilities: " + variables.disallowedCapabilitiesByContainer.map(pair, "{container: " + pair[0] + ", capabilities: [" + pair[1] + "]}").join(", ")
+- expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.missingDropCapabilitiesByContainer) == 0'
+ messageExpression: |
+ "containers are not dropping all required capabilities: " + variables.missingDropCapabilitiesByContainer.map(pair, "{container: " + pair[0] + ", capabilities: [" + pair[1].join(", ") + "]}").join(", ")
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..b007c84005ba4d2d7dfc048649dd93be021db0d3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src.rego
@@ -0,0 +1,78 @@
+package capabilities
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg}] {
+ # spec.containers.securityContext.capabilities field is immutable.
+ not is_update(input.review)
+
+ container := input.review.object.spec.containers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+}
+
+violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.containers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+}
+
+violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.initContainers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("init container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+}
+
+violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.initContainers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("init container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+}
+
+violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("ephemeral container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+}
+
+violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("ephemeral container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+}
+
+has_disallowed_capabilities(container) {
+ allowed := {c | c := lower(input.parameters.allowedCapabilities[_])}
+ not allowed["*"]
+ capabilities := {c | c := lower(container.securityContext.capabilities.add[_])}
+
+ count(capabilities - allowed) > 0
+}
+
+missing_drop_capabilities(container) {
+ must_drop := {c | c := lower(input.parameters.requiredDropCapabilities[_])}
+ all := {"all"}
+ dropped := {c | c := lower(container.securityContext.capabilities.drop[_])}
+
+ count(must_drop - dropped) > 0
+ count(all - dropped) > 0
+}
+
+get_default(obj, param, _) := obj[param]
+
+get_default(obj, param, _default) := _default {
+ not obj[param]
+ not obj[param] == false
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..4ab7bd0cc8871f19469d74154b351fc81cba2882
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/capabilities/src_test.rego
@@ -0,0 +1,338 @@
+package capabilities
+
+test_input_all_allowed {
+ inp := { "review": input_review([cadd(["one", "two"])]), "parameters": {"allowedCapabilities": ["*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_all_allowed_container_x2 {
+ inp := { "review": input_review([cadd(["one", "two"]), cadd(["three"])]), "parameters": {"allowedCapabilities": ["*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_one_allowed {
+ inp := { "review": input_review([cadd(["one"])]), "parameters": {"allowedCapabilities": ["one"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_one_allowed_container_x2 {
+ inp := { "review": input_review([cadd(["one"]), cadd(["one"])]), "parameters": {"allowedCapabilities": ["one"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_two_allowed_container_x2 {
+ inp := { "review": input_review([cadd(["one"]), cadd(["two"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_two_allowed_two_used_container_x2 {
+ inp := { "review": input_review([cadd(["one", "two"]), cadd(["one", "two"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_none_allowed {
+ inp := { "review": input_review([cadd(["one"])]), "parameters": {"allowedCapabilities": []}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_none_allowed_undefined {
+ inp := { "review": input_review([cadd(["one"])]), "parameters": {}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_none_allowed_undefined_x2_x2 {
+ inp := { "review": input_review([cadd(["one", "two"]), cadd(["three", "two"])]), "parameters": {}}
+ results := violation with input as inp
+ trace(sprintf("results are: %v", [results]))
+ count(results) == 2
+}
+test_input_disallowed_x1 {
+ inp := { "review": input_review([cadd(["three"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_disallowed_x2_just_one {
+ inp := { "review": input_review([cadd(["one"]), cadd(["three", "two"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_disallowed_x2 {
+ inp := { "review": input_review([cadd(["three"]), cadd(["three", "two"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_disallowed_x2_but_exempt {
+ inp := { "review": input_review([cadd(["three"]), cadd(["three", "two"])]), "parameters": {"allowedCapabilities": ["one", "two"], "exemptImages": ["nginx"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+
+test_input_empty_drop {
+ inp := { "review": input_review([cdrop(["one", "two"])]), "parameters": {"requiredDropCapabilities": []}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_all_dropped {
+ inp := { "review": input_review([cdrop(["one", "two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_extra_dropped {
+ inp := { "review": input_review([cdrop(["one", "two", "three"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_all_dropped_x2 {
+ inp := { "review": input_review([cdrop(["one", "two"]), cdrop(["one", "two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_missing_drop {
+ inp := { "review": input_review([cdrop(["two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_one_missing_drop_x2 {
+ inp := { "review": input_review([cdrop(["one"]), cdrop(["one", "two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_missing_drop_x2 {
+ inp := { "review": input_review([cdrop(["one"]), cdrop(["two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_drop_undefined_x2 {
+ inp := { "review": input_review([cadd([]), cadd([])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_drop_undefined_x2_but_exempt {
+ inp := { "review": input_review([cadd([]), cadd([])]), "parameters": {"requiredDropCapabilities": ["one", "two"], "exemptImages": ["nginx"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_drop_literal_all {
+ inp := { "review": input_review([cdrop(["ALL"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_drop_literal_all_lower {
+ inp := { "review": input_review([cdrop(["all"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_drop_literal_all_with_all_param {
+ inp := { "review": input_review([cdrop(["ALL"])]), "parameters": {"requiredDropCapabilities": ["one", "ALL"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_drop_literal_all_x2 {
+ inp := { "review": input_review([cdrop(["ALL", "two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_update {
+ inp := { "review": object.union(input_review([cadd(["one"])]), {"operation": "UPDATE"}), "parameters": {"allowedCapabilities": []}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+# init containers
+test_input_all_allowed {
+ inp := { "review": input_init_review([cadd(["one", "two"])]), "parameters": {"allowedCapabilities": ["*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_all_allowed_container_x2 {
+ inp := { "review": input_init_review([cadd(["one", "two"]), cadd(["three"])]), "parameters": {"allowedCapabilities": ["*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_one_allowed {
+ inp := { "review": input_init_review([cadd(["one"])]), "parameters": {"allowedCapabilities": ["one"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_one_allowed_container_x2 {
+ inp := { "review": input_init_review([cadd(["one"]), cadd(["one"])]), "parameters": {"allowedCapabilities": ["one"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_two_allowed_container_x2 {
+ inp := { "review": input_init_review([cadd(["one"]), cadd(["two"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_two_allowed_two_used_container_x2 {
+ inp := { "review": input_init_review([cadd(["one", "two"]), cadd(["one", "two"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_none_allowed {
+ inp := { "review": input_init_review([cadd(["one"])]), "parameters": {"allowedCapabilities": []}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_none_allowed_undefined {
+ inp := { "review": input_init_review([cadd(["one"])]), "parameters": {}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_none_allowed_undefined_x2_x2 {
+ inp := { "review": input_init_review([cadd(["one", "two"]), cadd(["three", "two"])]), "parameters": {}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_disallowed_x1 {
+ inp := { "review": input_init_review([cadd(["three"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_disallowed_x2_just_one {
+ inp := { "review": input_init_review([cadd(["one"]), cadd(["three", "two"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_disallowed_x2 {
+ inp := { "review": input_init_review([cadd(["three"]), cadd(["three", "two"])]), "parameters": {"allowedCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_disallowed_x2_but_exempt {
+ inp := { "review": input_init_review([cadd(["three"]), cadd(["three", "two"])]), "parameters": {"allowedCapabilities": ["one", "two"], "exemptImages": ["nginx"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+
+test_input_empty_drop {
+ inp := { "review": input_init_review([cdrop(["one", "two"])]), "parameters": {"requiredDropCapabilities": []}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_all_dropped {
+ inp := { "review": input_init_review([cdrop(["one", "two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_extra_dropped {
+ inp := { "review": input_init_review([cdrop(["one", "two", "three"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_all_dropped_x2 {
+ inp := { "review": input_init_review([cdrop(["one", "two"]), cdrop(["one", "two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_missing_drop {
+ inp := { "review": input_init_review([cdrop(["two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_one_missing_drop_x2 {
+ inp := { "review": input_init_review([cdrop(["one"]), cdrop(["one", "two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_missing_drop_x2 {
+ inp := { "review": input_init_review([cdrop(["one"]), cdrop(["two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_drop_undefined_x2 {
+ inp := { "review": input_init_review([cadd([]), cadd([])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_drop_undefined_x2_but_exempt {
+ inp := { "review": input_init_review([cadd([]), cadd([])]), "parameters": {"requiredDropCapabilities": ["one", "two"], "exemptImages": ["nginx"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_drop_literal_all {
+ inp := { "review": input_init_review([cdrop(["ALL"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_drop_literal_all_lower {
+ inp := { "review": input_init_review([cdrop(["all"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_drop_literal_all_with_all_param {
+ inp := { "review": input_init_review([cdrop(["ALL"])]), "parameters": {"requiredDropCapabilities": ["one", "ALL"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_drop_literal_with_all_param {
+ inp := { "review": input_init_review([cdrop(["one"])]), "parameters": {"requiredDropCapabilities": ["one", "ALL"]}}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_drop_literal_all_x2 {
+ inp := { "review": input_init_review([cdrop(["ALL", "two"])]), "parameters": {"requiredDropCapabilities": ["one", "two"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+
+input_review(containers) = output {
+ cs := [o | c := containers[i]; o := inject_name(i, c)]
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": cs,
+ }
+ }
+ }
+}
+
+input_init_review(containers) = output {
+ cs := [o | c := containers[i]; o := inject_name(i, c)]
+ output = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": cs,
+ }
+ }
+ }
+}
+
+cdrop(drop) = output {
+ output := {
+ "image": "nginx",
+ "securityContext": {
+ "capabilities": {
+ "drop": drop
+ }
+ }
+ }
+}
+
+cadd(add) = output {
+ output := {
+ "image": "nginx",
+ "securityContext": {
+ "capabilities": {
+ "add": add
+ }
+ }
+ }
+}
+
+inject_name(name, obj) = out {
+ keys := {k | obj[k]}
+ all_keys := keys | {"name"}
+ out := {k: v | k := all_keys[_]; v:= get_default(obj, k, name)}
+}
+
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..e0a7b51df50a172518dc5941a6f267946dae38d8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/constraint.tmpl
@@ -0,0 +1,43 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspflexvolumes
+ annotations:
+ metadata.gatekeeper.sh/title: "FlexVolumes"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Controls the allowlist of FlexVolume drivers. Corresponds to the
+ `allowedFlexVolumes` field in PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#flexvolume-drivers
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPFlexVolumes
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the allowlist of FlexVolume drivers. Corresponds to the
+ `allowedFlexVolumes` field in PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#flexvolume-drivers
+ properties:
+ allowedFlexVolumes:
+ type: array
+ description: "An array of AllowedFlexVolume objects."
+ items:
+ type: object
+ properties:
+ driver:
+ description: "The name of the FlexVolume driver."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/pod-security-policy/flexvolume-drivers/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/flexvolume-drivers/lib_exclude_update.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..1d42653c12914e4b3ef7a75cdd922b69517da31a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/src.rego
@@ -0,0 +1,26 @@
+package k8spspflexvolumes
+
+import data.lib.exclude_update.is_update
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume := input_flexvolumes[_]
+ not input_flexvolumes_allowed(volume)
+ msg := sprintf("FlexVolume %v is not allowed, pod: %v. Allowed drivers: %v", [volume, input.review.object.metadata.name, input.parameters.allowedFlexVolumes])
+}
+
+input_flexvolumes_allowed(volume) {
+ input.parameters.allowedFlexVolumes[_].driver == volume.flexVolume.driver
+}
+
+input_flexvolumes[v] {
+ v := input.review.object.spec.volumes[_]
+ has_field(v, "flexVolume")
+}
+
+# has_field returns whether an object has a field
+has_field(object, field) = true {
+ object[field]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..aa7d310b4848ebd8284518d131a34907055b1ff5
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/flexvolume-drivers/src_test.rego
@@ -0,0 +1,228 @@
+package k8spspflexvolumes
+
+test_input_flexvolume_empty_params {
+ inp := { "review": input_review, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_flexvolume_many_empty_params{
+ inp := { "review": input_review_many, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_no_flexvolume_is_allowed {
+ inp := { "review": input_review_no_flexvolume, "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_flexvolume_allowed {
+ inp := { "review": input_review, "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_flexvolume_many_is_allowed {
+ inp := { "review": input_review_many, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_flexvolume_many_is_allowed_no_flexvolume {
+ inp := { "review": input_review_many_no_flexvolume, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_flexvolume_not_allowed {
+ inp := { "review": input_review, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_flexvolume_many_not_allowed {
+ inp := { "review": input_review_many_not_allowed, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_flexvolume_many_one_allowed {
+ inp := { "review": input_review_many, "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_flexvolume_many_mixed_allowed {
+ inp := { "review": input_review_many, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_update {
+ inp := { "review": object.union(input_review, {"operation": "UPDATE"}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "volumes": [{
+ "name": "cache-volume",
+ "flexVolume": {
+ "driver": "example/lvm"
+ }
+ }]
+ }
+ }
+}
+
+input_review_no_flexvolume = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ }
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "volumes": input_volumes_many
+ }
+ }
+}
+
+input_review_many_no_flexvolume = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "volumes": input_volumes_many_no_flexvolume
+ }
+ }
+}
+
+input_review_many_not_allowed = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "volumes": input_volumes_not_allowed
+ }
+ }
+}
+
+input_containers_one = [{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume"
+ }]
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume",
+ "readOnly": true
+ }]
+},
+{
+ "name": "nginx2",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume2",
+ "readOnly": true
+ }]
+}]
+
+input_volumes_many = [
+{
+ "name": "cache-volume",
+ "flexVolume": {
+ "driver": "example/lvm"
+ }
+},
+{
+ "name": "cache-volume2",
+ "flexVolume": {
+ "driver": "example/cifs"
+ }
+},
+{
+ "name": "certs",
+ "secret": {
+ "secretName": "cert-data"
+ }
+}]
+
+input_volumes_many_no_flexvolume = [
+{
+ "name": "certs",
+ "secret": {
+ "secretName": "cert-data"
+ }
+},
+{
+ "name": "data",
+ "hostPath": {
+ "path": "/tmp/data",
+ "type": "File"
+ }
+}]
+
+input_volumes_not_allowed = [
+{
+ "name": "cache-volume",
+ "flexVolume": {
+ "driver": "example/lvm"
+ }
+},
+{
+ "name": "cache-volume2",
+ "flexVolume": {
+ "driver": "example/other"
+ }
+}]
+
+input_parameters_empty = {
+ "allowedFlexVolumes": []
+}
+
+input_parameter_in_list = {
+ "allowedFlexVolumes": [{"driver": "example/lvm"}]
+}
+
+input_parameters_in_list = {
+ "allowedFlexVolumes": [
+ {"driver": "example/lvm"},
+ {"driver": "example/cifs"}
+ ]
+}
+
+input_parameters_not_in_list = {
+ "allowedFlexVolumes": [
+ {"driver": "example/testdriver"},
+ {"driver": "example/cifs"}
+ ]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..0ec5e0416ad9ee0e80e9f0f9f411f77401a29979
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/constraint.tmpl
@@ -0,0 +1,53 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspforbiddensysctls
+ annotations:
+ metadata.gatekeeper.sh/title: "Forbidden Sysctls"
+ metadata.gatekeeper.sh/version: 1.2.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the `sysctl` profile used by containers. Corresponds to the
+ `allowedUnsafeSysctls` and `forbiddenSysctls` fields in a PodSecurityPolicy.
+ When specified, any sysctl not in the `allowedSysctls` parameter is considered to be forbidden.
+ The `forbiddenSysctls` parameter takes precedence over the `allowedSysctls` parameter.
+ For more information, see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPForbiddenSysctls
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the `sysctl` profile used by containers. Corresponds to the
+ `allowedUnsafeSysctls` and `forbiddenSysctls` fields in a PodSecurityPolicy.
+ When specified, any sysctl not in the `allowedSysctls` parameter is considered to be forbidden.
+ The `forbiddenSysctls` parameter takes precedence over the `allowedSysctls` parameter.
+ For more information, see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
+ properties:
+ allowedSysctls:
+ type: array
+ description: "An allow-list of sysctls. `*` allows all sysctls not listed in the `forbiddenSysctls` parameter."
+ items:
+ type: string
+ forbiddenSysctls:
+ type: array
+ description: "A disallow-list of sysctls. `*` forbids all sysctls."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/forbidden-sysctls/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/forbidden-sysctls/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/forbidden-sysctls/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..d90e6253a54742c4b8dfd1a091a33a7fec99f123
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src.cel
@@ -0,0 +1,33 @@
+variables:
+- name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+- name: sysctls
+ expression: '!has(variables.anyObject.spec.securityContext) ? [] : !has(variables.anyObject.spec.securityContext.sysctls) ? [] : variables.anyObject.spec.securityContext.sysctls'
+- name: allowedSysctlPrefixes
+ expression: |
+ !has(variables.params.allowedSysctls) ? [] : variables.params.allowedSysctls.filter(sysctl, sysctl.endsWith("*")).map(sysctl, string(sysctl).replace("*", ""))
+- name: allowedSysctlExplicit
+ expression: |
+ !has(variables.params.allowedSysctls) ? [] :
+ variables.params.allowedSysctls.filter(sysctl, !sysctl.endsWith("*"))
+- name: forbiddenSysctlPrefixes
+ expression: |
+ !has(variables.params.forbiddenSysctls) ? [] : variables.params.forbiddenSysctls.filter(sysctl, sysctl.endsWith("*")).map(sysctl, string(sysctl).replace("*", ""))
+- name: forbiddenSysctlExplicit
+ expression: |
+ !has(variables.params.forbiddenSysctls) ? [] :
+ variables.params.forbiddenSysctls.filter(sysctl, !sysctl.endsWith("*"))
+- name: allowedSysctlsString
+ expression: |
+ !has(variables.params.allowedSysctls) ? "unspecified" : size(variables.params.allowedSysctls) == 0 ? "empty" : variables.params.allowedSysctls.join(", ")
+- name: violatingSysctls
+ expression: |
+ (variables.sysctls.filter(sysctl,
+ (sysctl.name in variables.forbiddenSysctlExplicit ||
+ variables.forbiddenSysctlPrefixes.exists(fsp, string(sysctl.name).startsWith(fsp))) ||
+ (has(variables.params.allowedSysctls) &&
+ !(sysctl.name in variables.allowedSysctlExplicit) &&
+ !variables.allowedSysctlPrefixes.exists(asp, string(sysctl.name).startsWith(asp)))))
+validations:
+- expression: 'variables.isUpdate || size(variables.violatingSysctls) == 0'
+ messageExpression: '"The sysctl is not allowed for pod: " + variables.anyObject.metadata.name + ", forbidden: " + variables.params.forbiddenSysctls.join(", ") + ", allowed: " + variables.allowedSysctlsString'
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..6c0e8e086a6f89a6b0276aa1fa654cae530fed6a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src.rego
@@ -0,0 +1,63 @@
+package k8spspforbiddensysctls
+
+import data.lib.exclude_update.is_update
+
+# Block if forbidden
+violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.sysctls field is immutable.
+ not is_update(input.review)
+
+ sysctl := input.review.object.spec.securityContext.sysctls[_].name
+ forbidden_sysctl(sysctl)
+ msg := sprintf("The sysctl %v is not allowed, pod: %v. Forbidden sysctls: %v", [sysctl, input.review.object.metadata.name, input.parameters.forbiddenSysctls])
+}
+
+# Block if not explicitly allowed
+violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+ sysctl := input.review.object.spec.securityContext.sysctls[_].name
+ not allowed_sysctl(sysctl)
+ allowmsg := allowed_sysctl_string()
+ msg := sprintf("The sysctl %v is not explicitly allowed, pod: %v. Allowed sysctls: %v", [sysctl, input.review.object.metadata.name, allowmsg])
+}
+
+# * may be used to forbid all sysctls
+forbidden_sysctl(_) {
+ input.parameters.forbiddenSysctls[_] == "*"
+}
+
+forbidden_sysctl(sysctl) {
+ input.parameters.forbiddenSysctls[_] == sysctl
+}
+
+forbidden_sysctl(sysctl) {
+ forbidden := input.parameters.forbiddenSysctls[_]
+ endswith(forbidden, "*")
+ startswith(sysctl, trim_suffix(forbidden, "*"))
+}
+
+# * may be used to allow all sysctls
+allowed_sysctl(_) {
+ input.parameters.allowedSysctls[_] == "*"
+}
+
+allowed_sysctl(sysctl) {
+ input.parameters.allowedSysctls[_] == sysctl
+}
+
+allowed_sysctl(sysctl) {
+ allowed := input.parameters.allowedSysctls[_]
+ endswith(allowed, "*")
+ startswith(sysctl, trim_suffix(allowed, "*"))
+}
+
+allowed_sysctl(_) {
+ not input.parameters.allowedSysctls
+}
+allowed_sysctl_string() = out {
+ not input.parameters.allowedSysctls
+ out = "unspecified"
+}
+allowed_sysctl_string() = out {
+ out = input.parameters.allowedSysctls
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..07189ea4794d4243e1b38910b5e0a7ae9c6cf507
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/forbidden-sysctls/src_test.rego
@@ -0,0 +1,352 @@
+package k8spspforbiddensysctls
+
+test_input_sysctls_forbidden_all {
+ inp := { "review": input_review, "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_sysctls_forbidden_in_list {
+ inp := { "review": input_review, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_sysctls_forbidden_in_list_mixed {
+ inp := { "review": input_review, "parameters": input_parameters_one_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_sysctls_forbidden_not_in_list {
+ inp := { "review": input_review, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_sysctls_forbidden_in_list_wildcard {
+ inp := { "review": input_review, "parameters": input_parameters_in_list_wildcard}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_sysctls_forbidden_in_list_wildcard_mixed {
+ inp := { "review": input_review, "parameters": input_parameters_one_in_list_wildcard}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_sysctls_forbidden_not_in_list_wildcard {
+ inp := { "review": input_review, "parameters": input_parameters_not_in_list_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_sysctls_empty_forbidden {
+ inp := { "review": input_review, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccontext_empty_wildcard {
+ inp := { "review": input_review_seccontext_empty, "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_sysctls_empty_wildcard {
+ inp := { "review": input_review_sysctls_empty, "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccontext_null_wildcard {
+ inp := { "review": input_review_seccontext_null, "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccontext_empty_empty_forbidden {
+ inp := { "review": input_review_seccontext_empty, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_sysctls_empty_empty_forbidden {
+ inp := { "review": input_review_sysctls_empty, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccontext_null_empty_forbidden {
+ inp := { "review": input_review_seccontext_null, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_init_sysctls_forbidden_all {
+ inp := { "review": input_init_review, "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_init_sysctls_forbidden_in_list {
+ inp := { "review": input_init_review, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_init_sysctls_forbidden_in_list_mixed {
+ inp := { "review": input_init_review, "parameters": input_parameters_one_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_init_sysctls_forbidden_not_in_list {
+ inp := { "review": input_init_review, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_sysctls_allowed_all {
+ inp := { "review": input_review, "parameters": input_parameters_sysctls_allowed_all}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+# Empty allowedSysctls means none are allowed.
+# This is in contrast to unspecified allowedSysctls which does not
+# place any restrictions by itself.
+test_input_sysctls_allowed_empty {
+ inp := { "review": input_review, "parameters": input_parameters_sysctls_allowed_empty}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_sysctls_allowed_exact {
+ inp := { "review": input_review, "parameters": input_parameters_sysctls_allowed_exact}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_sysctls_allowed_wildcards {
+ inp := { "review": input_review, "parameters": input_parameters_sysctls_allowed_wildcards}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_sysctls_some_allowed_exact {
+ inp := { "review": input_review, "parameters": input_parameters_sysctls_some_allowed_exact}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_sysctls_some_allowed_wildcards {
+ inp := { "review": input_review, "parameters": input_parameters_sysctls_some_allowed_wildcards}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_sysctls_allowed_and_forbidden {
+ inp := { "review": input_review, "parameters": input_parameters_sysctls_allowed_and_forbidden}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_update {
+ inp := { "review": object.union(input_review, {"operation": "UPDATE"}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": {
+ "name": "nginx",
+ "image": "nginx"
+ },
+ "securityContext": {
+ "sysctls": [
+ {
+ "name": "kernel.shm_rmid_forced",
+ "value": "0"
+ },
+ {
+ "name": "net.core.somaxconn",
+ "value": "1024"
+ }
+ ]
+ }
+ }
+ }
+}
+
+input_init_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": {
+ "name": "nginx",
+ "image": "nginx"
+ },
+ "securityContext": {
+ "sysctls": [
+ {
+ "name": "kernel.shm_rmid_forced",
+ "value": "0"
+ },
+ {
+ "name": "net.core.somaxconn",
+ "value": "1024"
+ }
+ ]
+ }
+ }
+ }
+}
+
+input_review_seccontext_empty = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": {
+ "name": "nginx",
+ "image": "nginx",
+ },
+ "securityContext": {
+ }
+ }
+ }
+}
+
+input_review_sysctls_empty = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": {
+ "name": "nginx",
+ "image": "nginx",
+ },
+ "securityContext": {
+ "sysctls": []
+ }
+ }
+ }
+}
+
+input_review_seccontext_null = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": {
+ "name": "nginx",
+ "image": "nginx",
+ }
+ }
+ }
+}
+
+input_parameters_wildcard = {
+ "forbiddenSysctls": [
+ "*"
+ ]
+}
+
+input_parameters_in_list = {
+ "forbiddenSysctls": [
+ "kernel.shm_rmid_forced",
+ "net.core.somaxconn"
+ ]
+}
+
+input_parameters_one_in_list = {
+ "forbiddenSysctls": [
+ "kernel.shm_rmid_forced"
+ ]
+}
+
+input_parameters_not_in_list = {
+ "forbiddenSysctls": [
+ "kernel.msgmax"
+ ]
+}
+
+input_parameters_in_list_wildcard = {
+ "forbiddenSysctls": [
+ "kernel.*",
+ "net.core*"
+ ]
+}
+
+input_parameters_one_in_list_wildcard = {
+ "forbiddenSysctls": [
+ "kernel.*"
+ ]
+}
+
+input_parameters_not_in_list_wildcard = {
+ "forbiddenSysctls": [
+ "kernel.msg*"
+ ]
+}
+
+input_parameters_empty = {
+ "forbiddenSysctls": []
+}
+
+input_parameters_sysctls_allowed_all = {
+ "allowedSysctls": ["*"]
+}
+
+input_parameters_sysctls_allowed_empty = {
+ "allowedSysctls": []
+}
+
+input_parameters_sysctls_allowed_wildcards = {
+ "allowedSysctls": [
+ "kernel.*",
+ "net.*"
+ ]
+}
+
+input_parameters_sysctls_allowed_exact = {
+ "allowedSysctls": [
+ "kernel.shm_rmid_forced",
+ "net.core.somaxconn"
+ ]
+}
+
+input_parameters_sysctls_some_allowed_exact = {
+ "allowedSysctls": [
+ "net.core.somaxconn"
+ ]
+}
+
+input_parameters_sysctls_some_allowed_wildcards = {
+ "allowedSysctls": [
+ "net.*"
+ ]
+}
+
+input_parameters_sysctls_allowed_and_forbidden = {
+ "allowedSysctls": [
+ "kernel.shm_rmid_forced",
+ "net.core.somaxconn"
+ ],
+ "forbiddenSysctls": [
+ "kernel.shm_rmid_forced",
+ "net.core.somaxconn"
+ ]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..783cb8efc1e64c3818c63c800b051f1ca746189c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/constraint.tmpl
@@ -0,0 +1,57 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspfsgroup
+ annotations:
+ metadata.gatekeeper.sh/title: "FS Group"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: >-
+ Controls allocating an FSGroup that owns the Pod's volumes. Corresponds
+ to the `fsGroup` field in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPFSGroup
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls allocating an FSGroup that owns the Pod's volumes. Corresponds
+ to the `fsGroup` field in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ rule:
+ description: "An FSGroup rule name."
+ enum:
+ - MayRunAs
+ - MustRunAs
+ - RunAsAny
+ type: string
+ ranges:
+ type: array
+ description: "GID ranges affected by the rule."
+ items:
+ type: object
+ properties:
+ min:
+ description: "The minimum GID in the range, inclusive."
+ type: integer
+ max:
+ description: "The maximum GID in the range, inclusive."
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/fsgroup/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/fsgroup/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/fsgroup/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..e2ed2e620956a0550904405a53df3c830e6d3f65
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src.cel
@@ -0,0 +1,17 @@
+variables:
+- name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+- name: fsGroup
+ expression: '!has(variables.anyObject.spec.securityContext) ? "" : !has(variables.anyObject.spec.securityContext.fsGroup) ? "" : variables.anyObject.spec.securityContext.fsGroup'
+- name: ruleString
+ expression: |
+ !has(variables.params.rule) ? "unspecified" : string(variables.params.rule)
+- name: rangesString
+ expression: |
+ !has(variables.params.ranges) ? "unspecified" : size(variables.params.ranges) == 0 ? "empty" : variables.params.ranges.map(r, string(r)).join(", ")
+- name: input_fsGroup_allowed
+ expression: |
+ !has(variables.params.rule) ? true : variables.params.rule == "RunAsAny" ? true : variables.params.rule == "MayRunAs" && variables.fsGroup == "" ? true : (variables.params.rule == "MayRunAs" || variables.params.rule == "MustRunAs") && has(variables.params.ranges) && size(variables.params.ranges) > 0 ? variables.params.ranges.exists(range, range.min <= variables.fsGroup && range.max >= variables.fsGroup) : false
+validations:
+- expression: 'variables.isUpdate || variables.input_fsGroup_allowed'
+ messageExpression: '"The provided pod spec fsGroup is not allowed, pod: " + variables.anyObject.metadata.name + ". Allowed fsGroup rule: " + variables.ruleString + ", allowed fsGroup ranges: " + variables.rangesString'
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..fcb19f10a8793d9f53f014a5cd8d5587a270cbf8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src.rego
@@ -0,0 +1,51 @@
+package k8spspfsgroup
+
+import data.lib.exclude_update.is_update
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.fsGroup field is immutable.
+ not is_update(input.review)
+ has_field(input.parameters, "rule")
+ spec := input.review.object.spec
+ not input_fsGroup_allowed(spec)
+ msg := sprintf("The provided pod spec fsGroup is not allowed, pod: %v. Allowed fsGroup: %v", [input.review.object.metadata.name, input.parameters])
+}
+
+input_fsGroup_allowed(_) {
+ # RunAsAny - No range is required. Allows any fsGroup ID to be specified.
+ input.parameters.rule == "RunAsAny"
+}
+input_fsGroup_allowed(spec) {
+ # MustRunAs - Validates pod spec fsgroup against all ranges
+ input.parameters.rule == "MustRunAs"
+ fg := spec.securityContext.fsGroup
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, fg)
+}
+input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ not has_field(spec, "securityContext")
+}
+input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ not spec.securityContext.fsGroup
+}
+input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ fg := spec.securityContext.fsGroup
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, fg)
+}
+value_within_range(range, value) {
+ range.min <= value
+ range.max >= value
+}
+# has_field returns whether an object has a field
+has_field(object, field) = true {
+ object[field]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..ab7be3d586c42172eab5f771d564588cb0006fa1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/fsgroup/src_test.rego
@@ -0,0 +1,153 @@
+package k8spspfsgroup
+
+test_input_fsgroup_allowed_all {
+ inp := { "review": input_review_with_fsgroup, "parameters": input_parameters_runasany}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_fsgroup_allowed_all {
+ inp := { "review": input_review, "parameters": input_parameters_runasany}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_fsgroup_MustRunAs_allowed {
+ inp := { "review": input_review_with_fsgroup, "parameters": input_parameters_in_list_mustrunas}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_fsgroup_MustRunAs_not_allowed {
+ inp := { "review": input_review_with_fsgroup, "parameters": input_parameters_in_list_mustrunas_outofrange}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_no_fsgroup_MustRunAs_not_allowed {
+ inp := { "review": input_review, "parameters": input_parameters_in_list_mustrunas}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_securitycontext_no_fsgroup_MustRunAs_not_allowed {
+ inp := { "review": input_review_with_securitycontext_no_fsgroup, "parameters": input_parameters_in_list_mustrunas}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_fsgroup_MayRunAs_allowed {
+ inp := { "review": input_review_with_fsgroup, "parameters": input_parameters_in_list_mayrunas}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_fsgroup_MayRunAs_not_allowed {
+ inp := { "review": input_review_with_fsgroup, "parameters": input_parameters_in_list_mayrunas_outofrange}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_no_fsgroup_MayRunAs_allowed {
+ inp := { "review": input_review, "parameters": input_parameters_in_list_mayrunas}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_securitycontext_no_fsgroup_MayRunAs_allowed {
+ inp := { "review": input_review_with_securitycontext_no_fsgroup, "parameters": input_parameters_in_list_mayrunas}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_update {
+ inp := { "review": object.union(input_review_with_fsgroup, {"operation": "UPDATE"}), "parameters": input_parameters_in_list_mustrunas_outofrange}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "volumes": input_volumes
+ }
+ }
+}
+
+input_review_with_fsgroup = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "securityContext": {
+ "fsGroup": 2000
+ },
+ "containers": input_containers_one,
+ "volumes": input_volumes
+ }
+ }
+}
+
+input_review_with_securitycontext_no_fsgroup = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "securityContext": {
+ "runAsUser": "1000"
+ },
+ "containers": input_containers_one,
+ "volumes": input_volumes
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume"
+ }]
+}]
+
+input_volumes = [
+{
+ "name": "cache-volume",
+ "emptyDir": {}
+}]
+
+input_parameters_runasany = {
+ "rule": "RunAsAny"
+}
+
+input_parameters_in_list_mustrunas = {
+ "rule": "MustRunAs",
+ "ranges": [
+ {
+ "min": 1,
+ "max": 2000
+ }]
+}
+input_parameters_in_list_mustrunas_outofrange = {
+ "rule": "MustRunAs",
+ "ranges": [
+ {
+ "min": 1,
+ "max": 1000
+ }]
+}
+input_parameters_in_list_mayrunas = {
+ "rule": "MayRunAs",
+ "ranges": [
+ {
+ "min": 1,
+ "max": 2000
+ }]
+}
+input_parameters_in_list_mayrunas_outofrange = {
+ "rule": "MayRunAs",
+ "ranges": [
+ {
+ "min": 1,
+ "max": 1000
+ }]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..91555d4ec701b99c0ded005a2d11493b618366bd
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/constraint.tmpl
@@ -0,0 +1,53 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostfilesystem
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Filesystem"
+ metadata.gatekeeper.sh/version: 1.1.2
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls usage of the host filesystem. Corresponds to the
+ `allowedHostPaths` field in a PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostFilesystem
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls usage of the host filesystem. Corresponds to the
+ `allowedHostPaths` field in a PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ allowedHostPaths:
+ type: array
+ description: "An array of hostpath objects, representing paths and read/write configuration."
+ items:
+ type: object
+ properties:
+ pathPrefix:
+ type: string
+ description: "The path prefix that the host volume must match."
+ readOnly:
+ type: boolean
+ description: "when set to true, any container volumeMounts matching the pathPrefix must include `readOnly: true`."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/host-filesystem/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/host-filesystem/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/host-filesystem/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..a9db6941b0e6a9a2fd481a16f9ed8b60cdffd29b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src.cel
@@ -0,0 +1,28 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+- name: allowedPaths
+ expression: |
+ !has(variables.params.allowedHostPaths) ? [] : variables.params.allowedHostPaths
+- name: volumes
+ expression: |
+ !has(variables.anyObject.spec.volumes) ? [] : variables.anyObject.spec.volumes.filter(volume, has(volume.hostPath))
+- name: badHostPaths
+ expression: |
+ variables.volumes.filter(volume,
+ (size(variables.allowedPaths) == 0) ||
+ !(variables.allowedPaths.exists(allowedPath,
+ volume.hostPath.path.startsWith(allowedPath.pathPrefix) && (
+ (!has(allowedPath.readOnly) || !(allowedPath.readOnly)) ||
+ (has(allowedPath.readOnly) && allowedPath.readOnly && !variables.allContainers.exists(c,
+ c.volumeMounts.exists(m, m.name == volume.name && (!has(m.readOnly) || !m.readOnly)))))))
+ ).map(volume, "{ hostPath: { path : " + volume.hostPath.path + " }, name: " + volume.name + "}").map(volume, "HostPath volume " + volume + " is not allowed, pod: " + object.metadata.name + ". Allowed path: " + variables.allowedPaths.map(path, path.pathPrefix + ", readOnly: " + (path.readOnly ? "true" : "false") + "}").join(", "))
+validations:
+- expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badHostPaths) == 0'
+ messageExpression: 'variables.badHostPaths.join("\n")'
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..991c233f3b0911bd3cdd6edec5603cefa6c5d793
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src.rego
@@ -0,0 +1,99 @@
+package k8spsphostfilesystem
+
+import data.lib.exclude_update.is_update
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume := input_hostpath_volumes[_]
+ allowedPaths := get_allowed_paths(input)
+ input_hostpath_violation(allowedPaths, volume)
+ msg := sprintf("HostPath volume %v is not allowed, pod: %v. Allowed path: %v", [volume, input.review.object.metadata.name, allowedPaths])
+}
+
+input_hostpath_violation(allowedPaths, _) {
+ # An empty list means all host paths are blocked
+ allowedPaths == []
+}
+input_hostpath_violation(allowedPaths, volume) {
+ not input_hostpath_allowed(allowedPaths, volume)
+}
+
+get_allowed_paths(arg) = out {
+ not arg.parameters
+ out = []
+}
+get_allowed_paths(arg) = out {
+ not arg.parameters.allowedHostPaths
+ out = []
+}
+get_allowed_paths(arg) = out {
+ out = arg.parameters.allowedHostPaths
+}
+
+input_hostpath_allowed(allowedPaths, volume) {
+ allowedHostPath := allowedPaths[_]
+ path_matches(allowedHostPath.pathPrefix, volume.hostPath.path)
+ not allowedHostPath.readOnly == true
+}
+
+input_hostpath_allowed(allowedPaths, volume) {
+ allowedHostPath := allowedPaths[_]
+ path_matches(allowedHostPath.pathPrefix, volume.hostPath.path)
+ allowedHostPath.readOnly
+ not writeable_input_volume_mounts(volume.name)
+}
+
+writeable_input_volume_mounts(volume_name) {
+ container := input_containers[_]
+ mount := container.volumeMounts[_]
+ mount.name == volume_name
+ not mount.readOnly
+}
+
+# This allows "/foo", "/foo/", "/foo/bar" etc., but
+# disallows "/fool", "/etc/foo" etc.
+path_matches(prefix, path) {
+ a := path_array(prefix)
+ b := path_array(path)
+ prefix_matches(a, b)
+}
+path_array(p) = out {
+ p != "/"
+ out := split(trim(p, "/"), "/")
+}
+# This handles the special case for "/", since
+# split(trim("/", "/"), "/") == [""]
+path_array("/") = []
+
+prefix_matches(a, b) {
+ count(a) <= count(b)
+ not any_not_equal_upto(a, b, count(a))
+}
+
+any_not_equal_upto(a, b, n) {
+ a[i] != b[i]
+ i < n
+}
+
+input_hostpath_volumes[v] {
+ v := input.review.object.spec.volumes[_]
+ has_field(v, "hostPath")
+}
+
+# has_field returns whether an object has a field
+has_field(object, field) = true {
+ object[field]
+}
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..1c6f632f10fda2a3d9d7358629708d91801dca2c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-filesystem/src_test.rego
@@ -0,0 +1,449 @@
+package k8spsphostfilesystem
+
+test_input_hostpath_block_all {
+ inp := { "review": input_review, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_block_all_null_params {
+ inp := { "review": input_review, "parameters": null }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_block_all_no_params {
+ inp := { "review": input_review }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_block_all {
+ inp := { "review": input_review_many, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_hostpath_no_volumes {
+ inp := { "review": input_review_no_volumes, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostpath_mixed_volumes {
+ inp := { "review": input_review_many_mixed_volumes, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostpath_mixed_volumes_not_allowed {
+ inp := { "review": input_review_many_mixed_volumes, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_no_hostpath {
+ inp := { "review": input_review_many_no_hostpath, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostpath_allowed_readonly {
+ inp := { "review": input_review_many, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostpath_not_allowed_readonly {
+ inp := { "review": input_review, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_many_not_allowed_readonly {
+ inp := { "review": input_review_many, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_hostpath_allowed_writable_allowed {
+ inp := { "review": input_review_writable, "parameters": input_parameters_in_list_writable}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostpath_allowed_writable_not_allowed {
+ inp := { "review": input_review_writable, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_not_allowed_writable {
+ inp := { "review": input_review_writable, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_allowed_not_writable {
+ inp := { "review": input_review, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_allowed_is_writable {
+ inp := { "review": input_review, "parameters": input_parameters_in_list_writable}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostpath_not_allowed_is_writable {
+ inp := { "review": input_review, "parameters": input_parameters_not_in_list_writable}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_not_allowed {
+ inp := { "review": input_review, "parameters": input_parameters_not_in_list_writable}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_allowed_readonly_mixed_parameters {
+ inp := { "review": input_review_many_mixed_writable, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_allowed_readonly_mixed_parameters {
+ inp := { "review": input_review_many_readonly, "parameters": input_parameters_in_list_mixed_writable}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostpath_allowed_mixed_writable_mixed_parameters {
+ inp := { "review": input_review_many_mixed_writable, "parameters": input_parameters_in_list_mixed_writable}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_update {
+ inp := { "review": object.union(input_review, {"operation": "UPDATE"}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+
+# Init Containers
+test_input_hostpath_allowed_readonly_init_containers {
+ inp := { "review": input_init_review, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_allowed_readonly_many_init_containers {
+ inp := { "review": input_init_review_many, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostpath_not_allowed_readonly_init_containers {
+ inp := { "review": input_init_review, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_hostpath_many_not_allowed_readonly_init_containers {
+ inp := { "review": input_init_review_many, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+
+# Unit Tests
+test_path_matches {
+ path_matches("/foo", "/foo/")
+ path_matches("/foo", "/foo/r")
+ path_matches("/", "/foo")
+ not path_matches("/foo", "/fool")
+ not path_matches("/foo", "/etc/foo")
+ not path_matches("/foo", "/")
+}
+
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "volumes": input_volumes
+ }
+ }
+}
+
+input_init_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": input_containers_one,
+ "volumes": input_volumes
+ }
+ }
+}
+
+input_review_writable = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_writable,
+ "volumes": input_volumes
+ }
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "volumes": input_volumes_many
+ }
+ }
+}
+
+input_review_many_readonly = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "volumes": input_volumes_many_mixed
+ }
+ }
+}
+
+input_review_many_mixed_writable = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many_mixed_writable,
+ "volumes": input_volumes_many_mixed
+ }
+ }
+}
+
+input_init_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": input_containers_many,
+ "volumes": input_volumes_many
+ }
+ }
+}
+
+input_review_no_volumes = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": [{
+ "name": "nginx",
+ "image": "nginx"
+ }]
+ }
+ }
+}
+
+input_review_many_mixed_volumes = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many_mixed_volume,
+ "volumes": input_volumes
+ }
+ }
+}
+
+input_review_many_no_hostpath = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "initContainers": input_containers_many,
+ "volumes": input_volumes_no_hostpath
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume"
+ }]
+}]
+
+input_containers_writable = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume",
+ "readOnly": false
+ }]
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume",
+ "readOnly": true
+ }]
+},
+{
+ "name": "nginx2",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume2",
+ "readOnly": true
+ }]
+}]
+
+input_containers_many_mixed_volume = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume",
+ "readOnly": true
+ }]
+},
+{
+ "name": "nginx2",
+ "image": "nginx"
+}]
+
+
+input_containers_many_mixed_writable = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume",
+ "readOnly": true
+ }]
+},
+{
+ "name": "nginx2",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume2",
+ "readOnly": false
+ }]
+}]
+
+input_volumes = [
+{
+ "name": "cache-volume",
+ "hostPath": {
+ "path": "/tmp"
+ }
+}]
+
+input_volumes_no_hostpath = [
+{
+ "name": "cache-volume",
+ "emptyDir": {}
+},
+{
+ "name": "cache-volume2",
+ "secret": {
+ "secretName": "test-secret"
+ }
+}]
+
+input_volumes_many = [
+{
+ "name": "cache-volume",
+ "hostPath": {
+ "path": "/tmp"
+ }
+},
+{
+ "name": "cache-volume2",
+ "hostPath": {
+ "path": "/tmp/test"
+ }
+}]
+
+input_volumes_many_mixed = [
+{
+ "name": "cache-volume",
+ "hostPath": {
+ "path": "/tmp"
+ }
+},
+{
+ "name": "cache-volume2",
+ "hostPath": {
+ "path": "/foo/test"
+ }
+}]
+
+input_parameters_empty = {
+ "allowedHostPaths": []
+}
+
+input_parameters_in_list = {
+ "allowedHostPaths": [
+ {
+ "readOnly": true,
+ "pathPrefix": "/tmp"
+ }]
+}
+
+input_parameters_not_in_list = {
+ "allowedHostPaths": [
+ {
+ "readOnly": true,
+ "pathPrefix": "/foo"
+ }]
+}
+
+input_parameters_in_list_writable = {
+ "allowedHostPaths": [
+ {
+ "pathPrefix": "/tmp"
+ },
+ {
+ "pathPrefix": "/foo"
+ }]
+}
+
+input_parameters_not_in_list_writable = {
+ "allowedHostPaths": [
+ {
+ "pathPrefix": "/foo"
+ }]
+}
+
+input_parameters_in_list_mixed_writable = {
+ "allowedHostPaths": [
+ {
+ "pathPrefix": "/tmp",
+ "readOnly": true
+ },
+ {
+ "pathPrefix": "/foo"
+ }]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..6e3f57aa56618e0bbaa98bda61b244d3a8e86fc8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/constraint.tmpl
@@ -0,0 +1,40 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostnamespace
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Namespace"
+ metadata.gatekeeper.sh/version: 1.1.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows sharing of host PID and IPC namespaces by pod containers.
+ Corresponds to the `hostPID` and `hostIPC` fields in a PodSecurityPolicy.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostNamespace
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows sharing of host PID and IPC namespaces by pod containers.
+ Corresponds to the `hostPID` and `hostIPC` fields in a PodSecurityPolicy.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/host-namespaces/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/host-namespaces/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/host-namespaces/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..dc2bb7281b0ead9aef9c7dd5f36ef197025f4c2c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.cel
@@ -0,0 +1,13 @@
+variables:
+- name: sharingHostIPC
+ expression: |
+ has(variables.anyObject.spec.hostIPC) ? variables.anyObject.spec.hostIPC : false
+- name: sharingHostPID
+ expression: |
+ has(variables.anyObject.spec.hostPID) ? variables.anyObject.spec.hostPID : false
+- name: sharingNamespace
+ expression: |
+ variables.sharingHostIPC || variables.sharingHostPID
+validations:
+- expression: '(has(request.operation) && request.operation == "UPDATE") || !variables.sharingNamespace'
+ messageExpression: '"Sharing the host namespace is not allowed: " + variables.anyObject.metadata.name'
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..af50c1cb843346fb9df3430d89e3ac3026652cc0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src.rego
@@ -0,0 +1,18 @@
+package k8spsphostnamespace
+
+import data.lib.exclude_update.is_update
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.hostPID and spec.hostIPC fields are immutable.
+ not is_update(input.review)
+
+ input_share_hostnamespace(input.review.object)
+ msg := sprintf("Sharing the host namespace is not allowed: %v", [input.review.object.metadata.name])
+}
+
+input_share_hostnamespace(o) {
+ o.spec.hostPID
+}
+input_share_hostnamespace(o) {
+ o.spec.hostIPC
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..ebea77e21a9a826a3facd2160a469411f49e2445
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-namespaces/src_test.rego
@@ -0,0 +1,79 @@
+package k8spsphostnamespace
+
+test_input_no_hostnamespace_allowed {
+ inp := { "review": input_review}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_hostPID_not_allowed {
+ inp := { "review": input_review_hostPID}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_hostIPC_not_allowed {
+ inp := { "review": input_review_hostIPC}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_hostnamespace_both_not_allowed {
+ inp := { "review": input_review_hostnamespace_both}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_update {
+ inp := { "review": object.union(input_review_hostPID, {"operation": "UPDATE"})}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers
+ }
+ }
+}
+input_review_hostPID = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "hostPID": true,
+ "containers": input_containers
+ }
+ }
+}
+
+input_review_hostIPC = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "hostIPC": true,
+ "containers": input_containers
+ }
+ }
+}
+input_review_hostnamespace_both = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+
+ "hostPID": true,
+ "hostIPC": true,
+ "containers": input_containers
+ }
+ }
+}
+input_containers = [
+{
+ "name": "nginx",
+ "image": "nginx"
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..84f24f1277b21ca7f5aa83cd9280bb066dfbf276
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/constraint.tmpl
@@ -0,0 +1,62 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostnetworkingports
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Networking Ports"
+ metadata.gatekeeper.sh/version: 1.1.5
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls usage of host network namespace by pod containers. HostNetwork verification happens without exception for exemptImages. Specific
+ ports must be specified. Corresponds to the `hostNetwork` and
+ `hostPorts` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostNetworkingPorts
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls usage of host network namespace by pod containers. HostNetwork verification happens without exception for exemptImages. Specific
+ ports must be specified. Corresponds to the `hostNetwork` and
+ `hostPorts` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ hostNetwork:
+ description: "Determines if the policy allows the use of HostNetwork in the pod spec."
+ type: boolean
+ min:
+ description: "The start of the allowed port range, inclusive."
+ type: integer
+ max:
+ description: "The end of the allowed port range, inclusive."
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/host-network-ports/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/host-network-ports/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/host-network-ports/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/host-network-ports/lib_exempt_container.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..a78f549852db89ea3b76e4427172f3304a86bce9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src.cel
@@ -0,0 +1,43 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+- name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) && has(container.ports) &&
+ (
+ (container.ports.all(port, has(port.hostPort) && has(variables.params.min) && port.hostPort < variables.params.min)) ||
+ (container.ports.all(port, has(port.hostPort) && has(variables.params.max) && port.hostPort > variables.params.max))
+ )
+ )
+- name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+- name: hostNetworkAllowed
+ expression: has(variables.params.hostNetwork) && variables.params.hostNetwork
+- name: hostNetworkEnabled
+ expression: has(variables.anyObject.spec.hostNetwork) && variables.anyObject.spec.hostNetwork
+- name: hostNetworkViolation
+ expression: variables.hostNetworkEnabled && !variables.hostNetworkAllowed
+validations:
+- expression: 'variables.isUpdate || size(variables.badContainers) == 0'
+ messageExpression: '"The specified hostNetwork and hostPort are not allowed, pod: " + variables.anyObject.metadata.name'
+- expression: variables.isUpdate || !variables.hostNetworkViolation
+ messageExpression: '"The specified hostNetwork and hostPort are not allowed, pod: " + variables.anyObject.metadata.name'
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..524f6545c287e2096ad716505522f9939ead2e42
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src.rego
@@ -0,0 +1,42 @@
+package k8spsphostnetworkingports
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.hostNetwork field is immutable.
+ not is_update(input.review)
+
+ input_share_hostnetwork(input.review.object)
+ msg := sprintf("The specified hostNetwork and hostPort are not allowed, pod: %v. Allowed values: %v", [input.review.object.metadata.name, input.parameters])
+}
+
+input_share_hostnetwork(o) {
+ not input.parameters.hostNetwork
+ o.spec.hostNetwork
+}
+
+input_share_hostnetwork(_) {
+ hostPort := input_containers[_].ports[_].hostPort
+ hostPort < input.parameters.min
+}
+
+input_share_hostnetwork(_) {
+ hostPort := input_containers[_].ports[_].hostPort
+ hostPort > input.parameters.max
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ not is_exempt(c)
+}
+
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ not is_exempt(c)
+}
+
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(c)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..5e23f6879fb620f3d1981cf0f94f352d1d1f981a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-network-ports/src_test.rego
@@ -0,0 +1,179 @@
+package k8spsphostnetworkingports
+
+test_input_no_hostnetwork_no_port_is_allowed {
+ inp := { "review": input_review, "parameters": input_parameters_ports}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_hostnetwork_allowed_ports_is_allowed {
+ inp := { "review": input_review_no_hostnetwork_allowed_ports, "parameters": input_parameters_ports}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_no_hostnetwork_container_ports_not_allowed {
+ inp := { "review": input_review_no_hostnetwork_container_ports_outofrange, "parameters": input_parameters_ports}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_with_hostnetwork_is_allowed {
+ inp := { "review": input_review_with_hostnetwork_no_port, "parameters": input_parameters_ports}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_with_hostnetwork_constraint_no_hostnetwork_not_allowed {
+ inp := { "review": input_review_with_hostnetwork_no_port, "parameters": input_parameters_ports_no_hostnetwork}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_with_hostnetwork_constraint_no_hostnetwork_explicit {
+ inp := { "review": input_review_no_hostnetwork_explicit, "parameters": input_parameters_ports_no_hostnetwork}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_with_hostnetwork_container_ports_not_allowed {
+ inp := { "review": input_review_with_hostnetwork_port_outofrange, "parameters": input_parameters_ports}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_with_hostnetwork_container_ports_not_allowed_but_exempt {
+ inp := { "review": input_review_with_hostnetwork_port_outofrange, "parameters": input_parameters_exempt}
+ results := violation with input as inp
+ trace(sprintf("%v", [results]))
+ count(results) == 0
+}
+test_update {
+ inp := { "review": object.union(input_review_no_hostnetwork_container_ports_outofrange, {"operation": "UPDATE"}), "parameters": input_parameters_ports}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_no_hostnetwork_allowed_ports = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_port
+ }
+ }
+}
+
+input_review_no_hostnetwork_container_ports_outofrange = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_port_outofrange
+ }
+ }
+}
+
+input_review_with_hostnetwork_no_port = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "hostNetwork": true,
+ "containers": input_containers_one
+ }
+ }
+}
+
+
+input_review_no_hostnetwork_explicit = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "hostNetwork": false,
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_with_hostnetwork_port_outofrange = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "hostNetwork": true,
+ "containers": input_containers_many_port_outofrange,
+ "initContainers": input_containers_one_port_outofrange
+ }
+ }
+}
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx"
+}]
+
+input_containers_one_port = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "ports": [{
+ "containerPort": 80,
+ "hostPort": 8080
+ }]
+}]
+input_containers_one_port_outofrange = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "ports": [{
+ "containerPort": 80,
+ "hostPort": 9001
+ }]
+}]
+
+input_containers_many_port_outofrange = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "ports": [{
+ "containerPort": 80,
+ "hostPort": 9001
+ }]
+},
+{
+ "name": "nginx1",
+ "image": "nginx",
+ "ports": [{
+ "containerPort": 9200,
+ "hostPort": 9200
+ }]
+}]
+
+input_parameters_ports = {
+ "hostNetwork": true,
+ "min": 80,
+ "max": 9000
+}
+
+input_parameters_ports_no_hostnetwork = {
+ "min": 80,
+ "max": 9000
+}
+
+input_parameters_exempt = {
+ "exemptImages": ["nginx"],
+ "hostNetwork": true,
+ "min": 80,
+ "max": 9000
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..03a457fbcbc568f2267e166b0543032f18385e97
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/constraint.tmpl
@@ -0,0 +1,58 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostprobeslifecycle
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Probes and Lifecycle Hooks"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows specifying the host field in probes and lifecycle hooks.
+ The Baseline profile (v1.34+) requires that probes (livenessProbe,
+ readinessProbe, startupProbe) and lifecycle hooks (postStart, preStop)
+ must not specify a host field. This prevents containers from executing
+ network requests to the host node.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostProbesLifecycle
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows specifying the host field in probes and lifecycle hooks.
+ The Baseline profile (v1.34+) requires that probes (livenessProbe,
+ readinessProbe, startupProbe) and lifecycle hooks (postStart, preStop)
+ must not specify a host field. This prevents containers from executing
+ network requests to the host node.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/host-probes-lifecycle/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/host-probes-lifecycle/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/host-probes-lifecycle/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/host-probes-lifecycle/lib_exempt_container.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..59504c6238b2c5ed3905c8fcd21d827fa3101fa0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src.cel
@@ -0,0 +1,54 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+- name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+- name: badProbeContainers
+ expression: |
+ variables.allContainers.filter(container,
+ !(container.image in variables.exemptImages) &&
+ (
+ (has(container.livenessProbe) && has(container.livenessProbe.httpGet) && has(container.livenessProbe.httpGet.host) && container.livenessProbe.httpGet.host != "") ||
+ (has(container.livenessProbe) && has(container.livenessProbe.tcpSocket) && has(container.livenessProbe.tcpSocket.host) && container.livenessProbe.tcpSocket.host != "") ||
+ (has(container.readinessProbe) && has(container.readinessProbe.httpGet) && has(container.readinessProbe.httpGet.host) && container.readinessProbe.httpGet.host != "") ||
+ (has(container.readinessProbe) && has(container.readinessProbe.tcpSocket) && has(container.readinessProbe.tcpSocket.host) && container.readinessProbe.tcpSocket.host != "") ||
+ (has(container.startupProbe) && has(container.startupProbe.httpGet) && has(container.startupProbe.httpGet.host) && container.startupProbe.httpGet.host != "") ||
+ (has(container.startupProbe) && has(container.startupProbe.tcpSocket) && has(container.startupProbe.tcpSocket.host) && container.startupProbe.tcpSocket.host != "")
+ )
+ ).map(container, "Container " + container.name + " has probe with host field set")
+- name: badLifecycleContainers
+ expression: |
+ variables.allContainers.filter(container,
+ !(container.image in variables.exemptImages) &&
+ (
+ (has(container.lifecycle) && has(container.lifecycle.postStart) && has(container.lifecycle.postStart.httpGet) && has(container.lifecycle.postStart.httpGet.host) && container.lifecycle.postStart.httpGet.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.postStart) && has(container.lifecycle.postStart.tcpSocket) && has(container.lifecycle.postStart.tcpSocket.host) && container.lifecycle.postStart.tcpSocket.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.preStop) && has(container.lifecycle.preStop.httpGet) && has(container.lifecycle.preStop.httpGet.host) && container.lifecycle.preStop.httpGet.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.preStop) && has(container.lifecycle.preStop.tcpSocket) && has(container.lifecycle.preStop.tcpSocket.host) && container.lifecycle.preStop.tcpSocket.host != "")
+ )
+ ).map(container, "Container " + container.name + " has lifecycle hook with host field set")
+- name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+validations:
+- expression: variables.isUpdate || size(variables.badProbeContainers) == 0
+ messageExpression: 'variables.badProbeContainers.join(", ")'
+- expression: variables.isUpdate || size(variables.badLifecycleContainers) == 0
+ messageExpression: 'variables.badLifecycleContainers.join(", ")'
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..a4bd97b39b8caa5e07b258c86af1f73829f0691c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src.rego
@@ -0,0 +1,76 @@
+package k8spsphostprobeslifecycle
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ probe := get_probe(c)
+ probe.httpGet.host != ""
+ msg := sprintf("Container %v has probe with host field set: %v", [c.name, probe.httpGet.host])
+}
+
+violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ probe := get_probe(c)
+ probe.tcpSocket.host != ""
+ msg := sprintf("Container %v has probe with host field set: %v", [c.name, probe.tcpSocket.host])
+}
+
+violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ hook := get_lifecycle_hook(c)
+ hook.httpGet.host != ""
+ msg := sprintf("Container %v has lifecycle hook with host field set: %v", [c.name, hook.httpGet.host])
+}
+
+violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ hook := get_lifecycle_hook(c)
+ hook.tcpSocket.host != ""
+ msg := sprintf("Container %v has lifecycle hook with host field set: %v", [c.name, hook.tcpSocket.host])
+}
+
+get_probe(c) = probe {
+ probe := c.livenessProbe
+}
+
+get_probe(c) = probe {
+ probe := c.readinessProbe
+}
+
+get_probe(c) = probe {
+ probe := c.startupProbe
+}
+
+get_lifecycle_hook(c) = hook {
+ hook := c.lifecycle.postStart
+}
+
+get_lifecycle_hook(c) = hook {
+ hook := c.lifecycle.preStop
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..31b704b865326629f970b07a0faea71a2fc106f7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-probes-lifecycle/src_test.rego
@@ -0,0 +1,348 @@
+package k8spsphostprobeslifecycle
+
+test_input_container_no_probes_allowed {
+ inp := { "review": input_review}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_container_probe_without_host_allowed {
+ inp := { "review": input_review_probe_no_host}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_container_probe_with_host_not_allowed {
+ inp := { "review": input_review_probe_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_container_lifecycle_with_host_not_allowed {
+ inp := { "review": input_review_lifecycle_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_container_readiness_probe_with_host_not_allowed {
+ inp := { "review": input_review_readiness_probe_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_container_startup_probe_with_host_not_allowed {
+ inp := { "review": input_review_startup_probe_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_container_prestop_with_host_not_allowed {
+ inp := { "review": input_review_prestop_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_container_tcp_probe_with_host_not_allowed {
+ inp := { "review": input_review_tcp_probe_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_update {
+ inp := { "review": object.union(input_review_probe_with_host, {"operation": "UPDATE"})}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_exempted_image {
+ inp := { "review": input_review_probe_with_host_exempt, "parameters": {"exemptImages": ["safeimages.com/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_probe_no_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_probe_no_host
+ }
+ }
+}
+
+input_review_probe_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_probe_with_host
+ }
+ }
+}
+
+input_review_lifecycle_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_lifecycle_with_host
+ }
+ }
+}
+
+input_review_readiness_probe_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_readiness_probe_with_host
+ }
+ }
+}
+
+input_review_startup_probe_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_startup_probe_with_host
+ }
+ }
+}
+
+input_review_prestop_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_prestop_with_host
+ }
+ }
+}
+
+input_review_tcp_probe_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_tcp_probe_with_host
+ }
+ }
+}
+
+input_review_probe_with_host_exempt = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_probe_with_host_exempt
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx"
+}]
+
+input_containers_probe_no_host = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "livenessProbe": {
+ "httpGet": {
+ "path": "/",
+ "port": 80
+ }
+ }
+}]
+
+input_containers_probe_with_host = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "livenessProbe": {
+ "httpGet": {
+ "path": "/",
+ "port": 80,
+ "host": "127.0.0.1"
+ }
+ }
+}]
+
+input_containers_lifecycle_with_host = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "lifecycle": {
+ "postStart": {
+ "httpGet": {
+ "path": "/",
+ "port": 80,
+ "host": "127.0.0.1"
+ }
+ }
+ }
+}]
+
+input_containers_readiness_probe_with_host = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "readinessProbe": {
+ "httpGet": {
+ "path": "/",
+ "port": 80,
+ "host": "127.0.0.1"
+ }
+ }
+}]
+
+input_containers_startup_probe_with_host = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "startupProbe": {
+ "httpGet": {
+ "path": "/",
+ "port": 80,
+ "host": "127.0.0.1"
+ }
+ }
+}]
+
+input_containers_prestop_with_host = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "lifecycle": {
+ "preStop": {
+ "httpGet": {
+ "path": "/",
+ "port": 80,
+ "host": "127.0.0.1"
+ }
+ }
+ }
+}]
+
+input_containers_tcp_probe_with_host = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "livenessProbe": {
+ "tcpSocket": {
+ "port": 80,
+ "host": "127.0.0.1"
+ }
+ }
+}]
+
+input_containers_probe_with_host_exempt = [
+{
+ "name": "nginx",
+ "image": "safeimages.com/nginx",
+ "livenessProbe": {
+ "httpGet": {
+ "path": "/",
+ "port": 80,
+ "host": "127.0.0.1"
+ }
+ }
+}]
+
+# Tests for initContainers
+test_input_init_container_probe_with_host_not_allowed {
+ inp := { "review": input_review_init_container_probe_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+input_review_init_container_probe_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "initContainers": input_containers_probe_with_host
+ }
+ }
+}
+
+# Tests for ephemeralContainers
+test_input_ephemeral_container_probe_with_host_not_allowed {
+ inp := { "review": input_review_ephemeral_container_probe_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+input_review_ephemeral_container_probe_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "ephemeralContainers": input_containers_probe_with_host
+ }
+ }
+}
+
+# Test for initContainers with lifecycle hook
+test_input_init_container_lifecycle_with_host_not_allowed {
+ inp := { "review": input_review_init_container_lifecycle_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+input_review_init_container_lifecycle_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "initContainers": input_containers_lifecycle_with_host
+ }
+ }
+}
+
+# Test for ephemeralContainers with lifecycle hook
+test_input_ephemeral_container_lifecycle_with_host_not_allowed {
+ inp := { "review": input_review_ephemeral_container_lifecycle_with_host}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+input_review_ephemeral_container_lifecycle_with_host = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "ephemeralContainers": input_containers_lifecycle_with_host
+ }
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..d59a5de386148aaa3063a17d3a3042c2ae8269ff
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/constraint.tmpl
@@ -0,0 +1,58 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostprocess
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Process"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows HostProcess containers for Windows pods.
+ HostProcess containers enable privileged access on Windows nodes
+ and must be disallowed in Baseline and Restricted policies.
+ Corresponds to the windowsOptions.hostProcess field in a Pod's
+ securityContext or container securityContext.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostProcess
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows HostProcess containers for Windows pods.
+ HostProcess containers enable privileged access on Windows nodes
+ and must be disallowed in Baseline and Restricted policies.
+ Corresponds to the windowsOptions.hostProcess field in a Pod's
+ securityContext or container securityContext.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/host-process/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/host-process/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/host-process/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/host-process/lib_exempt_container.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..deb288fad5d86d567bd770db108db62d115ae236
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src.cel
@@ -0,0 +1,43 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+- name: podHostProcess
+ expression: |
+ has(variables.anyObject.spec.securityContext) &&
+ has(variables.anyObject.spec.securityContext.windowsOptions) &&
+ has(variables.anyObject.spec.securityContext.windowsOptions.hostProcess) &&
+ variables.anyObject.spec.securityContext.windowsOptions.hostProcess
+- name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ has(container.securityContext) &&
+ has(container.securityContext.windowsOptions) &&
+ has(container.securityContext.windowsOptions.hostProcess) &&
+ container.securityContext.windowsOptions.hostProcess
+ ).map(container, "HostProcess container is not allowed: " + container.name + ", securityContext.windowsOptions.hostProcess: true")
+- name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+validations:
+- expression: 'variables.isUpdate || !variables.podHostProcess'
+ messageExpression: '"HostProcess is not allowed at pod level: " + variables.anyObject.metadata.name'
+- expression: variables.isUpdate || size(variables.badContainers) == 0
+ messageExpression: 'variables.badContainers.join(", ")'
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..93ed6c3befe1e663dcf4fea283b88d1a7f62ed53
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src.rego
@@ -0,0 +1,35 @@
+package k8spsphostprocess
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.windowsOptions.hostProcess field is immutable.
+ not is_update(input.review)
+
+ # Check pod-level securityContext
+ input.review.object.spec.securityContext.windowsOptions.hostProcess == true
+ msg := sprintf("HostProcess is not allowed at pod level: %v", [input.review.object.metadata.name])
+}
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.windowsOptions.hostProcess field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ c.securityContext.windowsOptions.hostProcess == true
+ msg := sprintf("HostProcess container is not allowed: %v, securityContext.windowsOptions.hostProcess: true", [c.name])
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..03294f60ff872b051d142726f227208fe06fc848
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/host-process/src_test.rego
@@ -0,0 +1,217 @@
+package k8spsphostprocess
+
+test_input_container_not_host_process_allowed {
+ inp := { "review": input_review}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_container_host_process_not_allowed {
+ inp := { "review": input_review_host_process}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_pod_host_process_not_allowed {
+ inp := { "review": input_review_pod_host_process}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_container_many_not_host_process_allowed {
+ inp := { "review": input_review_many}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_container_many_mixed_host_process_not_allowed {
+ inp := { "review": input_review_many_mixed}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_init_container_host_process_not_allowed {
+ inp := { "review": input_review_init_host_process}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_input_ephemeral_container_host_process_not_allowed {
+ inp := { "review": input_review_ephemeral_host_process}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+test_update {
+ inp := { "review": object.union(input_review_host_process, {"operation": "UPDATE"})}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_exempted_image {
+ inp := { "review": input_review_host_process_exempt, "parameters": {"exemptImages": ["safeimages.com/*"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+# Test that pod-level hostProcess violation is NOT bypassed by exempt container images
+test_pod_level_host_process_not_bypassed_by_exempt_container {
+ inp := { "review": input_review_pod_host_process_with_exempt_container, "parameters": {"exemptImages": ["safeimages.com/*"]}}
+ results := violation with input as inp
+ count(results) > 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_host_process = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_host_process
+ }
+ }
+}
+
+input_review_pod_host_process = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "securityContext": {
+ "windowsOptions": {
+ "hostProcess": true
+ }
+ },
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one
+ }
+ }
+}
+
+input_review_many_mixed = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one_host_process
+ }
+ }
+}
+
+input_review_init_host_process = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "initContainers": input_containers_one_host_process
+ }
+ }
+}
+
+input_review_ephemeral_host_process = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ "ephemeralContainers": input_containers_one_host_process
+ }
+ }
+}
+
+input_review_host_process_exempt = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_host_process_exempt
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx"
+}]
+
+input_containers_one_host_process = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "windowsOptions": {
+ "hostProcess": true
+ }
+ }
+}]
+
+input_containers_one_host_process_exempt = [
+{
+ "name": "nginx",
+ "image": "safeimages.com/nginx",
+ "securityContext": {
+ "windowsOptions": {
+ "hostProcess": true
+ }
+ }
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "nginx"
+},
+{
+ "name": "nginx1",
+ "image": "nginx"
+}]
+
+# Pod-level hostProcess with exempt container image - should still violate
+input_review_pod_host_process_with_exempt_container = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "securityContext": {
+ "windowsOptions": {
+ "hostProcess": true
+ }
+ },
+ "containers": [{
+ "name": "nginx",
+ "image": "safeimages.com/nginx"
+ }]
+ }
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..ae23332b288bbcc526a20ea8db44bb8c0c91888d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/constraint.tmpl
@@ -0,0 +1,52 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspprivilegedcontainer
+ annotations:
+ metadata.gatekeeper.sh/title: "Privileged Container"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the ability of any container to enable privileged mode.
+ Corresponds to the `privileged` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPPrivilegedContainer
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the ability of any container to enable privileged mode.
+ Corresponds to the `privileged` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/privileged-containers/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/privileged-containers/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/privileged-containers/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/privileged-containers/lib_exempt_container.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..5793600ff3d189bfe29af495ff3b3d34a25feffc
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src.cel
@@ -0,0 +1,32 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+- name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ (has(container.securityContext) && has(container.securityContext.privileged) && container.securityContext.privileged)
+ ).map(container, "Privileged container is not allowed: " + container.name +", securityContext.privileged: true")
+- name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+validations:
+- expression: variables.isUpdate || size(variables.badContainers) == 0
+ messageExpression: 'variables.badContainers.join(", ")'
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..a789e96dacb87ceb36a31490fede1a7ec569a2b2
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src.rego
@@ -0,0 +1,26 @@
+package k8spspprivileged
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.containers.privileged field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ c.securityContext.privileged
+ msg := sprintf("Privileged container is not allowed: %v, securityContext: %v", [c.name, c.securityContext])
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..7c0f435c8c231fc4c50639895e1e0cab6c1436ee
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/privileged-containers/src_test.rego
@@ -0,0 +1,148 @@
+package k8spspprivileged
+
+test_input_container_not_privileged_allowed {
+ inp := { "review": input_review}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_privileged_not_allowed {
+ inp := { "review": input_review_priv}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_container_many_not_privileged_allowed {
+ inp := { "review": input_review_many}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_many_mixed_privileged_not_allowed {
+ inp := { "review": input_review_many_mixed}
+ results := violation with input as inp
+ count(results) > 0
+}
+test_input_container_many_mixed_privileged_not_allowed_three {
+ inp := { "review": input_review_many_mixed_two}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_container_many_mixed_privileged_not_allowed_three_but_exempt {
+ inp := { "review": input_review_many_mixed_two, "parameters": {"exemptImages": ["nginx"]}}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_update {
+ inp := { "review": object.union(input_review_priv, {"operation": "UPDATE"})}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_priv = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_priv
+ }
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one
+ }
+ }
+}
+
+input_review_many_mixed = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one_priv
+ }
+ }
+}
+
+input_review_many_mixed_two = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many_mixed,
+ "initContainers": input_containers_one_priv
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "privileged": false
+ }
+}]
+
+input_containers_one_priv = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "privileged": true
+ }
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "privileged": false
+ }
+},
+{
+ "name": "nginx1",
+ "image": "nginx"
+}]
+
+input_containers_many_mixed = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "privileged": false
+ }
+},
+{
+ "name": "nginx1",
+ "image": "nginx",
+ "securityContext": {
+ "privileged": true
+ }
+},
+{
+ "name": "nginx2",
+ "image": "nginx",
+ "securityContext": {
+ }
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..de7ef34098efe80644b352b127d204ba0b8840e7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/constraint.tmpl
@@ -0,0 +1,63 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspprocmount
+ annotations:
+ metadata.gatekeeper.sh/title: "Proc Mount"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the allowed `procMount` types for the container. Corresponds to
+ the `allowedProcMountTypes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#allowedprocmounttypes
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPProcMount
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the allowed `procMount` types for the container. Corresponds to
+ the `allowedProcMountTypes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#allowedprocmounttypes
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ procMount:
+ type: string
+ description: >-
+ Defines the strategy for the security exposure of certain paths
+ in `/proc` by the container runtime. Setting to `Default` uses
+ the runtime defaults, where `Unmasked` bypasses the default
+ behavior.
+ enum:
+ - Default
+ - Unmasked
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/proc-mount/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/proc-mount/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/proc-mount/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/proc-mount/lib_exempt_container.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..bd042f23a5ac34138cb66e691d9d1e79959047f8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src.cel
@@ -0,0 +1,42 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(
+ container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(
+ exemption,
+ string(container.image).startsWith(exemption)
+ )
+ ).map(container, container.image)
+- name: allowedProcMount
+ expression: |
+ !has(variables.params) ? "default" :
+ !has(variables.params.procMount) ? "default" :
+ (variables.params.procMount.lowerAscii() == "default" || variables.params.procMount.lowerAscii() == "unmasked") ? variables.params.procMount.lowerAscii() : "default"
+- name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ !(
+ (variables.allowedProcMount == "unmasked") ||
+ (variables.allowedProcMount == "default" && (!has(container.securityContext) || !has(container.securityContext.procMount) || container.securityContext.procMount == null || container.securityContext.procMount.lowerAscii() == "default"))
+ )
+ ).map(container, "ProcMount type is not allowed, container: " + container.name +". Allowed procMount types: " + variables.allowedProcMount)
+validations:
+- expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badContainers) == 0'
+ messageExpression: 'variables.badContainers.join("\n")'
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..8bf4a39b8ec1058d80b0ff39eb7306dede3a5072
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src.rego
@@ -0,0 +1,61 @@
+package k8spspprocmount
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.procMount field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ allowedProcMount := get_allowed_proc_mount(input)
+ not input_proc_mount_type_allowed(allowedProcMount, c)
+ msg := sprintf("ProcMount type is not allowed, container: %v. Allowed procMount types: %v", [c.name, allowedProcMount])
+}
+
+input_proc_mount_type_allowed(allowedProcMount, c) {
+ allowedProcMount == "default"
+ lower(c.securityContext.procMount) == "default"
+}
+input_proc_mount_type_allowed(allowedProcMount, _) {
+ allowedProcMount == "unmasked"
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ c.securityContext.procMount != null
+}
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ c.securityContext.procMount != null
+}
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ c.securityContext.procMount != null
+}
+
+get_allowed_proc_mount(arg) = out {
+ not arg.parameters
+ out = "default"
+}
+get_allowed_proc_mount(arg) = out {
+ not arg.parameters.procMount
+ out = "default"
+}
+get_allowed_proc_mount(arg) = out {
+ arg.parameters.procMount
+ not valid_proc_mount(arg.parameters.procMount)
+ out = "default"
+}
+get_allowed_proc_mount(arg) = out {
+ valid_proc_mount(arg.parameters.procMount)
+ out = lower(arg.parameters.procMount)
+}
+
+valid_proc_mount(str) {
+ lower(str) == "default"
+}
+valid_proc_mount(str) {
+ lower(str) == "unmasked"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c72c404d0cc23340e052dc3e1b16d2cd154df343
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/proc-mount/src_test.rego
@@ -0,0 +1,205 @@
+package k8spspprocmount
+
+test_input_container_not_proc_mount_allowed {
+ inp := { "review": input_review, "parameters": input_parameters_default}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_proc_mount_not_allowed {
+ inp := { "review": input_review_unmasked, "parameters": input_parameters_default}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_container_proc_mount_not_allowed_null_param {
+ inp := { "review": input_review_unmasked, "parameters": null }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_container_proc_mount_not_allowed_missing_param {
+ inp := { "review": input_review_unmasked }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_container_many_not_proc_mount_allowed {
+ inp := { "review": input_review_many, "parameters": input_parameters_default}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_many_mixed_proc_mount_not_allowed {
+ inp := { "review": input_review_many_mixed, "parameters": input_parameters_default}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_container_many_mixed_proc_mount_not_allowed_two {
+ inp := { "review": input_review_many_mixed_two, "parameters": input_parameters_default}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_container_many_mixed_proc_mount_not_allowed_two_but_exempt {
+ inp := { "review": input_review_many_mixed_two, "parameters": input_parameters_exempt}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_proc_mount_case_insensitive {
+ inp := { "review": input_review, "parameters": input_parameters_default_lower}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_proc_mount_case_invalid_procMount {
+ inp := { "review": input_review, "parameters": input_parameters_invalid_procMount}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_not_proc_mount_unmasked {
+ inp := { "review": input_review, "parameters": input_parameters_unmasked}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_proc_mount_unmasked {
+ inp := { "review": input_review_unmasked, "parameters": input_parameters_unmasked}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_many_mixed_proc_mount_allowed_two {
+ inp := { "review": input_review_many_mixed_two, "parameters": input_parameters_unmasked}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_update {
+ inp := { "review": object.union(input_review_unmasked, {"operation": "UPDATE"}), "parameters": input_parameters_default}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_unmasked = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_unmasked
+ }
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one
+ }
+ }
+}
+
+input_review_many_mixed = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one_unmasked
+ }
+ }
+}
+
+input_review_many_mixed_two = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many_mixed,
+ "initContainers": input_containers_one_unmasked
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "procMount": "Default"
+ }
+}]
+
+input_containers_one_unmasked = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "procMount": "Unmasked"
+ }
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "procMount": "Default"
+ }
+},
+{
+ "name": "nginx1",
+ "image": "nginx"
+},
+{
+ "name": "nginx2",
+ "image": "nginx",
+ "securityContext": {
+ "runAsUser": "1000"
+ }
+}]
+
+input_containers_many_mixed = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "procMount": "Default"
+ }
+},
+{
+ "name": "nginx1",
+ "image": "nginx",
+ "securityContext": {
+ "procMount": "Unmasked"
+ }
+}]
+
+input_parameters_default = {
+ "procMount": "Default"
+}
+
+input_parameters_default_lower = {
+ "procMount": "default"
+}
+
+input_parameters_unmasked = {
+ "procMount": "Unmasked"
+}
+
+input_parameters_exempt = {
+ "exemptImages": ["nginx"],
+ "procMount": "Default"
+}
+
+input_parameters_invalid_procMount = {
+ "procMount": "invalid"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..57516f3d8805fe29a7bcbc93f13dad6429dd89dc
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/constraint.tmpl
@@ -0,0 +1,52 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspreadonlyrootfilesystem
+ annotations:
+ metadata.gatekeeper.sh/title: "Read Only Root Filesystem"
+ metadata.gatekeeper.sh/version: 1.1.1
+ description: >-
+ Requires the use of a read-only root file system by pod containers.
+ Corresponds to the `readOnlyRootFilesystem` field in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPReadOnlyRootFilesystem
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires the use of a read-only root file system by pod containers.
+ Corresponds to the `readOnlyRootFilesystem` field in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/read-only-root-filesystem/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/read-only-root-filesystem/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/read-only-root-filesystem/lib_exclude_update.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/read-only-root-filesystem/lib_exempt_container.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..0be247c12af64a606ddae32a6f45d4cb414e9872
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src.cel
@@ -0,0 +1,32 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+- name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ (!has(container.securityContext) ||
+ !has(container.securityContext.readOnlyRootFilesystem) ||
+ container.securityContext.readOnlyRootFilesystem != true)
+ ).map(container, container.name)
+validations:
+- expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badContainers) == 0'
+ messageExpression: '"only read-only root filesystem container is allowed: " + variables.badContainers.join(", ")'
+
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..3d15390f0486bd15243d36877b53b5f36289e808
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src.rego
@@ -0,0 +1,36 @@
+package k8spspreadonlyrootfilesystem
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.containers.readOnlyRootFilesystem field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ input_read_only_root_fs(c)
+ msg := sprintf("only read-only root filesystem container is allowed: %v", [c.name])
+}
+
+input_read_only_root_fs(c) {
+ not has_field(c, "securityContext")
+}
+input_read_only_root_fs(c) {
+ not c.securityContext.readOnlyRootFilesystem == true
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
+
+# has_field returns whether an object has a field
+has_field(object, field) = true {
+ object[field]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..d39073043ed0d00b939bd8449b57e0e473123225
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/read-only-root-filesystem/src_test.rego
@@ -0,0 +1,136 @@
+package k8spspreadonlyrootfilesystem
+
+test_input_container_not_readonlyrootfilesystem_allowed {
+ inp := { "review": input_review}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_container_readonlyrootfilesystem_not_allowed {
+ inp := { "review": input_review_ro}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_container_many_mixed_readonlyrootfilesystem_not_allowed {
+ inp := { "review": input_review_many_mixed}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_container_many_mixed_readonlyrootfilesystem_not_allowed_two {
+ inp := { "review": input_review_many_mixed_two}
+ results := violation with input as inp
+ count(results) == 3
+}
+test_input_container_many_mixed_readonlyrootfilesystem_not_allowed_two_but_exempt {
+ inp := { "review": input_review_many_mixed_two, "parameters": {"exemptImages": ["nginx"]} }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_update {
+ inp := { "review": object.union(input_review, {"operation": "UPDATE"})}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one
+ }
+ }
+}
+
+input_review_ro = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one_ro
+ }
+ }
+}
+
+input_review_many_mixed = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "initContainers": input_containers_one
+ }
+ }
+}
+
+input_review_many_mixed_two = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many_mixed,
+ "initContainers": input_containers_one_ro
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "readOnlyRootFilesystem": false
+ }
+}]
+
+input_containers_one_ro = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "readOnlyRootFilesystem": true
+ }
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "readOnlyRootFilesystem": true
+ }
+},
+{
+ "name": "nginx1",
+ "image": "nginx"
+}]
+
+input_containers_many_mixed = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "readOnlyRootFilesystem": false
+ }
+},
+{
+ "name": "nginx1",
+ "image": "nginx",
+ "securityContext": {
+ "readOnlyRootFilesystem": true
+ }
+},
+{
+ "name": "nginx2",
+ "image": "nginx"
+},
+{
+ "name": "nginx3",
+ "image": "nginx",
+ "securityContext": {
+ "runAsUser": "1000"
+ }
+}]
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..5fdd6d074c2c97c2891cf37030841b1ea92fa09d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/constraint.tmpl
@@ -0,0 +1,80 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspseccomp
+ annotations:
+ metadata.gatekeeper.sh/title: "Seccomp"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `seccomp.security.alpha.kubernetes.io/allowedProfileNames` annotation on
+ a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSeccomp
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `seccomp.security.alpha.kubernetes.io/allowedProfileNames` annotation on
+ a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedProfiles:
+ type: array
+ description: >-
+ An array of allowed profile values for seccomp on Pods/Containers.
+
+ Can use the annotation naming scheme: `runtime/default`, `docker/default`, `unconfined` and/or
+ `localhost/some-profile.json`. The item `localhost/*` will allow any localhost based profile.
+
+ Can also use the securityContext naming scheme: `RuntimeDefault`, `Unconfined`
+ and/or `Localhost`. For securityContext `Localhost`, use the parameter `allowedLocalhostProfiles`
+ to list the allowed profile JSON files.
+
+ The policy code will translate between the two schemes so it is not necessary to use both.
+
+ Putting a `*` in this array allows all Profiles to be used.
+
+ This field is required since with an empty list this policy will block all workloads.
+ items:
+ type: string
+ allowedLocalhostFiles:
+ type: array
+ description: >-
+ When using securityContext naming scheme for seccomp and including `Localhost` this array holds
+ the allowed profile JSON files.
+
+ Putting a `*` in this array will allows all JSON files to be used.
+
+ This field is required to allow `Localhost` in securityContext as with an empty list it will block.
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/seccomp/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/seccomp/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/seccomp/lib_exempt_container.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..bdb8b218b009eaf4c0ab0ca1a676982a356e634a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src.cel
@@ -0,0 +1,141 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: allowAllProfiles
+ expression: |
+ has(variables.params.allowedProfiles) && variables.params.allowedProfiles.exists(profile, profile == "*")
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+- name: unverifiedContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !variables.allowAllProfiles &&
+ !(container.image in variables.exemptImages))
+- name: inputAllowedProfiles
+ expression: |
+ !has(variables.params.allowedProfiles) ? [] : variables.params.allowedProfiles
+- name: allowedLocalhostFiles
+ expression: |
+ has(variables.params.allowedLocalhostFiles) ? variables.params.allowedLocalhostFiles : []
+- name: allowedProfilesTranslation
+ expression: |
+ (variables.inputAllowedProfiles.filter(profile,
+ profile != "Localhost").map(profile, profile == "Unconfined" ? "unconfined" : profile)) +
+ (variables.inputAllowedProfiles.exists(profile, profile == "RuntimeDefault") ? ["runtime/default", "docker/default"] : [])
+- name: allowSecurityContextLocalhost
+ expression: |
+ variables.inputAllowedProfiles.exists(profile, profile == "Localhost")
+- name: derivedAllowedLocalhostFiles
+ expression: |
+ variables.allowSecurityContextLocalhost ? variables.params.allowedLocalhostFiles.map(file, "localhost/" + file) : []
+- name: localhostWildcardAllowed
+ expression: |
+ variables.inputAllowedProfiles.exists(profile, profile == "localhost/*") || variables.derivedAllowedLocalhostFiles.exists(profile, profile == "localhost/*")
+- name: allowedProfiles
+ expression: |
+ (variables.allowedProfilesTranslation + variables.derivedAllowedLocalhostFiles)
+- name: hasPodSeccomp
+ expression: |
+ has(variables.anyObject.spec.securityContext) && has(variables.anyObject.spec.securityContext.seccompProfile)
+- name: hasPodAnnotations
+ expression: |
+ has(variables.anyObject.metadata.annotations) && ("seccomp.security.alpha.kubernetes.io/pod" in variables.anyObject.metadata.annotations)
+- name: podAnnotationsProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !(has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)) &&
+ !variables.hasPodSeccomp &&
+ variables.hasPodAnnotations
+ ).map(container, {
+ "container" : container.name,
+ "profile" : variables.anyObject.metadata.annotations["seccomp.security.alpha.kubernetes.io/pod"],
+ "file" : dyn(""),
+ "location" : dyn("annotation seccomp.security.alpha.kubernetes.io/pod"),
+ })
+- name: containerAnnotationsProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !variables.hasPodSeccomp &&
+ has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : variables.anyObject.metadata.annotations["container.seccomp.security.alpha.kubernetes.io/" + container.name],
+ "file" : dyn(""),
+ "location" : dyn("annotation container.seccomp.security.alpha.kubernetes.io/" + container.name),
+ })
+- name: podLocalHostProfile
+ expression: |
+ variables.hasPodSeccomp && has(variables.anyObject.spec.securityContext.seccompProfile.localhostProfile) ? variables.anyObject.spec.securityContext.seccompProfile.localhostProfile : ""
+- name: canonicalPodSecurityContextProfile
+ expression: |
+ has(variables.hasPodSeccomp) && has(variables.anyObject.spec.securityContext.seccompProfile.type) ?
+ (variables.anyObject.spec.securityContext.seccompProfile.type == "RuntimeDefault" ? (
+ variables.allowedProfiles.exists(profile, profile == "runtime/default") ? "runtime/default" : variables.allowedProfiles.exists(profile, profile == "docker/default") ? "docker/default" : "runtime/default") :
+ variables.anyObject.spec.securityContext.seccompProfile.type == "Unconfined" ? "unconfined" : variables.anyObject.spec.securityContext.seccompProfile.type == "Localhost" ? "localhost/" + variables.podLocalHostProfile : "")
+ : ""
+- name: podSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(variables.canonicalPodSecurityContextProfile),
+ "file" : variables.podLocalHostProfile,
+ "location" : dyn("pod securityContext"),
+ })
+- name: containerSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ has(container.securityContext) && has(container.securityContext.seccompProfile)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(has(container.securityContext.seccompProfile.type) ? (container.securityContext.seccompProfile.type == "RuntimeDefault" ? (
+ variables.allowedProfiles.exists(profile, profile == "runtime/default") ? "runtime/default" : variables.allowedProfiles.exists(profile, profile == "docker/default") ? "docker/default" : "runtime/default") :
+ container.securityContext.seccompProfile.type == "Unconfined" ? "unconfined" : container.securityContext.seccompProfile.type == "Localhost" ? "localhost/" + container.securityContext.seccompProfile.localhostProfile : "")
+ : ""),
+ "file" : has(container.securityContext.seccompProfile.localhostProfile) ? container.securityContext.seccompProfile.localhostProfile : dyn(""),
+ "location" : dyn("container securityContext"),
+ })
+- name: containerProfilesMissing
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !(has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)) &&
+ !variables.hasPodSeccomp &&
+ !variables.hasPodAnnotations
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn("not configured"),
+ "file" : dyn(""),
+ "location" : dyn("no explicit profile found"),
+ })
+- name: allContainerProfiles
+ expression: |
+ variables.podAnnotationsProfiles + variables.containerAnnotationsProfiles + variables.podSecurityContextProfiles + variables.containerSecurityContextProfiles + variables.containerProfilesMissing
+- name: badContainerProfiles
+ expression: |
+ variables.allContainerProfiles.filter(badContainerProfile,
+ !((badContainerProfile.profile in variables.allowedProfiles) || (badContainerProfile.profile.startsWith("localhost/") && variables.localhostWildcardAllowed))
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.allowedProfiles.join(", "))
+validations:
+- expression: 'size(variables.badContainerProfiles) == 0'
+ messageExpression: |
+ variables.badContainerProfiles.join(", ")
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..d06a271d1b248e495d9c997cd04ba535dc874971
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src.rego
@@ -0,0 +1,161 @@
+package k8spspseccomp
+
+import data.lib.exempt_container.is_exempt
+
+container_annotation_key_prefix = "container.seccomp.security.alpha.kubernetes.io/"
+
+pod_annotation_key = "seccomp.security.alpha.kubernetes.io/pod"
+
+violation[{"msg": msg}] {
+ not input_wildcard_allowed_profiles
+ allowed_profiles := get_allowed_profiles
+ container := input_containers[name]
+ not is_exempt(container)
+ result := get_profile(container)
+ not allowed_profile(result.profile, result.file, allowed_profiles)
+ msg := get_message(result.profile, result.file, name, result.location, allowed_profiles)
+}
+
+get_message(profile, _, name, location, allowed_profiles) = message {
+ message := sprintf("Seccomp profile '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, name, location, allowed_profiles])
+}
+
+input_wildcard_allowed_profiles {
+ input.parameters.allowedProfiles[_] == "*"
+}
+
+input_wildcard_allowed_files {
+ input.parameters.allowedLocalhostFiles[_] == "*"
+}
+
+input_wildcard_allowed_files {
+ "localhost/*" == input.parameters.allowedProfiles[_]
+}
+
+# Simple allowed Profiles
+allowed_profile(profile, _, allowed) {
+ not startswith(profile, "localhost/")
+ profile == allowed[_]
+}
+
+# annotation localhost with wildcard
+allowed_profile(profile, _, allowed) {
+ "localhost/*" == allowed[_]
+ startswith(profile, "localhost/")
+}
+
+# annotation localhost without wildcard
+allowed_profile(profile, _, allowed) {
+ startswith(profile, "localhost/")
+ profile == allowed[_]
+}
+
+# The profiles explicitly in the list
+get_allowed_profiles[allowed] {
+ allowed := input.parameters.allowedProfiles[_]
+}
+
+# Seccomp Localhost to annotation translation
+get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ not contains(profile, "/")
+ file := object.get(input.parameters, "allowedLocalhostFiles", [])[_]
+ allowed := canonicalize_seccomp_profile({"type": profile, "localhostProfile": file}, "")[_]
+}
+
+# Container profile as defined in pod annotation
+get_profile(container) = {"profile": profile, "file": "", "location": location} {
+ not has_securitycontext_container(container)
+ not has_annotation(get_container_annotation_key(container.name))
+ not has_securitycontext_pod
+ profile := input.review.object.metadata.annotations[pod_annotation_key]
+ location := sprintf("annotation %v", [pod_annotation_key])
+}
+
+# Container profile as defined in container annotation
+get_profile(container) = {"profile": profile, "file": "", "location": location} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+ container_annotation := get_container_annotation_key(container.name)
+ has_annotation(container_annotation)
+ profile := input.review.object.metadata.annotations[container_annotation]
+ location := sprintf("annotation %v", [container_annotation])
+}
+
+# Container profile as defined in pods securityContext
+get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ not has_securitycontext_container(container)
+ profile := canonicalize_seccomp_profile(input.review.object.spec.securityContext.seccompProfile, canonicalize_runtime_default_profile)[_]
+ file := object.get(input.review.object.spec.securityContext.seccompProfile, "localhostProfile", "")
+ location := "pod securityContext"
+}
+
+# Container profile as defined in containers securityContext
+get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ has_securitycontext_container(container)
+ profile := canonicalize_seccomp_profile(container.securityContext.seccompProfile, canonicalize_runtime_default_profile)[_]
+ file := object.get(container.securityContext.seccompProfile, "localhostProfile", "")
+ location := "container securityContext"
+}
+
+# Container profile missing
+get_profile(container) = {"profile": "not configured", "file": "", "location": "no explicit profile found"} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+ not has_annotation(get_container_annotation_key(container.name))
+ not has_annotation(pod_annotation_key)
+}
+
+has_annotation(annotation) {
+ input.review.object.metadata.annotations[annotation]
+}
+
+has_securitycontext_pod {
+ input.review.object.spec.securityContext.seccompProfile
+}
+
+has_securitycontext_container(container) {
+ container.securityContext.seccompProfile
+}
+
+get_container_annotation_key(name) = annotation {
+ annotation := concat("", [container_annotation_key_prefix, name])
+}
+
+input_containers[container.name] = container {
+ container := input.review.object.spec.containers[_]
+}
+
+input_containers[container.name] = container {
+ container := input.review.object.spec.initContainers[_]
+}
+
+input_containers[container.name] = container {
+ container := input.review.object.spec.ephemeralContainers[_]
+}
+
+canonicalize_runtime_default_profile() = out {
+ "runtime/default" == input.parameters.allowedProfiles[_]
+ out := "runtime/default"
+} else = out {
+ "docker/default" == input.parameters.allowedProfiles[_]
+ out := "docker/default"
+} else = out {
+ out := "runtime/default"
+}
+
+canonicalize_seccomp_profile(profile, def) = out {
+ profile.type == "RuntimeDefault"
+ def == ""
+ out := ["runtime/default", "docker/default"]
+} else = out {
+ profile.type == "RuntimeDefault"
+ def != ""
+ out := [def]
+} else = out {
+ profile.type == "Localhost"
+ out := [sprintf("localhost/%s", [profile.localhostProfile])]
+} else = out {
+ profile.type == "Unconfined"
+ out := ["unconfined"]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..74bba46c9a54f40bf9b8dae2d52b4630eb335f9f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccomp/src_test.rego
@@ -0,0 +1,655 @@
+package k8spspseccomp
+
+# Annotation based seccomp with containers
+test_input_annotation_seccomp_empty_parameters {
+ inp := {"review": get_object(pod_annotation, {}, single_container, {}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_annotation_seccomp_allowed_all {
+ inp := {"review": get_object(pod_annotation, {}, single_container, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_allowed_in_list {
+ inp := {"review": get_object(pod_annotation, {}, single_container, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_not_allowed_not_in_list {
+ inp := {"review": get_object(pod_annotation, {}, single_container, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_annotation_seccomp_pod_multiple_empty_parameters {
+ inp := {"review": get_object(pod_annotation, {}, multiple_containers, {}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_annotation_seccomp_pod_multiple_allowed_all {
+ inp := {"review": get_object(pod_annotation, {}, multiple_containers, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_pod_multiple_allowed_in_list {
+ inp := {"review": get_object(pod_annotation, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_pod_multiple_not_allowed_not_in_list {
+ inp := {"review": get_object(pod_annotation, {}, multiple_containers, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_annotation_seccomp_container_allowed_all {
+ inp := {"review": get_object(container_annotation, {}, single_container, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_container_allowed_in_list {
+ inp := {"review": get_object(container_annotation, {}, single_container, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_container_not_allowed_not_in_list {
+ inp := {"review": get_object(container_annotation, {}, single_container, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_annotation_seccomp_containers_allowed_in_list {
+ inp := {"review": get_object(container_annotations, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_containers_not_allowed_not_in_list {
+ inp := {"review": get_object(container_annotations, {}, multiple_containers, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_annotation_seccomp_containers_mixed {
+ inp := {"review": get_object(container_annotations_mixed, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_annotation_seccomp_containers_mixed_missing {
+ inp := {"review": get_object(container_annotation, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_annotation_seccomp_containers_allowed_in_list_multiple {
+ inp := {"review": get_object(container_annotations_mixed, {}, multiple_containers, {}), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_pod_container {
+ inp := {"review": get_object(pod_container_annotations, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_pod_container_not_allowed {
+ inp := {"review": get_object(pod_container_annotations, {}, multiple_containers, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_annotation_seccomp_pod_container_both_allowed {
+ inp := {"review": get_object(pod_container_annotations_mixed, {}, multiple_containers, {}), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_pod_container_mixed_allowed {
+ inp := {"review": get_object(pod_container_annotations_mixed, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_annotation_seccomp_pod_container_mixed_not_allowed {
+ inp := {"review": get_object(pod_container_annotations_mixed, {}, multiple_containers, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_annotation_seccomp_pod_container_both_allowed_reversed {
+ inp := {"review": get_object(pod_container_annotations_mixed_rev, {}, multiple_containers, {}), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_pod_container_mixed_allowed_reversed {
+ inp := {"review": get_object(pod_container_annotations_mixed_rev, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_annotation_seccomp_pod_container_mixed_not_allowed_reversed {
+ inp := {"review": get_object(pod_container_annotations_mixed_rev, {}, multiple_containers, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+# Annotation based seccomp with init containers
+test_input_annotation_seccomp_pod_initcontainer_both_allowed {
+ inp := {"review": get_object(pod_container_annotations_mixed, {}, {}, multiple_containers), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_annotation_seccomp_pod_initcontainer_mixed_allowed {
+ inp := {"review": get_object(pod_container_annotations_mixed, {}, {}, multiple_containers), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_annotation_seccomp_pod_initcontainer_mixed_not_allowed {
+ inp := {"review": get_object(pod_container_annotations_mixed, {}, {}, multiple_containers), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+# securityContext based seccomp with containers
+test_input_seccomp_empty_parameters {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_allowed_all {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_allowed_in_list {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_not_allowed_not_in_list {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_multiple_empty_parameters {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers, {}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_pod_multiple_allowed_all {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_multiple_allowed_in_list {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_multiple_not_allowed_not_in_list {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_pod_localhost_allowed_wrong_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_sc}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_localhost_allowed_no_specified_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_sc_localhost_no_file}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_localhost_allowed_wildcard_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_sc_localhost_wildcard_file}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_localhost_allowed_annotation_wildcard_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_localhost_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_localhost_allowed_both_wildcard_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_localhost_wildcard_both}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_not_allowed_not_configured {
+ inp := {"review": get_object({}, {}, single_container, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_not_allowed_multiple_not_configured {
+ inp := {"review": get_object({}, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_container_allowed_all {
+ inp := {"review": get_object({}, {}, single_container_sc, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_container_allowed_in_list {
+ inp := {"review": get_object({}, {}, single_container_sc, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_container_not_allowed_not_in_list {
+ inp := {"review": get_object({}, {}, single_container_sc, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_containers_allowed_in_list {
+ inp := {"review": get_object({}, {}, multiple_containers_sc, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_containers_not_allowed_not_in_list {
+ inp := {"review": get_object({}, {}, multiple_containers_sc, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_containers_mixed {
+ inp := {"review": get_object({}, {}, multiple_containers_sc_mixed, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_containers_mixed_missing {
+ inp := {"review": get_object({}, {}, multiple_containers_sc_missing, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_containers_allowed_in_list_multiple {
+ inp := {"review": get_object({}, {}, multiple_containers_sc_mixed, {}), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_container {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers_sc_missing, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_container_mixed_not_allowed_but_exempt {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameters_exempt}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_container_not_allowed {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers_sc_missing, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_pod_container_both_allowed {
+ inp := {"review": get_object({}, context_localhost, multiple_containers_sc_missing, {}), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_container_mixed_allowed {
+ inp := {"review": get_object({}, context_localhost, multiple_containers_sc_missing, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_container_mixed_not_allowed {
+ inp := {"review": get_object({}, context_localhost, multiple_containers_sc_missing, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+# securityContext based seccomp with init containers
+test_input_seccomp_pod_initcontainer_both_allowed {
+ inp := {"review": get_object({}, context_localhost, {}, multiple_containers_sc_missing), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_initcontainer_mixed_allowed {
+ inp := {"review": get_object({}, context_localhost, {}, multiple_containers_sc_missing), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_initcontainer_mixed_not_allowed {
+ inp := {"review": get_object({}, context_localhost, {}, multiple_containers_sc_missing), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+# Both annotation and securityContext based seccomp mixed
+test_input_both_seccomp_pod_context_container_annotation {
+ inp := {"review": get_object(container_annotation_unconfined, context_runtimedefault, single_container, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_both_seccomp_pod_annotation_container_context {
+ inp := {"review": get_object(pod_annotation_unconfined, {}, single_container_sc, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_both_seccomp_pod_context_and_annotation {
+ inp := {"review": get_object(pod_annotation, context_runtimedefault, single_container, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_both_seccomp_container_context_and_annotation {
+ inp := {"review": get_object(container_annotation, {}, single_container_sc, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_both_seccomp_pod_context_container_annotation_not_allowed {
+ inp := {"review": get_object(container_annotation_unconfined, context_runtimedefault, single_container, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_both_seccomp_pod_annotation_container_context_not_allowed {
+ inp := {"review": get_object(pod_annotation_unconfined, {}, single_container_sc, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_both_seccomp_pod_context_and_annotation_not_allowed {
+ inp := {"review": get_object(pod_annotation, context_runtimedefault, single_container, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_both_seccomp_container_context_and_annotation_not_allowed {
+ inp := {"review": get_object(container_annotation, {}, single_container_sc, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_both_seccomp_pod_context_container_annotation_multiple_mixed {
+ inp := {"review": get_object(container_annotation, context_unconfined, multiple_containers_sc_missing, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+# Testing translation between annotation and securityContext
+test_translation_seccomp_allowed_annotation_all {
+ inp := {"parameters": input_parameters_annotation}
+ output := get_allowed_profiles with input as inp
+ output == allowed_full_translated_annotation_style
+}
+
+test_translation_seccomp_allowed_context_all {
+ inp := {"parameters": input_parameters_sc}
+ output := get_allowed_profiles with input as inp
+ output == allowed_full_translated
+}
+
+test_translation_seccomp_allowed_context_localhost_wildcard_file {
+ inp := {"parameters": input_parameters_sc_localhost_wildcard_file}
+ output := get_allowed_profiles with input as inp
+ output == {"Localhost", "localhost/*"}
+}
+
+test_translation_seccomp_allowed_context_localhost_no_file {
+ inp := {"parameters": input_parameters_sc_localhost_no_file}
+ output := get_allowed_profiles with input as inp
+ output == {"Localhost"}
+}
+
+test_input_translation_seccomp_annotation_match_allowed_context {
+ inp := {"review": get_object(container_annotation, {}, single_container, {}), "parameters": input_parameters_sc}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_translation_seccomp_context_match_allowed_annotation {
+ inp := {"review": get_object({}, {}, single_container_sc, {}), "parameters": input_parameters_annotation}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_translation_seccomp_context_localhost_allowed_annotation {
+ inp := {"review": get_object({}, context_localhost1, single_container, {}), "parameters": input_parameters_annotation}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_translation_seccomp_context_localhost_allowed_annotation_missing {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_annotation}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+# Create Review Object
+get_object(annotations, podcontext, containers, initcontainers) = {"object": {
+ "metadata": {
+ "name": "nginx",
+ "annotations": annotations,
+ },
+ "spec": {
+ "containers": containers,
+ "initContainers": initcontainers,
+ "securityContext": podcontext,
+ },
+}}
+
+# Test Containers
+single_container = [{
+ "name": "nginx",
+ "image": "nginx",
+}]
+
+multiple_containers = [
+ {
+ "name": "nginx",
+ "image": "nginx",
+ },
+ {
+ "name": "nginx2",
+ "image": "nginx",
+ },
+]
+
+single_container_sc = [{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+}]
+
+multiple_containers_sc = [
+ {
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+ },
+ {
+ "name": "nginx2",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+ },
+]
+
+multiple_containers_sc_mixed = [
+ {
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+ },
+ {
+ "name": "nginx2",
+ "image": "nginx",
+ "securityContext": context_localhost,
+ },
+]
+
+multiple_containers_sc_missing = [
+ {
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+ },
+ {
+ "name": "nginx2",
+ "image": "nginx",
+ },
+]
+
+# Test Annotations
+pod_annotation = {"seccomp.security.alpha.kubernetes.io/pod": "runtime/default"}
+
+pod_annotation_unconfined = {"seccomp.security.alpha.kubernetes.io/pod": "unconfined"}
+
+pod_container_annotations = {
+ "seccomp.security.alpha.kubernetes.io/pod": "runtime/default",
+ "container.seccomp.security.alpha.kubernetes.io/nginx": "runtime/default",
+}
+
+pod_container_annotations_mixed = {
+ "seccomp.security.alpha.kubernetes.io/pod": "runtime/default",
+ "container.seccomp.security.alpha.kubernetes.io/nginx": "localhost/profile.json",
+}
+
+pod_container_annotations_mixed_rev = {
+ "seccomp.security.alpha.kubernetes.io/pod": "localhost/profile.json",
+ "container.seccomp.security.alpha.kubernetes.io/nginx": "runtime/default",
+}
+
+container_annotation = {"container.seccomp.security.alpha.kubernetes.io/nginx": "runtime/default"}
+
+container_annotation_unconfined = {"container.seccomp.security.alpha.kubernetes.io/nginx": "unconfined"}
+
+container_annotations = {
+ "container.seccomp.security.alpha.kubernetes.io/nginx": "runtime/default",
+ "container.seccomp.security.alpha.kubernetes.io/nginx2": "runtime/default",
+}
+
+container_annotations_mixed = {
+ "container.seccomp.security.alpha.kubernetes.io/nginx": "runtime/default",
+ "container.seccomp.security.alpha.kubernetes.io/nginx2": "localhost/profile.json",
+}
+
+# Test securityContexts
+context_localhost = {"seccompProfile": {"type": "Localhost", "localhostProfile": "profile.json"}}
+
+context_localhost1 = {"seccompProfile": {"type": "Localhost", "localhostProfile": "profile1.json"}}
+
+context_runtimedefault = {"seccompProfile": {"type": "RuntimeDefault"}}
+
+context_unconfined = {"seccompProfile": {"type": "Unconfined"}}
+
+# Test Parameters
+input_parameters_empty = {"allowedProfiles": []}
+
+input_parameters_wildcard = {"allowedProfiles": ["*"]}
+
+input_parameters_localhost_wildcard = {"allowedProfiles": ["localhost/*"]}
+
+input_parameters_localhost_wildcard_both = {"allowedProfiles": ["localhost/*"], "allowedLocalhostFiles": ["*"]}
+
+input_parameter_in_list = {"allowedProfiles": [
+ "runtime/default",
+ "RuntimeDefault",
+]}
+
+input_parameters_in_list = {
+ "allowedProfiles": [
+ "runtime/default",
+ "RuntimeDefault",
+ "docker/default",
+ "Localhost",
+ ],
+ "allowedLocalhostFiles": ["profile.json"],
+}
+
+input_parameters_not_in_list = {"allowedProfiles": [
+ "unconfined",
+ "Unconfined",
+]}
+
+input_parameters_exempt = {
+ "exemptImages": ["nginx"],
+ "allowedProfiles": ["unconfined"],
+}
+
+input_parameters_annotation = {"allowedProfiles": [
+ "runtime/default",
+ "docker/default",
+ "localhost/profile1.json",
+ "localhost/profile2.json",
+ "unconfined",
+]}
+
+input_parameters_sc = {
+ "allowedProfiles": [
+ "RuntimeDefault",
+ "Localhost",
+ "Unconfined",
+ ],
+ "allowedLocalhostFiles": [
+ "profile1.json",
+ "profile2.json",
+ ],
+}
+
+input_parameters_sc_localhost_wildcard_file = {
+ "allowedProfiles": ["Localhost"],
+ "allowedLocalhostFiles": ["*"],
+}
+
+input_parameters_sc_localhost_no_file = {"allowedProfiles": ["Localhost"]}
+
+allowed_full_translated = {
+ "Localhost", "localhost/profile1.json", "localhost/profile2.json",
+ "RuntimeDefault", "docker/default", "runtime/default",
+ "Unconfined", "unconfined",
+}
+
+allowed_full_translated_annotation_style = {
+ "runtime/default",
+ "docker/default",
+ "localhost/profile1.json",
+ "localhost/profile2.json",
+ "unconfined",
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..1b73cb050ded419cc86ed4819a28835e4f0ff58a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/constraint.tmpl
@@ -0,0 +1,74 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspseccompv2
+ annotations:
+ metadata.gatekeeper.sh/title: "Seccomp V2"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `securityContext.seccompProfile` field. Security contexts from the annotation is not considered as Kubernetes no longer reads security contexts from the annotation.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSeccompV2
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `securityContext.seccompProfile` field. Security contexts from the annotation is not considered as Kubernetes no longer reads security contexts from the annotation.
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedProfiles:
+ type: array
+ description: >-
+ An array of allowed profile values for seccomp on Pods/Containers.
+
+ Can use the securityContext naming scheme: `RuntimeDefault`, `Unconfined`
+ and/or `Localhost`. For securityContext `Localhost`, use the parameter `allowedLocalhostFiles`
+ to list the allowed profile JSON files.
+
+ The policy code will translate between the two schemes so it is not necessary to use both.
+
+ Putting a `*` in this array allows all Profiles to be used.
+
+ This field is required since with an empty list this policy will block all workloads.
+ items:
+ type: string
+ allowedLocalhostFiles:
+ type: array
+ description: >-
+ When using securityContext naming scheme for seccomp and including `Localhost` this array holds
+ the allowed profile JSON files.
+
+ Putting a `*` in this array will allows all JSON files to be used.
+
+ This field is required to allow `Localhost` in securityContext as with an empty list it will block.
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+{{ file.Read "src/pod-security-policy/seccompv2/src.cel" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - engine: Rego
+ source:
+ rego: |
+{{ file.Read "src/pod-security-policy/seccompv2/src.rego" | strings.Indent 12 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/seccompv2/lib_exempt_container.rego" | strings.Indent 14 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src.cel b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src.cel
new file mode 100644
index 0000000000000000000000000000000000000000..c2847062aa0b0a4486f12aae55402ae2651f9d1c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src.cel
@@ -0,0 +1,101 @@
+variables:
+- name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+- name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+- name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+- name: allowAllProfiles
+ expression: |
+ has(variables.params.allowedProfiles) && variables.params.allowedProfiles.exists(profile, profile == "*")
+- name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+- name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+- name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+- name: unverifiedContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !variables.allowAllProfiles &&
+ !(container.image in variables.exemptImages))
+- name: inputNonLocalHostProfiles
+ expression: |
+ variables.params.allowedProfiles.filter(profile, profile != "Localhost").map(profile, {"type": profile})
+- name: inputLocalHostProfiles
+ expression: |
+ variables.params.allowedProfiles.exists(profile, profile == "Localhost") ? variables.params.allowedLocalhostFiles.map(file, {"type": "Localhost", "localHostProfile": string(file)}) : []
+- name: inputAllowedProfiles
+ expression: |
+ variables.inputNonLocalHostProfiles + variables.inputLocalHostProfiles
+- name: hasPodSeccomp
+ expression: |
+ has(variables.anyObject.spec.securityContext) && has(variables.anyObject.spec.securityContext.seccompProfile)
+- name: podLocalHostProfile
+ expression: |
+ variables.hasPodSeccomp && has(variables.anyObject.spec.securityContext.seccompProfile.localhostProfile) ? variables.anyObject.spec.securityContext.seccompProfile.localhostProfile : ""
+- name: podSecurityContextProfileType
+ expression: |
+ has(variables.hasPodSeccomp) && has(variables.anyObject.spec.securityContext.seccompProfile.type) ? variables.anyObject.spec.securityContext.seccompProfile.type
+ : ""
+- name: podSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(variables.podSecurityContextProfileType),
+ "file" : variables.podLocalHostProfile,
+ "location" : dyn("pod securityContext"),
+ })
+- name: containerSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ has(container.securityContext) && has(container.securityContext.seccompProfile)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(container.securityContext.seccompProfile.type),
+ "file" : has(container.securityContext.seccompProfile.localhostProfile) ? container.securityContext.seccompProfile.localhostProfile : dyn(""),
+ "location" : dyn("container securityContext"),
+ })
+- name: containerProfilesMissing
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn("not configured"),
+ "file" : dyn(""),
+ "location" : dyn("no explicit profile found"),
+ })
+- name: allContainerProfiles
+ expression: |
+ variables.podSecurityContextProfiles + variables.containerSecurityContextProfiles + variables.containerProfilesMissing
+- name: badContainerProfilesWithoutFiles
+ expression: |
+ variables.allContainerProfiles.filter(container,
+ container.profile != "Localhost" &&
+ !variables.inputAllowedProfiles.exists(profile, profile.type == container.profile)
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.inputAllowedProfiles.map(profile, "{\"type\": \"" + profile.type + "\"" + (has(profile.localHostProfile) ? ", \"localHostProfile\": \"" + profile.localHostProfile + "\"}" : "}")).join(", "))
+- name: badContainerProfilesWithFiles
+ expression: |
+ variables.allContainerProfiles.filter(container,
+ container.profile == "Localhost" &&
+ !variables.inputAllowedProfiles.exists(profile, profile.type == "Localhost" && (has(profile.localHostProfile) && (profile.localHostProfile == container.file || profile.localHostProfile == "*")))
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' With file '" + badProfile.file + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.inputAllowedProfiles.map(profile, "{\"type\": \"" + profile.type + "\"" + (has(profile.localHostProfile) ? ", \"localHostProfile\": \"" + profile.localHostProfile + "\"}" : "}")).join(", "))
+validations:
+- expression: 'size(variables.badContainerProfilesWithoutFiles) == 0'
+ messageExpression: |
+ variables.badContainerProfilesWithoutFiles.join(", ")
+- expression: 'size(variables.badContainerProfilesWithFiles) == 0'
+ messageExpression: |
+ variables.badContainerProfilesWithFiles.join(", ")
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..eee2ee0372d698e2e7aa4302e7fab5369f6888a8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src.rego
@@ -0,0 +1,111 @@
+package k8spspseccomp
+
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg}] {
+ not input_wildcard_allowed_profiles
+ allowed_profiles := get_allowed_profiles
+ container := input_containers[name]
+ not is_exempt(container)
+ result := get_profile(container)
+ not allowed_profile(result.profile, result.file, allowed_profiles)
+ msg := get_message(result.profile, result.file, name, result.location, allowed_profiles)
+}
+
+get_message(profile, _, name, location, allowed_profiles) = message {
+ profile != "Localhost"
+ message := sprintf("Seccomp profile '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, name, location, allowed_profiles])
+}
+
+get_message(profile, file, name, location, allowed_profiles) = message {
+ profile == "Localhost"
+ message := sprintf("Seccomp profile '%v' with file '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, file, name, location, allowed_profiles])
+}
+
+input_wildcard_allowed_profiles {
+ input.parameters.allowedProfiles[_] == "*"
+}
+
+input_wildcard_allowed_files {
+ input.parameters.allowedLocalhostFiles[_] == "*"
+}
+
+allowed_profile(_, _, _) {
+ input_wildcard_allowed_profiles
+}
+
+allowed_profile(profile, _, _) {
+ profile == "Localhost"
+ input_wildcard_allowed_files
+}
+
+# Simple allowed Profiles
+allowed_profile(profile, _, allowed) {
+ profile != "Localhost"
+ allow_profile = allowed[_]
+ profile == allow_profile.type
+}
+
+# annotation localhost without wildcard
+allowed_profile(profile, file, allowed) {
+ profile == "Localhost"
+ allow_profile = allowed[_]
+ allow_profile.type == "Localhost"
+ file == allow_profile.localHostProfile
+}
+
+# The profiles explicitly in the list
+get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ profile != "Localhost"
+ allowed := {"type": profile}
+}
+
+get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ profile == "Localhost"
+ file := object.get(input.parameters, "allowedLocalhostFiles", [""])[_]
+ allowed := {"type": "Localhost", "localHostProfile": file}
+}
+
+# Container profile as defined in containers securityContext
+get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ has_securitycontext_container(container)
+ profile := container.securityContext.seccompProfile.type
+ file := object.get(container.securityContext.seccompProfile, "localhostProfile", "")
+ location := "container securityContext"
+}
+
+# Container profile as defined in pods securityContext
+get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ not has_securitycontext_container(container)
+ profile := input.review.object.spec.securityContext.seccompProfile.type
+ file := object.get(input.review.object.spec.securityContext.seccompProfile, "localhostProfile", "")
+ location := "pod securityContext"
+}
+
+# Container profile missing
+get_profile(container) = {"profile": "not configured", "file": "", "location": "no explicit profile found"} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+}
+
+has_securitycontext_pod {
+ input.review.object.spec.securityContext.seccompProfile
+}
+
+has_securitycontext_container(container) {
+ container.securityContext.seccompProfile
+}
+
+input_containers[container.name] = container {
+ container := input.review.object.spec.containers[_]
+}
+
+input_containers[container.name] = container {
+ container := input.review.object.spec.initContainers[_]
+}
+
+input_containers[container.name] = container {
+ container := input.review.object.spec.ephemeralContainers[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..372815b363253d730c74c07325d3bb46dd077449
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/seccompv2/src_test.rego
@@ -0,0 +1,361 @@
+package k8spspseccomp
+
+# securityContext based seccomp with containers
+
+test_input_seccomp_allowed_in_list {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_allowed_all {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_container_allowed_all {
+ inp := {"review": get_object({}, {}, single_container_sc, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_container_allowed_in_list {
+ inp := {"review": get_object({}, {}, single_container_sc, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_containers_allowed_in_list {
+ inp := {"review": get_object({}, {}, multiple_containers_sc, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_containers_allowed_in_list_localhost {
+ inp := {"review": get_object({}, {}, single_container_sc_localhost, {}), "parameters": input_parameters_in_list_locahost_file}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_containers_allowed_in_list_multiple {
+ inp := {"review": get_object({}, {}, multiple_containers_sc_mixed, {}), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_not_allowed_not_in_list {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_empty_parameters {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_localhost_allowed_wrong_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_sc}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_localhost_allowed_no_specified_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_sc_localhost_no_file}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_containers_mixed {
+ inp := {"review": get_object({}, {}, multiple_containers_sc_mixed, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_containers_mixed_missing {
+ inp := {"review": get_object({}, {}, multiple_containers_sc_missing, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_container_not_allowed_not_in_list {
+ inp := {"review": get_object({}, {}, single_container_sc, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_containers_not_allowed_not_in_list {
+ inp := {"review": get_object({}, {}, multiple_containers_sc, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_not_allowed_multiple_not_configured {
+ inp := {"review": get_object({}, {}, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+# securityContext based seccomp with pod
+
+test_input_seccomp_pod_multiple_allowed_all {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers, {}), "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_localhost_allowed_both_wildcard_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_localhost_wildcard_both}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_container {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers_sc_missing, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_container_both_allowed {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers_sc_missing, {}), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_container_mixed_not_allowed_but_exempt {
+ inp := {"review": get_object({}, context_runtimedefault, single_container, {}), "parameters": input_parameters_exempt}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_multiple_allowed_in_list {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_localhost_allowed_wildcard_file {
+ inp := {"review": get_object({}, context_localhost, single_container, {}), "parameters": input_parameters_sc_localhost_wildcard_file}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_multiple_empty_parameters {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers, {}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_pod_multiple_not_allowed_not_in_list {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_pod_container_not_allowed {
+ inp := {"review": get_object({}, context_runtimedefault, multiple_containers_sc_missing, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_seccomp_pod_container_mixed_allowed {
+ inp := {"review": get_object({}, context_localhost, multiple_containers_sc_missing, {}), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_container_mixed_not_allowed {
+ inp := {"review": get_object({}, context_localhost, multiple_containers_sc_missing, {}), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+# securityContext based seccomp with init containers
+test_input_seccomp_pod_initcontainer_both_allowed {
+ inp := {"review": get_object({}, context_runtimedefault, {}, multiple_containers_sc_missing), "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seccomp_pod_initcontainer_mixed_allowed {
+ inp := {"review": get_object({}, context_localhost, {}, multiple_containers_sc_missing), "parameters": input_parameter_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seccomp_pod_initcontainer_mixed_not_allowed {
+ inp := {"review": get_object({}, context_localhost, {}, multiple_containers_sc_missing), "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+# Localhost seccomp profile build
+
+test_translation_seccomp_allowed_context_localhost_wildcard_file {
+ inp := {"parameters": input_parameters_localhost_wildcard_both}
+ output := get_allowed_profiles with input as inp
+ output == {{"type": "Localhost", "localHostProfile": "*"}}
+}
+
+test_translation_seccomp_allowed_context_localhost_no_file {
+ inp := {"parameters": input_parameters_sc_localhost_no_file}
+ output := get_allowed_profiles with input as inp
+ output == {{"localHostProfile": "", "type": "Localhost"}}
+}
+
+test_translation_seccomp_allowed_context_localhost_with_file {
+ inp := {"parameters": input_parameters_sc_localhost_with_file}
+ output := get_allowed_profiles with input as inp
+ output == {{"type": "Localhost", "localHostProfile": "profile.json"}}
+}
+
+test_translation_seccomp_allowed_context_mixed {
+ inp := {"parameters": input_parameters_in_list}
+ output := get_allowed_profiles with input as inp
+ output == {{"type": "Localhost", "localHostProfile": "profile.json"}, {"type": "RuntimeDefault"}}
+}
+
+# Create Review Object
+get_object(annotations, podcontext, containers, initcontainers) = {"object": {
+ "metadata": {
+ "name": "nginx",
+ "annotations": annotations,
+ },
+ "spec": {
+ "containers": containers,
+ "initContainers": initcontainers,
+ "securityContext": podcontext,
+ },
+}}
+
+# Test Containers
+single_container = [{
+ "name": "nginx",
+ "image": "nginx",
+}]
+
+multiple_containers = [
+ {
+ "name": "nginx",
+ "image": "nginx",
+ },
+ {
+ "name": "nginx2",
+ "image": "nginx",
+ },
+]
+
+single_container_sc = [{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+}]
+
+single_container_sc_localhost = [{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_localhost,
+}]
+
+multiple_containers_sc = [
+ {
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+ },
+ {
+ "name": "nginx2",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+ },
+]
+
+multiple_containers_sc_mixed = [
+ {
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+ },
+ {
+ "name": "nginx2",
+ "image": "nginx",
+ "securityContext": context_localhost,
+ },
+]
+
+multiple_containers_sc_missing = [
+ {
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": context_runtimedefault,
+ },
+ {
+ "name": "nginx2",
+ "image": "nginx",
+ },
+]
+
+# Test securityContexts
+context_localhost = {"seccompProfile": {"type": "Localhost", "localhostProfile": "profile.json"}}
+
+context_runtimedefault = {"seccompProfile": {"type": "RuntimeDefault"}}
+
+# Test Parameters
+input_parameters_empty = {"allowedProfiles": []}
+
+input_parameters_wildcard = {"allowedProfiles": ["*"]}
+
+input_parameter_in_list = {"allowedProfiles": [
+ "RuntimeDefault",
+]}
+
+input_parameters_in_list = {
+ "allowedProfiles": [
+ "RuntimeDefault",
+ "Localhost",
+ ],
+ "allowedLocalhostFiles": ["profile.json"],
+}
+
+input_parameters_in_list_locahost_file = {
+ "allowedProfiles": [
+ "Localhost",
+ ],
+ "allowedLocalhostFiles": ["profile.json"],
+}
+
+input_parameters_not_in_list = {"allowedProfiles": [
+ "Unconfined",
+]}
+
+input_parameters_exempt = {
+ "exemptImages": ["nginx"],
+ "allowedProfiles": ["Unconfined"],
+}
+
+input_parameters_sc = {
+ "allowedProfiles": [
+ "RuntimeDefault",
+ "Localhost",
+ "Unconfined",
+ ],
+ "allowedLocalhostFiles": [
+ "profile1.json",
+ "profile2.json",
+ ],
+}
+
+input_parameters_sc_localhost_no_file = {
+ "allowedProfiles": ["Localhost"],
+}
+
+input_parameters_localhost_wildcard_both = {"allowedProfiles": ["Localhost"], "allowedLocalhostFiles": ["*"]}
+
+input_parameters_sc_localhost_wildcard_file = {
+ "allowedProfiles": ["Localhost"],
+ "allowedLocalhostFiles": ["*"],
+}
+
+input_parameters_sc_localhost_with_file = {"allowedProfiles": ["Localhost"], "allowedLocalhostFiles": ["profile.json"]}
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..6edbd35a92d28fead96e21746b244090a9878941
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/constraint.tmpl
@@ -0,0 +1,66 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspselinuxv2
+ annotations:
+ metadata.gatekeeper.sh/title: "SELinux V2"
+ metadata.gatekeeper.sh/version: 1.0.4
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Defines an allow-list of seLinuxOptions configurations for pod
+ containers. Corresponds to a PodSecurityPolicy requiring SELinux configs.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#selinux
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSELinuxV2
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Defines an allow-list of seLinuxOptions configurations for pod
+ containers. Corresponds to a PodSecurityPolicy requiring SELinux configs.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#selinux
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedSELinuxOptions:
+ type: array
+ description: "An allow-list of SELinux options configurations."
+ items:
+ type: object
+ description: "An allowed configuration of SELinux options for a pod container."
+ properties:
+ level:
+ type: string
+ description: "An SELinux level."
+ role:
+ type: string
+ description: "An SELinux role."
+ type:
+ type: string
+ description: "An SELinux type."
+ user:
+ type: string
+ description: "An SELinux user."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/pod-security-policy/selinux/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/selinux/lib_exclude_update.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/selinux/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..38ca89ef5f2f37325f07ec935e27b18b16780d24
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/src.rego
@@ -0,0 +1,58 @@
+package k8spspselinux
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+# Disallow top level custom SELinux options
+violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.seLinuxOptions field is immutable.
+ not is_update(input.review)
+
+ has_field(input.review.object.spec.securityContext, "seLinuxOptions")
+ not input_seLinuxOptions_allowed(input.review.object.spec.securityContext.seLinuxOptions)
+ msg := sprintf("SELinux options is not allowed, pod: %v. Allowed options: %v", [input.review.object.metadata.name, input.parameters.allowedSELinuxOptions])
+}
+# Disallow container level custom SELinux options
+violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.seLinuxOptions field is immutable.
+ not is_update(input.review)
+
+ c := input_security_context[_]
+ not is_exempt(c)
+ has_field(c.securityContext, "seLinuxOptions")
+ not input_seLinuxOptions_allowed(c.securityContext.seLinuxOptions)
+ msg := sprintf("SELinux options is not allowed, pod: %v, container: %v. Allowed options: %v", [input.review.object.metadata.name, c.name, input.parameters.allowedSELinuxOptions])
+}
+
+input_seLinuxOptions_allowed(options) {
+ params := input.parameters.allowedSELinuxOptions[_]
+ field_allowed("level", options, params)
+ field_allowed("role", options, params)
+ field_allowed("type", options, params)
+ field_allowed("user", options, params)
+}
+
+field_allowed(field, options, params) {
+ params[field] == options[field]
+}
+field_allowed(field, options, _) {
+ not has_field(options, field)
+}
+
+input_security_context[c] {
+ c := input.review.object.spec.containers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+}
+input_security_context[c] {
+ c := input.review.object.spec.initContainers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+}
+input_security_context[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+}
+
+# has_field returns whether an object has a field
+has_field(object, field) = true {
+ object[field]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..6b0c4c73980b8efe3b9ca9e334224fa6fb3ec700
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/selinux/src_test.rego
@@ -0,0 +1,329 @@
+package k8spspselinux
+
+test_input_seLinux_options_allowed_in_list {
+ inp := { "review": input_review, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_allowed_in_list_subset {
+ inp := { "review": input_review, "parameters": input_parameters_in_list_subset}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_options_allowed_in_list_split_list {
+ inp := { "review": input_review, "parameters": input_parameters_in_list_split_two}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_option_not_allowed_not_in_list {
+ inp := { "review": input_review, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_options_empty {
+ inp := { "review": input_review, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_option_two_empty {
+ inp := { "review": input_review_two , "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_options_no_security_context {
+ inp := { "review": input_review_no_security_context, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_two_allowed_in_list {
+ inp := { "review": input_review_two, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_two_subset_allowed_in_list {
+ inp := { "review": input_review_two_subset, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_subset_allowed_in_list_subset {
+ inp := { "review": input_review_two_subset, "parameters": input_parameters_in_list_subset}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_subset_allowed_in_list_split_subset {
+ inp := { "review": input_review_two_subset, "parameters": input_parameters_in_list_split_subset}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_allowed_in_list_split_subset {
+ inp := { "review": input_review, "parameters": input_parameters_in_list_split_subset}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+
+test_input_seLinux_options_two_subset_not_allowed_not_in_list {
+ inp := { "review": input_review_two_subset, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_option_two_not_allowed_not_in_list {
+ inp := { "review": input_review_two, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_options_many_allowed_in_list {
+ inp := { "review": input_review_many, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_many_not_allowed_not_in_list {
+ inp := { "review": input_review_many, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_options_many_not_allowed_not_in_list_but_exempt {
+ inp := { "review": input_review_many, "parameters": input_parameters_exempt}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_many_not_allowed_not_in_list_two {
+ inp := { "review": input_review_many, "parameters": input_parameters_not_in_list_two}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_option_two_allowed_in_list_subset {
+ inp := { "review": input_review_two , "parameters": input_parameters_in_list_subset}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_option_two_not_allowed_not_in_list_subset {
+ inp := { "review": input_review_two , "parameters": input_parameters_not_in_list_two}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_seLinux_options_many_allowed_in_list_double_seccontext {
+ inp := { "review": input_review_many_double_seccontext, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_seLinux_options_many_not_allowed_not_in_list_double_seccontext {
+ inp := { "review": input_review_many_double_seccontext, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 3
+}
+
+test_input_seLinux_options_update {
+ inp := { "review": object.union(input_review, {"operation": "UPDATE"}), "parameters": input_parameters_in_list_subset}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ }
+ }
+}
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_one,
+ }
+ }
+}
+
+input_review_two = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "securityContext": input_seLinuxOptions
+ }
+ }
+}
+
+input_review_two_subset = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "securityContext": input_seLinuxOptions_subset
+ }
+ }
+}
+
+input_review_no_security_context = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {}
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ }
+ }
+}
+
+input_review_many_double_seccontext = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "securityContext": input_seLinuxOptions,
+ "containers": input_containers_many,
+ "initContainers": input_containers_one
+ }
+ }
+}
+
+input_containers_one = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": input_seLinuxOptions
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "securityContext": {
+ "privileged": true
+ }
+},
+{
+ "name": "nginx2",
+ "image": "nginx"
+},
+{
+ "name": "nginx3",
+ "image": "nginx",
+ "securityContext": input_seLinuxOptions
+}]
+
+input_seLinuxOptions = {
+ "seLinuxOptions": {
+ "level": "s0:c123,c456",
+ "role": "object_r",
+ "type": "svirt_sandbox_file_t",
+ "user": "system_u"
+ }
+}
+
+input_seLinuxOptions_subset = {
+ "seLinuxOptions": {
+ "level": "s0:c123,c456",
+ "role": "object_r"
+ }
+}
+
+input_parameters_in_list = {
+ "allowedSELinuxOptions": [{
+ "level": "s0:c123,c456",
+ "role": "object_r",
+ "type": "svirt_sandbox_file_t",
+ "user": "system_u"
+ }]
+}
+
+input_parameters_in_list_split_two = {
+ "allowedSELinuxOptions": [{
+ "level": "s0:c123,c456",
+ "role": "object_r",
+ "type": "svirt_sandbox_file_f",
+ "user": "system_v"
+ }, {
+ "level": "s1:c234,c567",
+ "role": "object_f",
+ "type": "svirt_sandbox_file_t",
+ "user": "system_u"
+ }]
+}
+
+input_parameters_in_list_split_subset = {
+ "allowedSELinuxOptions": [{
+ "level": "s0:c123,c456",
+ "role": "object_r"
+ }, {
+ "type": "svirt_sandbox_file_t",
+ "user": "system_u"
+ }]
+}
+
+input_parameters_in_list_subset = {
+ "allowedSELinuxOptions": [{
+ "level": "s0:c123,c456",
+ "role": "object_r"
+ }]
+}
+
+input_parameters_not_in_list = {
+ "allowedSELinuxOptions": [{
+ "level": "s1:c234,c567",
+ "role": "sysadm_r",
+ "type": "svirt_lxc_net_t",
+ "user": "sysadm_u"
+ }]
+}
+
+input_parameters_exempt = {
+ "exemptImages": ["nginx"],
+ "allowedSELinuxOptions": [{
+ "level": "s1:c234,c567",
+ "role": "sysadm_r",
+ "type": "svirt_lxc_net_t",
+ "user": "sysadm_u"
+ }]
+}
+
+
+input_parameters_not_in_list_two = {
+ "allowedSELinuxOptions": [{
+ "level": "s1:c234,c567"
+ }, {
+ "level": "s2:c345,c678"
+ }]
+}
+
+input_parameters_empty = {
+ "allowedSELinuxOptions": []
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..5b2c980c770f9b9c134e41afaa2993f8c3afdbb5
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/constraint.tmpl
@@ -0,0 +1,142 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspallowedusers
+ annotations:
+ metadata.gatekeeper.sh/title: "Allowed Users"
+ metadata.gatekeeper.sh/version: 1.0.3
+ metadata.gatekeeper.sh/bundle: "pod-security-restricted"
+ description: >-
+ Controls the user and group IDs of the container and some volumes.
+ Corresponds to the `runAsUser`, `runAsGroup`, `supplementalGroups`, and
+ `fsGroup` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#users-and-groups
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAllowedUsers
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the user and group IDs of the container and some volumes.
+ Corresponds to the `runAsUser`, `runAsGroup`, `supplementalGroups`, and
+ `fsGroup` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#users-and-groups
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ runAsUser:
+ type: object
+ description: "Controls which user ID values are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the runAsUser restriction."
+ enum:
+ - MustRunAs
+ - MustRunAsNonRoot
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of user ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of user IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum user ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum user ID in the range, inclusive."
+ runAsGroup:
+ type: object
+ description: "Controls which group ID values are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the runAsGroup restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ supplementalGroups:
+ type: object
+ description: "Controls the supplementalGroups values that are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the supplementalGroups restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ fsGroup:
+ type: object
+ description: "Controls the fsGroup values that are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the fsGroup restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/pod-security-policy/users/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/users/lib_exclude_update.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
+ - |
+{{ file.Read "src/pod-security-policy/users/lib_exempt_container.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..decf44cf60cf0fdb43010b35a501205d2bc21488
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/src.rego
@@ -0,0 +1,127 @@
+package k8spspallowedusers
+
+import data.lib.exclude_update.is_update
+import data.lib.exempt_container.is_exempt
+
+violation[{"msg": msg}] {
+ # runAsUser, runAsGroup, supplementalGroups, fsGroup fields are immutable.
+ not is_update(input.review)
+
+ fields := ["runAsUser", "runAsGroup", "supplementalGroups", "fsGroup"]
+ field := fields[_]
+ container := input_containers[_]
+ not is_exempt(container)
+ msg := get_type_violation(field, container)
+}
+
+get_type_violation(field, container) = msg {
+ field == "runAsUser"
+ params := input.parameters[field]
+ msg := get_user_violation(params, container)
+}
+
+get_type_violation(field, container) = msg {
+ field != "runAsUser"
+ params := input.parameters[field]
+ msg := get_violation(field, params, container)
+}
+
+# RunAsUser (separate due to "MustRunAsNonRoot")
+get_user_violation(params, container) = msg {
+ rule := params.rule
+ provided_user := get_field_value("runAsUser", container, input.review)
+ not accept_users(rule, provided_user)
+ msg := sprintf("Container %v is attempting to run as disallowed user %v. Allowed runAsUser: %v", [container.name, provided_user, params])
+}
+
+get_user_violation(params, container) = msg {
+ not get_field_value("runAsUser", container, input.review)
+ params.rule = "MustRunAs"
+ msg := sprintf("Container %v is attempting to run without a required securityContext/runAsUser", [container.name])
+}
+
+get_user_violation(params, container) = msg {
+ params.rule = "MustRunAsNonRoot"
+ not get_field_value("runAsUser", container, input.review)
+ not get_field_value("runAsNonRoot", container, input.review)
+ msg := sprintf("Container %v is attempting to run without a required securityContext/runAsNonRoot or securityContext/runAsUser != 0", [container.name])
+}
+
+accept_users("RunAsAny", _)
+
+accept_users("MustRunAsNonRoot", provided_user) := provided_user != 0
+
+accept_users("MustRunAs", provided_user) := res {
+ ranges := input.parameters.runAsUser.ranges
+ res := is_in_range(provided_user, ranges)
+}
+
+# Group Options
+get_violation(field, params, container) = msg {
+ rule := params.rule
+ provided_value := get_field_value(field, container, input.review)
+ not is_array(provided_value)
+ not accept_value(rule, provided_value, params.ranges)
+ msg := sprintf("Container %v is attempting to run as disallowed group %v. Allowed %v: %v", [container.name, provided_value, field, params])
+}
+# SupplementalGroups is array value
+get_violation(field, params, container) = msg {
+ rule := params.rule
+ array_value := get_field_value(field, container, input.review)
+ is_array(array_value)
+ provided_value := array_value[_]
+ not accept_value(rule, provided_value, params.ranges)
+ msg := sprintf("Container %v is attempting to run with disallowed supplementalGroups %v. Allowed %v: %v", [container.name, array_value, field, params])
+}
+
+get_violation(field, params, container) = msg {
+ not get_field_value(field, container, input.review)
+ params.rule == "MustRunAs"
+ msg := sprintf("Container %v is attempting to run without a required securityContext/%v. Allowed %v: %v", [container.name, field, field, params])
+}
+
+accept_value("RunAsAny", _, _)
+
+accept_value("MayRunAs", provided_value, ranges) := is_in_range(provided_value, ranges)
+
+accept_value("MustRunAs", provided_value, ranges) := is_in_range(provided_value, ranges)
+
+
+# If container level is provided, that takes precedence
+get_field_value(field, container, _) := get_seccontext_field(field, container)
+
+# If no container level exists, use pod level
+get_field_value(field, container, review) = out {
+ not has_seccontext_field(field, container)
+ review.kind.kind == "Pod"
+ pod_value := get_seccontext_field(field, review.object.spec)
+ out := pod_value
+}
+
+# Helper Functions
+is_in_range(val, ranges) = res {
+ matching := {1 | val >= ranges[j].min; val <= ranges[j].max}
+ res := count(matching) > 0
+}
+
+has_seccontext_field(field, obj) {
+ get_seccontext_field(field, obj)
+}
+
+has_seccontext_field(field, obj) {
+ get_seccontext_field(field, obj) == false
+}
+
+get_seccontext_field(field, obj) = out {
+ out = obj.securityContext[field]
+}
+
+input_containers[c] {
+ c := input.review.object.spec.containers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+}
+input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..9c8c5e04fb9ca713dd24e3a90fdc58ed2012b664
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/users/src_test.rego
@@ -0,0 +1,917 @@
+package k8spspallowedusers
+
+
+## Test Functionality ##
+# All the following functions will omit a field if the argument is null
+
+## Input Functions ##
+# "review":
+# review(, , )
+# - Returns an pod review object with "spec" = { "securityContext": , "containers": , "initContainers": }
+# - omits any field where the value is null
+# ctr(, )
+# - Returns a container object containing { "name": , "securityContext": }
+# - omits "securityContext" object if argument is null
+
+# "parameters":
+# rule(, )
+# - Returns a rule object with { "rule": , "ranges": }
+# - omits "ranges" field if is null
+# range(, )
+# - Returns a range object with { "min": , "max": }
+# Wrap rule in runAsUser, or
+
+## Other Functions ##
+# run_as_rule("runAsUser" value, "runAsGroup" value, "supplementalGroups" value, "fsGroup" value)
+# - Returns {"runAsUser": value, "runAsGroup": value, "supplementalGroups": value, "fsGroup": value }
+# - omits any field where value is null
+# runAsUser(value)
+# - Returns { "runAsUser": value} if value is not null, else returns {}
+# runAsGroup(value)
+# - Returns { "runAsGroup": value} if value is not null, else returns {}
+# supplementalGroups(value)
+# - Returns { "supplementalGroups": value} if value is not null, else returns {}
+# fsGroup(value)
+# - Returns { "fsGroup": value} if value is not null, else returns {}
+
+## Rego Playground for generating object: https://play.openpolicyagent.org/p/s64GOBr0Dq
+
+
+## RunAsUser ##
+test_user_one_container_run_as_rule_any {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(12))], null), "parameters": user_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_as_rule_any_root_user {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(0))], null), "parameters": user_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_as_rule_non_root_user_is_not_root {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(1))], null), "parameters": user_mustrunasnonroot }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_as_rule_non_root_user_is_root {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(0))], null), "parameters": user_mustrunasnonroot }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_run_as_rule_non_root_seccont_runasnonroot_user_is_not_defined {
+ inp := { "review": review(null, [ctr("cont1", runAsNonRoot(true))], null), "parameters": user_mustrunasnonroot }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_as_rule_non_root_seccont_runasnonroot_user_is_root {
+ inp := { "review": review(null, [ctr("cont1", object.union(runAsNonRoot(true),runAsUser(0)))], null), "parameters": user_mustrunasnonroot }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_run_as_rule_non_root_seccont_runasnonroot_user_is_not_root {
+ inp := { "review": review(null, [ctr("cont1", object.union(runAsNonRoot(true),runAsUser(10)))], null), "parameters": user_mustrunasnonroot }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_as_rule_non_root_seccont_runasnonroot_is_false_user_is_not_defined {
+ inp := { "review": review(null, [ctr("cont1", runAsNonRoot(false))], null), "parameters": user_mustrunasnonroot }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_run_as_rule_non_root_seccont_runasnonroot_is_false_user_is_not_root {
+ inp := { "review": review(null, [ctr("cont1", object.union(runAsNonRoot(false),runAsUser(10)))], null), "parameters": user_mustrunasnonroot }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_in_range_user_in_range {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(150))], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_in_range_user_out_of_range {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(10))], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_run_in_range_user_lower_edge_of_range {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(100))], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_in_range_user_upper_edge_of_range {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(200))], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_run_in_range_seccont_runasnonroot {
+ inp := { "review": review(null, [ctr("cont1", runAsNonRoot(true))], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_run_in_range_user_between_ranges {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(200))], null), "parameters": user_mustrunas_two_ranges }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_run_in_range_user_between_ranges_but_exempt {
+ inp := { "review": review(null, [ctr("cont1", runAsUser(200))], null), "parameters": object.union(user_mustrunas_two_ranges, {"exemptImages": ["nginx"]}) }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_non_root_container_pod_conflict {
+ inp := {"review": review({"runAsNonRoot": true}, [ctr("cont1", runAsNonRoot(false))], null), "parameters": user_mustrunasnonroot }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_user_two_containers_run_as_rule_any {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(1)), ctr("cont2", runAsUser(100))], null),
+ "parameters": user_runasany
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_two_containers_run_as_rule_non_root_users_are_not_root {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(1)), ctr("cont2", runAsUser(100))], null),
+ "parameters": user_mustrunasnonroot
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_two_containers_run_as_rule_non_root_one_is_root {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(1)), ctr("cont2", runAsUser(0))], null),
+ "parameters": user_mustrunasnonroot
+ }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_two_containers_run_as_rule_non_root_one_seccont_runasnonroot {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(1)), ctr("cont2", runAsNonRoot(true))], null),
+ "parameters": user_mustrunasnonroot
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_two_containers_run_as_rule_non_root_one_root_other_has_seccont_runasnonroot {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(0)), ctr("cont2", runAsNonRoot(true))], null),
+ "parameters": user_mustrunasnonroot
+ }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_two_containers_run_in_range_both_in_range {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(150)), ctr("cont2", runAsUser(103))], null),
+ "parameters": user_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_two_containers_run_in_range_one_in_range {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(150)), ctr("cont2", runAsUser(13))], null),
+ "parameters": user_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_two_containers_run_in_range_neither_in_range_two_ranges {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(150)), ctr("cont2", runAsUser(130))], null),
+ "parameters": user_mustrunas_two_ranges
+ }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_user_one_container_one_initcontainer_run_in_range_user_in_range {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(150))], [ctr("init1", runAsUser(150))]),
+ "parameters": user_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_one_initcontainer_run_in_range_user_not_in_range {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(150))], [ctr("init1", runAsUser(250))]),
+ "parameters": user_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_empty_security_context {
+ inp := { "review": review(null, [ctr("cont1", {})], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_no_security_context {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_no_security_context_RunAsAny {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": user_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_empty_security_context_empty_pod_security_context {
+ inp := { "review": review({}, [ctr("cont1", {})], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_no_security_context_no_pod_security_context {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_pod_defined_null_container_run_in_range_user_in_range {
+ inp := { "review": review(runAsUser(150), [ctr("cont1", null)], null), "parameters": user_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_pod_defined_run_in_range_user_in_range {
+ inp := { "review": review(runAsUser(150), [ctr("cont1", {})], null), "parameters": user_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_pod_defined_run_in_range_user_not_in_range {
+ inp := { "review": review(runAsUser(250), [ctr("cont1", {})], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_one_container_pod_defined_run_in_range_container_overrides_user_in_range {
+ inp := { "review": review(runAsUser(250), [ctr("cont1", runAsUser(150))], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_one_container_pod_defined_run_in_range_container_overrides_user_not_in_range {
+ inp := { "review": review(runAsUser(150), [ctr("cont1", runAsUser(250))], null), "parameters": user_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_user_input_container_run_as_rule_any_ignore_ranges {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(10))], null),
+ "parameters": runAsUser(rule("RunAsAny", [range(100, 200)]))
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_input_container_run_as_rule_non_root_ignore_ranges {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsUser(10))], null),
+ "parameters": runAsUser(rule("MustRunAsNonRoot", [range(100, 200)]))
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_user_input_container_run_as_rule_non_root_seccont_runasnonroot_ignore_ranges {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsNonRoot(true))], null),
+ "parameters": runAsUser(rule("MustRunAsNonRoot", [range(100, 200)]))
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+
+## runAsGroup ##
+test_group_one_container_run_as_rule_any {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(12))], null), "parameters": group_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_run_as_rule_any_root_user {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(0))], null), "parameters": group_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_run_in_range_user_in_range {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(150))], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_run_in_range_user_out_of_range {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(10))], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_one_container_run_in_range_user_lower_edge_of_range {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(100))], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_run_in_range_user_upper_edge_of_range {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(200))], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_run_in_range_user_between_ranges {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(200))], null), "parameters": group_mustrunas_two_ranges }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_two_containers_run_as_rule_any {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsGroup(1)), ctr("cont2", runAsGroup(100))], null),
+ "parameters": group_runasany
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_two_containers_run_in_range_both_in_range {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsGroup(150)), ctr("cont2", runAsGroup(103))], null),
+ "parameters": group_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_two_containers_run_in_range_one_in_range {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsGroup(150)), ctr("cont2", runAsGroup(13))], null),
+ "parameters": group_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_two_containers_run_in_range_neither_in_range_two_ranges {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsGroup(150)), ctr("cont2", runAsGroup(130))], null),
+ "parameters": group_mustrunas_two_ranges
+ }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_group_one_container_one_initcontainer_run_in_range_user_in_range {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsGroup(150))], [ctr("init1", runAsGroup(150))]),
+ "parameters": group_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_one_initcontainer_run_in_range_user_not_in_range {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsGroup(150))], [ctr("init1", runAsGroup(250))]),
+ "parameters": group_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_one_container_empty_security_context {
+ inp := { "review": review(null, [ctr("cont1", {})], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_one_container_no_security_context {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_one_container_no_security_context_RunAsAny {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": group_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_empty_security_context_empty_pod_security_context {
+ inp := { "review": review({}, [ctr("cont1", {})], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_one_container_no_security_context_no_pod_security_context {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_one_container_pod_defined_null_container_run_in_range_user_in_range {
+ inp := { "review": review(runAsGroup(150), [ctr("cont1", null)], null), "parameters": group_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_pod_defined_run_in_range_user_in_range {
+ inp := { "review": review(runAsGroup(150), [ctr("cont1", {})], null), "parameters": group_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_pod_defined_run_in_range_user_not_in_range {
+ inp := { "review": review(runAsGroup(250), [ctr("cont1", {})], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_one_container_pod_defined_run_in_range_container_overrides_user_in_range {
+ inp := { "review": review(runAsGroup(250), [ctr("cont1", runAsGroup(150))], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_pod_defined_run_in_range_container_overrides_user_not_in_range {
+ inp := { "review": review(runAsGroup(150), [ctr("cont1", runAsGroup(250))], null), "parameters": group_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_input_container_run_as_rule_any_ignore_ranges {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsGroup(10))], null),
+ "parameters": runAsGroup(rule("RunAsAny", [range(100, 200)]))
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_empty_security_context_mayrun {
+ inp := { "review": review(null, [ctr("cont1", {})], null), "parameters": group_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_no_security_context_mayrun {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": group_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_run_in_range_user_in_range_mayrun {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(150))], null), "parameters": group_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_run_in_range_user_out_of_range_mayrun {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(10))], null), "parameters": group_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_one_container_run_in_range_user_between_ranges_mayrun {
+ inp := { "review": review(null, [ctr("cont1", runAsGroup(200))], null), "parameters": group_mayrunas_two_ranges }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_group_two_containers_run_in_range_neither_in_range_two_ranges_mayrun {
+ inp := {
+ "review": review(null, [ctr("cont1", runAsGroup(150)), ctr("cont2", runAsGroup(130))], null),
+ "parameters": group_mayrunas_two_ranges
+ }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_group_one_container_pod_defined_run_in_range_container_overrides_user_in_range_mayrun {
+ inp := { "review": review(runAsGroup(250), [ctr("cont1", runAsGroup(150))], null), "parameters": group_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_group_one_container_pod_defined_run_in_range_container_overrides_user_not_in_range_mayrun {
+ inp := { "review": review(runAsGroup(150), [ctr("cont1", runAsGroup(250))], null), "parameters": group_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+
+
+## supplementalGroups ##
+test_supplemental_two_containers_run_as_rule_any {
+ inp := {
+ "review": review(supplementalGroups([15]), [ctr("cont1", null), ctr("cont2", null)], null),
+ "parameters": supplemental_runasany
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_two_containers_run_in_range_both_in_range {
+ inp := {
+ "review": review(supplementalGroups([150]), [ctr("cont1", null), ctr("cont2", null)], null),
+ "parameters": supplemental_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_two_containers_run_in_range_neither_in_range_two_ranges {
+ inp := {
+ "review": review(supplementalGroups([150]), [ctr("cont1", null), ctr("cont2", null)], null),
+ "parameters": supplemental_mustrunas_two_ranges
+ }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_supplemental_one_container_one_initcontainer_run_in_range_user_in_range {
+ inp := {
+ "review": review(supplementalGroups([150]), [ctr("cont1", null)], [ctr("init1", null)]),
+ "parameters": supplemental_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_one_initcontainer_run_in_range_user_not_in_range {
+ inp := {
+ "review": review(supplementalGroups([250]), [ctr("cont1", null)], [ctr("init1", null)]),
+ "parameters": supplemental_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_supplemental_one_container_empty_security_context {
+ inp := { "review": review(null, [ctr("cont1", {})], null), "parameters": supplemental_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_supplemental_one_container_no_security_context {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": supplemental_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_supplemental_one_container_no_security_context_RunAsAny {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": supplemental_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_empty_security_context_empty_pod_security_context {
+ inp := { "review": review({}, [ctr("cont1", {})], null), "parameters": supplemental_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_supplemental_one_container_no_security_context_no_pod_security_context {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": supplemental_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_supplemental_one_container_pod_defined_null_container_run_in_range_user_in_range {
+ inp := { "review": review(supplementalGroups([150]), [ctr("cont1", null)], null), "parameters": supplemental_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_pod_defined_run_in_range_user_in_range {
+ inp := { "review": review(supplementalGroups([150]), [ctr("cont1", {})], null), "parameters": supplemental_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_pod_defined_run_in_range_user_not_in_range {
+ inp := { "review": review(supplementalGroups([250]), [ctr("cont1", {})], null), "parameters": supplemental_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_supplemental_one_container_pod_defined_run_in_range_container_overrides_user_in_range {
+ inp := { "review": review(supplementalGroups([250]), [ctr("cont1", supplementalGroups(150))], null), "parameters": supplemental_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_pod_defined_run_in_range_container_overrides_user_not_in_range {
+ inp := { "review": review(supplementalGroups([150]), [ctr("cont1", supplementalGroups(250))], null), "parameters": supplemental_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_supplemental_one_container_empty_security_context_mayrun {
+ inp := { "review": review(null, [ctr("cont1", {})], null), "parameters": supplemental_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_no_security_context_mayrun {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": supplemental_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_two_containers_run_in_range_neither_in_range_mayrun {
+ inp := {
+ "review": review(supplementalGroups([230]), [ctr("cont1", null), ctr("cont2", null)], null),
+ "parameters": supplemental_mayrunas_two_ranges
+ }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_supplemental_two_containers_run_in_range_both_in_range_mayrun {
+ inp := {
+ "review": review(supplementalGroups([100]), [ctr("cont1", null), ctr("cont2", null)], null),
+ "parameters": supplemental_mayrunas_two_ranges
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_run_in_range_two_ranges_both_in_range {
+ inp := { "review": review(supplementalGroups([120, 180]), [ctr("cont1", null)], null), "parameters": supplemental_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_run_in_range_two_ranges_none_in_range {
+ inp := { "review": review(supplementalGroups([120, 180]), [ctr("cont1", null)], null), "parameters": supplemental_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_supplemental_one_container_run_in_range_two_ranges_one_in_range {
+ inp := { "review": review(supplementalGroups([150, 250]), [ctr("cont1", null)], null), "parameters": supplemental_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+
+
+## fsGroup ##
+test_fsgroup_two_containers_run_as_rule_any {
+ inp := {
+ "review": review(fsGroup(15), [ctr("cont1", null), ctr("cont2", null)], null),
+ "parameters": fsgroup_runasany
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_two_containers_run_in_range_both_in_range {
+ inp := {
+ "review": review(fsGroup(150), [ctr("cont1", null), ctr("cont2", null)], null),
+ "parameters": fsgroup_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_two_containers_run_in_range_neither_in_range_two_ranges {
+ inp := {
+ "review": review(fsGroup(150), [ctr("cont1", null), ctr("cont2", null)], null),
+ "parameters": fsgroup_mustrunas_two_ranges
+ }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_fsgroup_one_container_one_initcontainer_run_in_range_user_in_range {
+ inp := {
+ "review": review(fsGroup(150), [ctr("cont1", null)], [ctr("init1", null)]),
+ "parameters": fsgroup_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_one_container_one_initcontainer_run_in_range_user_not_in_range {
+ inp := {
+ "review": review(fsGroup(250), null, [ctr("init1", null)]),
+ "parameters": fsgroup_mustrunas_100_200
+ }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_fsgroup_one_container_empty_security_context {
+ inp := { "review": review(null, [ctr("cont1", {})], null), "parameters": fsgroup_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_fsgroup_one_container_no_security_context {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": fsgroup_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_fsgroup_one_container_no_security_context_RunAsAny {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": fsgroup_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_one_container_empty_security_context_empty_pod_security_context {
+ inp := { "review": review({}, [ctr("cont1", {})], null), "parameters": fsgroup_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_fsgroup_one_container_no_security_context_no_pod_security_context {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": fsgroup_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_fsgroup_one_container_pod_defined_null_container_run_in_range_user_in_range {
+ inp := { "review": review(fsGroup(150), [ctr("cont1", null)], null), "parameters": fsgroup_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_one_container_pod_defined_run_in_range_user_in_range {
+ inp := { "review": review(fsGroup(150), [ctr("cont1", {})], null), "parameters": fsgroup_mustrunas_100_200}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_one_container_pod_defined_run_in_range_user_not_in_range {
+ inp := { "review": review(fsGroup(250), [ctr("cont1", {})], null), "parameters": fsgroup_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_fsgroup_one_container_pod_defined_run_in_range_container_overrides_user_in_range {
+ inp := { "review": review(fsGroup(250), [ctr("cont1", fsGroup(150))], null), "parameters": fsgroup_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_one_container_pod_defined_run_in_range_container_overrides_user_not_in_range {
+ inp := { "review": review(fsGroup(150), [ctr("cont1", fsGroup(250))], null), "parameters": fsgroup_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_fsgroup_input_container_run_as_rule_any_ignore_ranges {
+ inp := {
+ "review": review(null, [ctr("cont1", fsGroup(10))], null),
+ "parameters": fsGroup(rule("RunAsAny", [range(100, 200)]))
+ }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_one_container_empty_security_context_mayrun {
+ inp := { "review": review(null, [ctr("cont1", {})], null), "parameters": fsgroup_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_fsgroup_one_container_no_security_context_mayrun {
+ inp := { "review": review(null, [ctr("cont1", null)], null), "parameters": fsgroup_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+
+
+## Mixed Functionality ##
+test_mixed_runAsAny_all_non_root {
+ inp := {"review": review(run_as_rule(12, 30, [50], 101), [ctr("cont1", null)], null), "parameters": mixed_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_mixed_runAsAny_all_root {
+ inp := {"review": review(run_as_rule(0, 0, [0], 0), [ctr("cont1", null)], null), "parameters": mixed_runasany }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_mixed_pod_level_all_defined_all_in_range_mustrun {
+ inp := {"review": review(run_as_rule(150, 150, [150], 150), [ctr("cont1", null)], null), "parameters": mixed_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_mixed_pod_level_all_defined_none_in_range_mustrun {
+ inp := {"review": review(run_as_rule(250, 250, [250], 250), [ctr("cont1", null)], null), "parameters": mixed_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 4
+}
+test_mixed_pod_level_all_defined_mixed_in_range_mustrun {
+ inp := {"review": review(run_as_rule(150, 150, [250], 250), [ctr("cont1", null)], null), "parameters": mixed_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_mixed_container_level_all_defined_all_in_range_mustrun {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(150, 150, [150], 150))], null), "parameters": mixed_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_mixed_container_level_all_defined_none_in_range_mustrun {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(250, 250, [250], 250))], null), "parameters": mixed_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 4
+}
+test_mixed_container_level_all_defined_mixed_in_range_mustrun {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(150, 150, [250], 250))], null), "parameters": mixed_mustrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_mixed_pod_level_all_defined_none_in_range_mayrun {
+ inp := {"review": review(run_as_rule(250, 250, [250], 250), [ctr("cont1", null)], null), "parameters": mixed_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 3
+}
+test_mixed_pod_level_all_defined_mixed_in_range_mayrun {
+ inp := {"review": review(run_as_rule(150, 150, [250], 250), [ctr("cont1", null)], null), "parameters": mixed_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 2
+}
+test_mixed_container_level_all_defined_all_in_range_mayrun {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(150, 150, null, null))], null), "parameters": mixed_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 0
+}
+test_mixed_container_level_all_defined_none_in_range_mayrun {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(250, 250, null, null))], null), "parameters": mixed_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_mixed_container_level_all_defined_mixed_in_range_mayrun {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(150, 250, null, null))], null), "parameters": mixed_mayrunas_100_200 }
+ results := violation with input as inp
+ count(results) == 1
+}
+test_mixed_pod_level_all_defined_none_in_range_mixed_rules {
+ inp := {"review": review(run_as_rule(0, 0, 250, 250), [ctr("cont1", null)], null), "parameters": mixed_all_rules }
+ results := violation with input as inp
+ count(results) == 3
+}
+# violation from MustRunAs SupplementalGroups and MayRunAs FSGroup, range within 100&200
+test_mixed_pod_level_all_defined_mixed_in_range_mixed_rules {
+ inp := {"review": review(run_as_rule(150, 150, 250, 250), [ctr("cont1", null)], null), "parameters": mixed_all_rules }
+ results := violation with input as inp
+ count(results) == 2
+}
+# violation from no MustRunAs SupplementalGroups defined (can't define on container level)
+test_mixed_container_level_all_defined_all_in_range_mixed_rules {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(150, 150, null, null))], null), "parameters": mixed_all_rules }
+ results := violation with input as inp
+ count(results) == 1
+}
+# violation from MustRunAsNonRoot RunAsUser rule, and no MustRunAs SupplementalGroups defined (can't define on container level)
+test_mixed_container_level_all_defined_none_in_range_mixed_rules {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(0, 0, null, null))], null), "parameters": mixed_all_rules }
+ results := violation with input as inp
+ count(results) == 2
+}
+# violation from no MustRunAs SupplementalGroups defined (can't define on container level)
+test_mixed_container_level_all_defined_mixed_in_range_mixed_rules {
+ inp := {"review": review(null, [ctr("cont1", run_as_rule(150, 150, null, null))], null), "parameters": mixed_all_rules }
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_update {
+ inp := {"review": object.union(review(null, [ctr("cont1", run_as_rule(150, 150, null, null))], null), {"operation": "UPDATE"}), "parameters": mixed_all_rules }
+ results := violation with input as inp
+ count(results) == 0
+}
+
+
+## Functions ##
+review(context, containers, initContainers) = out {
+ sec_obj := obj_if_exists("securityContext", context)
+ cont_obj := obj_if_exists("containers", containers)
+ init_obj := obj_if_exists("initContainers", initContainers)
+ out = {
+ "kind": {
+ "kind": "Pod"
+ },
+ "metadata": {
+ "name": "test-pod"
+ },
+ "object": {
+ "spec": object.union(object.union(sec_obj, cont_obj), init_obj)
+ }
+ }
+}
+
+ctr(name, context) = out {
+ name_obj := { "name": name, "image": "nginx" }
+ sec := obj_if_exists("securityContext", context)
+ out = object.union(name_obj, sec)
+}
+
+runAsUser(user) = out {
+ out = run_as_rule(user, null, null, null)
+}
+runAsNonRoot(bool) = out {
+ out = {"runAsNonRoot": bool}
+}
+runAsGroup(group) = out {
+ out = run_as_rule(null, group, null, null)
+}
+supplementalGroups(supplemental) = out {
+ out = run_as_rule(null, null, supplemental, null)
+}
+fsGroup(fsgroup) = out {
+ out = run_as_rule(null, null, null, fsgroup)
+}
+run_as_rule(user, group, supplemental, fsgroup) = out {
+ user_obj := obj_if_exists("runAsUser", user)
+ group_obj := obj_if_exists("runAsGroup", group)
+ supplemental_obj := obj_if_exists("supplementalGroups", supplemental)
+ fsgroup_obj := obj_if_exists("fsGroup", fsgroup)
+ out = object.union(object.union(user_obj, group_obj), object.union(supplemental_obj, fsgroup_obj))
+}
+
+obj_if_exists(key, val) = {key: val} {
+ not is_null(val)
+}
+
+obj_if_exists(_, val) := {} {
+ is_null(val)
+}
+
+# Parameters
+user_runasany = runAsUser(rule("RunAsAny", null))
+user_mustrunas_100_200 = runAsUser(rule("MustRunAs", [range(100, 200)]))
+user_mustrunas_two_ranges = runAsUser(rule("MustRunAs", [range(100, 100), range(250, 250)]))
+user_mustrunasnonroot = runAsUser(rule("MustRunAsNonRoot", null))
+
+group_runasany = runAsGroup(rule("RunAsAny", null))
+group_mustrunas_100_200 = runAsGroup(rule("MustRunAs", [range(100, 200)]))
+group_mustrunas_two_ranges = runAsGroup(rule("MustRunAs", [range(100, 100), range(250, 250)]))
+group_mayrunas_100_200 = runAsGroup(rule("MayRunAs", [range(100, 200)]))
+group_mayrunas_two_ranges = runAsGroup(rule("MayRunAs", [range(100, 100), range(250, 250)]))
+
+supplemental_runasany = supplementalGroups(rule("RunAsAny", null))
+supplemental_mustrunas_100_200 = supplementalGroups(rule("MustRunAs", [range(100, 200)]))
+supplemental_mustrunas_two_ranges = supplementalGroups(rule("MustRunAs", [range(100, 100), range(250, 250)]))
+supplemental_mayrunas_100_200 = supplementalGroups(rule("MayRunAs", [range(100, 200)]))
+supplemental_mayrunas_two_ranges = supplementalGroups(rule("MayRunAs", [range(100, 100), range(250, 250)]))
+
+fsgroup_runasany = fsGroup(rule("RunAsAny", null))
+fsgroup_mustrunas_100_200 = fsGroup(rule("MustRunAs", [range(100, 200)]))
+fsgroup_mustrunas_two_ranges = fsGroup(rule("MustRunAs", [range(100, 100), range(250, 250)]))
+fsgroup_mayrunas_100_200 = fsGroup(rule("MayRunAs", [range(100, 200)]))
+fsgroup_mayrunas_two_ranges = fsGroup(rule("MayRunAs", [range(100, 100), range(250, 250)]))
+
+mixed_runasany = run_as_rule(rule("RunAsAny", null), rule("RunAsAny", null), rule("RunAsAny", null), rule("RunAsAny", null))
+mixed_mustrunas_100_200 = run_as_rule(rule("MustRunAs", [range(100, 200)]), rule("MustRunAs", [range(100, 200)]), rule("MustRunAs", [range(100, 200)]), rule("MustRunAs", [range(100, 200)]))
+mixed_mayrunas_100_200 = run_as_rule(rule("MustRunAsNonRoot", null), rule("MayRunAs", [range(100, 200)]), rule("MayRunAs", [range(100, 200)]), rule("MayRunAs", [range(100, 200)]))
+mixed_all_rules = run_as_rule(rule("MustRunAsNonRoot", null), rule("RunAsAny", null), rule("MustRunAs", [range(100, 200)]), rule("MayRunAs", [range(100, 200)]))
+
+
+rule(rule, ranges) = out {
+ ranges_obj = obj_if_exists("ranges", ranges)
+ out := object.union({"rule": rule}, ranges_obj)
+}
+
+range(min, max) = out {
+ out := {
+ "min": min,
+ "max": max
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/constraint.tmpl b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/constraint.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..f7c815403b3fa1fb4f13ebc5894495d2f0b98cbd
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/constraint.tmpl
@@ -0,0 +1,40 @@
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspvolumetypes
+ annotations:
+ metadata.gatekeeper.sh/title: "Volume Types"
+ metadata.gatekeeper.sh/version: 1.0.3
+ metadata.gatekeeper.sh/bundle: "pod-security-restricted"
+ description: >-
+ Restricts mountable volume types to those specified by the user.
+ Corresponds to the `volumes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPVolumeTypes
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Restricts mountable volume types to those specified by the user.
+ Corresponds to the `volumes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ volumes:
+ description: "`volumes` is an array of volume types. All volume types can be enabled using `*`."
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+{{ file.Read "src/pod-security-policy/volumes/src.rego" | strings.Indent 8 | strings.TrimSuffix "\n" }}
+ libs:
+ - |
+{{ file.Read "src/pod-security-policy/volumes/lib_exclude_update.rego" | strings.Indent 10 | strings.TrimSuffix "\n" }}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/src.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/src.rego
new file mode 100644
index 0000000000000000000000000000000000000000..389e48a44b4a8b77e4141b8e846f5b5914650874
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/src.rego
@@ -0,0 +1,22 @@
+package k8spspvolumetypes
+
+import data.lib.exclude_update.is_update
+
+violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume_fields := {x | input.review.object.spec.volumes[_][x]; x != "name"}
+ field := volume_fields[_]
+ not input_volume_type_allowed(field)
+ msg := sprintf("The volume type %v is not allowed, pod: %v. Allowed volume types: %v", [field, input.review.object.metadata.name, input.parameters.volumes])
+}
+
+# * may be used to allow all volume types
+input_volume_type_allowed(_) {
+ input.parameters.volumes[_] == "*"
+}
+
+input_volume_type_allowed(field) {
+ field == input.parameters.volumes[_]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/src_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/src_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..6d38babcf79adc40de0cf138097d80535b3cc9fd
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/pod-security-policy/volumes/src_test.rego
@@ -0,0 +1,197 @@
+package k8spspvolumetypes
+
+test_input_volume_type_allowed_all {
+ inp := { "review": input_review, "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_volume_type_allowed_all_many_volumes {
+ inp := { "review": input_review_many, "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_volume_type_none_allowed {
+ inp := { "review": input_review, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 1
+}
+test_input_volume_type_none_allowed_many_volumes {
+ inp := { "review": input_review_many, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 2
+}
+test_input_volume_type_allowed_all_no_volumes {
+ inp := { "review": input_review_no_volumes, "parameters": input_parameters_wildcard}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_volume_type_none_allowed_no_volumes {
+ inp := { "review": input_review_no_volumes, "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 0
+}
+test_input_volume_type_allowed_in_list_no_volumes {
+ inp := { "review": input_review_no_volumes, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_volume_type_allowed_in_list {
+ inp := { "review": input_review, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_volume_type_allowed_not_in_list {
+ inp := { "review": input_review, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_volume_type_allowed_in_list_many_volumes {
+ inp := { "review": input_review_many, "parameters": input_parameters_in_list}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+test_input_volume_type_allowed_not_all_in_list_many_volumes {
+ inp := { "review": input_review_many, "parameters": input_parameters_not_in_list}
+ results := violation with input as inp
+ count(results) == 2
+}
+
+test_input_volume_type_allowed_in_list_many_volumes_mixed {
+ inp := { "review": input_review_many, "parameters": input_parameters_mixed}
+ results := violation with input as inp
+ count(results) == 1
+}
+
+test_input_volume_type_update {
+ inp := { "review": object.union(input_review, {"operation": "UPDATE"}), "parameters": input_parameters_empty}
+ results := violation with input as inp
+ count(results) == 0
+}
+
+input_review = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers,
+ "volumes": input_volumes
+ }
+ }
+}
+
+input_review_many = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_many,
+ "volumes": input_volumes_many
+ }
+ }
+}
+
+input_review_no_volumes = {
+ "object": {
+ "metadata": {
+ "name": "nginx"
+ },
+ "spec": {
+ "containers": input_containers_no_volumes,
+ }
+ }
+}
+
+input_containers = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume"
+ }]
+}]
+
+input_containers_no_volumes = [
+{
+ "name": "nginx",
+ "image": "nginx"
+}]
+
+input_containers_many = [
+{
+ "name": "nginx",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume"
+ }]
+},
+{
+ "name": "nginx2",
+ "image": "nginx",
+ "volumeMounts":[
+ {
+ "mountPath": "/cache",
+ "name": "cache-volume2"
+ }]
+}]
+
+input_volumes = [
+{
+ "name": "cache-volume",
+ "hostPath": {
+ "path": "/tmp"
+ }
+}]
+
+input_volumes_many = [
+{
+ "name": "cache-volume",
+ "hostPath": {
+ "path": "/tmp"
+ }
+},
+{
+ "name": "cache-volume2",
+ "emptyDir": {}
+}]
+
+input_parameters_empty = {
+ "volumes": []
+}
+
+input_parameters_wildcard = {
+ "volumes": [
+ "*"
+ ]
+}
+
+input_parameters_in_list = {
+ "volumes": [
+ "hostPath",
+ "emptyDir"
+ ]
+}
+
+input_parameters_mixed = {
+ "volumes": [
+ "configMap",
+ "emptyDir"
+ ]
+}
+
+input_parameters_not_in_list = {
+ "volumes": [
+ "configMap",
+ "secret"
+ ]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exclude_update/lib_exclude_update.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exclude_update/lib_exclude_update.rego
new file mode 100644
index 0000000000000000000000000000000000000000..96433d78a674b8fc4ab1b9ff06ec547b3dbde6e6
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exclude_update/lib_exclude_update.rego
@@ -0,0 +1,5 @@
+package lib.exclude_update
+
+is_update(review) {
+ review.operation == "UPDATE"
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exclude_update/lib_exclude_update_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exclude_update/lib_exclude_update_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..82d642756b7560266a6ff48093ee91e569381b89
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exclude_update/lib_exclude_update_test.rego
@@ -0,0 +1,13 @@
+package lib.exclude_update
+
+test_update {
+ is_update({"operation": "UPDATE"})
+}
+
+test_create {
+ not is_update({"operation": "CREATE"})
+}
+
+test_empty {
+ not is_update({"operation": ""})
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exempt_container/lib_exempt_container.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exempt_container/lib_exempt_container.rego
new file mode 100644
index 0000000000000000000000000000000000000000..c483416becff2ed11122c8db71cf7e0a3348f3c0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exempt_container/lib_exempt_container.rego
@@ -0,0 +1,19 @@
+package lib.exempt_container
+
+is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+}
+
+_matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+}
+
+_matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exempt_container/lib_exempt_container_test.rego b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exempt_container/lib_exempt_container_test.rego
new file mode 100644
index 0000000000000000000000000000000000000000..15962560a38bd2f8e4bf892ded2abfc57fc92613
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/src/rego/lib_exempt_container/lib_exempt_container_test.rego
@@ -0,0 +1,33 @@
+package lib.exempt_container
+
+test_exact_match_success {
+ is_exempt({"image": "one-two"}) with input.parameters.exemptImages as ["one-two"]
+}
+
+test_exact_match_fail {
+ not is_exempt({"image": "one-two-three"}) with input.parameters.exemptImages as ["one-two"]
+}
+
+test_prefix_success {
+ is_exempt({"image": "one-two-three"}) with input.parameters.exemptImages as ["one-two-*"]
+}
+
+test_prefix_fail {
+ not is_exempt({"image": "one-two-three"}) with input.parameters.exemptImages as ["four-two-*"]
+}
+
+test_one_match {
+ is_exempt({"image": "one-two"}) with input.parameters.exemptImages as ["three-four", "one-two"]
+}
+
+test_empty_exemption {
+ not is_exempt({"image": "one-two"}) with input.parameters.exemptImages as []
+}
+
+test_empty_image {
+ not is_exempt({"image": ""}) with input.parameters.exemptImages as ["three-four", "one-two"]
+}
+
+test_no_image {
+ not is_exempt({}) with input.parameters.exemptImages as ["three-four", "one-two"]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test.sh b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..e747df3f00ffb9e214ebd1ad703dfeb53a91fa15
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -eu
+
+# Ensure OPA strict mode compliance
+# https://www.openpolicyagent.org/docs/latest/policy-language/#strict-mode
+opa check --strict src
+
+for folder in src/*/*
+do
+ # TODO: enforce coverage
+ # needs https://github.com/open-policy-agent/opa/issues/2562 to see what was not covered
+ # needs https://github.com/open-policy-agent/opa/issues/2139 to see verbose output when using coverage
+ echo "opa test ${folder}/*.rego"
+ opa test ${folder}/*.rego
+done
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/helpers.bash b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/helpers.bash
new file mode 100644
index 0000000000000000000000000000000000000000..b76bb8e16f3a9ac18626f3218ec99c4634c91f27
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/helpers.bash
@@ -0,0 +1,111 @@
+#!/bin/bash
+
+assert_success() {
+ if [[ "$status" != 0 ]]; then
+ echo "expected: 0"
+ echo "actual: $status"
+ echo "output: $output"
+ return 1
+ fi
+}
+
+assert_failure() {
+ if [[ "$status" == 0 ]]; then
+ echo "expected: non-zero exit code"
+ echo "actual: $status"
+ echo "output: $output"
+ return 1
+ fi
+}
+
+assert_equal() {
+ if [[ "$1" != "$2" ]]; then
+ echo "expected: $1"
+ echo "actual: $2"
+ return 1
+ fi
+}
+
+assert_not_equal() {
+ if [[ "$1" == "$2" ]]; then
+ echo "unexpected: $1"
+ echo "actual: $2"
+ return 1
+ fi
+}
+
+assert_match() {
+ if [[ ! "$2" =~ $1 ]]; then
+ echo "expected: $1"
+ echo "actual: $2"
+ return 1
+ fi
+}
+
+assert_match_either() {
+ if [[ ! ("$3" =~ $1 || "$3" =~ $2 ) ]]; then
+ echo "expected: $1 or $2"
+ echo "actual: $3"
+ return 1
+ fi
+}
+
+assert_not_match() {
+ if [[ "$2" =~ $1 ]]; then
+ echo "expected: $1"
+ echo "actual: $2"
+ return 1
+ fi
+}
+
+wait_for_process() {
+ wait_time="$1"
+ sleep_time="$2"
+ cmd="$3"
+ while [ "$wait_time" -gt 0 ]; do
+ if eval "$cmd"; then
+ return 0
+ else
+ sleep "$sleep_time"
+ wait_time=$((wait_time - sleep_time))
+ fi
+ done
+ return 1
+}
+
+get_ca_cert() {
+ destination="$1"
+ if [ $(kubectl get secret -n gatekeeper-system gatekeeper-webhook-server-cert -o jsonpath='{.data.ca\.crt}' | wc -w) -eq 0 ]; then
+ return 1
+ fi
+ kubectl get secret -n gatekeeper-system gatekeeper-webhook-server-cert -o jsonpath='{.data.ca\.crt}' | base64 -d >$destination
+}
+
+constraint_enforced() {
+ local kind="$1"
+ local name="$2"
+ local pod_list="$(kubectl -n gatekeeper-system get pod -l gatekeeper.sh/operation=webhook -o json)"
+ if [[ $? -ne 0 ]]; then
+ echo "error gathering pods"
+ return 1
+ fi
+
+ # ensure pod_count is at least one
+ local pod_count=$(echo "${pod_list}" | jq '.items | length')
+ if [[ ${pod_count} -lt 1 ]]; then
+ echo "Gatekeeper pod count is < 1"
+ return 2
+ fi
+
+ local cstr="$(kubectl get ${kind} ${name} -ojson)"
+ if [[ $? -ne 0 ]]; then
+ echo "Error gathering constraint ${kind} ${name}"
+ return 3
+ fi
+
+ echo "checking constraint ${cstr}"
+
+ local ready_count=$(echo "${cstr}" | jq '.metadata.generation as $generation | [.status.byPod[] | select( .operations[] == "webhook" and .observedGeneration == $generation)] | length')
+ echo "ready: ${ready_count}, expected: ${pod_count}"
+ [[ "${ready_count}" -eq "${pod_count}" ]]
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/sync.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/sync.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d54d3a44347aad7410f841205e769aaf5af96d4f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/sync.yaml
@@ -0,0 +1,26 @@
+apiVersion: config.gatekeeper.sh/v1alpha1
+kind: Config
+metadata:
+ name: config
+ namespace: "gatekeeper-system"
+spec:
+ sync:
+ syncOnly:
+ - group: ""
+ version: "v1"
+ kind: "Service"
+ - group: ""
+ version: "v1"
+ kind: "Namespace"
+ - group: "networking.k8s.io"
+ version: "v1"
+ kind: "Ingress"
+ - group: "apps"
+ version: "v1"
+ kind: "Deployment"
+ - group: "policy"
+ version: "v1"
+ kind: "PodDisruptionBudget"
+ - group: "storage.k8s.io"
+ version: "v1"
+ kind: "StorageClass"
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/test.bats b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/test.bats
new file mode 100644
index 0000000000000000000000000000000000000000..3e9cd5df0e9ec146fddf8bfd4cd6477d3a80bd66
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/bats/test.bats
@@ -0,0 +1,152 @@
+#!/usr/bin/env bats
+
+load helpers
+
+TESTS_DIR=library
+BATS_TESTS_DIR=test/bats
+WAIT_TIME=300
+SLEEP_TIME=5
+CLEAN_CMD="echo cleaning..."
+
+teardown() {
+ bash -c "${CLEAN_CMD}"
+ kubectl delete constrainttemplate --all
+}
+
+setup() {
+ kubectl config set-context --current --namespace default
+}
+
+@test "all policies are listed in kustomization.yaml" {
+ pushd library/general/
+ kustomize edit add resource $(find ./ -type d -maxdepth 1 -mindepth 1 -exec basename {} \;)
+ run git diff --quiet kustomization.yaml
+ assert_success
+ popd
+
+ pushd library/pod-security-policy/
+ kustomize edit add resource $(find ./ -type d -maxdepth 1 -mindepth 1 -exec basename {} \;)
+ run git diff --quiet kustomization.yaml
+ assert_success
+ popd
+}
+
+@test "gatekeeper-controller-manager is running" {
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl -n gatekeeper-system wait --for=condition=Ready --timeout=60s pod -l control-plane=controller-manager"
+}
+
+@test "gatekeeper-audit is running" {
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl -n gatekeeper-system wait --for=condition=Ready --timeout=60s pod -l control-plane=audit-controller"
+}
+
+@test "namespace label webhook is serving" {
+ cert=$(mktemp)
+ CLEAN_CMD="${CLEAN_CMD}; rm ${cert}"
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "get_ca_cert ${cert}"
+
+ kubectl run temp --image=curlimages/curl -- tail -f /dev/null
+ kubectl wait --for=condition=Ready --timeout=60s pod temp
+ kubectl cp ${cert} temp:/tmp/cacert
+
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl exec -it temp -- curl -f --cacert /tmp/cacert --connect-timeout 1 --max-time 2 https://gatekeeper-webhook-service.gatekeeper-system.svc:443/v1/admitlabel"
+ kubectl delete pod temp
+}
+
+@test "constrainttemplates crd is established" {
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl wait --for condition=established --timeout=60s crd/constrainttemplates.templates.gatekeeper.sh"
+}
+
+@test "waiting for validating webhook" {
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl get validatingwebhookconfigurations.admissionregistration.k8s.io gatekeeper-validating-webhook-configuration"
+}
+
+@test "unset default storageclasses so tests function properly" {
+ kubectl get storageclass --no-headers=true -o custom-columns=":metadata.name" | while read line; do
+ kubectl annotate storageclass $line storageclass.kubernetes.io/is-default-class-
+ done
+}
+
+@test "applying sync config" {
+ kubectl apply -f ${BATS_TESTS_DIR}/sync.yaml
+}
+
+@test "waiting for namespaces to be synced using metrics endpoint" {
+ kubectl run temp --image=curlimages/curl -- tail -f /dev/null
+ kubectl wait --for=condition=Ready --timeout=60s pod temp
+
+ num_namespaces=$(kubectl get ns -o json | jq '.items | length')
+ local pod_ip="$(kubectl -n gatekeeper-system get pod -l gatekeeper.sh/operation=webhook -ojson | jq --raw-output '[.items[].status.podIP][0]' | sed 's#\.#-#g')"
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl exec -it temp -- curl http://${pod_ip}.gatekeeper-system.pod:8888/metrics | grep 'gatekeeper_sync{kind=\"Namespace\",status=\"active\"} ${num_namespaces}'"
+ kubectl delete pod temp
+}
+
+@test "testing constraint templates" {
+ for policy in "$TESTS_DIR"/*/*; do
+ if [ -d "$policy" ]; then
+ local policy_group=$(basename "$(dirname "$policy")")
+ local template_name=$(basename "$policy")
+ echo "running integration test against policy group: $policy_group, constraint template: $template_name"
+ # apply template
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl apply -k $policy"
+ local kind=$(yq e .metadata.name "$policy"/template.yaml)
+ for sample in "$policy"/samples/*; do
+ echo "testing sample constraint: $(basename "$sample")"
+ # apply constraint
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl apply -f ${sample}/constraint.yaml"
+ local name=$(yq e .metadata.name "$sample"/constraint.yaml)
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "constraint_enforced $kind $name"
+
+ for inventory in "$sample"/example_inventory*.yaml; do
+ if [[ -e "$inventory" ]]; then
+ run kubectl apply -f "$inventory"
+ assert_match 'created' "$output"
+ assert_success
+ fi
+ done
+
+ for allowed in "$sample"/example_allowed*.yaml; do
+ if [[ -e "$allowed" ]]; then
+ # apply resource
+ if kubectl apply -f "$allowed" --dry-run=server &> /dev/null; then
+ echo "Applying ${allowed} with contents:"
+ cat ${allowed}
+ run kubectl apply -f "$allowed"
+ assert_match 'created' "$output"
+ assert_success
+ # delete resource
+ kubectl delete --ignore-not-found -f "$allowed"
+ fi
+ fi
+ done
+
+ for disallowed in "$sample"/example_disallowed*.yaml; do
+ if [[ -e "$disallowed" ]]; then
+ # apply resource
+ if kubectl apply -f "$disallowed" --dry-run=server &> /dev/null; then
+ echo "Applying ${disallowed} with contents:"
+ cat ${disallowed}
+ run kubectl apply -f "$disallowed"
+ assert_match_either 'denied the request' 'no matches for kind' "${output}"
+ assert_failure
+ # delete resource
+ run kubectl delete --ignore-not-found -f "$disallowed"
+ fi
+ fi
+ done
+
+ # delete inventory resources
+ for inventory in "$sample"/example_inventory*.yaml; do
+ if [[ -e "$inventory" ]]; then
+ kubectl delete --ignore-not-found -f "$inventory"
+ fi
+ done
+
+ # delete constraint
+ wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl delete -f ${sample}/constraint.yaml"
+
+ done
+ # delete template
+ kubectl delete -k "$policy"
+ fi
+ done
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/kind_config.yaml b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/kind_config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f965679319777cf1fd9ab629ba3e6e08887ccb77
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test/kind_config.yaml
@@ -0,0 +1,5 @@
+kind: Cluster
+apiVersion: kind.x-k8s.io/v1alpha4
+featureGates:
+ "ProcMountType": true
+ "UserNamespacesSupport": true
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/.gitignore b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..b2d6de30624f651a6c584d4faefafceac6302be1
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/.gitignore
@@ -0,0 +1,20 @@
+# Dependencies
+/node_modules
+
+# Production
+/build
+
+# Generated files
+.docusaurus
+.cache-loader
+
+# Misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/README.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..aaba2fa1e16eebb0ff68df9127e1afc6395c74d8
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/README.md
@@ -0,0 +1,41 @@
+# Website
+
+This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
+
+### Installation
+
+```
+$ yarn
+```
+
+### Local Development
+
+```
+$ yarn start
+```
+
+This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
+
+### Build
+
+```
+$ yarn build
+```
+
+This command generates static content into the `build` directory and can be served using any static contents hosting service.
+
+### Deployment
+
+Using SSH:
+
+```
+$ USE_SSH=true yarn deploy
+```
+
+Not using SSH:
+
+```
+$ GIT_USER= yarn deploy
+```
+
+If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/babel.config.js b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/babel.config.js
new file mode 100644
index 0000000000000000000000000000000000000000..e00595dae7d69190e2a9d07202616c2ea932e487
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/babel.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
+};
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/intro.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/intro.md
new file mode 100644
index 0000000000000000000000000000000000000000..fb96dec5d9b876cdd827e714e68c8888f0152764
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/intro.md
@@ -0,0 +1,96 @@
+---
+id: intro
+title: Introduction
+sidebar_label: Introduction
+slug: /
+---
+
+# OPA Gatekeeper Library
+[](https://artifacthub.io/packages/search?repo=gatekeeper-policies)
+
+A community-owned library of policies for the [OPA Gatekeeper project](https://open-policy-agent.github.io/gatekeeper/website/docs/).
+
+## Validation and Mutation
+The library consists of two main components: `Validation` and `Mutation`.
+- Validation: Gatekeeper can validate resources in the cluster against Gatekeeper validation policies, such as these defined in the library. The policies are defined as `ConstraintTemplates` and `Constraints`. `ConstraintTemplates` can be applied directly to a cluster and then `Constraints` can be applied to customize policy to fit your specific needs.
+- Mutation: Gatekeeper can mutate resources in the cluster against the Gatekeeper mutation policies, such as these defined in the library. Mutation policies are only examples, they should be customized to meet your needs before being applied.
+
+## Usage
+
+### kustomize
+
+You can use [kustomize](https://kubectl.docs.kubernetes.io/installation/kustomize/) to install some or all of the templates alongside your own constraints.
+
+First, create a `kustomization.yaml` file:
+
+```yaml
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+resources:
+- github.com/open-policy-agent/gatekeeper-library/library
+# You can optionally install a subset by specifying a subfolder, or specify a commit SHA
+# - github.com/open-policy-agent/gatekeeper-library/library/pod-security-policy?ref=0c82f402fb3594097a90d15215ae223267f5b955
+- constraints.yaml
+```
+
+Then define your constraints in a file called `constraints.yaml` in the same directory. Example constraints can be found in the "samples" folders.
+
+You can install everything with `kustomize build . | kubectl apply -f -`.
+
+More information can be found in the [kustomization documentation](https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/).
+
+### kubectl
+
+Instead of using kustomize, you can directly apply the `template.yaml` and `constraint.yaml` provided in each directory under `library/`
+
+For example
+
+```bash
+cd library/general/httpsonly/
+kubectl apply -f template.yaml
+kubectl apply -f samples/ingress-https-only/constraint.yaml
+kubectl apply -f library/general/httpsonly/sync.yaml # optional: when GK is running with OPA cache
+```
+
+## Testing
+
+The `suite.yaml` files define test cases for each ConstraintTemplate in the library.
+Changes to gatekeeper-library ConstraintTemplates may be tested with the gator CLI:
+
+```bash
+gatekeeper-library$ gator verify ./...
+```
+
+The gator CLI may be downloaded from the Gatekeeper
+[releases page](https://github.com/open-policy-agent/gatekeeper/releases).
+
+## How to contribute to the library
+
+### New policy
+
+If you have a policy you would like to contribute, please submit a pull request.
+Each new policy should contain:
+
+* A constraint template named `src//constraint.tmpl` with a `description` annotation and the parameter structure, if any, defined in `spec.crd.spec.validation.openAPIV3Schema`. The template is rendered using [gomplate](https://docs.gomplate.ca/).
+* One or more sample constraints, each with an example of an allowed (`example_allowed.yaml`) and disallowed (`example_disallowed.yaml`) resource under `library//samples/`
+* `kustomization.yaml` and `suite.yaml` under `library/`
+* The rego source, as `src.rego` and unit tests as `src_test.rego` in the corresponding subdirectory under `src/`
+* [Versioning](https://docs.google.com/document/d/1IYiypA-mRcdfSVfmoeyuaeG8XtA1u4GkcqH3kEkv2uw/edit) has been introduced for Gatekeeper Library policies. Please make sure to add or bump the version of the policy as per the guidelines in the `src//constraint.tmpl` annotation.
+ * Major version bump required: Whenever there is a breaking change in the policy e.g. updating template Kind, updating existing parameter schema, adding the `requires-sync-data` annotation to sync new data, or any other breaking changes
+ * Minor version bump required: Whenever there is a backward compatible change in the policy e.g. adding a parameter, updating Rego logic
+ * Patch version bump required: Whenever there is a simple backward compatible change in the policy, e.g. Simple Rego fix, updating policy metadata
+ * Note: Sample constraints, mutations, and expansion templates are provided as examples, and severable changes do not require a version bump.
+
+### Development
+
+* policy code and tests are maintained in `src//src.rego` and `src//src_test.rego`
+* `make generate` will generate `library//template.yaml` from `src//src.rego` using [gomplate](https://docs.gomplate.ca/).
+* `make generate-website-docs` will generate the markdown files required for the website.
+* `make generate-artifacthub-artifacts` will generate or update the artifact hub packages and associated `artifacthub-pkg.yml` file under `/artifacthub` directory.
+* `make generate-all` will generate all artifacts above.
+* `make validate` will run validation checks on the library repo. Currently it validates directory structure of `website/docs` directory.
+* `make unit-test` will run all unit tests in the scripts directory.
+* run all tests with `./test.sh`
+* run single test with `opa test src//src.rego src//src_test.rego --verbose`
+* print results with `trace(sprintf("%v", [thing]))`
+
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/allow-privilege-escalation.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/allow-privilege-escalation.md
new file mode 100644
index 0000000000000000000000000000000000000000..a79ee45f7816d465ad85db421204525e81639e1d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/allow-privilege-escalation.md
@@ -0,0 +1,65 @@
+---
+id: allow-privilege-escalation
+title: allow-privilege-escalation
+---
+
+# allow-privilege-escalation
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/allow-privilege-escalation/samples/mutation.yaml
+```
+## Mutation Examples
+```yaml
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspdefaultallowprivilegeescalation
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.containers[name:*].securityContext.allowPrivilegeEscalation"
+ parameters:
+ pathTests:
+ - subPath: "spec.containers[name:*].securityContext.allowPrivilegeEscalation"
+ condition: MustNotExist
+ assign:
+ value: false
+---
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspdefaultallowprivilegeescalation-init
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.initContainers[name:*].securityContext.allowPrivilegeEscalation"
+ parameters:
+ pathTests:
+ - subPath: "spec.initContainers[name:*].securityContext.allowPrivilegeEscalation"
+ condition: MustNotExist
+ assign:
+ value: false
+---
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspdefaultallowprivilegeescalation-ephemeral
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.ephemeralContainers[name:*].securityContext.allowPrivilegeEscalation"
+ parameters:
+ pathTests:
+ - subPath: "spec.ephemeralContainers[name:*].securityContext.allowPrivilegeEscalation"
+ condition: MustNotExist
+ assign:
+ value: false
+
+```
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/capabilities.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/capabilities.md
new file mode 100644
index 0000000000000000000000000000000000000000..80b747e18cf69600aa4d737635c447fa41efe8c3
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/capabilities.md
@@ -0,0 +1,34 @@
+---
+id: capabilities
+title: capabilities
+---
+
+# capabilities
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/capabilities/samples/mutation-modifyset.yaml
+```
+## Mutation Examples
+```yaml
+apiVersion: mutations.gatekeeper.sh/v1
+kind: ModifySet
+metadata:
+ name: k8spspcapabilities
+spec:
+ applyTo:
+ - groups: [""]
+ versions: ["v1"]
+ kinds: ["Pod"]
+ match:
+ scope: Namespaced
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ location: "spec.containers[name:*].securityContext.capabilities.add"
+ parameters:
+ operation: merge
+ values:
+ fromList: ["NEW_CAPABILITY"]
+
+```
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/read-only-root-filesystem.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/read-only-root-filesystem.md
new file mode 100644
index 0000000000000000000000000000000000000000..1eb833b548ceba457f72daf0b1c8fb16abe15c4a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/read-only-root-filesystem.md
@@ -0,0 +1,31 @@
+---
+id: read-only-root-filesystem
+title: read-only-root-filesystem
+---
+
+# read-only-root-filesystem
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/read-only-root-filesystem/samples/mutation.yaml
+```
+## Mutation Examples
+```yaml
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspreadonlyrootfs
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.containers[name:*].securityContext.readOnlyRootFilesystem"
+ parameters:
+ pathTests:
+ - subPath: "spec.containers[name:*].securityContext.readOnlyRootFilesystem"
+ condition: MustNotExist
+ assign:
+ value: true
+
+```
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/seccomp.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/seccomp.md
new file mode 100644
index 0000000000000000000000000000000000000000..3719850b28415b57e93bf950d2a1cc8fac2c71cb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/seccomp.md
@@ -0,0 +1,32 @@
+---
+id: seccomp
+title: seccomp
+---
+
+# seccomp
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/seccomp/samples/mutation.yaml
+```
+## Mutation Examples
+```yaml
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspseccomp
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: spec.securityContext.seccompProfile
+ parameters:
+ pathTests:
+ - subPath: spec.securityContext.seccompProfile
+ condition: MustNotExist
+ assign:
+ value:
+ type: RuntimeDefault
+
+```
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/selinux.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/selinux.md
new file mode 100644
index 0000000000000000000000000000000000000000..7435feb0d2735418ca7cd023eebb20a1cd9af1b0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/selinux.md
@@ -0,0 +1,35 @@
+---
+id: selinux
+title: selinux
+---
+
+# selinux
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/selinux/samples/mutation.yaml
+```
+## Mutation Examples
+```yaml
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspselinux
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: spec.containers[name:*].securityContext.seLinuxOptions
+ parameters:
+ pathTests:
+ - subPath: spec.containers[name:*].securityContext.seLinuxOptions
+ condition: MustNotExist
+ assign:
+ value:
+ level: s1:c234,c567
+ user: sysadm_u
+ role: sysadm_r
+ type: svirt_lxc_net_t
+
+```
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/users.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/users.md
new file mode 100644
index 0000000000000000000000000000000000000000..da2a747d095ee001cc323c2e3f1920de732f3074
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/users.md
@@ -0,0 +1,31 @@
+---
+id: users
+title: users
+---
+
+# users
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/users/samples/mutation-supplementalGroups.yaml
+```
+## Mutation Examples
+```yaml
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: k8spspsupplementalgroups
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ location: "spec.securityContext.supplementalGroups"
+ parameters:
+ pathTests:
+ - subPath: "spec.securityContext.supplementalGroups"
+ condition: MustNotExist
+ assign:
+ value: [3000]
+
+```
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/pspintro.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/pspintro.md
new file mode 100644
index 0000000000000000000000000000000000000000..2b0ef40cd6296d8c177891fa155cad360ca859bb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/pspintro.md
@@ -0,0 +1,49 @@
+---
+id: pspintro
+title: Introduction
+---
+
+# Pod Security Standards
+
+This library provides Gatekeeper policies that implement the [Kubernetes Pod Security Standards](https://kubernetes.io/docs/concepts/security/pod-security-standards/). These standards define three profiles that cover the security spectrum:
+
+- **Privileged**: Unrestricted policy, providing the widest possible level of permissions.
+- **Baseline**: Minimally restrictive policy which prevents known privilege escalations. Allows the default (minimally specified) Pod configuration.
+- **Restricted**: Heavily restricted policy, following current Pod hardening best practices.
+
+> **Note:** The profiles are **cumulative** - the Restricted profile includes all policies from the Baseline profile, plus additional restrictions.
+
+These policies were originally based on the deprecated [Pod Security Policy](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) but have been updated to align with the modern Pod Security Standards.
+
+An administrator can control the following by deploying the corresponding Gatekeeper constraint and constraint templates:
+
+## Baseline Profile
+
+These policies prevent known privilege escalations and are recommended as the minimum security configuration for most workloads.
+
+| Control Aspect | Gatekeeper Constraint and Constraint Template |
+|---------------------------------------------------|----------------------------------------------------------|
+| Running of privileged containers | [privileged-containers](validation/privileged-containers) |
+| Usage of host namespaces | [host-namespaces](validation/host-namespaces) |
+| Usage of host networking and ports | [host-network-ports](validation/host-network-ports) |
+| Usage of the host filesystem | [host-filesystem](validation/host-filesystem) |
+| Linux capabilities | [capabilities](validation/capabilities) |
+| The SELinux context of the container | [selinux](validation/selinux) |
+| The allowed Proc mount types for the container | [proc-mount](validation/proc-mount) |
+| The AppArmor profile used by containers | [apparmor](validation/apparmor) |
+| The seccomp profile used by containers | [seccompv2](validation/seccompv2) |
+| The sysctl profile used by containers | [forbidden-sysctls](validation/forbidden-sysctls) |
+
+## Restricted Profile
+
+These policies provide additional hardening on top of the Baseline profile. Deploy these **in addition to** the Baseline policies for maximum security.
+
+| Control Aspect | Gatekeeper Constraint and Constraint Template |
+|---------------------------------------------------|----------------------------------------------------------|
+| Restricting escalation to root privileges | [allow-privilege-escalation](validation/allow-privilege-escalation) |
+| Approved list of flex-volume drivers | [flexvolume-drivers](validation/flexvolume-drivers) |
+| Allocating an FSGroup that owns the Pod's volumes | [fsgroup](validation/fsgroup) |
+| Requiring the use of a read only root file system | [read-only-root-filesystem](validation/read-only-root-filesystem) |
+| The user and group IDs of the container | [users](validation/users) |
+| Usage of volume types | [volumes](validation/volumes) |
+
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allow-privilege-escalation.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allow-privilege-escalation.md
new file mode 100644
index 0000000000000000000000000000000000000000..7e4a6f8330c1db2a5f709aa39e0f64cfa3663a8e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allow-privilege-escalation.md
@@ -0,0 +1,297 @@
+---
+id: allow-privilege-escalation
+title: Allow Privilege Escalation in Container
+---
+
+# Allow Privilege Escalation in Container
+
+**Bundles:** `pod-security-restricted`
+
+## Description
+Controls restricting escalation to root privileges. Corresponds to the `allowPrivilegeEscalation` field in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspallowprivilegeescalationcontainer
+ annotations:
+ metadata.gatekeeper.sh/title: "Allow Privilege Escalation in Container"
+ metadata.gatekeeper.sh/version: 1.1.1
+ metadata.gatekeeper.sh/bundle: "pod-security-restricted"
+ description: >-
+ Controls restricting escalation to root privileges. Corresponds to the
+ `allowPrivilegeEscalation` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAllowPrivilegeEscalationContainer
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls restricting escalation to root privileges. Corresponds to the
+ `allowPrivilegeEscalation` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) && (
+ !has(container.securityContext) ||
+ !has(container.securityContext.allowPrivilegeEscalation) ||
+ container.securityContext.allowPrivilegeEscalation != false
+ )
+ )
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badContainers) == 0'
+ messageExpression: '"Privilege escalation container is not allowed: " + variables.badContainers.map(c, c.image).join(", ")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspallowprivilegeescalationcontainer
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.allowPrivilegeEscalation field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ input_allow_privilege_escalation(c)
+ msg := sprintf("Privilege escalation container is not allowed: %v", [c.name])
+ }
+
+ input_allow_privilege_escalation(c) {
+ not has_field(c, "securityContext")
+ }
+ input_allow_privilege_escalation(c) {
+ not c.securityContext.allowPrivilegeEscalation == false
+ }
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/allow-privilege-escalation/template.yaml
+```
+## Examples
+
+allow-privilege-escalation
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPAllowPrivilegeEscalationContainer
+metadata:
+ name: psp-allow-privilege-escalation-container
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages: ["safeimages.com/*"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privilege-escalation-allowed
+ labels:
+ app: nginx-privilege-escalation
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ allowPrivilegeEscalation: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privilege-escalation-disallowed
+ labels:
+ app: nginx-privilege-escalation
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ allowPrivilegeEscalation: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/example_disallowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privilege-escalation-disallowed
+ labels:
+ app: nginx-privilege-escalation
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ allowPrivilegeEscalation: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/disallowed_ephemeral.yaml
+```
+
+
+
+exempted-path
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privilege-escalation-disallowed
+ labels:
+ app: nginx-privilege-escalation
+spec:
+ containers:
+ - name: nginx
+ image: "safeimages.com/nginx"
+ securityContext:
+ allowPrivilegeEscalation: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/allow-privilege-escalation/samples/psp-allow-privilege-escalation-container/example_allowed_exempt.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allowedrepos.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allowedrepos.md
new file mode 100644
index 0000000000000000000000000000000000000000..f077a927bbc4a7cda5c5b766958aaae5e28730ef
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allowedrepos.md
@@ -0,0 +1,269 @@
+---
+id: allowedrepos
+title: Allowed Repositories
+---
+
+# Allowed Repositories
+
+## Description
+Requires container images to begin with a string from the specified list. To prevent bypasses, ensure a '/' is added when specifying DockerHub repositories or custom registries. If exact matches or glob-like syntax are preferred, use the k8sallowedreposv2 policy.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sallowedrepos
+ annotations:
+ metadata.gatekeeper.sh/title: "Allowed Repositories"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires container images to begin with a string from the specified list.
+ To prevent bypasses, ensure a '/' is added when specifying DockerHub repositories or custom registries.
+ If exact matches or glob-like syntax are preferred, use the k8sallowedreposv2 policy.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sAllowedRepos
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ repos:
+ description: The list of prefixes a container image is allowed to have.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sallowedrepos
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.containers[_]
+ not strings.any_prefix_match(container.image, input.parameters.repos)
+ msg := sprintf("container <%v> has an invalid image repo <%v>, allowed repos are %v", [container.name, container.image, input.parameters.repos])
+ }
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.initContainers[_]
+ not strings.any_prefix_match(container.image, input.parameters.repos)
+ msg := sprintf("initContainer <%v> has an invalid image repo <%v>, allowed repos are %v", [container.name, container.image, input.parameters.repos])
+ }
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.ephemeralContainers[_]
+ not strings.any_prefix_match(container.image, input.parameters.repos)
+ msg := sprintf("ephemeralContainer <%v> has an invalid image repo <%v>, allowed repos are %v", [container.name, container.image, input.parameters.repos])
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedrepos/template.yaml
+```
+## Examples
+
+allowed-repos
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sAllowedRepos
+metadata:
+ name: repo-is-openpolicyagent
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ namespaces:
+ - "default"
+ parameters:
+ repos:
+ - "openpolicyagent/"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedrepos/samples/repo-must-be-openpolicyagent/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedrepos/samples/repo-must-be-openpolicyagent/example_allowed.yaml
+```
+
+
+
+container-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-disallowed
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedrepos/samples/repo-must-be-openpolicyagent/example_disallowed_container.yaml
+```
+
+
+
+initcontainer-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-disallowed
+spec:
+ initContainers:
+ - name: nginxinit
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedrepos/samples/repo-must-be-openpolicyagent/example_disallowed_initcontainer.yaml
+```
+
+
+
+both-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-disallowed
+spec:
+ initContainers:
+ - name: nginxinit
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ containers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedrepos/samples/repo-must-be-openpolicyagent/example_disallowed_both.yaml
+```
+
+
+
+all-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-disallowed
+spec:
+ initContainers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ containers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedrepos/samples/repo-must-be-openpolicyagent/disallowed_all.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allowedreposv2.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allowedreposv2.md
new file mode 100644
index 0000000000000000000000000000000000000000..c52093cf79c23dda06723eecaa2b6c4f38a75eae
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/allowedreposv2.md
@@ -0,0 +1,402 @@
+---
+id: allowedreposv2
+title: Allowed Images
+---
+
+# Allowed Images
+
+## Description
+This policy enforces that container images must begin with a string from a specified list. The updated version, K8sAllowedReposv2, introduces support for exact match and glob-like syntax to enhance security: 1. Exact Match: By default, if the * character is not specified, the policy strictly checks for an exact match of the full registry, repository, and/or the image name. 2. Glob-like Syntax: Adding * at the end of a prefix allows prefix-based matching (e.g., registry.example.com/project/*). Only the * wildcard at the end of a string is supported. 3. Security Note: To avoid bypasses scenarios, ensure prefixes include a trailing / where appropriate (e.g., registry.example.com/project/*).
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sallowedreposv2
+ annotations:
+ metadata.gatekeeper.sh/title: "Allowed Images"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ This policy enforces that container images must begin with a string from a specified list.
+ The updated version, K8sAllowedReposv2, introduces support for exact match and glob-like syntax to enhance security:
+ 1. Exact Match: By default, if the * character is not specified, the policy strictly checks for an exact match of the full registry, repository, and/or the image name.
+ 2. Glob-like Syntax: Adding * at the end of a prefix allows prefix-based matching (e.g., registry.example.com/project/*). Only the * wildcard at the end of a string is supported.
+ 3. Security Note: To avoid bypasses scenarios, ensure prefixes include a trailing / where appropriate (e.g., registry.example.com/project/*).
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sAllowedReposv2
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ allowedImages:
+ description: A list of allowed container image prefixes. Supports exact matches and prefixes ending with '*'.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sallowedreposv2
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.containers[_]
+ not image_matches(container.image, input.parameters.allowedImages)
+ msg := sprintf("container <%v> has an invalid image <%v>, allowed images are %v", [container.name, container.image, input.parameters.allowedImages])
+ }
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.initContainers[_]
+ not image_matches(container.image, input.parameters.allowedImages)
+ msg := sprintf("initContainer <%v> has an invalid image <%v>, allowed images are %v", [container.name, container.image, input.parameters.allowedImages])
+ }
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.ephemeralContainers[_]
+ not image_matches(container.image, input.parameters.allowedImages)
+ msg := sprintf("ephemeralContainer <%v> has an invalid image <%v>, allowed images are %v", [container.name, container.image, input.parameters.allowedImages])
+ }
+
+ image_matches(image, images) {
+ i_image := images[_] # Iterate through all images in the allowed list
+ not endswith(i_image, "*") # Check for exact match if the image does not end with *
+ i_image == image
+ }
+
+ image_matches(image, images) {
+ i_image := images[_] # Iterate through all images in the allowed list
+ endswith(i_image, "*") # Check for prefix match if the image ends with *
+ prefix := trim_suffix(i_image, "*")
+ startswith(image, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/template.yaml
+```
+## Examples
+
+allowed-reposv2
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sAllowedReposv2
+metadata:
+ name: repo-is-openpolicyagent
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ namespaces:
+ - "default"
+ parameters:
+ allowedImages:
+ - "openpolicyagent/*"
+ - "myregistry.azurecr.io/*"
+ - "mydockerhub/*"
+ - "ubuntu:20.14"
+ - "123456789123.dkr.ecr.eu-west-1.amazonaws.com/postgres"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_allowed.yaml
+```
+
+
+
+example-allowed-images
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+spec:
+ containers:
+ - name: image
+ image: ubuntu:20.14
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_allowed_images.yaml
+```
+
+
+
+container-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-disallowed
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_container.yaml
+```
+
+
+
+initcontainer-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-disallowed
+spec:
+ initContainers:
+ - name: nginxinit
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_initcontainer.yaml
+```
+
+
+
+both-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-disallowed
+spec:
+ initContainers:
+ - name: nginxinit
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ containers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_both.yaml
+```
+
+
+
+all-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-disallowed
+spec:
+ initContainers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ containers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/disallowed_all.yaml
+```
+
+
+
+disallowed-repository-and-registry
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: registry-repository-disallowed
+spec:
+ containers:
+ - name: image-1-malicious-registry-disallow
+ image: myregistry.azurecr.io.malicious.com/malicious-image
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ - name: image-2-registry-allow
+ image: myregistry.azurecr.io/nginx
+ resources:
+ limits:
+ cpu: "200m"
+ memory: "50Mi"
+ - name: image-3-malicious-image-with-registry-disallow
+ image: mydockerhubmalicious/python
+ resources:
+ limits:
+ cpu: "50m"
+ memory: "10Mi"
+ - name: image-4-image-with-registry-allow
+ image: mydockerhub/python
+ resources:
+ limits:
+ cpu: "50m"
+ memory: "10Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_registry_and_repository.yaml
+```
+
+
+
+disallowed-repository-images
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: image-disallowed
+spec:
+ containers:
+ - name: image-1-malicious-basic-image-disallow
+ image: ubuntumalicious
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+ - name: image-2-basic-image-allow
+ image: ubuntu:20.14
+ resources:
+ limits:
+ cpu: "200m"
+ memory: "50Mi"
+ - name: image-3-malicious-image-with-registry-disallow
+ image: 123456789123.dkr.ecr.eu-west-1.amazonaws.com/postgresmalicious
+ resources:
+ limits:
+ cpu: "50m"
+ memory: "10Mi"
+ - name: image-4-image-with-registry-allow
+ image: 123456789123.dkr.ecr.eu-west-1.amazonaws.com/postgres
+ resources:
+ limits:
+ cpu: "50m"
+ memory: "10Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/allowedreposv2/samples/repo-must-be-openpolicyagent/example_disallowed_images.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/apparmor.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/apparmor.md
new file mode 100644
index 0000000000000000000000000000000000000000..d85432b8583f50afe7b812068cafcfc52f8d177c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/apparmor.md
@@ -0,0 +1,496 @@
+---
+id: apparmor
+title: App Armor
+---
+
+# App Armor
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Configures an allow-list of AppArmor profiles for use by containers. This corresponds to specific annotations applied to a PodSecurityPolicy. For information on AppArmor, see https://kubernetes.io/docs/tutorials/clusters/apparmor/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspapparmor
+ annotations:
+ metadata.gatekeeper.sh/title: "App Armor"
+ metadata.gatekeeper.sh/version: 1.1.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Configures an allow-list of AppArmor profiles for use by containers.
+ This corresponds to specific annotations applied to a PodSecurityPolicy.
+ For information on AppArmor, see
+ https://kubernetes.io/docs/tutorials/clusters/apparmor/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAppArmor
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Configures an allow-list of AppArmor profiles for use by containers.
+ This corresponds to specific annotations applied to a PodSecurityPolicy.
+ For information on AppArmor, see
+ https://kubernetes.io/docs/tutorials/clusters/apparmor/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedProfiles:
+ description: "An array of AppArmor profiles. Examples: `runtime/default`, `unconfined`."
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: podAppArmor
+ expression: 'has(variables.anyObject.spec.securityContext) && has(variables.anyObject.spec.securityContext.appArmorProfile) ? variables.anyObject.spec.securityContext.appArmorProfile : null'
+ - name: canonicalPodAppArmor
+ expression: |
+ variables.podAppArmor == null ? "runtime/default" :
+ variables.podAppArmor.type == "RuntimeDefault" ? "runtime/default" :
+ variables.podAppArmor.type == "Unconfined" ? "unconfined" :
+ variables.podAppArmor.type == "Localhost" ? "localhost/" + variables.podAppArmor.localhostProfile : ""
+ # break this mapping up by container type (regular/init/ephemeral) to avoid problems with name collisions,
+ # which may be a problem when running shift-left (no K8s API server to enforce uniqueness of container names)
+ - name: appArmorByContainer
+ expression: |
+ variables.containers.map(container, [container.name,
+ has(container.securityContext) && has(container.securityContext.appArmorProfile) ?
+ (container.securityContext.appArmorProfile.type == "RuntimeDefault" ? "runtime/default" :
+ container.securityContext.appArmorProfile.type == "Unconfined" ? "unconfined" :
+ container.securityContext.appArmorProfile.type == "Localhost" ? "localhost/" + container.securityContext.appArmorProfile.localhostProfile : "") :
+ has(variables.anyObject.metadata.annotations) && ("container.apparmor.security.beta.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations ?
+ variables.anyObject.metadata.annotations["container.apparmor.security.beta.kubernetes.io/" + container.name] :
+ variables.canonicalPodAppArmor
+ ])
+ - name: appArmorByInitContainer
+ expression: |
+ variables.initContainers.map(container, [container.name,
+ has(container.securityContext) && has(container.securityContext.appArmorProfile) ?
+ (container.securityContext.appArmorProfile.type == "RuntimeDefault" ? "runtime/default" :
+ container.securityContext.appArmorProfile.type == "Unconfined" ? "unconfined" :
+ container.securityContext.appArmorProfile.type == "Localhost" ? "localhost/" + container.securityContext.appArmorProfile.localhostProfile : "") :
+ has(variables.anyObject.metadata.annotations) && ("container.apparmor.security.beta.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations ?
+ variables.anyObject.metadata.annotations["container.apparmor.security.beta.kubernetes.io/" + container.name] :
+ variables.canonicalPodAppArmor
+ ])
+ - name: appArmorByEphemeralContainer
+ expression: |
+ variables.ephemeralContainers.map(container, [container.name,
+ has(container.securityContext) && has(container.securityContext.appArmorProfile) ?
+ (container.securityContext.appArmorProfile.type == "RuntimeDefault" ? "runtime/default" :
+ container.securityContext.appArmorProfile.type == "Unconfined" ? "unconfined" :
+ container.securityContext.appArmorProfile.type == "Localhost" ? "localhost/" + container.securityContext.appArmorProfile.localhostProfile : "") :
+ has(variables.anyObject.metadata.annotations) && ("container.apparmor.security.beta.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations ?
+ variables.anyObject.metadata.annotations["container.apparmor.security.beta.kubernetes.io/" + container.name] :
+ variables.canonicalPodAppArmor
+ ])
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ validations:
+ - expression: |
+ variables.containers.all(container,
+ (container.image in variables.exemptImages) ||
+ variables.appArmorByContainer.exists(pair, pair[0] == container.name && pair[1] in variables.params.allowedProfiles)
+ )
+ messageExpression: '"AppArmor profile is not allowed. Allowed Profiles: " + variables.params.allowedProfiles.join(", ")'
+ - expression: |
+ variables.initContainers.all(container,
+ (container.image in variables.exemptImages) ||
+ variables.appArmorByInitContainer.exists(pair, pair[0] == container.name && pair[1] in variables.params.allowedProfiles)
+ )
+ messageExpression: '"AppArmor profile is not allowed. Allowed Profiles: " + variables.params.allowedProfiles.join(", ")'
+ - expression: |
+ variables.ephemeralContainers.all(container,
+ (container.image in variables.exemptImages) ||
+ variables.appArmorByEphemeralContainer.exists(pair, pair[0] == container.name && pair[1] in variables.params.allowedProfiles)
+ )
+ messageExpression: '"AppArmor profile is not allowed. Allowed Profiles: " + variables.params.allowedProfiles.join(", ")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspapparmor
+
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ container := input_containers[_]
+ not is_exempt(container)
+ not input_apparmor_allowed(input.review.object, container)
+ msg := sprintf("AppArmor profile is not allowed, pod: %v, container: %v. Allowed profiles: %v", [input.review.object.metadata.name, container.name, input.parameters.allowedProfiles])
+ }
+
+ input_apparmor_allowed(pod, container) {
+ get_apparmor_profile(pod, container) == input.parameters.allowedProfiles[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+
+ get_apparmor_profile(_, container) = out {
+ profile := object.get(container, ["securityContext", "appArmorProfile"], null)
+ profile != null
+ out := canonicalize_apparmor_profile(profile)
+ }
+
+ get_apparmor_profile(pod, container) = out {
+ profile := object.get(container, ["securityContext", "appArmorProfile"], null)
+ profile == null
+ out := pod.metadata.annotations[sprintf("container.apparmor.security.beta.kubernetes.io/%v", [container.name])]
+ }
+
+ get_apparmor_profile(pod, container) = out {
+ profile := object.get(container, ["securityContext", "appArmorProfile"], null)
+ profile == null
+ not pod.metadata.annotations[sprintf("container.apparmor.security.beta.kubernetes.io/%v", [container.name])]
+ out := canonicalize_apparmor_profile(object.get(pod, ["spec", "securityContext", "appArmorProfile"], null))
+ }
+
+ canonicalize_apparmor_profile(profile) = out {
+ profile.type == "RuntimeDefault"
+ out := "runtime/default"
+ }
+
+ canonicalize_apparmor_profile(profile) = out {
+ profile.type == "Unconfined"
+ out := "unconfined"
+ }
+
+ canonicalize_apparmor_profile(profile) = out {
+ profile.type = "Localhost"
+ out := sprintf("localhost/%s", [profile.localhostProfile])
+ }
+
+ canonicalize_apparmor_profile(profile) = out {
+ profile == null
+ out := "runtime/default"
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/template.yaml
+```
+## Examples
+
+apparmor
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPAppArmor
+metadata:
+ name: psp-apparmor
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedProfiles:
+ - runtime/default
+ - localhost/*
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-apparmor-allowed
+ annotations:
+ container.apparmor.security.beta.kubernetes.io/nginx: runtime/default
+ labels:
+ app: nginx-apparmor
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/example_allowed.yaml
+```
+
+
+
+example-allowed-container
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-apparmor-allowed
+ labels:
+ app: nginx-apparmor
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ appArmorProfile:
+ type: "RuntimeDefault"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/example_allowed_container.yaml
+```
+
+
+
+example-allowed-pod
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-apparmor-allowed
+ labels:
+ app: nginx-apparmor
+spec:
+ securityContext:
+ appArmorProfile:
+ type: "RuntimeDefault"
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/example_allowed_pod.yaml
+```
+
+
+
+example-allowed-override
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-apparmor-allowed
+ labels:
+ app: nginx-apparmor
+spec:
+ securityContext:
+ appArmorProfile:
+ type: "Unconfined"
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ appArmorProfile:
+ type: "RuntimeDefault"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/example_allowed_override.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-apparmor-disallowed
+ annotations:
+ # apparmor.security.beta.kubernetes.io/pod: unconfined # runtime/default
+ container.apparmor.security.beta.kubernetes.io/nginx: unconfined
+ labels:
+ app: nginx-apparmor
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/example_disallowed.yaml
+```
+
+
+
+example-disallowed-override
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-apparmor-allowed
+ labels:
+ app: nginx-apparmor
+spec:
+ securityContext:
+ appArmorProfile:
+ type: "RuntimeDefault"
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ appArmorProfile:
+ type: "Unconfined"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/example_disallowed_override.yaml
+```
+
+
+
+example-disallowed-no-profile
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-apparmor-disallowed
+ labels:
+ app: nginx-apparmor
+spec:
+ securityContext:
+ appArmorProfile:
+ type: "Unconfined"
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/example_disallowed_no_profile.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-apparmor-disallowed
+ annotations:
+ # apparmor.security.beta.kubernetes.io/pod: unconfined # runtime/default
+ container.apparmor.security.beta.kubernetes.io/nginx: unconfined
+ labels:
+ app: nginx-apparmor
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/apparmor/samples/psp-apparmor/disallowed_ephemeral.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/automount-serviceaccount-token.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/automount-serviceaccount-token.md
new file mode 100644
index 0000000000000000000000000000000000000000..62171a5d2bbf086cc3e2330a2fb4343a6fe92a57
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/automount-serviceaccount-token.md
@@ -0,0 +1,167 @@
+---
+id: automount-serviceaccount-token
+title: Automount Service Account Token for Pod
+---
+
+# Automount Service Account Token for Pod
+
+## Description
+Controls the ability of any Pod to enable automountServiceAccountToken.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspautomountserviceaccounttokenpod
+ annotations:
+ metadata.gatekeeper.sh/title: "Automount Service Account Token for Pod"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Controls the ability of any Pod to enable automountServiceAccountToken.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAutomountServiceAccountTokenPod
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the ability of any Pod to enable automountServiceAccountToken.
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sautomountserviceaccounttoken
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg}] {
+ # spec.automountServiceAccountToken and spec.containers.volumeMounts fields are immutable.
+ not is_update(input.review)
+
+ obj := input.review.object
+ mountServiceAccountToken(obj.spec)
+ msg := sprintf("Automounting service account token is disallowed, pod: %v", [obj.metadata.name])
+ }
+
+ mountServiceAccountToken(spec) {
+ spec.automountServiceAccountToken == true
+ }
+
+ # if there is no automountServiceAccountToken spec, check on volumeMount in containers. Service Account token is mounted on /var/run/secrets/kubernetes.io/serviceaccount
+ # https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#serviceaccount-admission-controller
+ mountServiceAccountToken(spec) {
+ not has_key(spec, "automountServiceAccountToken")
+ "/var/run/secrets/kubernetes.io/serviceaccount" == input_containers[_].volumeMounts[_].mountPath
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ # Ephemeral containers not checked as it is not possible to set field.
+
+ has_key(x, k) {
+ _ = x[k]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/automount-serviceaccount-token/template.yaml
+```
+## Examples
+
+automount-serviceaccount-token
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPAutomountServiceAccountTokenPod
+metadata:
+ name: psp-automount-serviceaccount-token-pod
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ excludedNamespaces: ["kube-system"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/automount-serviceaccount-token/samples/automount-serviceaccount-token/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-automountserviceaccounttoken-allowed
+ labels:
+ app: nginx-not-automountserviceaccounttoken
+spec:
+ automountServiceAccountToken: false
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/automount-serviceaccount-token/samples/automount-serviceaccount-token/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-automountserviceaccounttoken-disallowed
+ labels:
+ app: nginx-automountserviceaccounttoken
+spec:
+ automountServiceAccountToken: true
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/automount-serviceaccount-token/samples/automount-serviceaccount-token/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-endpoint-edit-default-role.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-endpoint-edit-default-role.md
new file mode 100644
index 0000000000000000000000000000000000000000..8747e9cea5f5b785c39295612939d98c9e98e390
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-endpoint-edit-default-role.md
@@ -0,0 +1,345 @@
+---
+id: block-endpoint-edit-default-role
+title: Block Endpoint Edit Default Role
+---
+
+# Block Endpoint Edit Default Role
+
+## Description
+Many Kubernetes installations by default have a system:aggregate-to-edit ClusterRole which does not properly restrict access to editing Endpoints. This ConstraintTemplate forbids the system:aggregate-to-edit ClusterRole from granting permission to create/patch/update Endpoints.
+ClusterRole/system:aggregate-to-edit should not allow Endpoint edit permissions due to CVE-2021-25740, Endpoint & EndpointSlice permissions allow cross-Namespace forwarding, https://github.com/kubernetes/kubernetes/issues/103675
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sblockendpointeditdefaultrole
+ annotations:
+ metadata.gatekeeper.sh/title: "Block Endpoint Edit Default Role"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Many Kubernetes installations by default have a system:aggregate-to-edit
+ ClusterRole which does not properly restrict access to editing Endpoints.
+ This ConstraintTemplate forbids the system:aggregate-to-edit ClusterRole
+ from granting permission to create/patch/update Endpoints.
+
+ ClusterRole/system:aggregate-to-edit should not allow
+ Endpoint edit permissions due to CVE-2021-25740, Endpoint & EndpointSlice
+ permissions allow cross-Namespace forwarding,
+ https://github.com/kubernetes/kubernetes/issues/103675
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sBlockEndpointEditDefaultRole
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sblockendpointeditdefaultrole
+
+ violation[{"msg": msg}] {
+ input.review.object.metadata.name == "system:aggregate-to-edit"
+ endpointRule(input.review.object.rules[_])
+ msg := "ClusterRole system:aggregate-to-edit should not allow endpoint edit permissions. For k8s version < 1.22, the Cluster Role should be annotated with rbac.authorization.kubernetes.io/autoupdate=false to prevent autoreconciliation back to default permissions for this role."
+ }
+
+ endpointRule(rule) {
+ "endpoints" == rule.resources[_]
+ hasEditVerb(rule.verbs)
+ }
+
+ hasEditVerb(verbs) {
+ "create" == verbs[_]
+ }
+
+ hasEditVerb(verbs) {
+ "patch" == verbs[_]
+ }
+
+ hasEditVerb(verbs) {
+ "update" == verbs[_]
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-endpoint-edit-default-role/template.yaml
+```
+## Examples
+
+block-endpoint-default-role
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sBlockEndpointEditDefaultRole
+metadata:
+ name: block-endpoint-edit-default-role
+spec:
+ match:
+ kinds:
+ - apiGroups: ["rbac.authorization.k8s.io"]
+ kinds: ["ClusterRole"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-endpoint-edit-default-role/samples/block-endpoint-edit-default-role/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ annotations:
+ rbac.authorization.kubernetes.io/autoupdate: "true"
+ creationTimestamp: null
+ labels:
+ kubernetes.io/bootstrapping: rbac-defaults
+ rbac.authorization.k8s.io/aggregate-to-edit: "true"
+ name: system:aggregate-to-edit
+rules:
+- apiGroups:
+ - ""
+ resources:
+ - pods/attach
+ - pods/exec
+ - pods/portforward
+ - pods/proxy
+ - secrets
+ - services/proxy
+ verbs:
+ - get
+ - list
+ - watch
+- apiGroups:
+ - ""
+ resources:
+ - serviceaccounts
+ verbs:
+ - impersonate
+- apiGroups:
+ - ""
+ resources:
+ - pods
+ - pods/attach
+ - pods/exec
+ - pods/portforward
+ - pods/proxy
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - ""
+ resources:
+ - configmaps
+ - persistentvolumeclaims
+ - replicationcontrollers
+ - replicationcontrollers/scale
+ - secrets
+ - serviceaccounts
+ - services
+ - services/proxy
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - apps
+ resources:
+ - daemonsets
+ - deployments
+ - deployments/rollback
+ - deployments/scale
+ - replicasets
+ - replicasets/scale
+ - statefulsets
+ - statefulsets/scale
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - autoscaling
+ resources:
+ - horizontalpodautoscalers
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - batch
+ resources:
+ - cronjobs
+ - jobs
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - extensions
+ resources:
+ - daemonsets
+ - deployments
+ - deployments/rollback
+ - deployments/scale
+ - ingresses
+ - networkpolicies
+ - replicasets
+ - replicasets/scale
+ - replicationcontrollers/scale
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - policy
+ resources:
+ - poddisruptionbudgets
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - networking.k8s.io
+ resources:
+ - ingresses
+ - networkpolicies
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-endpoint-edit-default-role/samples/block-endpoint-edit-default-role/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ annotations:
+ rbac.authorization.kubernetes.io/autoupdate: "true"
+ creationTimestamp: null
+ labels:
+ kubernetes.io/bootstrapping: rbac-defaults
+ rbac.authorization.k8s.io/aggregate-to-edit: "true"
+ name: system:aggregate-to-edit
+rules:
+- apiGroups:
+ - ""
+ resources:
+ - pods/attach
+ - pods/exec
+ - pods/portforward
+ - pods/proxy
+ - secrets
+ - services/proxy
+ verbs:
+ - get
+ - list
+ - watch
+- apiGroups:
+ - ""
+ resources:
+ - serviceaccounts
+ verbs:
+ - impersonate
+- apiGroups:
+ - ""
+ resources:
+ - pods
+ - pods/attach
+ - pods/exec
+ - pods/portforward
+ - pods/proxy
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - ""
+ resources:
+ - configmaps
+ - persistentvolumeclaims
+ - replicationcontrollers
+ - replicationcontrollers/scale
+ - secrets
+ - serviceaccounts
+ - services
+ - services/proxy
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+- apiGroups:
+ - apps
+ resources:
+ - daemonsets
+ - deployments
+ - deployments/rollback
+ - deployments/scale
+ - endpoints
+ - replicasets
+ - replicasets/scale
+ - statefulsets
+ - statefulsets/scale
+ verbs:
+ - create
+ - delete
+ - deletecollection
+ - patch
+ - update
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-endpoint-edit-default-role/samples/block-endpoint-edit-default-role/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-loadbalancer-services.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-loadbalancer-services.md
new file mode 100644
index 0000000000000000000000000000000000000000..a16c1ec205a5bea78246ff892e51554203abc246
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-loadbalancer-services.md
@@ -0,0 +1,124 @@
+---
+id: block-loadbalancer-services
+title: Block Services with type LoadBalancer
+---
+
+# Block Services with type LoadBalancer
+
+## Description
+Disallows all Services with type LoadBalancer.
+https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sblockloadbalancer
+ annotations:
+ metadata.gatekeeper.sh/title: "Block Services with type LoadBalancer"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Disallows all Services with type LoadBalancer.
+
+ https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sBlockLoadBalancer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sblockloadbalancer
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "Service"
+ input.review.object.spec.type == "LoadBalancer"
+ msg := "User is not allowed to create service of type LoadBalancer"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-loadbalancer-services/template.yaml
+```
+## Examples
+
+block-loadbalancer-services
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sBlockLoadBalancer
+metadata:
+ name: block-load-balancer
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Service"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-loadbalancer-services/samples/block-load-balancer/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: my-service-allowed
+spec:
+ type: ClusterIP
+ ports:
+ - port: 80
+ targetPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-loadbalancer-services/samples/block-load-balancer/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: my-service-disallowed
+spec:
+ type: LoadBalancer
+ ports:
+ - port: 80
+ targetPort: 80
+ nodePort: 30007
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-loadbalancer-services/samples/block-load-balancer/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-nodeport-services.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-nodeport-services.md
new file mode 100644
index 0000000000000000000000000000000000000000..c5a82b0037ad48944ba6cdf23399e9edbba2e974
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-nodeport-services.md
@@ -0,0 +1,101 @@
+---
+id: block-nodeport-services
+title: Block NodePort
+---
+
+# Block NodePort
+
+## Description
+Disallows all Services with type NodePort.
+https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sblocknodeport
+ annotations:
+ metadata.gatekeeper.sh/title: "Block NodePort"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Disallows all Services with type NodePort.
+
+ https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sBlockNodePort
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sblocknodeport
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "Service"
+ input.review.object.spec.type == "NodePort"
+ msg := "User is not allowed to create service of type NodePort"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-nodeport-services/template.yaml
+```
+## Examples
+
+block-nodeport-services
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sBlockNodePort
+metadata:
+ name: block-node-port
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Service"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-nodeport-services/samples/block-node-port/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: my-service-disallowed
+spec:
+ type: NodePort
+ ports:
+ - port: 80
+ targetPort: 80
+ nodePort: 30007
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-nodeport-services/samples/block-node-port/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-wildcard-ingress.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-wildcard-ingress.md
new file mode 100644
index 0000000000000000000000000000000000000000..e4dd37a6a6292b4a0370b5567722376b181acca9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/block-wildcard-ingress.md
@@ -0,0 +1,215 @@
+---
+id: block-wildcard-ingress
+title: Block Wildcard Ingress
+---
+
+# Block Wildcard Ingress
+
+## Description
+Users should not be able to create Ingresses with a blank or wildcard (*) hostname since that would enable them to intercept traffic for other services in the cluster, even if they don't have access to those services.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sblockwildcardingress
+ annotations:
+ metadata.gatekeeper.sh/title: "Block Wildcard Ingress"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Users should not be able to create Ingresses with a blank or wildcard (*) hostname since that would enable them to intercept traffic for other services in the cluster, even if they don't have access to those services.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sBlockWildcardIngress
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package K8sBlockWildcardIngress
+
+ contains_wildcard(hostname) = true {
+ hostname == ""
+ }
+
+ contains_wildcard(hostname) = true {
+ contains(hostname, "*")
+ }
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "Ingress"
+ # object.get is required to detect omitted host fields
+ hostname := object.get(input.review.object.spec.rules[_], "host", "")
+ contains_wildcard(hostname)
+ msg := sprintf("Hostname '%v' is not allowed since it counts as a wildcard, which can be used to intercept traffic from other applications.", [hostname])
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-wildcard-ingress/template.yaml
+```
+## Examples
+
+block-wildcard-ingress
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sBlockWildcardIngress
+metadata:
+ name: block-wildcard-ingress
+spec:
+ match:
+ kinds:
+ - apiGroups: ["extensions", "networking.k8s.io"]
+ kinds: ["Ingress"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-wildcard-ingress/samples/block-wildcard-ingress/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: non-wildcard-ingress
+spec:
+ rules:
+ - host: 'myservice.example.com'
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: example
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-wildcard-ingress/samples/block-wildcard-ingress/example_allowed.yaml
+```
+
+
+
+blank-host
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: wildcard-ingress
+spec:
+ rules:
+ - host: ''
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: example
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-wildcard-ingress/samples/block-wildcard-ingress/disallowed/blank_host.yaml
+```
+
+
+
+host-omitted
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: wildcard-ingress
+spec:
+ rules:
+ # Omitted host field counts as a wildcard too
+ - http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: example
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-wildcard-ingress/samples/block-wildcard-ingress/disallowed/host_omitted.yaml
+```
+
+
+
+wildcard-host
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: wildcard-ingress
+spec:
+ rules:
+ - host: '*.example.com'
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: example
+ port:
+ number: 80
+ # Extra test to ensure the rule still detects invalid hosts in files containing valid hosts
+ - host: 'valid.example.com'
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: example
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/block-wildcard-ingress/samples/block-wildcard-ingress/disallowed/wildcard_host.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/capabilities.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/capabilities.md
new file mode 100644
index 0000000000000000000000000000000000000000..505a1a8cec34662745872d06bd62b38a8e8ef59e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/capabilities.md
@@ -0,0 +1,531 @@
+---
+id: capabilities
+title: Capabilities
+---
+
+# Capabilities
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Controls Linux capabilities on containers. Corresponds to the `allowedCapabilities` and `requiredDropCapabilities` fields in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspcapabilities
+ annotations:
+ metadata.gatekeeper.sh/title: "Capabilities"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls Linux capabilities on containers. Corresponds to the
+ `allowedCapabilities` and `requiredDropCapabilities` fields in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPCapabilities
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls Linux capabilities on containers. Corresponds to the
+ `allowedCapabilities` and `requiredDropCapabilities` fields in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedCapabilities:
+ type: array
+ description: "A list of Linux capabilities that can be added to a container."
+ items:
+ type: string
+ requiredDropCapabilities:
+ type: array
+ description: "A list of Linux capabilities that are required to be dropped from a container."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: allowedCapabilities
+ expression: 'has(variables.params.allowedCapabilities) ? variables.params.allowedCapabilities : []'
+ - name: allCapabilitiesAllowed
+ expression: '"*" in variables.allowedCapabilities'
+ - name: disallowedCapabilitiesByContainer
+ expression: |
+ variables.allContainers.map(container, !(container.image in variables.exemptImages) &&
+ !variables.allCapabilitiesAllowed && has(container.securityContext) && has(container.securityContext.capabilities) && has(container.securityContext.capabilities.add) &&
+ container.securityContext.capabilities.add.exists(capability, !(capability in variables.allowedCapabilities)),
+ [container.name, dyn(container.securityContext.capabilities.add.filter(capability, !(capability in variables.allowedCapabilities)).join(", "))]
+ )
+ - name: requiredDropCapabilities
+ expression: 'has(variables.params.requiredDropCapabilities) ? variables.params.requiredDropCapabilities : []'
+ - name: missingDropCapabilitiesByContainer
+ expression: |
+ variables.allContainers.map(container, !(container.image in variables.exemptImages) &&
+ size(variables.requiredDropCapabilities) > 0 && (
+ !has(container.securityContext) || !has(container.securityContext.capabilities) || !has(container.securityContext.capabilities.drop) || (
+ !(container.securityContext.capabilities.drop.exists(capability, capability.lowerAscii() == "all")) &&
+ variables.requiredDropCapabilities.exists(capability, !(capability in container.securityContext.capabilities.drop))
+ )
+ ),
+ [container.name,
+ !has(container.securityContext) ? variables.requiredDropCapabilities :
+ !has(container.securityContext.capabilities) ? variables.requiredDropCapabilities :
+ !has(container.securityContext.capabilities.drop) ? variables.requiredDropCapabilities :
+ variables.requiredDropCapabilities.filter(capability, !(capability in container.securityContext.capabilities.drop))
+ ]
+ )
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.disallowedCapabilitiesByContainer) == 0'
+ messageExpression: |
+ "containers have disallowed capabilities: " + variables.disallowedCapabilitiesByContainer.map(pair, "{container: " + pair[0] + ", capabilities: [" + pair[1] + "]}").join(", ")
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.missingDropCapabilitiesByContainer) == 0'
+ messageExpression: |
+ "containers are not dropping all required capabilities: " + variables.missingDropCapabilitiesByContainer.map(pair, "{container: " + pair[0] + ", capabilities: [" + pair[1].join(", ") + "]}").join(", ")
+ - engine: Rego
+ source:
+ rego: |
+ package capabilities
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ # spec.containers.securityContext.capabilities field is immutable.
+ not is_update(input.review)
+
+ container := input.review.object.spec.containers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.containers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.initContainers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("init container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.initContainers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("init container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(container)
+ has_disallowed_capabilities(container)
+ msg := sprintf("ephemeral container <%v> has a disallowed capability. Allowed capabilities are %v", [container.name, get_default(input.parameters, "allowedCapabilities", "NONE")])
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ container := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(container)
+ missing_drop_capabilities(container)
+ msg := sprintf("ephemeral container <%v> is not dropping all required capabilities. Container must drop all of %v or \"ALL\"", [container.name, input.parameters.requiredDropCapabilities])
+ }
+
+ has_disallowed_capabilities(container) {
+ allowed := {c | c := lower(input.parameters.allowedCapabilities[_])}
+ not allowed["*"]
+ capabilities := {c | c := lower(container.securityContext.capabilities.add[_])}
+
+ count(capabilities - allowed) > 0
+ }
+
+ missing_drop_capabilities(container) {
+ must_drop := {c | c := lower(input.parameters.requiredDropCapabilities[_])}
+ all := {"all"}
+ dropped := {c | c := lower(container.securityContext.capabilities.drop[_])}
+
+ count(must_drop - dropped) > 0
+ count(all - dropped) > 0
+ }
+
+ get_default(obj, param, _) := obj[param]
+
+ get_default(obj, param, _default) := _default {
+ not obj[param]
+ not obj[param] == false
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/template.yaml
+```
+## Examples
+
+capabilities-baseline
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPCapabilities
+metadata:
+ name: psp-capabilities-baseline
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedCapabilities:
+ - AUDIT_WRITE
+ - CHOWN
+ - DAC_OVERRIDE
+ - FOWNER
+ - FSETID
+ - KILL
+ - MKNOD
+ - NET_BIND_SERVICE
+ - NET_RAW
+ - SETFCAP
+ - SETGID
+ - SETPCAP
+ - SETUID
+ - SYS_CHROOT
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["SYS_ADMIN"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["NET_BIND_SERVICE"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/example_allowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ ephemeralContainers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["SYS_ADMIN"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/samples/psp-capabilities-baseline/disallowed_ephemeral.yaml
+```
+
+
+
+
+
+capabilities-restricted
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPCapabilities
+metadata:
+ name: psp-capabilities-restricted
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedCapabilities: ["NET_BIND_SERVICE"]
+ requiredDropCapabilities: ["ALL"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["SYS_ADMIN"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["NET_BIND_SERVICE"]
+ drop: ["ALL"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/example_allowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ ephemeralContainers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ securityContext:
+ capabilities:
+ add: ["SYS_ADMIN"]
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "30Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/capabilities/samples/psp-capabilities-restricted/disallowed_ephemeral.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerlimits.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerlimits.md
new file mode 100644
index 0000000000000000000000000000000000000000..24633ee75a57cde3fdf42d91b7c12f27bc5bcf2f
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerlimits.md
@@ -0,0 +1,473 @@
+---
+id: containerlimits
+title: Container Limits
+---
+
+# Container Limits
+
+## Description
+Requires containers to have memory and CPU limits set and constrains limits to be within the specified maximum values.
+https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8scontainerlimits
+ annotations:
+ metadata.gatekeeper.sh/title: "Container Limits"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: >-
+ Requires containers to have memory and CPU limits set and constrains
+ limits to be within the specified maximum values.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sContainerLimits
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ cpu:
+ description: "The maximum allowed cpu limit on a Pod, exclusive. Set to -1 to disable."
+ type: string
+ memory:
+ description: "The maximum allowed memory limit on a Pod, exclusive."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8scontainerlimits
+
+ import data.lib.exempt_container.is_exempt
+
+ missing(obj, field) = true {
+ not obj[field]
+ }
+
+ missing(obj, field) = true {
+ obj[field] == ""
+ }
+
+ canonify_cpu(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+ }
+
+ canonify_cpu(orig) = new {
+ not is_number(orig)
+ endswith(orig, "m")
+ new := to_number(replace(orig, "m", ""))
+ }
+
+ canonify_cpu(orig) = new {
+ not is_number(orig)
+ not endswith(orig, "m")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", orig)
+ new := to_number(orig) * 1000
+ }
+
+ # 10 ** 21
+ mem_multiple("E") = 1000000000000000000000 { true }
+
+ # 10 ** 18
+ mem_multiple("P") = 1000000000000000000 { true }
+
+ # 10 ** 15
+ mem_multiple("T") = 1000000000000000 { true }
+
+ # 10 ** 12
+ mem_multiple("G") = 1000000000000 { true }
+
+ # 10 ** 9
+ mem_multiple("M") = 1000000000 { true }
+
+ # 10 ** 6
+ mem_multiple("k") = 1000000 { true }
+
+ # 10 ** 3
+ mem_multiple("") = 1000 { true }
+
+ # Kubernetes accepts millibyte precision when it probably shouldn't.
+ # https://github.com/kubernetes/kubernetes/issues/28741
+ # 10 ** 0
+ mem_multiple("m") = 1 { true }
+
+ # 1000 * 2 ** 10
+ mem_multiple("Ki") = 1024000 { true }
+
+ # 1000 * 2 ** 20
+ mem_multiple("Mi") = 1048576000 { true }
+
+ # 1000 * 2 ** 30
+ mem_multiple("Gi") = 1073741824000 { true }
+
+ # 1000 * 2 ** 40
+ mem_multiple("Ti") = 1099511627776000 { true }
+
+ # 1000 * 2 ** 50
+ mem_multiple("Pi") = 1125899906842624000 { true }
+
+ # 1000 * 2 ** 60
+ mem_multiple("Ei") = 1152921504606846976000 { true }
+
+ get_suffix(mem) = suffix {
+ not is_string(mem)
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 0
+ suffix := substring(mem, count(mem) - 1, -1)
+ mem_multiple(suffix)
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ suffix := substring(mem, count(mem) - 2, -1)
+ mem_multiple(suffix)
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ not mem_multiple(substring(mem, count(mem) - 2, -1))
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 0
+ suffix := ""
+ }
+
+ canonify_mem(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+ }
+
+ canonify_mem(orig) = new {
+ not is_number(orig)
+ suffix := get_suffix(orig)
+ raw := replace(orig, suffix, "")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", raw)
+ new := to_number(raw) * mem_multiple(suffix)
+ }
+
+ violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "containers"}]
+ }
+
+ violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "initContainers"}]
+ }
+
+ # Ephemeral containers not checked as it is not possible to set field.
+
+ general_violation[{"msg": msg, "field": field}] {
+ input.parameters.cpu != "-1"
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.limits.cpu
+ not canonify_cpu(cpu_orig)
+ msg := sprintf("container <%v> cpu limit <%v> could not be parsed", [container.name, cpu_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.limits.memory
+ not canonify_mem(mem_orig)
+ msg := sprintf("container <%v> memory limit <%v> could not be parsed", [container.name, mem_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.limits
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ input.parameters.cpu != "-1"
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "cpu")
+ msg := sprintf("container <%v> has no cpu limit", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "memory")
+ msg := sprintf("container <%v> has no memory limit", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.limits.cpu
+ cpu := canonify_cpu(cpu_orig)
+ max_cpu_orig := input.parameters.cpu
+ max_cpu_orig != "-1"
+ max_cpu := canonify_cpu(max_cpu_orig)
+ cpu > max_cpu
+ msg := sprintf("container <%v> cpu limit <%v> is higher than the maximum allowed of <%v>", [container.name, cpu_orig, max_cpu_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.limits.memory
+ mem := canonify_mem(mem_orig)
+ max_mem_orig := input.parameters.memory
+ max_mem := canonify_mem(max_mem_orig)
+ mem > max_mem
+ msg := sprintf("container <%v> memory limit <%v> is higher than the maximum allowed of <%v>", [container.name, mem_orig, max_mem_orig])
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerlimits/template.yaml
+```
+## Examples
+
+container-limits
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sContainerLimits
+metadata:
+ name: container-must-have-limits
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ cpu: "200m"
+ memory: "1Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerlimits/samples/container-must-have-limits/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerlimits/samples/container-must-have-limits/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "2Gi"
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerlimits/samples/container-must-have-limits/example_disallowed.yaml
+```
+
+
+
+
+
+container-limits-ignore-cpu
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sContainerLimits
+metadata:
+ name: container-must-have-limits
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ cpu: "-1"
+ memory: "1Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerlimits/samples/container-ignore-cpu-limits/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ memory: "1Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerlimits/samples/container-ignore-cpu-limits/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ memory: "2Gi"
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerlimits/samples/container-ignore-cpu-limits/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerrequests.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerrequests.md
new file mode 100644
index 0000000000000000000000000000000000000000..1e1c4b6c18f35ec8e3e583422896ad10378f1a98
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerrequests.md
@@ -0,0 +1,382 @@
+---
+id: containerrequests
+title: Container Requests
+---
+
+# Container Requests
+
+## Description
+Requires containers to have memory and CPU requests set and constrains requests to be within the specified maximum values.
+https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8scontainerrequests
+ annotations:
+ metadata.gatekeeper.sh/title: "Container Requests"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Requires containers to have memory and CPU requests set and constrains
+ requests to be within the specified maximum values.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sContainerRequests
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ cpu:
+ description: "The maximum allowed cpu request on a Pod, exclusive."
+ type: string
+ memory:
+ description: "The maximum allowed memory request on a Pod, exclusive."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8scontainerrequests
+
+ import data.lib.exempt_container.is_exempt
+
+ missing(obj, field) = true {
+ not obj[field]
+ }
+
+ missing(obj, field) = true {
+ obj[field] == ""
+ }
+
+ canonify_cpu(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+ }
+
+ canonify_cpu(orig) = new {
+ not is_number(orig)
+ endswith(orig, "m")
+ new := to_number(replace(orig, "m", ""))
+ }
+
+ canonify_cpu(orig) = new {
+ not is_number(orig)
+ not endswith(orig, "m")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", orig)
+ new := to_number(orig) * 1000
+ }
+
+ # 10 ** 21
+ mem_multiple("E") = 1000000000000000000000 { true }
+
+ # 10 ** 18
+ mem_multiple("P") = 1000000000000000000 { true }
+
+ # 10 ** 15
+ mem_multiple("T") = 1000000000000000 { true }
+
+ # 10 ** 12
+ mem_multiple("G") = 1000000000000 { true }
+
+ # 10 ** 9
+ mem_multiple("M") = 1000000000 { true }
+
+ # 10 ** 6
+ mem_multiple("k") = 1000000 { true }
+
+ # 10 ** 3
+ mem_multiple("") = 1000 { true }
+
+ # Kubernetes accepts millibyte precision when it probably shouldn't.
+ # https://github.com/kubernetes/kubernetes/issues/28741
+ # 10 ** 0
+ mem_multiple("m") = 1 { true }
+
+ # 1000 * 2 ** 10
+ mem_multiple("Ki") = 1024000 { true }
+
+ # 1000 * 2 ** 20
+ mem_multiple("Mi") = 1048576000 { true }
+
+ # 1000 * 2 ** 30
+ mem_multiple("Gi") = 1073741824000 { true }
+
+ # 1000 * 2 ** 40
+ mem_multiple("Ti") = 1099511627776000 { true }
+
+ # 1000 * 2 ** 50
+ mem_multiple("Pi") = 1125899906842624000 { true }
+
+ # 1000 * 2 ** 60
+ mem_multiple("Ei") = 1152921504606846976000 { true }
+
+ get_suffix(mem) = suffix {
+ not is_string(mem)
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 0
+ suffix := substring(mem, count(mem) - 1, -1)
+ mem_multiple(suffix)
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ suffix := substring(mem, count(mem) - 2, -1)
+ mem_multiple(suffix)
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ not mem_multiple(substring(mem, count(mem) - 2, -1))
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 0
+ suffix := ""
+ }
+
+ canonify_mem(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+ }
+
+ canonify_mem(orig) = new {
+ not is_number(orig)
+ suffix := get_suffix(orig)
+ raw := replace(orig, suffix, "")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", raw)
+ new := to_number(raw) * mem_multiple(suffix)
+ }
+
+ violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "containers"}]
+ }
+
+ violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "initContainers"}]
+ }
+
+ # Ephemeral containers not checked as it is not possible to set field.
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.requests.cpu
+ not canonify_cpu(cpu_orig)
+ msg := sprintf("container <%v> cpu request <%v> could not be parsed", [container.name, cpu_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.requests.memory
+ not canonify_mem(mem_orig)
+ msg := sprintf("container <%v> memory request <%v> could not be parsed", [container.name, mem_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources
+ msg := sprintf("container <%v> has no resource requests", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.requests
+ msg := sprintf("container <%v> has no resource requests", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.requests, "cpu")
+ msg := sprintf("container <%v> has no cpu request", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.requests, "memory")
+ msg := sprintf("container <%v> has no memory request", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.requests.cpu
+ cpu := canonify_cpu(cpu_orig)
+ max_cpu_orig := input.parameters.cpu
+ max_cpu := canonify_cpu(max_cpu_orig)
+ cpu > max_cpu
+ msg := sprintf("container <%v> cpu request <%v> is higher than the maximum allowed of <%v>", [container.name, cpu_orig, max_cpu_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.requests.memory
+ mem := canonify_mem(mem_orig)
+ max_mem_orig := input.parameters.memory
+ max_mem := canonify_mem(max_mem_orig)
+ mem > max_mem
+ msg := sprintf("container <%v> memory request <%v> is higher than the maximum allowed of <%v>", [container.name, mem_orig, max_mem_orig])
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerrequests/template.yaml
+```
+## Examples
+
+container-requests
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sContainerRequests
+metadata:
+ name: container-must-have-requests
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ cpu: "200m"
+ memory: "1Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerrequests/samples/container-must-have-requests/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ requests:
+ cpu: "100m"
+ memory: "1Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerrequests/samples/container-must-have-requests/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ requests:
+ cpu: "100m"
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerrequests/samples/container-must-have-requests/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerresourceratios.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerresourceratios.md
new file mode 100644
index 0000000000000000000000000000000000000000..bb5b2390071fc20cb5b5c261d2276fbbce0891eb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerresourceratios.md
@@ -0,0 +1,538 @@
+---
+id: containerresourceratios
+title: Container Ratios
+---
+
+# Container Ratios
+
+## Description
+Sets a maximum ratio for container resource limits to requests.
+https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8scontainerratios
+ annotations:
+ metadata.gatekeeper.sh/title: "Container Ratios"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Sets a maximum ratio for container resource limits to requests.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sContainerRatios
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ ratio:
+ type: string
+ description: >-
+ The maximum allowed ratio of `resources.limits` to
+ `resources.requests` on a container.
+ cpuRatio:
+ type: string
+ description: >-
+ The maximum allowed ratio of `resources.limits.cpu` to
+ `resources.requests.cpu` on a container. If not specified,
+ equal to `ratio`.
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8scontainerratios
+
+ import data.lib.exempt_container.is_exempt
+
+ missing(obj, field) = true {
+ not obj[field]
+ }
+
+ missing(obj, field) = true {
+ obj[field] == ""
+ }
+
+ canonify_cpu(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+ }
+
+ canonify_cpu(orig) = new {
+ not is_number(orig)
+ endswith(orig, "m")
+ new := to_number(replace(orig, "m", ""))
+ }
+
+ canonify_cpu(orig) = new {
+ not is_number(orig)
+ not endswith(orig, "m")
+ regex.match("^[0-9]+$", orig)
+ new := to_number(orig) * 1000
+ }
+
+ canonify_cpu(orig) = new {
+ not is_number(orig)
+ not endswith(orig, "m")
+ regex.match("^[0-9]+[.][0-9]+$", orig)
+ new := to_number(orig) * 1000
+ }
+
+ # 10 ** 21
+ mem_multiple("E") = 1000000000000000000000 { true }
+
+ # 10 ** 18
+ mem_multiple("P") = 1000000000000000000 { true }
+
+ # 10 ** 15
+ mem_multiple("T") = 1000000000000000 { true }
+
+ # 10 ** 12
+ mem_multiple("G") = 1000000000000 { true }
+
+ # 10 ** 9
+ mem_multiple("M") = 1000000000 { true }
+
+ # 10 ** 6
+ mem_multiple("k") = 1000000 { true }
+
+ # 10 ** 3
+ mem_multiple("") = 1000 { true }
+
+ # Kubernetes accepts millibyte precision when it probably shouldn't.
+ # https://github.com/kubernetes/kubernetes/issues/28741
+ # 10 ** 0
+ mem_multiple("m") = 1 { true }
+
+ # 1000 * 2 ** 10
+ mem_multiple("Ki") = 1024000 { true }
+
+ # 1000 * 2 ** 20
+ mem_multiple("Mi") = 1048576000 { true }
+
+ # 1000 * 2 ** 30
+ mem_multiple("Gi") = 1073741824000 { true }
+
+ # 1000 * 2 ** 40
+ mem_multiple("Ti") = 1099511627776000 { true }
+
+ # 1000 * 2 ** 50
+ mem_multiple("Pi") = 1125899906842624000 { true }
+
+ # 1000 * 2 ** 60
+ mem_multiple("Ei") = 1152921504606846976000 { true }
+
+ get_suffix(mem) = suffix {
+ not is_string(mem)
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 0
+ suffix := substring(mem, count(mem) - 1, -1)
+ mem_multiple(suffix)
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ suffix := substring(mem, count(mem) - 2, -1)
+ mem_multiple(suffix)
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) > 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ not mem_multiple(substring(mem, count(mem) - 2, -1))
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 1
+ not mem_multiple(substring(mem, count(mem) - 1, -1))
+ suffix := ""
+ }
+
+ get_suffix(mem) = suffix {
+ is_string(mem)
+ count(mem) == 0
+ suffix := ""
+ }
+
+ canonify_mem(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+ }
+
+ canonify_mem(orig) = new {
+ not is_number(orig)
+ suffix := get_suffix(orig)
+ raw := replace(orig, suffix, "")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", raw)
+ new := to_number(raw) * mem_multiple(suffix)
+ }
+
+ violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "containers"}]
+ }
+
+ violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "initContainers"}]
+ }
+
+ # Ephemeral containers not checked as it is not possible to set field.
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.limits.cpu
+ not canonify_cpu(cpu_orig)
+ msg := sprintf("container <%v> cpu limit <%v> could not be parsed", [container.name, cpu_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.limits.memory
+ not canonify_mem(mem_orig)
+ msg := sprintf("container <%v> memory limit <%v> could not be parsed", [container.name, mem_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_orig := container.resources.requests.cpu
+ not canonify_cpu(cpu_orig)
+ msg := sprintf("container <%v> cpu request <%v> could not be parsed", [container.name, cpu_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_orig := container.resources.requests.memory
+ not canonify_mem(mem_orig)
+ msg := sprintf("container <%v> memory request <%v> could not be parsed", [container.name, mem_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.limits
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "cpu")
+ msg := sprintf("container <%v> has no cpu limit", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "memory")
+ msg := sprintf("container <%v> has no memory limit", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.requests
+ msg := sprintf("container <%v> has no resource requests", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.requests, "cpu")
+ msg := sprintf("container <%v> has no cpu request", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.requests, "memory")
+ msg := sprintf("container <%v> has no memory request", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ cpu_limits_orig := container.resources.limits.cpu
+ cpu_limits := canonify_cpu(cpu_limits_orig)
+ cpu_requests_orig := container.resources.requests.cpu
+ cpu_requests := canonify_cpu(cpu_requests_orig)
+ cpu_ratio := object.get(input.parameters, "cpuRatio", input.parameters.ratio)
+ to_number(cpu_limits) > to_number(cpu_ratio) * to_number(cpu_requests)
+ msg := sprintf("container <%v> cpu limit <%v> is higher than the maximum allowed ratio of <%v>", [container.name, cpu_limits_orig, cpu_ratio])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ mem_limits_orig := container.resources.limits.memory
+ mem_requests_orig := container.resources.requests.memory
+ mem_limits := canonify_mem(mem_limits_orig)
+ mem_requests := canonify_mem(mem_requests_orig)
+ mem_ratio := input.parameters.ratio
+ to_number(mem_limits) > to_number(mem_ratio) * to_number(mem_requests)
+ msg := sprintf("container <%v> memory limit <%v> is higher than the maximum allowed ratio of <%v>", [container.name, mem_limits_orig, mem_ratio])
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresourceratios/template.yaml
+```
+## Examples
+
+memory-ratio-only
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sContainerRatios
+metadata:
+ name: container-must-meet-ratio
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ ratio: "2"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresourceratios/samples/container-must-meet-ratio/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "200m"
+ memory: "200Mi"
+ requests:
+ cpu: "100m"
+ memory: "100Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresourceratios/samples/container-must-meet-ratio/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "800m"
+ memory: "2Gi"
+ requests:
+ cpu: "100m"
+ memory: "100Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresourceratios/samples/container-must-meet-ratio/example_disallowed.yaml
+```
+
+
+
+
+
+memory-and-cpu-ratios
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sContainerRatios
+metadata:
+ name: container-must-meet-memory-and-cpu-ratio
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ ratio: "1"
+ cpuRatio: "10"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresourceratios/samples/container-must-meet-memory-and-cpu-ratio/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "4"
+ memory: "2Gi"
+ requests:
+ cpu: "1"
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresourceratios/samples/container-must-meet-memory-and-cpu-ratio/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "4"
+ memory: "2Gi"
+ requests:
+ cpu: "100m"
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresourceratios/samples/container-must-meet-memory-and-cpu-ratio/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerresources.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerresources.md
new file mode 100644
index 0000000000000000000000000000000000000000..417393f38dd4d8e8530bb4f27223ebf7ee8d5a5a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/containerresources.md
@@ -0,0 +1,648 @@
+---
+id: containerresources
+title: Required Resources
+---
+
+# Required Resources
+
+## Description
+Requires containers to have defined resources set.
+https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8srequiredresources
+ annotations:
+ metadata.gatekeeper.sh/title: "Required Resources"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Requires containers to have defined resources set.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sRequiredResources
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ limits:
+ type: array
+ description: "A list of limits that should be enforced (`cpu`, `memory`, or both)."
+ items:
+ type: string
+ enum:
+ - cpu
+ - memory
+ requests:
+ type: array
+ description: "A list of requests that should be enforced (`cpu`, `memory`, or both)."
+ items:
+ type: string
+ enum:
+ - cpu
+ - memory
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8srequiredresources
+
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "containers"}]
+ }
+
+ violation[{"msg": msg}] {
+ general_violation[{"msg": msg, "field": "initContainers"}]
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ provided := {resource_type | container.resources.limits[resource_type]}
+ required := {resource_type | resource_type := input.parameters.limits[_]}
+ missing := required - provided
+ count(missing) > 0
+ msg := sprintf("container <%v> does not have <%v> limits defined", [container.name, missing])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ provided := {resource_type | container.resources.requests[resource_type]}
+ required := {resource_type | resource_type := input.parameters.requests[_]}
+ missing := required - provided
+ count(missing) > 0
+ msg := sprintf("container <%v> does not have <%v> requests defined", [container.name, missing])
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/template.yaml
+```
+## Examples
+
+container-limits-and-requests
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sRequiredResources
+metadata:
+ name: container-must-have-limits-and-requests
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ limits:
+ - cpu
+ - memory
+ requests:
+ - cpu
+ - memory
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-limits-and-requests/constraint.yaml
+```
+
+
+
+
+limits-and-requests-defined-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+ requests:
+ cpu: "100m"
+ memory: "1Gi"
+
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-limits-and-requests/limits-and-requests-defined-allowed.yaml
+```
+
+
+
+only-requests-defined-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ requests:
+ cpu: "100m"
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-limits-and-requests/only-requests-defined-disallowed.yaml
+```
+
+
+
+only-cpu-requests-and-memory-limits-defined-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ requests:
+ cpu: "100m"
+ limits:
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-limits-and-requests/only-cpu-requests-and-memory-limits-defined-disallowed.yaml
+```
+
+
+
+only-memory-limits-defined-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-limits-and-requests/only-memory-limits-defined-disallowed.yaml
+```
+
+
+
+
+
+container-cpu-requests-memory-limits-and-requests
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sRequiredResources
+metadata:
+ name: container-must-have-cpu-requests-memory-limits-and-requests
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ limits:
+ - memory
+ requests:
+ - cpu
+ - memory
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/constraint.yaml
+```
+
+
+
+
+limits-and-requests-defined-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+ requests:
+ cpu: "100m"
+ memory: "1Gi"
+
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/limits-and-requests-defined-allowed.yaml
+```
+
+
+
+only-cpu-requests-and-memory-limits-and-requests-defined-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ memory: "2Gi"
+ requests:
+ cpu: "100m"
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-cpu-requests-and-memory-limits-and-requests-defined-allowed.yaml
+```
+
+
+
+only-requests-defined-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ requests:
+ cpu: "100m"
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-requests-defined-disallowed.yaml
+```
+
+
+
+only-memory-limits-defined-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/only-memory-limits-defined-disallowed.yaml
+```
+
+
+
+empty-resources-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources: {}
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/container-must-have-cpu-requests-memory-limits-and-requests/empty-resources-disallowed.yaml
+```
+
+
+
+
+
+no-enforcements
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sRequiredResources
+metadata:
+ name: no-enforcements
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/no-enforcements/constraint.yaml
+```
+
+
+
+
+limits-and-requests-defined-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+ requests:
+ cpu: "100m"
+ memory: "1Gi"
+
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/no-enforcements/limits-and-requests-defined-allowed.yaml
+```
+
+
+
+only-requests-defined-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ requests:
+ cpu: "100m"
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/no-enforcements/only-requests-defined-allowed.yaml
+```
+
+
+
+only-cpu-requests-and-memory-limits-defined-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ requests:
+ cpu: "100m"
+ limits:
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/no-enforcements/only-cpu-requests-and-memory-limits-defined-allowed.yaml
+```
+
+
+
+empty-resources-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources: {}
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/containerresources/samples/no-enforcements/empty-resources-allowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowanonymous.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowanonymous.md
new file mode 100644
index 0000000000000000000000000000000000000000..bdf251922c9db71176fc6f63e55709d9132ad15b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowanonymous.md
@@ -0,0 +1,249 @@
+---
+id: disallowanonymous
+title: Disallow Anonymous Access
+---
+
+# Disallow Anonymous Access
+
+## Description
+Disallows associating ClusterRole and Role resources to the system:anonymous user and system:unauthenticated group.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sdisallowanonymous
+ annotations:
+ metadata.gatekeeper.sh/title: "Disallow Anonymous Access"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: Disallows associating ClusterRole and Role resources to the system:anonymous user and system:unauthenticated group.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sDisallowAnonymous
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ allowedRoles:
+ description: >-
+ The list of ClusterRoles and Roles that may be associated
+ with the `system:unauthenticated` group and `system:anonymous`
+ user.
+ type: array
+ items:
+ type: string
+ disallowAuthenticated:
+ description: >-
+ A boolean indicating whether `system:authenticated` should also
+ be disallowed by this policy.
+ type: boolean
+ default: false
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sdisallowanonymous
+
+ violation[{"msg": msg}] {
+ not is_allowed(input.review.object.roleRef, object.get(input, ["parameters", "allowedRoles"], []))
+
+ group := ["system:unauthenticated", "system:anonymous"][_]
+ subject_is(input.review.object.subjects[_], group)
+
+ msg := message(group)
+ }
+
+ violation[{"msg": msg}] {
+ not is_allowed(input.review.object.roleRef, object.get(input, ["parameters", "allowedRoles"], []))
+
+ object.get(input, ["parameters", "disallowAuthenticated"], false)
+
+ group := "system:authenticated"
+ subject_is(input.review.object.subjects[_], group)
+
+ msg := message(group)
+ }
+
+ is_allowed(role, allowedRoles) {
+ role.name == allowedRoles[_]
+ }
+
+ subject_is(subject, expected) {
+ subject.name == expected
+ }
+
+ message(name) := val {
+ val := sprintf("%v is not allowed as a subject name in %v %v", [name, input.review.object.kind, input.review.object.metadata.name])
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowanonymous/template.yaml
+```
+## Examples
+
+disallow-anonymous
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sDisallowAnonymous
+metadata:
+ name: no-anonymous
+spec:
+ match:
+ kinds:
+ - apiGroups: ["rbac.authorization.k8s.io"]
+ kinds: ["ClusterRoleBinding"]
+ - apiGroups: ["rbac.authorization.k8s.io"]
+ kinds: ["RoleBinding"]
+ parameters:
+ allowedRoles:
+ - cluster-role-1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowanonymous/samples/no-anonymous-bindings/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: cluster-role-binding-1
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: cluster-role-1
+subjects:
+- apiGroup: rbac.authorization.k8s.io
+ kind: Group
+ name: system:authenticated
+- apiGroup: rbac.authorization.k8s.io
+ kind: Group
+ name: system:unauthenticated
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowanonymous/samples/no-anonymous-bindings/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: cluster-role-binding-2
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: cluster-role-2
+subjects:
+- apiGroup: rbac.authorization.k8s.io
+ kind: Group
+ name: system:authenticated
+- apiGroup: rbac.authorization.k8s.io
+ kind: Group
+ name: system:unauthenticated
+- apiGroup: rbac.authorization.k8s.io
+ kind: Group
+ name: system:anonymous
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowanonymous/samples/no-anonymous-bindings/example_disallowed.yaml
+```
+
+
+
+
+
+disallow-authenticated
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sDisallowAnonymous
+metadata:
+ name: no-anonymous
+spec:
+ match:
+ kinds:
+ - apiGroups: ["rbac.authorization.k8s.io"]
+ kinds: ["ClusterRoleBinding"]
+ - apiGroups: ["rbac.authorization.k8s.io"]
+ kinds: ["RoleBinding"]
+ parameters:
+ disallowAuthenticated: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowanonymous/samples/no-authenticated/constraint.yaml
+```
+
+
+
+
+authenticated-disallowed-with-parameter-true
+
+```yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: cluster-role-binding-2
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: cluster-role-2
+subjects:
+- apiGroup: rbac.authorization.k8s.io
+ kind: Group
+ name: system:authenticated
+- apiGroup: rbac.authorization.k8s.io
+ kind: Group
+ name: system:unauthenticated
+- apiGroup: rbac.authorization.k8s.io
+ kind: Group
+ name: system:anonymous
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowanonymous/samples/no-anonymous-bindings/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowedrepos.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowedrepos.md
new file mode 100644
index 0000000000000000000000000000000000000000..5dc45ed954187310aa0f5867ec4e038eab03120a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowedrepos.md
@@ -0,0 +1,225 @@
+---
+id: disallowedrepos
+title: Disallowed Repositories
+---
+
+# Disallowed Repositories
+
+## Description
+Disallowed container repositories that begin with a string from the specified list.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sdisallowedrepos
+ annotations:
+ metadata.gatekeeper.sh/title: "Disallowed Repositories"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Disallowed container repositories that begin with a string from the specified list.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sDisallowedRepos
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ repos:
+ description: The list of prefixes a container image is not allowed to have.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sdisallowedrepos
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.containers[_]
+ image := container.image
+ startswith(image, input.parameters.repos[_])
+ msg := sprintf("container <%v> has an invalid image repo <%v>, disallowed repos are %v", [container.name, container.image, input.parameters.repos])
+ }
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.initContainers[_]
+ image := container.image
+ startswith(image, input.parameters.repos[_])
+ msg := sprintf("initContainer <%v> has an invalid image repo <%v>, disallowed repos are %v", [container.name, container.image, input.parameters.repos])
+ }
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.ephemeralContainers[_]
+ image := container.image
+ startswith(image, input.parameters.repos[_])
+ msg := sprintf("ephemeralContainer <%v> has an invalid image repo <%v>, disallowed repos are %v", [container.name, container.image, input.parameters.repos])
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedrepos/template.yaml
+```
+## Examples
+
+repo-must-not-be-k8s-gcr-io
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sDisallowedRepos
+metadata:
+ name: repo-must-not-be-k8s-gcr-io
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ repos:
+ - "k8s.gcr.io/"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: kustomize-allowed
+spec:
+ containers:
+ - name: kustomize
+ image: registry.k8s.io/kustomize/kustomize:v3.8.9
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/example_allowed.yaml
+```
+
+
+
+container-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: kustomize-disallowed
+spec:
+ containers:
+ - name: kustomize
+ image: k8s.gcr.io/kustomize/kustomize:v3.8.9
+
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_container.yaml
+```
+
+
+
+initcontainer-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: kustomize-disallowed
+spec:
+ initContainers:
+ - name: kustomizeinit
+ image: k8s.gcr.io/kustomize/kustomize:v3.8.9
+ containers:
+ - name: kustomize
+ image: registry.k8s.io/kustomize/kustomize:v3.8.9
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_initcontainer.yaml
+```
+
+
+
+both-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: kustomize-disallowed
+spec:
+ initContainers:
+ - name: kustomizeinit
+ image: k8s.gcr.io/kustomize/kustomize:v3.8.9
+ containers:
+ - name: kustomize
+ image: k8s.gcr.io/kustomize/kustomize:v3.8.9
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/example_disallowed_both.yaml
+```
+
+
+
+all-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: kustomize-disallowed
+spec:
+ initContainers:
+ - name: kustomize
+ image: k8s.gcr.io/kustomize/kustomize:v3.8.9
+ containers:
+ - name: kustomize
+ image: k8s.gcr.io/kustomize/kustomize:v3.8.9
+ ephemeralContainers:
+ - name: kustomize
+ image: k8s.gcr.io/kustomize/kustomize:v3.8.9
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedrepos/samples/repo-must-not-be-k8s-gcr-io/disallowed_all.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowedtags.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowedtags.md
new file mode 100644
index 0000000000000000000000000000000000000000..e9553fc391216ee6d3d809287d0af699b397af68
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowedtags.md
@@ -0,0 +1,365 @@
+---
+id: disallowedtags
+title: Disallow tags
+---
+
+# Disallow tags
+
+## Description
+Requires container images to have an image tag different from the ones in the specified list.
+https://kubernetes.io/docs/concepts/containers/images/#image-names
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sdisallowedtags
+ annotations:
+ metadata.gatekeeper.sh/title: "Disallow tags"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires container images to have an image tag different from the ones in
+ the specified list.
+
+ https://kubernetes.io/docs/concepts/containers/images/#image-names
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sDisallowedTags
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ tags:
+ type: array
+ description: Disallowed container image tags.
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sdisallowedtags
+
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ container := input_containers[_]
+ not is_exempt(container)
+ tags := [tag_with_prefix | tag := input.parameters.tags[_]; tag_with_prefix := concat(":", ["", tag])]
+ strings.any_suffix_match(container.image, tags)
+ msg := sprintf("container <%v> uses a disallowed tag <%v>; disallowed tags are %v", [container.name, container.image, input.parameters.tags])
+ }
+
+ violation[{"msg": msg}] {
+ container := input_containers[_]
+ not is_exempt(container)
+ parts := split(container.image, "/")
+ not contains(parts[count(parts) - 1], ":")
+ msg := sprintf("container <%v> didn't specify an image tag <%v>", [container.name, container.image])
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/template.yaml
+```
+## Examples
+
+disallowed-tags
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sDisallowedTags
+metadata:
+ name: container-image-must-not-have-latest-tag
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ namespaces:
+ - "default"
+ parameters:
+ tags: ["latest"]
+ exemptImages: ["openpolicyagent/opa-exp:latest", "openpolicyagent/opa-exp2:latest"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/constraint.yaml
+```
+
+
+
+
+allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_allowed.yaml
+```
+
+
+
+exempt-images-with-disallowed-tags
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-exempt-allowed
+spec:
+ containers:
+ - name: opa-exp
+ image: openpolicyagent/opa-exp:latest
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ - name: opa-init
+ image: openpolicyagent/init:v1
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ - name: opa-exp2
+ image: openpolicyagent/opa-exp2:latest
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_exempt_image_w_disallowed_tag.yaml
+```
+
+
+
+no-tag
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_no_tag.yaml
+```
+
+
+
+no-tag-with-port
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed-4
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent:443/opa
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_no_tag_w_port.yaml
+```
+
+
+
+single-disallowed-tag
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed-2
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:latest
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_disallowed_tag.yaml
+```
+
+
+
+single-disallowed-tag-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed-ephemeral
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ ephemeralContainers:
+ - name: opa
+ image: openpolicyagent/opa:latest
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/disallowed_tag_ephemeral.yaml
+```
+
+
+
+some-disallow-tags
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed-3
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa-exp:latest
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ - name: opa-init
+ image: openpolicyagent/init:latest
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ - name: opa-exp2
+ image: openpolicyagent/opa-exp2:latest
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ - name: opa-monitor
+ image: openpolicyagent/monitor:latest
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowedtags/samples/container-image-must-not-have-latest-tag/example_some_disallowed_tags.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowinteractive.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowinteractive.md
new file mode 100644
index 0000000000000000000000000000000000000000..276017e5eaf1a5d4de5dabd2e340fbba330ff271
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/disallowinteractive.md
@@ -0,0 +1,190 @@
+---
+id: disallowinteractive
+title: Disallow Interactive TTY Containers
+---
+
+# Disallow Interactive TTY Containers
+
+## Description
+Requires that objects have the fields `spec.tty` and `spec.stdin` set to false or unset.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sdisallowinteractivetty
+ annotations:
+ metadata.gatekeeper.sh/title: "Disallow Interactive TTY Containers"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Requires that objects have the fields `spec.tty` and `spec.stdin` set to false or unset.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sDisallowInteractiveTTY
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls use of fields related to gaining an interactive session. Corresponds to the `tty` and
+ `stdin` fields in the Pod `spec.containers`, `spec.ephemeralContainers`, and `spec.initContainers`.
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sdisallowinteractivetty
+
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ c := input_containers[_]
+ not is_exempt(c)
+ input_allow_interactive_fields(c)
+ msg := sprintf("Containers using tty or stdin (%v) are not allowed running image: %v", [c.name, c.image])
+ }
+
+ input_allow_interactive_fields(c) {
+ has_field(c, "stdin")
+ not c.stdin == false
+ }
+ input_allow_interactive_fields(c) {
+ has_field(c, "tty")
+ not c.tty == false
+ }
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowinteractive/template.yaml
+```
+## Examples
+
+disallow-interactive
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sDisallowInteractiveTTY
+metadata:
+ name: no-interactive-tty-containers
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowinteractive/samples/no-interactive-containers/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-interactive-tty-allowed
+ labels:
+ app: nginx-interactive-tty
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ stdin: false
+ tty: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowinteractive/samples/no-interactive-containers/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privilege-escalation-disallowed
+ labels:
+ app: nginx-privilege-escalation
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ stdin: true
+ tty: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/disallowinteractive/samples/no-interactive-containers/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/ephemeralstoragelimit.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/ephemeralstoragelimit.md
new file mode 100644
index 0000000000000000000000000000000000000000..9bc75d15178961075d8a9363ded252a9a9201765
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/ephemeralstoragelimit.md
@@ -0,0 +1,477 @@
+---
+id: ephemeralstoragelimit
+title: Container ephemeral storage limit
+---
+
+# Container ephemeral storage limit
+
+## Description
+Requires containers to have an ephemeral storage limit set and constrains the limit to be within the specified maximum values.
+https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8scontainerephemeralstoragelimit
+ annotations:
+ metadata.gatekeeper.sh/title: "Container ephemeral storage limit"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires containers to have an ephemeral storage limit set and constrains
+ the limit to be within the specified maximum values.
+
+ https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sContainerEphemeralStorageLimit
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ ephemeral-storage:
+ description: "The maximum allowed ephemeral storage limit on a Pod, exclusive."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8scontainerephemeralstoragelimit
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ missing(obj, field) = true {
+ not obj[field]
+ }
+
+ missing(obj, field) = true {
+ obj[field] == ""
+ }
+
+ has_field(object, field) = true {
+ object[field]
+ }
+
+ # 10 ** 21
+ storage_multiple("E") = 1000000000000000000000 { true }
+
+ # 10 ** 18
+ storage_multiple("P") = 1000000000000000000 { true }
+
+ # 10 ** 15
+ storage_multiple("T") = 1000000000000000 { true }
+
+ # 10 ** 12
+ storage_multiple("G") = 1000000000000 { true }
+
+ # 10 ** 9
+ storage_multiple("M") = 1000000000 { true }
+
+ # 10 ** 6
+ storage_multiple("k") = 1000000 { true }
+
+ # 10 ** 3
+ storage_multiple("") = 1000 { true }
+
+ # Kubernetes accepts millibyte precision when it probably shouldn't.
+ # https://github.com/kubernetes/kubernetes/issues/28741
+ # 10 ** 0
+ storage_multiple("m") = 1 { true }
+
+ # 1000 * 2 ** 10
+ storage_multiple("Ki") = 1024000 { true }
+
+ # 1000 * 2 ** 20
+ storage_multiple("Mi") = 1048576000 { true }
+
+ # 1000 * 2 ** 30
+ storage_multiple("Gi") = 1073741824000 { true }
+
+ # 1000 * 2 ** 40
+ storage_multiple("Ti") = 1099511627776000 { true }
+
+ # 1000 * 2 ** 50
+ storage_multiple("Pi") = 1125899906842624000 { true }
+
+ # 1000 * 2 ** 60
+ storage_multiple("Ei") = 1152921504606846976000 { true }
+
+ get_suffix(storage) = suffix {
+ not is_string(storage)
+ suffix := ""
+ }
+
+ get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) > 0
+ suffix := substring(storage, count(storage) - 1, -1)
+ storage_multiple(suffix)
+ }
+
+ get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) > 1
+ suffix := substring(storage, count(storage) - 2, -1)
+ storage_multiple(suffix)
+ }
+
+ get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) > 1
+ not storage_multiple(substring(storage, count(storage) - 1, -1))
+ not storage_multiple(substring(storage, count(storage) - 2, -1))
+ suffix := ""
+ }
+
+ get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) == 1
+ not storage_multiple(substring(storage, count(storage) - 1, -1))
+ suffix := ""
+ }
+
+ get_suffix(storage) = suffix {
+ is_string(storage)
+ count(storage) == 0
+ suffix := ""
+ }
+
+ canonify_storage(orig) = new {
+ is_number(orig)
+ new := orig * 1000
+ }
+
+ canonify_storage(orig) = new {
+ not is_number(orig)
+ suffix := get_suffix(orig)
+ raw := replace(orig, suffix, "")
+ regex.match("^[0-9]+(\\.[0-9]+)?$", raw)
+ new := to_number(raw) * storage_multiple(suffix)
+ }
+
+ violation[{"msg": msg}] {
+ # spec.containers.resources.limits["ephemeral-storage"] field is immutable.
+ not is_update(input.review)
+
+ general_violation[{"msg": msg, "field": "containers"}]
+ }
+
+ violation[{"msg": msg}] {
+ not is_update(input.review)
+ general_violation[{"msg": msg, "field": "initContainers"}]
+ }
+
+ # Ephemeral containers not checked as it is not possible to set field.
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ storage_orig := container.resources.limits["ephemeral-storage"]
+ not canonify_storage(storage_orig)
+ msg := sprintf("container <%v> ephemeral-storage limit <%v> could not be parsed", [container.name, storage_orig])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ not container.resources.limits
+ msg := sprintf("container <%v> has no resource limits", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ missing(container.resources.limits, "ephemeral-storage")
+ msg := sprintf("container <%v> has no ephemeral-storage limit", [container.name])
+ }
+
+ general_violation[{"msg": msg, "field": field}] {
+ container := input.review.object.spec[field][_]
+ not is_exempt(container)
+ storage_orig := container.resources.limits["ephemeral-storage"]
+ storage := canonify_storage(storage_orig)
+ max_storage_orig := input.parameters["ephemeral-storage"]
+ max_storage := canonify_storage(max_storage_orig)
+ storage > max_storage
+ msg := sprintf("container <%v> ephemeral-storage limit <%v> is higher than the maximum allowed of <%v>", [container.name, storage_orig, max_storage_orig])
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/ephemeralstoragelimit/template.yaml
+```
+## Examples
+
+ephemeral-storage-limit
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sContainerEphemeralStorageLimit
+metadata:
+ name: container-ephemeral-storage-limit
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ ephemeral-storage: "500Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/constraint.yaml
+```
+
+
+
+
+ephemeral-storage-limit-100Mi
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+
+ ephemeral-storage: "100Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage.yaml
+```
+
+
+
+ephemeral-storage-limit-initContainer-100Mi
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ initContainers:
+ - name: init-opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+ ephemeral-storage: "100Mi"
+
+
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+ ephemeral-storage: "100Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_allowed_ephemeral-storage-initContainer.yaml
+```
+
+
+
+ephemeral-storage-limit-unspecified
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "2Gi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_unspecified.yaml
+```
+
+
+
+ephemeral-storage-limit-1Pi
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+
+ ephemeral-storage: "1Pi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi.yaml
+```
+
+
+
+ephemeral-storage-limit-initContainer-1Pi
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+ labels:
+ owner: me.agilebank.demo
+spec:
+ initContainers:
+ - name: init-opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+ ephemeral-storage: "1Pi"
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "1Gi"
+ ephemeral-storage: "100Mi"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/ephemeralstoragelimit/samples/container-must-have-ephemeral-storage-limit/example_disallowed_ephemeral_storage_limit_1Pi-initContainer.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/externalip.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/externalip.md
new file mode 100644
index 0000000000000000000000000000000000000000..38dc0f4ae48b06334ada800dee3eddd00abd6200
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/externalip.md
@@ -0,0 +1,150 @@
+---
+id: externalip
+title: External IPs
+---
+
+# External IPs
+
+## Description
+Restricts Service externalIPs to an allowed list of IP addresses.
+https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sexternalips
+ annotations:
+ metadata.gatekeeper.sh/title: "External IPs"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Restricts Service externalIPs to an allowed list of IP addresses.
+
+ https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sExternalIPs
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ allowedIPs:
+ type: array
+ description: "An allow-list of external IP addresses."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sexternalips
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "Service"
+ input.review.kind.group == ""
+ allowedIPs := {ip | ip := input.parameters.allowedIPs[_]}
+ externalIPs := {ip | ip := input.review.object.spec.externalIPs[_]}
+ forbiddenIPs := externalIPs - allowedIPs
+ count(forbiddenIPs) > 0
+ msg := sprintf("service has forbidden external IPs: %v", [forbiddenIPs])
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/externalip/template.yaml
+```
+## Examples
+
+allowed-ip
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sExternalIPs
+metadata:
+ name: external-ips
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Service"]
+ parameters:
+ allowedIPs:
+ - "203.0.113.0"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/externalip/samples/allowed-ip/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: allowed-external-ip
+spec:
+ selector:
+ app: MyApp
+ ports:
+ - name: http
+ protocol: TCP
+ port: 80
+ targetPort: 8080
+ externalIPs:
+ - 203.0.113.0
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/externalip/samples/allowed-ip/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: disallowed-external-ip
+spec:
+ selector:
+ app: MyApp
+ ports:
+ - name: http
+ protocol: TCP
+ port: 80
+ targetPort: 8080
+ externalIPs:
+ - 1.1.1.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/externalip/samples/allowed-ip/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/flexvolume-drivers.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/flexvolume-drivers.md
new file mode 100644
index 0000000000000000000000000000000000000000..349cabfa95c42ffd77485b23d747628afa4ea9b9
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/flexvolume-drivers.md
@@ -0,0 +1,190 @@
+---
+id: flexvolume-drivers
+title: FlexVolumes
+---
+
+# FlexVolumes
+
+## Description
+Controls the allowlist of FlexVolume drivers. Corresponds to the `allowedFlexVolumes` field in PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#flexvolume-drivers
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspflexvolumes
+ annotations:
+ metadata.gatekeeper.sh/title: "FlexVolumes"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Controls the allowlist of FlexVolume drivers. Corresponds to the
+ `allowedFlexVolumes` field in PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#flexvolume-drivers
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPFlexVolumes
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the allowlist of FlexVolume drivers. Corresponds to the
+ `allowedFlexVolumes` field in PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#flexvolume-drivers
+ properties:
+ allowedFlexVolumes:
+ type: array
+ description: "An array of AllowedFlexVolume objects."
+ items:
+ type: object
+ properties:
+ driver:
+ description: "The name of the FlexVolume driver."
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spspflexvolumes
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume := input_flexvolumes[_]
+ not input_flexvolumes_allowed(volume)
+ msg := sprintf("FlexVolume %v is not allowed, pod: %v. Allowed drivers: %v", [volume, input.review.object.metadata.name, input.parameters.allowedFlexVolumes])
+ }
+
+ input_flexvolumes_allowed(volume) {
+ input.parameters.allowedFlexVolumes[_].driver == volume.flexVolume.driver
+ }
+
+ input_flexvolumes[v] {
+ v := input.review.object.spec.volumes[_]
+ has_field(v, "flexVolume")
+ }
+
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/flexvolume-drivers/template.yaml
+```
+## Examples
+
+flexvolume-drivers
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPFlexVolumes
+metadata:
+ name: psp-flexvolume-drivers
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedFlexVolumes: #[]
+ - driver: "example/lvm"
+ - driver: "example/cifs"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-flexvolume-driver-allowed
+ labels:
+ app: nginx-flexvolume-driver
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /test
+ name: test-volume
+ readOnly: true
+ volumes:
+ - name: test-volume
+ flexVolume:
+ driver: "example/lvm"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-flexvolume-driver-disallowed
+ labels:
+ app: nginx-flexvolume-driver
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /test
+ name: test-volume
+ readOnly: true
+ volumes:
+ - name: test-volume
+ flexVolume:
+ driver: "example/testdriver" #"example/lvm"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/flexvolume-drivers/samples/psp-flexvolume-drivers/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/forbidden-sysctls.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/forbidden-sysctls.md
new file mode 100644
index 0000000000000000000000000000000000000000..0dbdcdf62f230ea0b7a808d6837f8904ca209c1a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/forbidden-sysctls.md
@@ -0,0 +1,642 @@
+---
+id: forbidden-sysctls
+title: Forbidden Sysctls
+---
+
+# Forbidden Sysctls
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Controls the `sysctl` profile used by containers. Corresponds to the `allowedUnsafeSysctls` and `forbiddenSysctls` fields in a PodSecurityPolicy. When specified, any sysctl not in the `allowedSysctls` parameter is considered to be forbidden. The `forbiddenSysctls` parameter takes precedence over the `allowedSysctls` parameter. For more information, see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspforbiddensysctls
+ annotations:
+ metadata.gatekeeper.sh/title: "Forbidden Sysctls"
+ metadata.gatekeeper.sh/version: 1.2.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the `sysctl` profile used by containers. Corresponds to the
+ `allowedUnsafeSysctls` and `forbiddenSysctls` fields in a PodSecurityPolicy.
+ When specified, any sysctl not in the `allowedSysctls` parameter is considered to be forbidden.
+ The `forbiddenSysctls` parameter takes precedence over the `allowedSysctls` parameter.
+ For more information, see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPForbiddenSysctls
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the `sysctl` profile used by containers. Corresponds to the
+ `allowedUnsafeSysctls` and `forbiddenSysctls` fields in a PodSecurityPolicy.
+ When specified, any sysctl not in the `allowedSysctls` parameter is considered to be forbidden.
+ The `forbiddenSysctls` parameter takes precedence over the `allowedSysctls` parameter.
+ For more information, see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
+ properties:
+ allowedSysctls:
+ type: array
+ description: "An allow-list of sysctls. `*` allows all sysctls not listed in the `forbiddenSysctls` parameter."
+ items:
+ type: string
+ forbiddenSysctls:
+ type: array
+ description: "A disallow-list of sysctls. `*` forbids all sysctls."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ - name: sysctls
+ expression: '!has(variables.anyObject.spec.securityContext) ? [] : !has(variables.anyObject.spec.securityContext.sysctls) ? [] : variables.anyObject.spec.securityContext.sysctls'
+ - name: allowedSysctlPrefixes
+ expression: |
+ !has(variables.params.allowedSysctls) ? [] : variables.params.allowedSysctls.filter(sysctl, sysctl.endsWith("*")).map(sysctl, string(sysctl).replace("*", ""))
+ - name: allowedSysctlExplicit
+ expression: |
+ !has(variables.params.allowedSysctls) ? [] :
+ variables.params.allowedSysctls.filter(sysctl, !sysctl.endsWith("*"))
+ - name: forbiddenSysctlPrefixes
+ expression: |
+ !has(variables.params.forbiddenSysctls) ? [] : variables.params.forbiddenSysctls.filter(sysctl, sysctl.endsWith("*")).map(sysctl, string(sysctl).replace("*", ""))
+ - name: forbiddenSysctlExplicit
+ expression: |
+ !has(variables.params.forbiddenSysctls) ? [] :
+ variables.params.forbiddenSysctls.filter(sysctl, !sysctl.endsWith("*"))
+ - name: allowedSysctlsString
+ expression: |
+ !has(variables.params.allowedSysctls) ? "unspecified" : size(variables.params.allowedSysctls) == 0 ? "empty" : variables.params.allowedSysctls.join(", ")
+ - name: violatingSysctls
+ expression: |
+ (variables.sysctls.filter(sysctl,
+ (sysctl.name in variables.forbiddenSysctlExplicit ||
+ variables.forbiddenSysctlPrefixes.exists(fsp, string(sysctl.name).startsWith(fsp))) ||
+ (has(variables.params.allowedSysctls) &&
+ !(sysctl.name in variables.allowedSysctlExplicit) &&
+ !variables.allowedSysctlPrefixes.exists(asp, string(sysctl.name).startsWith(asp)))))
+ validations:
+ - expression: 'variables.isUpdate || size(variables.violatingSysctls) == 0'
+ messageExpression: '"The sysctl is not allowed for pod: " + variables.anyObject.metadata.name + ", forbidden: " + variables.params.forbiddenSysctls.join(", ") + ", allowed: " + variables.allowedSysctlsString'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspforbiddensysctls
+
+ import data.lib.exclude_update.is_update
+
+ # Block if forbidden
+ violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.sysctls field is immutable.
+ not is_update(input.review)
+
+ sysctl := input.review.object.spec.securityContext.sysctls[_].name
+ forbidden_sysctl(sysctl)
+ msg := sprintf("The sysctl %v is not allowed, pod: %v. Forbidden sysctls: %v", [sysctl, input.review.object.metadata.name, input.parameters.forbiddenSysctls])
+ }
+
+ # Block if not explicitly allowed
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+ sysctl := input.review.object.spec.securityContext.sysctls[_].name
+ not allowed_sysctl(sysctl)
+ allowmsg := allowed_sysctl_string()
+ msg := sprintf("The sysctl %v is not explicitly allowed, pod: %v. Allowed sysctls: %v", [sysctl, input.review.object.metadata.name, allowmsg])
+ }
+
+ # * may be used to forbid all sysctls
+ forbidden_sysctl(_) {
+ input.parameters.forbiddenSysctls[_] == "*"
+ }
+
+ forbidden_sysctl(sysctl) {
+ input.parameters.forbiddenSysctls[_] == sysctl
+ }
+
+ forbidden_sysctl(sysctl) {
+ forbidden := input.parameters.forbiddenSysctls[_]
+ endswith(forbidden, "*")
+ startswith(sysctl, trim_suffix(forbidden, "*"))
+ }
+
+ # * may be used to allow all sysctls
+ allowed_sysctl(_) {
+ input.parameters.allowedSysctls[_] == "*"
+ }
+
+ allowed_sysctl(sysctl) {
+ input.parameters.allowedSysctls[_] == sysctl
+ }
+
+ allowed_sysctl(sysctl) {
+ allowed := input.parameters.allowedSysctls[_]
+ endswith(allowed, "*")
+ startswith(sysctl, trim_suffix(allowed, "*"))
+ }
+
+ allowed_sysctl(_) {
+ not input.parameters.allowedSysctls
+ }
+ allowed_sysctl_string() = out {
+ not input.parameters.allowedSysctls
+ out = "unspecified"
+ }
+ allowed_sysctl_string() = out {
+ out = input.parameters.allowedSysctls
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/template.yaml
+```
+## Examples
+
+forbidden-sysctls
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedSysctls:
+ - kernel.shm_rmid_forced
+ - net.ipv4.ip_local_port_range
+ - net.ipv4.ip_unprivileged_port_start
+ - net.ipv4.tcp_syncookies
+ - net.ipv4.ping_group_range
+ - net.ipv4.ip_local_reserved_ports
+ - net.ipv4.tcp_keepalive_time
+ - net.ipv4.tcp_fin_timeout
+ - net.ipv4.tcp_keepalive_intvl
+ - net.ipv4.tcp_keepalive_probes
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-disallowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: kernel.msgmax
+ value: "65536"
+ - name: net.core.somaxconn
+ value: "1024"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-allowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: net.ipv4.ip_local_port_range
+ value: "1024 65535"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml
+```
+
+
+
+
+
+forbidden-sysctls-wildcard
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ forbiddenSysctls:
+ - "*" # * forbid all sysctls
+ allowedSysctls:
+ - "*" # allows all sysctls. allowedSysctls is optional.
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint2.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-disallowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: kernel.msgmax
+ value: "65536"
+ - name: net.core.somaxconn
+ value: "1024"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-allowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: net.ipv4.ip_local_port_range
+ value: "1024 65535"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml
+```
+
+
+
+
+
+forbidden-sysctls3
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ forbiddenSysctls:
+ # - "*" # * may be used to forbid all sysctls
+ - kernel.*
+ allowedSysctls:
+ - "net.*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint3.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-disallowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: kernel.msgmax
+ value: "65536"
+ - name: net.core.somaxconn
+ value: "1024"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-allowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: net.ipv4.ip_local_port_range
+ value: "1024 65535"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml
+```
+
+
+
+
+
+forbidden-sysctls4-empty-allowedSysctls
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ forbiddenSysctls:
+ # - "*" # * may be used to forbid all sysctls
+ - kernel.*
+ allowedSysctls: [] # empty allowedSysctls means all sysctls are forbidden
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint4.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-disallowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: kernel.msgmax
+ value: "65536"
+ - name: net.core.somaxconn
+ value: "1024"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-allowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: net.ipv4.ip_local_port_range
+ value: "1024 65535"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml
+```
+
+
+
+
+
+forbidden-sysctls5-unspecified-allowedSysctls
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPForbiddenSysctls
+metadata:
+ name: psp-forbidden-sysctls
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ forbiddenSysctls:
+ # - "*" # * may be used to forbid all sysctls
+ - kernel.*
+ # unspecified allowedSysctls will not place any restrictions
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/constraint5.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-disallowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: kernel.msgmax
+ value: "65536"
+ - name: net.core.somaxconn
+ value: "1024"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-forbidden-sysctls-allowed
+ labels:
+ app: nginx-forbidden-sysctls
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ sysctls:
+ - name: net.ipv4.ip_local_port_range
+ value: "1024 65535"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/forbidden-sysctls/samples/psp-forbidden-sysctls/example_allowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/fsgroup.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/fsgroup.md
new file mode 100644
index 0000000000000000000000000000000000000000..bad66fb812d2b8bb586778afc1a5493a19418b25
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/fsgroup.md
@@ -0,0 +1,433 @@
+---
+id: fsgroup
+title: FS Group
+---
+
+# FS Group
+
+## Description
+Controls allocating an FSGroup that owns the Pod's volumes. Corresponds to the `fsGroup` field in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspfsgroup
+ annotations:
+ metadata.gatekeeper.sh/title: "FS Group"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: >-
+ Controls allocating an FSGroup that owns the Pod's volumes. Corresponds
+ to the `fsGroup` field in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPFSGroup
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls allocating an FSGroup that owns the Pod's volumes. Corresponds
+ to the `fsGroup` field in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ rule:
+ description: "An FSGroup rule name."
+ enum:
+ - MayRunAs
+ - MustRunAs
+ - RunAsAny
+ type: string
+ ranges:
+ type: array
+ description: "GID ranges affected by the rule."
+ items:
+ type: object
+ properties:
+ min:
+ description: "The minimum GID in the range, inclusive."
+ type: integer
+ max:
+ description: "The maximum GID in the range, inclusive."
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ - name: fsGroup
+ expression: '!has(variables.anyObject.spec.securityContext) ? "" : !has(variables.anyObject.spec.securityContext.fsGroup) ? "" : variables.anyObject.spec.securityContext.fsGroup'
+ - name: ruleString
+ expression: |
+ !has(variables.params.rule) ? "unspecified" : string(variables.params.rule)
+ - name: rangesString
+ expression: |
+ !has(variables.params.ranges) ? "unspecified" : size(variables.params.ranges) == 0 ? "empty" : variables.params.ranges.map(r, string(r)).join(", ")
+ - name: input_fsGroup_allowed
+ expression: |
+ !has(variables.params.rule) ? true : variables.params.rule == "RunAsAny" ? true : variables.params.rule == "MayRunAs" && variables.fsGroup == "" ? true : (variables.params.rule == "MayRunAs" || variables.params.rule == "MustRunAs") && has(variables.params.ranges) && size(variables.params.ranges) > 0 ? variables.params.ranges.exists(range, range.min <= variables.fsGroup && range.max >= variables.fsGroup) : false
+ validations:
+ - expression: 'variables.isUpdate || variables.input_fsGroup_allowed'
+ messageExpression: '"The provided pod spec fsGroup is not allowed, pod: " + variables.anyObject.metadata.name + ". Allowed fsGroup rule: " + variables.ruleString + ", allowed fsGroup ranges: " + variables.rangesString'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspfsgroup
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.fsGroup field is immutable.
+ not is_update(input.review)
+ has_field(input.parameters, "rule")
+ spec := input.review.object.spec
+ not input_fsGroup_allowed(spec)
+ msg := sprintf("The provided pod spec fsGroup is not allowed, pod: %v. Allowed fsGroup: %v", [input.review.object.metadata.name, input.parameters])
+ }
+
+ input_fsGroup_allowed(_) {
+ # RunAsAny - No range is required. Allows any fsGroup ID to be specified.
+ input.parameters.rule == "RunAsAny"
+ }
+ input_fsGroup_allowed(spec) {
+ # MustRunAs - Validates pod spec fsgroup against all ranges
+ input.parameters.rule == "MustRunAs"
+ fg := spec.securityContext.fsGroup
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, fg)
+ }
+ input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ not has_field(spec, "securityContext")
+ }
+ input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ not spec.securityContext.fsGroup
+ }
+ input_fsGroup_allowed(spec) {
+ # MayRunAs - Validates pod spec fsgroup against all ranges or allow pod spec fsgroup to be left unset
+ input.parameters.rule == "MayRunAs"
+ fg := spec.securityContext.fsGroup
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, fg)
+ }
+ value_within_range(range, value) {
+ range.min <= value
+ range.max >= value
+ }
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/template.yaml
+```
+## Examples
+
+fsgroup
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPFSGroup
+metadata:
+ name: psp-fsgroup
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ rule: "MayRunAs" #"MustRunAs" #"MayRunAs", "RunAsAny"
+ ranges:
+ - min: 1
+ max: 1000
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: fsgroup-disallowed
+spec:
+ securityContext:
+ fsGroup: 2000 # directory will have group ID 2000
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: [ "sh", "-c", "sleep 1h" ]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: fsgroup-allowed
+spec:
+ securityContext:
+ fsGroup: 500 # directory will have group ID 500
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: ["sh", "-c", "sleep 1h"]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_allowed.yaml
+```
+
+
+
+
+
+fsgroup-no-rules
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPFSGroup
+metadata:
+ name: psp-fsgroup
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ ranges:
+ - min: 1
+ max: 1000
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint2.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: fsgroup-disallowed
+spec:
+ securityContext:
+ fsGroup: 2000 # directory will have group ID 2000
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: [ "sh", "-c", "sleep 1h" ]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: fsgroup-allowed
+spec:
+ securityContext:
+ fsGroup: 500 # directory will have group ID 500
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: ["sh", "-c", "sleep 1h"]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_allowed.yaml
+```
+
+
+
+
+
+fsgroup-empty-ranges
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPFSGroup
+metadata:
+ name: psp-fsgroup
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ rule: "MustRunAs" #"MayRunAs", "RunAsAny"
+ ranges: [] # empty ranges should result in violation
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/constraint3.yaml
+```
+
+
+
+
+example-disallowed-2000
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: fsgroup-disallowed
+spec:
+ securityContext:
+ fsGroup: 2000 # directory will have group ID 2000
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: [ "sh", "-c", "sleep 1h" ]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_disallowed.yaml
+```
+
+
+
+example-disallowed-500
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: fsgroup-allowed
+spec:
+ securityContext:
+ fsGroup: 500 # directory will have group ID 500
+ volumes:
+ - name: fsgroup-demo-vol
+ emptyDir: {}
+ containers:
+ - name: fsgroup-demo
+ image: busybox
+ command: ["sh", "-c", "sleep 1h"]
+ volumeMounts:
+ - name: fsgroup-demo-vol
+ mountPath: /data/demo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/fsgroup/samples/psp-fsgroup/example_allowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/horizontalpodautoscaler.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/horizontalpodautoscaler.md
new file mode 100644
index 0000000000000000000000000000000000000000..89e32bf9a4102f2e8f64c10b296e70620a3bc270
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/horizontalpodautoscaler.md
@@ -0,0 +1,291 @@
+---
+id: horizontalpodautoscaler
+title: Horizontal Pod Autoscaler
+---
+
+# Horizontal Pod Autoscaler
+
+## Description
+Disallow the following scenarios when deploying `HorizontalPodAutoscalers` 1. Deployment of HorizontalPodAutoscalers with `.spec.minReplicas` or `.spec.maxReplicas` outside the ranges defined in the constraint 2. Deployment of HorizontalPodAutoscalers where the difference between `.spec.minReplicas` and `.spec.maxReplicas` is less than the configured `minimumReplicaSpread` 3. Deployment of HorizontalPodAutoscalers that do not reference a valid `scaleTargetRef` (e.g. Deployment, ReplicationController, ReplicaSet, StatefulSet).
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8shorizontalpodautoscaler
+ annotations:
+ metadata.gatekeeper.sh/title: "Horizontal Pod Autoscaler"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups":["apps"],
+ "versions": ["v1"],
+ "kinds": ["Deployment"]
+ },
+ {
+ "groups":["apps"],
+ "versions": ["v1"],
+ "kinds": ["StatefulSet"]
+ }
+ ]
+ ]"
+ description: >-
+ Disallow the following scenarios when deploying `HorizontalPodAutoscalers`
+ 1. Deployment of HorizontalPodAutoscalers with `.spec.minReplicas` or `.spec.maxReplicas` outside the ranges defined in the constraint
+ 2. Deployment of HorizontalPodAutoscalers where the difference between `.spec.minReplicas` and `.spec.maxReplicas` is less than the configured `minimumReplicaSpread`
+ 3. Deployment of HorizontalPodAutoscalers that do not reference a valid `scaleTargetRef` (e.g. Deployment, ReplicationController, ReplicaSet, StatefulSet).
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sHorizontalPodAutoscaler
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ enforceScaleTargetRef:
+ description: If set to true it validates the HPA scaleTargetRef exists
+ type: boolean
+ minimumReplicaSpread:
+ description: If configured it enforces the minReplicas and maxReplicas in an HPA must have a spread of at least this many replicas
+ type: integer
+ ranges:
+ type: array
+ description: Allowed ranges for numbers of replicas. Values are inclusive.
+ items:
+ type: object
+ description: A range of allowed replicas. Values are inclusive.
+ properties:
+ min_replicas:
+ description: The minimum number of replicas allowed, inclusive.
+ type: integer
+ max_replicas:
+ description: The maximum number of replicas allowed, inclusive.
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8shorizontalpodautoscaler
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "HorizontalPodAutoscaler"
+ hpa := input.review.object
+
+ not input_replica_limit(hpa)
+ msg := sprintf("The %v <%v> minReplicas %v or maxReplicas %v is not allowed: %v. Allowed ranges: %v", [hpa.kind, hpa.metadata.name, hpa.spec.minReplicas, hpa.spec.maxReplicas, input.parameters.ranges])
+ }
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "HorizontalPodAutoscaler"
+ hpa := input.review.object
+
+ not input_replica_spread(hpa)
+
+ msg := sprintf("The %v <%v> is configured with minReplicas %v and maxReplicas %v which is a spread of %v replica(s). The spread must be at least %v replica(s)", [hpa.kind, hpa.metadata.name, hpa.spec.minReplicas, hpa.spec.maxReplicas, hpa.spec.maxReplicas - hpa.spec.minReplicas, input.parameters.minimumReplicaSpread])
+ }
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "HorizontalPodAutoscaler"
+ hpa := input.review.object
+ input.parameters.enforceScaleTargetRef
+
+ not data.inventory.namespace[hpa.metadata.namespace][hpa.spec.scaleTargetRef.apiVersion][hpa.spec.scaleTargetRef.kind][hpa.spec.scaleTargetRef.name]
+ msg := sprintf("The HorizontalPodAutoscaler <%v> has a scaleTargetRef of <%v/%v> but it does not exist. The scaleTargetRef for the HorizontalPodAutoscaler must exist", [hpa.metadata.name, hpa.spec.scaleTargetRef.kind, hpa.spec.scaleTargetRef.name])
+ }
+
+ input_replica_limit(hpa) {
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, hpa.spec.minReplicas, hpa.spec.maxReplicas)
+ }
+
+ value_within_range(range, min_provided, max_provided) {
+ range.min_replicas <= min_provided
+ range.max_replicas >= max_provided
+ }
+
+ input_replica_spread(hpa) {
+ input.parameters.minimumReplicaSpread
+ (hpa.spec.maxReplicas - hpa.spec.minReplicas) >= input.parameters.minimumReplicaSpread
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/horizontalpodautoscaler/template.yaml
+```
+## Examples
+
+horizontal-pod-autoscaler
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sHorizontalPodAutoscaler
+metadata:
+ name: horizontal-pod-autoscaler
+spec:
+ enforcementAction: deny
+ match:
+ kinds:
+ - apiGroups: ["autoscaling"]
+ kinds: ["HorizontalPodAutoscaler"]
+ parameters:
+ minimumReplicaSpread: 1
+ enforceScaleTargetRef: true
+ ranges:
+ - min_replicas: 3
+ max_replicas: 6
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/constraint.yaml
+```
+
+
+
+
+example-allowed-hpa
+
+```yaml
+apiVersion: autoscaling/v2
+kind: HorizontalPodAutoscaler
+metadata:
+ name: nginx-hpa-allowed
+ namespace: default
+spec:
+ minReplicas: 3
+ maxReplicas: 6
+ metrics:
+ - resource:
+ name: cpu
+ target:
+ averageUtilization: 900
+ type: Utilization
+ type: Resource
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: nginx-deployment
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_allowed_hpa.yaml
+```
+
+
+
+example-disallowed-hpa-replicas
+
+```yaml
+apiVersion: autoscaling/v2
+kind: HorizontalPodAutoscaler
+metadata:
+ name: nginx-hpa-disallowed-replicas
+ namespace: default
+spec:
+ minReplicas: 2
+ maxReplicas: 7
+ metrics:
+ - resource:
+ name: cpu
+ target:
+ averageUtilization: 900
+ type: Utilization
+ type: Resource
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: nginx-deployment
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_disallowed_hpa_replicas.yaml
+```
+
+
+
+example-disallowed-hpa-replicaspread
+
+```yaml
+apiVersion: autoscaling/v2
+kind: HorizontalPodAutoscaler
+metadata:
+ name: nginx-hpa-disallowed-replicaspread
+ namespace: default
+spec:
+ minReplicas: 4
+ maxReplicas: 4
+ metrics:
+ - resource:
+ name: cpu
+ target:
+ averageUtilization: 900
+ type: Utilization
+ type: Resource
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: nginx-deployment
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_disallowed_hpa_replicaspread.yaml
+```
+
+
+
+example-disallowed-scaletarget
+
+```yaml
+apiVersion: autoscaling/v2
+kind: HorizontalPodAutoscaler
+metadata:
+ name: nginx-hpa-disallowed-scaletarget
+ namespace: default
+spec:
+ minReplicas: 3
+ maxReplicas: 6
+ metrics:
+ - resource:
+ name: cpu
+ target:
+ averageUtilization: 900
+ type: Utilization
+ type: Resource
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: nginx-deployment-missing
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/horizontalpodautoscaler/samples/horizontalpodautoscaler/example_disallowed_hpa_scaletarget.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-filesystem.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-filesystem.md
new file mode 100644
index 0000000000000000000000000000000000000000..c453a6067f45e95b961229d8778c74341f1f2a74
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-filesystem.md
@@ -0,0 +1,409 @@
+---
+id: host-filesystem
+title: Host Filesystem
+---
+
+# Host Filesystem
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Controls usage of the host filesystem. Corresponds to the `allowedHostPaths` field in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostfilesystem
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Filesystem"
+ metadata.gatekeeper.sh/version: 1.1.2
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls usage of the host filesystem. Corresponds to the
+ `allowedHostPaths` field in a PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostFilesystem
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls usage of the host filesystem. Corresponds to the
+ `allowedHostPaths` field in a PodSecurityPolicy. For more information,
+ see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ allowedHostPaths:
+ type: array
+ description: "An array of hostpath objects, representing paths and read/write configuration."
+ items:
+ type: object
+ properties:
+ pathPrefix:
+ type: string
+ description: "The path prefix that the host volume must match."
+ readOnly:
+ type: boolean
+ description: "when set to true, any container volumeMounts matching the pathPrefix must include `readOnly: true`."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+ - name: allowedPaths
+ expression: |
+ !has(variables.params.allowedHostPaths) ? [] : variables.params.allowedHostPaths
+ - name: volumes
+ expression: |
+ !has(variables.anyObject.spec.volumes) ? [] : variables.anyObject.spec.volumes.filter(volume, has(volume.hostPath))
+ - name: badHostPaths
+ expression: |
+ variables.volumes.filter(volume,
+ (size(variables.allowedPaths) == 0) ||
+ !(variables.allowedPaths.exists(allowedPath,
+ volume.hostPath.path.startsWith(allowedPath.pathPrefix) && (
+ (!has(allowedPath.readOnly) || !(allowedPath.readOnly)) ||
+ (has(allowedPath.readOnly) && allowedPath.readOnly && !variables.allContainers.exists(c,
+ c.volumeMounts.exists(m, m.name == volume.name && (!has(m.readOnly) || !m.readOnly)))))))
+ ).map(volume, "{ hostPath: { path : " + volume.hostPath.path + " }, name: " + volume.name + "}").map(volume, "HostPath volume " + volume + " is not allowed, pod: " + object.metadata.name + ". Allowed path: " + variables.allowedPaths.map(path, path.pathPrefix + ", readOnly: " + (path.readOnly ? "true" : "false") + "}").join(", "))
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badHostPaths) == 0'
+ messageExpression: 'variables.badHostPaths.join("\n")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostfilesystem
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume := input_hostpath_volumes[_]
+ allowedPaths := get_allowed_paths(input)
+ input_hostpath_violation(allowedPaths, volume)
+ msg := sprintf("HostPath volume %v is not allowed, pod: %v. Allowed path: %v", [volume, input.review.object.metadata.name, allowedPaths])
+ }
+
+ input_hostpath_violation(allowedPaths, _) {
+ # An empty list means all host paths are blocked
+ allowedPaths == []
+ }
+ input_hostpath_violation(allowedPaths, volume) {
+ not input_hostpath_allowed(allowedPaths, volume)
+ }
+
+ get_allowed_paths(arg) = out {
+ not arg.parameters
+ out = []
+ }
+ get_allowed_paths(arg) = out {
+ not arg.parameters.allowedHostPaths
+ out = []
+ }
+ get_allowed_paths(arg) = out {
+ out = arg.parameters.allowedHostPaths
+ }
+
+ input_hostpath_allowed(allowedPaths, volume) {
+ allowedHostPath := allowedPaths[_]
+ path_matches(allowedHostPath.pathPrefix, volume.hostPath.path)
+ not allowedHostPath.readOnly == true
+ }
+
+ input_hostpath_allowed(allowedPaths, volume) {
+ allowedHostPath := allowedPaths[_]
+ path_matches(allowedHostPath.pathPrefix, volume.hostPath.path)
+ allowedHostPath.readOnly
+ not writeable_input_volume_mounts(volume.name)
+ }
+
+ writeable_input_volume_mounts(volume_name) {
+ container := input_containers[_]
+ mount := container.volumeMounts[_]
+ mount.name == volume_name
+ not mount.readOnly
+ }
+
+ # This allows "/foo", "/foo/", "/foo/bar" etc., but
+ # disallows "/fool", "/etc/foo" etc.
+ path_matches(prefix, path) {
+ a := path_array(prefix)
+ b := path_array(path)
+ prefix_matches(a, b)
+ }
+ path_array(p) = out {
+ p != "/"
+ out := split(trim(p, "/"), "/")
+ }
+ # This handles the special case for "/", since
+ # split(trim("/", "/"), "/") == [""]
+ path_array("/") = []
+
+ prefix_matches(a, b) {
+ count(a) <= count(b)
+ not any_not_equal_upto(a, b, count(a))
+ }
+
+ any_not_equal_upto(a, b, n) {
+ a[i] != b[i]
+ i < n
+ }
+
+ input_hostpath_volumes[v] {
+ v := input.review.object.spec.volumes[_]
+ has_field(v, "hostPath")
+ }
+
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-filesystem/template.yaml
+```
+## Examples
+
+host-filesystem
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostFilesystem
+metadata:
+ name: psp-host-filesystem
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedHostPaths:
+ - readOnly: true
+ pathPrefix: "/foo"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-filesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ readOnly: true
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /tmp # directory location on host
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-filesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ readOnly: true
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /foo/bar
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_allowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-filesystem
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ readOnly: true
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /tmp # directory location on host
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/disallowed_ephemeral.yaml
+```
+
+
+
+
+
+no-host-paths
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostFilesystem
+metadata:
+ name: no-host-paths
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-filesystem/samples/no-host-paths/constraint.yaml
+```
+
+
+
+
+previously-allowed-path-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-filesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ readOnly: true
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /foo/bar
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-filesystem/samples/psp-host-filesystem/example_allowed.yaml
+```
+
+
+
+no-volumes-is-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-no-volumes
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-filesystem/samples/no-host-paths/example_allowed_no_volumes.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-namespaces.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-namespaces.md
new file mode 100644
index 0000000000000000000000000000000000000000..17ce0c5dffc250abe97f14fc232c18746648bebd
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-namespaces.md
@@ -0,0 +1,177 @@
+---
+id: host-namespaces
+title: Host Namespace
+---
+
+# Host Namespace
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Disallows sharing of host PID and IPC namespaces by pod containers. Corresponds to the `hostPID` and `hostIPC` fields in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostnamespace
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Namespace"
+ metadata.gatekeeper.sh/version: 1.1.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows sharing of host PID and IPC namespaces by pod containers.
+ Corresponds to the `hostPID` and `hostIPC` fields in a PodSecurityPolicy.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostNamespace
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows sharing of host PID and IPC namespaces by pod containers.
+ Corresponds to the `hostPID` and `hostIPC` fields in a PodSecurityPolicy.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: sharingHostIPC
+ expression: |
+ has(variables.anyObject.spec.hostIPC) ? variables.anyObject.spec.hostIPC : false
+ - name: sharingHostPID
+ expression: |
+ has(variables.anyObject.spec.hostPID) ? variables.anyObject.spec.hostPID : false
+ - name: sharingNamespace
+ expression: |
+ variables.sharingHostIPC || variables.sharingHostPID
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || !variables.sharingNamespace'
+ messageExpression: '"Sharing the host namespace is not allowed: " + variables.anyObject.metadata.name'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostnamespace
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.hostPID and spec.hostIPC fields are immutable.
+ not is_update(input.review)
+
+ input_share_hostnamespace(input.review.object)
+ msg := sprintf("Sharing the host namespace is not allowed: %v", [input.review.object.metadata.name])
+ }
+
+ input_share_hostnamespace(o) {
+ o.spec.hostPID
+ }
+ input_share_hostnamespace(o) {
+ o.spec.hostIPC
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-namespaces/template.yaml
+```
+## Examples
+
+host-namespace
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostNamespace
+metadata:
+ name: psp-host-namespace
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-namespace-allowed
+ labels:
+ app: nginx-host-namespace
+spec:
+ hostPID: false
+ hostIPC: false
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-namespace-disallowed
+ labels:
+ app: nginx-host-namespace
+spec:
+ hostPID: true
+ hostIPC: true
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-namespaces/samples/psp-host-namespace/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-network-ports.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-network-ports.md
new file mode 100644
index 0000000000000000000000000000000000000000..e4a422c05f6750ab8e706ffa3bee99e340d20f70
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-network-ports.md
@@ -0,0 +1,584 @@
+---
+id: host-network-ports
+title: Host Networking Ports
+---
+
+# Host Networking Ports
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Controls usage of host network namespace by pod containers. HostNetwork verification happens without exception for exemptImages. Specific ports must be specified. Corresponds to the `hostNetwork` and `hostPorts` fields in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostnetworkingports
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Networking Ports"
+ metadata.gatekeeper.sh/version: 1.1.5
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls usage of host network namespace by pod containers. HostNetwork verification happens without exception for exemptImages. Specific
+ ports must be specified. Corresponds to the `hostNetwork` and
+ `hostPorts` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostNetworkingPorts
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls usage of host network namespace by pod containers. HostNetwork verification happens without exception for exemptImages. Specific
+ ports must be specified. Corresponds to the `hostNetwork` and
+ `hostPorts` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ hostNetwork:
+ description: "Determines if the policy allows the use of HostNetwork in the pod spec."
+ type: boolean
+ min:
+ description: "The start of the allowed port range, inclusive."
+ type: integer
+ max:
+ description: "The end of the allowed port range, inclusive."
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) && has(container.ports) &&
+ (
+ (container.ports.all(port, has(port.hostPort) && has(variables.params.min) && port.hostPort < variables.params.min)) ||
+ (container.ports.all(port, has(port.hostPort) && has(variables.params.max) && port.hostPort > variables.params.max))
+ )
+ )
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ - name: hostNetworkAllowed
+ expression: has(variables.params.hostNetwork) && variables.params.hostNetwork
+ - name: hostNetworkEnabled
+ expression: has(variables.anyObject.spec.hostNetwork) && variables.anyObject.spec.hostNetwork
+ - name: hostNetworkViolation
+ expression: variables.hostNetworkEnabled && !variables.hostNetworkAllowed
+ validations:
+ - expression: 'variables.isUpdate || size(variables.badContainers) == 0'
+ messageExpression: '"The specified hostNetwork and hostPort are not allowed, pod: " + variables.anyObject.metadata.name'
+ - expression: variables.isUpdate || !variables.hostNetworkViolation
+ messageExpression: '"The specified hostNetwork and hostPort are not allowed, pod: " + variables.anyObject.metadata.name'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostnetworkingports
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.hostNetwork field is immutable.
+ not is_update(input.review)
+
+ input_share_hostnetwork(input.review.object)
+ msg := sprintf("The specified hostNetwork and hostPort are not allowed, pod: %v. Allowed values: %v", [input.review.object.metadata.name, input.parameters])
+ }
+
+ input_share_hostnetwork(o) {
+ not input.parameters.hostNetwork
+ o.spec.hostNetwork
+ }
+
+ input_share_hostnetwork(_) {
+ hostPort := input_containers[_].ports[_].hostPort
+ hostPort < input.parameters.min
+ }
+
+ input_share_hostnetwork(_) {
+ hostPort := input_containers[_].ports[_].hostPort
+ hostPort > input.parameters.max
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ not is_exempt(c)
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ not is_exempt(c)
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(c)
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/template.yaml
+```
+## Examples
+
+port-range-with-host-network-allowed
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostNetworkingPorts
+metadata:
+ name: psp-host-network-ports
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ hostNetwork: true
+ min: 80
+ max: 9000
+ exemptImages:
+ - "safeimages.com/*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/constraint.yaml
+```
+
+
+
+
+out-of-range
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-allowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9000
+ hostPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_in_range.yaml
+```
+
+
+
+out-of-range-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/disallowed_ephemeral.yaml
+```
+
+
+
+no-ports-specified
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports.yaml
+```
+
+
+
+port-violation-exempted
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-exempted
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: safeimages.com/nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_out_of_range_exempted.yaml
+```
+
+
+
+
+
+host-network-forbidden
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostNetworkingPorts
+metadata:
+ name: psp-host-network
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ hostNetwork: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/block_host_network/constraint.yaml
+```
+
+
+
+
+hostnetwork-true
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-network-true
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_true.yaml
+```
+
+
+
+hostnetwork-false
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-network-false
+spec:
+ hostNetwork: false
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_no_ports_host_network_false.yaml
+```
+
+
+
+
+
+port-range-with-host-network-forbidden
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostNetworkingPorts
+metadata:
+ name: psp-host-network-ports
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ hostNetwork: false
+ min: 80
+ max: 9000
+ exemptImages:
+ - "safeimages.com/*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/constraint.yaml
+```
+
+
+
+
+out-of-range-and-host-network-true
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_out_of_range_host_network_true.yaml
+```
+
+
+
+exempted-image-still-violates-on-hostnetwork
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-hn-ok-bad-port
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: safeimages.com/nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/port_range_block_host_network/example_disallowed_exempted_container_host_network_enabled.yaml
+```
+
+
+
+in-range-host-network-false
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-allowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9000
+ hostPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/example_allowed_in_range.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-networking-ports-disallowed
+ labels:
+ app: nginx-host-networking-ports
+spec:
+ hostNetwork: true
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ ports:
+ - containerPort: 9001
+ hostPort: 9001
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-network-ports/samples/psp-host-network-ports/disallowed_ephemeral.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-probes-lifecycle.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-probes-lifecycle.md
new file mode 100644
index 0000000000000000000000000000000000000000..053807ef5a1bea832118aff27107f0ab9b0c5e0c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-probes-lifecycle.md
@@ -0,0 +1,617 @@
+---
+id: host-probes-lifecycle
+title: Host Probes and Lifecycle Hooks
+---
+
+# Host Probes and Lifecycle Hooks
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Disallows specifying the host field in probes and lifecycle hooks. The Baseline profile (v1.34+) requires that probes (livenessProbe, readinessProbe, startupProbe) and lifecycle hooks (postStart, preStop) must not specify a host field. This prevents containers from executing network requests to the host node. For more information, see https://kubernetes.io/docs/concepts/security/pod-security-standards/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostprobeslifecycle
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Probes and Lifecycle Hooks"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows specifying the host field in probes and lifecycle hooks.
+ The Baseline profile (v1.34+) requires that probes (livenessProbe,
+ readinessProbe, startupProbe) and lifecycle hooks (postStart, preStop)
+ must not specify a host field. This prevents containers from executing
+ network requests to the host node.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostProbesLifecycle
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows specifying the host field in probes and lifecycle hooks.
+ The Baseline profile (v1.34+) requires that probes (livenessProbe,
+ readinessProbe, startupProbe) and lifecycle hooks (postStart, preStop)
+ must not specify a host field. This prevents containers from executing
+ network requests to the host node.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: allContainers
+ expression: 'variables.containers + variables.initContainers + variables.ephemeralContainers'
+ - name: badProbeContainers
+ expression: |
+ variables.allContainers.filter(container,
+ !(container.image in variables.exemptImages) &&
+ (
+ (has(container.livenessProbe) && has(container.livenessProbe.httpGet) && has(container.livenessProbe.httpGet.host) && container.livenessProbe.httpGet.host != "") ||
+ (has(container.livenessProbe) && has(container.livenessProbe.tcpSocket) && has(container.livenessProbe.tcpSocket.host) && container.livenessProbe.tcpSocket.host != "") ||
+ (has(container.readinessProbe) && has(container.readinessProbe.httpGet) && has(container.readinessProbe.httpGet.host) && container.readinessProbe.httpGet.host != "") ||
+ (has(container.readinessProbe) && has(container.readinessProbe.tcpSocket) && has(container.readinessProbe.tcpSocket.host) && container.readinessProbe.tcpSocket.host != "") ||
+ (has(container.startupProbe) && has(container.startupProbe.httpGet) && has(container.startupProbe.httpGet.host) && container.startupProbe.httpGet.host != "") ||
+ (has(container.startupProbe) && has(container.startupProbe.tcpSocket) && has(container.startupProbe.tcpSocket.host) && container.startupProbe.tcpSocket.host != "")
+ )
+ ).map(container, "Container " + container.name + " has probe with host field set")
+ - name: badLifecycleContainers
+ expression: |
+ variables.allContainers.filter(container,
+ !(container.image in variables.exemptImages) &&
+ (
+ (has(container.lifecycle) && has(container.lifecycle.postStart) && has(container.lifecycle.postStart.httpGet) && has(container.lifecycle.postStart.httpGet.host) && container.lifecycle.postStart.httpGet.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.postStart) && has(container.lifecycle.postStart.tcpSocket) && has(container.lifecycle.postStart.tcpSocket.host) && container.lifecycle.postStart.tcpSocket.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.preStop) && has(container.lifecycle.preStop.httpGet) && has(container.lifecycle.preStop.httpGet.host) && container.lifecycle.preStop.httpGet.host != "") ||
+ (has(container.lifecycle) && has(container.lifecycle.preStop) && has(container.lifecycle.preStop.tcpSocket) && has(container.lifecycle.preStop.tcpSocket.host) && container.lifecycle.preStop.tcpSocket.host != "")
+ )
+ ).map(container, "Container " + container.name + " has lifecycle hook with host field set")
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ validations:
+ - expression: variables.isUpdate || size(variables.badProbeContainers) == 0
+ messageExpression: 'variables.badProbeContainers.join(", ")'
+ - expression: variables.isUpdate || size(variables.badLifecycleContainers) == 0
+ messageExpression: 'variables.badLifecycleContainers.join(", ")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostprobeslifecycle
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ probe := get_probe(c)
+ probe.httpGet.host != ""
+ msg := sprintf("Container %v has probe with host field set: %v", [c.name, probe.httpGet.host])
+ }
+
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ probe := get_probe(c)
+ probe.tcpSocket.host != ""
+ msg := sprintf("Container %v has probe with host field set: %v", [c.name, probe.tcpSocket.host])
+ }
+
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ hook := get_lifecycle_hook(c)
+ hook.httpGet.host != ""
+ msg := sprintf("Container %v has lifecycle hook with host field set: %v", [c.name, hook.httpGet.host])
+ }
+
+ violation[{"msg": msg, "details": {}}] {
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ hook := get_lifecycle_hook(c)
+ hook.tcpSocket.host != ""
+ msg := sprintf("Container %v has lifecycle hook with host field set: %v", [c.name, hook.tcpSocket.host])
+ }
+
+ get_probe(c) = probe {
+ probe := c.livenessProbe
+ }
+
+ get_probe(c) = probe {
+ probe := c.readinessProbe
+ }
+
+ get_probe(c) = probe {
+ probe := c.startupProbe
+ }
+
+ get_lifecycle_hook(c) = hook {
+ hook := c.lifecycle.postStart
+ }
+
+ get_lifecycle_hook(c) = hook {
+ hook := c.lifecycle.preStop
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/template.yaml
+```
+## Examples
+
+host-probes-lifecycle-disallowed
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostProbesLifecycle
+metadata:
+ name: psp-host-probes-lifecycle
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/constraint.yaml
+```
+
+
+
+
+example-allowed-no-probes
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-no-probes-allowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_no_probes.yaml
+```
+
+
+
+example-allowed-probe-no-host
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-probe-no-host-allowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_allowed_probe_no_host.yaml
+```
+
+
+
+example-disallowed-liveness-probe
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-liveness-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_liveness_probe.yaml
+```
+
+
+
+example-disallowed-readiness-probe
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readiness-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ readinessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_readiness_probe.yaml
+```
+
+
+
+example-disallowed-startup-probe
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-startup-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ startupProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_startup_probe.yaml
+```
+
+
+
+example-disallowed-lifecycle-poststart
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-lifecycle-poststart-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ lifecycle:
+ postStart:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_poststart.yaml
+```
+
+
+
+example-disallowed-lifecycle-prestop
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-lifecycle-prestop-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ lifecycle:
+ preStop:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_lifecycle_prestop.yaml
+```
+
+
+
+example-disallowed-tcp-probe
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-tcp-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ livenessProbe:
+ tcpSocket:
+ port: 80
+ host: 127.0.0.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/example_disallowed_tcp_probe.yaml
+```
+
+
+
+disallowed-init-probe
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-init-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ initContainers:
+ - name: init
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_probe.yaml
+```
+
+
+
+disallowed-ephemeral-probe
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-ephemeral-probe-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ ephemeralContainers:
+ - name: debug
+ image: nginx
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_probe.yaml
+```
+
+
+
+disallowed-init-lifecycle
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-init-lifecycle-host-disallowed
+ labels:
+ app: nginx
+spec:
+ initContainers:
+ - name: init
+ image: nginx
+ lifecycle:
+ postStart:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_init_lifecycle.yaml
+```
+
+
+
+disallowed-ephemeral-lifecycle
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-ephemeral-lifecycle-host-disallowed
+ labels:
+ app: nginx
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ ephemeralContainers:
+ - name: debug
+ image: nginx
+ lifecycle:
+ postStart:
+ httpGet:
+ path: /
+ port: 80
+ host: 127.0.0.1
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-probes-lifecycle/samples/psp-host-probes-lifecycle/disallowed_ephemeral_lifecycle.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-process.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-process.md
new file mode 100644
index 0000000000000000000000000000000000000000..95a153b2b7a03d28d0a6604e4927a653eb25fae7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/host-process.md
@@ -0,0 +1,344 @@
+---
+id: host-process
+title: Host Process
+---
+
+# Host Process
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Disallows HostProcess containers for Windows pods. HostProcess containers enable privileged access on Windows nodes and must be disallowed in Baseline and Restricted policies. Corresponds to the windowsOptions.hostProcess field in a Pod's securityContext or container securityContext. For more information, see https://kubernetes.io/docs/concepts/security/pod-security-standards/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spsphostprocess
+ annotations:
+ metadata.gatekeeper.sh/title: "Host Process"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Disallows HostProcess containers for Windows pods.
+ HostProcess containers enable privileged access on Windows nodes
+ and must be disallowed in Baseline and Restricted policies.
+ Corresponds to the windowsOptions.hostProcess field in a Pod's
+ securityContext or container securityContext.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPHostProcess
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Disallows HostProcess containers for Windows pods.
+ HostProcess containers enable privileged access on Windows nodes
+ and must be disallowed in Baseline and Restricted policies.
+ Corresponds to the windowsOptions.hostProcess field in a Pod's
+ securityContext or container securityContext.
+ For more information, see
+ https://kubernetes.io/docs/concepts/security/pod-security-standards/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: podHostProcess
+ expression: |
+ has(variables.anyObject.spec.securityContext) &&
+ has(variables.anyObject.spec.securityContext.windowsOptions) &&
+ has(variables.anyObject.spec.securityContext.windowsOptions.hostProcess) &&
+ variables.anyObject.spec.securityContext.windowsOptions.hostProcess
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ has(container.securityContext) &&
+ has(container.securityContext.windowsOptions) &&
+ has(container.securityContext.windowsOptions.hostProcess) &&
+ container.securityContext.windowsOptions.hostProcess
+ ).map(container, "HostProcess container is not allowed: " + container.name + ", securityContext.windowsOptions.hostProcess: true")
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ validations:
+ - expression: 'variables.isUpdate || !variables.podHostProcess'
+ messageExpression: '"HostProcess is not allowed at pod level: " + variables.anyObject.metadata.name'
+ - expression: variables.isUpdate || size(variables.badContainers) == 0
+ messageExpression: 'variables.badContainers.join(", ")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spsphostprocess
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.windowsOptions.hostProcess field is immutable.
+ not is_update(input.review)
+
+ # Check pod-level securityContext
+ input.review.object.spec.securityContext.windowsOptions.hostProcess == true
+ msg := sprintf("HostProcess is not allowed at pod level: %v", [input.review.object.metadata.name])
+ }
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.windowsOptions.hostProcess field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ c.securityContext.windowsOptions.hostProcess == true
+ msg := sprintf("HostProcess container is not allowed: %v, securityContext.windowsOptions.hostProcess: true", [c.name])
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-process/template.yaml
+```
+## Examples
+
+host-process-disallowed
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPHostProcess
+metadata:
+ name: psp-host-process
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-process/samples/psp-host-process/constraint.yaml
+```
+
+
+
+
+example-disallowed-pod-level
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+spec:
+ securityContext:
+ windowsOptions:
+ hostProcess: true
+ hostNetwork: true
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_pod_level.yaml
+```
+
+
+
+example-disallowed-container-level
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ windowsOptions:
+ hostProcess: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-process/samples/psp-host-process/example_disallowed_container_level.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-allowed
+ labels:
+ app: nginx-host-process
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-process/samples/psp-host-process/example_allowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ windowsOptions:
+ hostProcess: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-process/samples/psp-host-process/disallowed_ephemeral.yaml
+```
+
+
+
+disallowed-init
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-host-process-disallowed
+ labels:
+ app: nginx-host-process
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ initContainers:
+ - name: nginx-init
+ image: nginx
+ securityContext:
+ windowsOptions:
+ hostProcess: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/host-process/samples/psp-host-process/disallowed_init.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/httpsonly.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/httpsonly.md
new file mode 100644
index 0000000000000000000000000000000000000000..a0cc24309b6d24bc077fb8cd7d1f2a8b3965caeb
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/httpsonly.md
@@ -0,0 +1,278 @@
+---
+id: httpsonly
+title: HTTPS Only
+---
+
+# HTTPS Only
+
+## Description
+Requires Ingress resources to be HTTPS only. Ingress resources must include the `kubernetes.io/ingress.allow-http` annotation, set to `false`. By default a valid TLS {} configuration is required, this can be made optional by setting the `tlsOptional` parameter to `true`.
+https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8shttpsonly
+ annotations:
+ metadata.gatekeeper.sh/title: "HTTPS Only"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires Ingress resources to be HTTPS only. Ingress resources must
+ include the `kubernetes.io/ingress.allow-http` annotation, set to `false`.
+ By default a valid TLS {} configuration is required, this can be made
+ optional by setting the `tlsOptional` parameter to `true`.
+
+ https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sHttpsOnly
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires Ingress resources to be HTTPS only. Ingress resources must
+ include the `kubernetes.io/ingress.allow-http` annotation, set to
+ `false`. By default a valid TLS {} configuration is required, this
+ can be made optional by setting the `tlsOptional` parameter to
+ `true`.
+ properties:
+ tlsOptional:
+ type: boolean
+ description: "When set to `true` the TLS {} is optional, defaults
+ to false."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8shttpsonly
+
+ violation[{"msg": msg}] {
+ input.review.object.kind == "Ingress"
+ regex.match("^(extensions|networking.k8s.io)/", input.review.object.apiVersion)
+ ingress := input.review.object
+ not https_complete(ingress)
+ not tls_is_optional
+ msg := sprintf("Ingress should be https. tls configuration and allow-http=false annotation are required for %v", [ingress.metadata.name])
+ }
+
+ violation[{"msg": msg}] {
+ input.review.object.kind == "Ingress"
+ regex.match("^(extensions|networking.k8s.io)/", input.review.object.apiVersion)
+ ingress := input.review.object
+ not annotation_complete(ingress)
+ tls_is_optional
+ msg := sprintf("Ingress should be https. The allow-http=false annotation is required for %v", [ingress.metadata.name])
+ }
+
+ https_complete(ingress) = true {
+ ingress.spec["tls"]
+ count(ingress.spec.tls) > 0
+ ingress.metadata.annotations["kubernetes.io/ingress.allow-http"] == "false"
+ }
+
+ annotation_complete(ingress) = true {
+ ingress.metadata.annotations["kubernetes.io/ingress.allow-http"] == "false"
+ }
+
+ tls_is_optional {
+ parameters := object.get(input, "parameters", {})
+ object.get(parameters, "tlsOptional", false) == true
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/httpsonly/template.yaml
+```
+## Examples
+
+tls-required
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sHttpsOnly
+metadata:
+ name: ingress-https-only
+spec:
+ match:
+ kinds:
+ - apiGroups: ["extensions", "networking.k8s.io"]
+ kinds: ["Ingress"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/httpsonly/samples/ingress-https-only/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: ingress-demo-allowed
+ annotations:
+ kubernetes.io/ingress.allow-http: "false"
+spec:
+ tls: [{}]
+ rules:
+ - host: example-host.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/httpsonly/samples/ingress-https-only/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: ingress-demo-disallowed
+spec:
+ rules:
+ - host: example-host.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/httpsonly/samples/ingress-https-only/example_disallowed.yaml
+```
+
+
+
+
+
+tls-optional
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sHttpsOnly
+metadata:
+ name: ingress-https-only-tls-optional
+spec:
+ match:
+ kinds:
+ - apiGroups: ["extensions", "networking.k8s.io"]
+ kinds: ["Ingress"]
+ parameters:
+ tlsOptional: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/httpsonly/samples/ingress-https-only-tls-optional/constraint.yaml
+```
+
+
+
+
+example-allowed-tls-optional
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: ingress-demo-allowed-tls-optional
+ annotations:
+ kubernetes.io/ingress.allow-http: "false"
+spec:
+ rules:
+ - host: example-host.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/httpsonly/samples/ingress-https-only-tls-optional/example_allowed.yaml
+```
+
+
+
+example-disallowed-tls-optional
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: ingress-demo-disallowed-tls-optional
+spec:
+ rules:
+ - host: example-host.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/httpsonly/samples/ingress-https-only-tls-optional/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/imagedigests.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/imagedigests.md
new file mode 100644
index 0000000000000000000000000000000000000000..d75e432a1888485cf6280c2fc1f4bd9f75af4e6b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/imagedigests.md
@@ -0,0 +1,234 @@
+---
+id: imagedigests
+title: Image Digests
+---
+
+# Image Digests
+
+## Description
+Requires container images to contain a digest.
+https://kubernetes.io/docs/concepts/containers/images/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8simagedigests
+ annotations:
+ metadata.gatekeeper.sh/title: "Image Digests"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Requires container images to contain a digest.
+
+ https://kubernetes.io/docs/concepts/containers/images/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sImageDigests
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires container images to contain a digest.
+
+ https://kubernetes.io/docs/concepts/containers/images/
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8simagedigests
+
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.containers[_]
+ not is_exempt(container)
+ not regex.match("@[a-z0-9]+([+._-][a-z0-9]+)*:[a-zA-Z0-9=_-]+", container.image)
+ msg := sprintf("container <%v> uses an image without a digest <%v>", [container.name, container.image])
+ }
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.initContainers[_]
+ not is_exempt(container)
+ not regex.match("@[a-z0-9]+([+._-][a-z0-9]+)*:[a-zA-Z0-9=_-]+", container.image)
+ msg := sprintf("initContainer <%v> uses an image without a digest <%v>", [container.name, container.image])
+ }
+
+ violation[{"msg": msg}] {
+ container := input.review.object.spec.ephemeralContainers[_]
+ not is_exempt(container)
+ not regex.match("@[a-z0-9]+([+._-][a-z0-9]+)*:[a-zA-Z0-9=_-]+", container.image)
+ msg := sprintf("ephemeralContainer <%v> uses an image without a digest <%v>", [container.name, container.image])
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/imagedigests/template.yaml
+```
+## Examples
+
+container-image-must-have-digest
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sImageDigests
+metadata:
+ name: container-image-must-have-digest
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ namespaces:
+ - "default"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/imagedigests/samples/container-image-must-have-digest/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-allowed
+spec:
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2@sha256:04ff8fce2afd1a3bc26260348e5b290e8d945b1fad4b4c16d22834c2f3a1814a
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/imagedigests/samples/container-image-must-have-digest/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+spec:
+ initContainers:
+ - name: opainit
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/imagedigests/samples/container-image-must-have-digest/example_disallowed.yaml
+```
+
+
+
+disallowed-all
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: opa-disallowed
+spec:
+ initContainers:
+ - name: opainit
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ containers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+ ephemeralContainers:
+ - name: opa
+ image: openpolicyagent/opa:0.9.2
+ args:
+ - "run"
+ - "--server"
+ - "--addr=localhost:8080"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/imagedigests/samples/container-image-must-have-digest/disallowed_all.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/noupdateserviceaccount.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/noupdateserviceaccount.md
new file mode 100644
index 0000000000000000000000000000000000000000..54b124d1c4da40dba5a7f7439d4c1b28f626be17
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/noupdateserviceaccount.md
@@ -0,0 +1,225 @@
+---
+id: noupdateserviceaccount
+title: Block updating Service Account
+---
+
+# Block updating Service Account
+
+## Description
+Blocks updating the service account on resources that abstract over Pods. This policy is ignored in audit mode.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: noupdateserviceaccount
+ annotations:
+ metadata.gatekeeper.sh/title: "Block updating Service Account"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: "Blocks updating the service account on resources that abstract over Pods. This policy is ignored in audit mode."
+spec:
+ crd:
+ spec:
+ names:
+ kind: NoUpdateServiceAccount
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ allowedGroups:
+ description: Groups that should be allowed to bypass the policy.
+ type: array
+ items:
+ type: string
+ allowedUsers:
+ description: Users that should be allowed to bypass the policy.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package noupdateserviceaccount
+
+ privileged(userInfo, allowedUsers, _) {
+ # Allow if the user is in allowedUsers.
+ # Use object.get so omitted parameters can't cause policy bypass by
+ # evaluating to undefined.
+ username := object.get(userInfo, "username", "")
+ allowedUsers[_] == username
+ }
+
+ privileged(userInfo, _, allowedGroups) {
+ # Allow if the user's groups intersect allowedGroups.
+ # Use object.get so omitted parameters can't cause policy bypass by
+ # evaluating to undefined.
+ userGroups := object.get(userInfo, "groups", [])
+ groups := {g | g := userGroups[_]}
+ allowed := {g | g := allowedGroups[_]}
+ intersection := groups & allowed
+ count(intersection) > 0
+ }
+
+ get_service_account(obj) = spec {
+ obj.kind == "Pod"
+ spec := obj.spec.serviceAccountName
+ } {
+ obj.kind == "ReplicationController"
+ spec := obj.spec.template.spec.serviceAccountName
+ } {
+ obj.kind == "ReplicaSet"
+ spec := obj.spec.template.spec.serviceAccountName
+ } {
+ obj.kind == "Deployment"
+ spec := obj.spec.template.spec.serviceAccountName
+ } {
+ obj.kind == "StatefulSet"
+ spec := obj.spec.template.spec.serviceAccountName
+ } {
+ obj.kind == "DaemonSet"
+ spec := obj.spec.template.spec.serviceAccountName
+ } {
+ obj.kind == "Job"
+ spec := obj.spec.template.spec.serviceAccountName
+ } {
+ obj.kind == "CronJob"
+ spec := obj.spec.jobTemplate.spec.template.spec.serviceAccountName
+ }
+
+ violation[{"msg": msg}] {
+ # This policy only applies to updates of existing resources.
+ input.review.operation == "UPDATE"
+
+ # Use object.get so omitted parameters can't cause policy bypass by
+ # evaluating to undefined.
+ params := object.get(input, "parameters", {})
+ allowedUsers := object.get(params, "allowedUsers", [])
+ allowedGroups := object.get(params, "allowedGroups", [])
+
+ # Extract the service account.
+ oldKSA := get_service_account(input.review.oldObject)
+ newKSA := get_service_account(input.review.object)
+
+ # Deny unprivileged users and groups from changing serviceAccountName.
+ not privileged(input.review.userInfo, allowedUsers, allowedGroups)
+ oldKSA != newKSA
+ msg := "user does not have permission to modify serviceAccountName"
+ } {
+ # Defensively require object to have a serviceAccountName.
+ input.review.operation == "UPDATE"
+ not get_service_account(input.review.object)
+ msg := "missing serviceAccountName field in object under review"
+ } {
+ # Defensively require oldObject to have a serviceAccountName.
+ input.review.operation == "UPDATE"
+ not get_service_account(input.review.oldObject)
+ msg := "missing serviceAccountName field in oldObject under review"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/noupdateserviceaccount/template.yaml
+```
+## Examples
+
+noupdateserviceaccount
+
+
+constraint
+
+```yaml
+# IMPORTANT: Before deploying this policy, make sure you allow-list any groups
+# or users that need to deploy workloads to kube-system, such as cluster-
+# lifecycle controllers, addon managers, etc. Such controllers may need to
+# update service account names during automated rollouts (e.g. of refactored
+# configurations). You can allow-list them with the allowedGroups and
+# allowedUsers properties of the NoUpdateServiceAccount Constraint.
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: NoUpdateServiceAccount
+metadata:
+ name: no-update-kube-system-service-account
+spec:
+ match:
+ namespaces: ["kube-system"]
+ kinds:
+ - apiGroups: [""]
+ kinds:
+ # You can optionally add "Pod" here, but it is unnecessary because
+ # Pod service account immutability is enforced by the Kubernetes API.
+ - "ReplicationController"
+ - apiGroups: ["apps"]
+ kinds:
+ - "ReplicaSet"
+ - "Deployment"
+ - "StatefulSet"
+ - "DaemonSet"
+ - apiGroups: ["batch"]
+ kinds:
+ # You can optionally add "Job" here, but it is unnecessary because
+ # Job service account immutability is enforced by the Kubernetes API.
+ - "CronJob"
+ parameters:
+ allowedGroups: []
+ allowedUsers: []
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/noupdateserviceaccount/samples/noupdateserviceaccount/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+# Note: The gator tests currently require exactly one object per example file.
+# Since this is an update-triggered policy, at least two objects are technically
+# required to demonstrate it. Due to the gator requirement, we only have one
+# object below. The policy should allow changing everything but the
+# serviceAccountName field.
+kind: Deployment
+apiVersion: apps/v1
+metadata:
+ name: policy-test
+ namespace: kube-system
+ labels:
+ app: policy-test
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: policy-test-deploy
+ template:
+ metadata:
+ labels:
+ app: policy-test-deploy
+ spec:
+ # Changing anything except this field should be allowed by the policy.
+ serviceAccountName: policy-test-sa-1
+ containers:
+ - name: policy-test
+ image: ubuntu
+ command:
+ - /bin/bash
+ - -c
+ - sleep 99999
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/noupdateserviceaccount/samples/noupdateserviceaccount/example_allowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/poddisruptionbudget.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/poddisruptionbudget.md
new file mode 100644
index 0000000000000000000000000000000000000000..77f75ea70e292eb24f006c3bfa47ab8111f04a1b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/poddisruptionbudget.md
@@ -0,0 +1,383 @@
+---
+id: poddisruptionbudget
+title: Pod Disruption Budget
+---
+
+# Pod Disruption Budget
+
+## Description
+Disallow the following scenarios when deploying PodDisruptionBudgets or resources that implement the replica subresource (e.g. Deployment, ReplicationController, ReplicaSet, StatefulSet): 1. Deployment of PodDisruptionBudgets with .spec.maxUnavailable == 0 2. Deployment of PodDisruptionBudgets with .spec.minAvailable == .spec.replicas of the resource with replica subresource This will prevent PodDisruptionBudgets from blocking voluntary disruptions such as node draining.
+https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spoddisruptionbudget
+ annotations:
+ metadata.gatekeeper.sh/title: "Pod Disruption Budget"
+ metadata.gatekeeper.sh/version: 1.0.4
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups":["policy"],
+ "versions": ["v1"],
+ "kinds": ["PodDisruptionBudget"]
+ }
+ ]
+ ]"
+ description: >-
+ Disallow the following scenarios when deploying PodDisruptionBudgets or resources that implement the replica subresource (e.g. Deployment, ReplicationController, ReplicaSet, StatefulSet):
+ 1. Deployment of PodDisruptionBudgets with .spec.maxUnavailable == 0
+ 2. Deployment of PodDisruptionBudgets with .spec.minAvailable == .spec.replicas of the resource with replica subresource
+ This will prevent PodDisruptionBudgets from blocking voluntary disruptions such as node draining.
+
+ https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPodDisruptionBudget
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spoddisruptionbudget
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "PodDisruptionBudget"
+ pdb := input.review.object
+
+ not valid_pdb_max_unavailable(pdb)
+ msg := sprintf(
+ "PodDisruptionBudget <%v> has maxUnavailable of 0, only positive integers are allowed for maxUnavailable",
+ [pdb.metadata.name],
+ )
+ }
+
+ violation[{"msg": msg}] {
+ obj := input.review.object
+ pdb := data.inventory.namespace[obj.metadata.namespace]["policy/v1"].PodDisruptionBudget[_]
+
+ matchLabels := { [label, value] | some label; value := pdb.spec.selector.matchLabels[label] }
+ labels := { [label, value] | some label; value := obj.spec.selector.matchLabels[label] }
+ count(matchLabels - labels) == 0
+
+ not valid_pdb_max_unavailable(pdb)
+ msg := sprintf(
+ "%v <%v> has been selected by PodDisruptionBudget <%v> but has maxUnavailable of 0, only positive integers are allowed for maxUnavailable",
+ [obj.kind, obj.metadata.name, pdb.metadata.name],
+ )
+ }
+
+ violation[{"msg": msg}] {
+ obj := input.review.object
+ pdb := data.inventory.namespace[obj.metadata.namespace]["policy/v1"].PodDisruptionBudget[_]
+
+ matchLabels := { [label, value] | some label; value := pdb.spec.selector.matchLabels[label] }
+ labels := { [label, value] | some label; value := obj.spec.selector.matchLabels[label] }
+ count(matchLabels - labels) == 0
+
+ not valid_pdb_min_available(obj, pdb)
+ msg := sprintf(
+ "%v <%v> has %v replica(s) but PodDisruptionBudget <%v> has minAvailable of %v, PodDisruptionBudget count should always be lower than replica(s), and not used when replica(s) is set to 1",
+ [obj.kind, obj.metadata.name, obj.spec.replicas, pdb.metadata.name, pdb.spec.minAvailable],
+ )
+ }
+
+ valid_pdb_min_available(obj, pdb) {
+ # default to -1 if minAvailable is not set so valid_pdb_min_available is always true
+ # for objects with >= 0 replicas. If minAvailable defaults to >= 0, objects with
+ # replicas field might violate this constraint if they are equal to the default set here
+ min_available := object.get(pdb.spec, "minAvailable", -1)
+ obj.spec.replicas > min_available
+ }
+
+ valid_pdb_max_unavailable(pdb) {
+ # default to 1 if maxUnavailable is not set so valid_pdb_max_unavailable always returns true.
+ # If maxUnavailable defaults to 0, it violates this constraint because all pods needs to be
+ # available and no pods can be evicted voluntarily
+ max_unavailable := object.get(pdb.spec, "maxUnavailable", 1)
+ max_unavailable > 0
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/template.yaml
+```
+## Examples
+
+pod-disruption-budget
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPodDisruptionBudget
+metadata:
+ name: pod-distruption-budget
+spec:
+ match:
+ kinds:
+ - apiGroups: ["apps"]
+ kinds: ["Deployment", "StatefulSet"]
+ - apiGroups: ["policy"]
+ kinds: ["PodDisruptionBudget"]
+ - apiGroups: [""]
+ kinds: ["ReplicationController"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/samples/poddisruptionbudget/constraint.yaml
+```
+
+
+
+
+example-allowed-pdb
+
+```yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: nginx-pdb-allowed
+ namespace: default
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ foo: bar
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_pdb.yaml
+```
+
+
+
+example-disallowed-pdb
+
+```yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: nginx-pdb-disallowed
+ namespace: default
+spec:
+ maxUnavailable: 0
+ selector:
+ matchLabels:
+ foo: bar
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/samples/poddisruptionbudget/example_disallowed_pdb.yaml
+```
+
+
+
+example-allowed-min-available
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: nginx-deployment-allowed-1
+ namespace: default
+ labels:
+ app: nginx
+spec:
+ replicas: 3
+ selector:
+ matchLabels:
+ app: nginx
+ example: allowed-deployment-1
+ template:
+ metadata:
+ labels:
+ app: nginx
+ example: allowed-deployment-1
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_deployment1.yaml
+```
+
+
+
+example-allowed-max-unavailable
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: nginx-deployment-allowed-2
+ namespace: default
+ labels:
+ app: nginx
+spec:
+ replicas: 3
+ selector:
+ matchLabels:
+ app: nginx
+ example: allowed-deployment-2
+ template:
+ metadata:
+ labels:
+ app: nginx
+ example: allowed-deployment-2
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_deployment2.yaml
+```
+
+
+
+example-allowed-subset-selector
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: nginx-deployment-allowed-3
+ namespace: default
+ labels:
+ app: nginx
+spec:
+ replicas: 3
+ selector:
+ matchLabels:
+ app: nginx
+ example: allowed-deployment-3
+ template:
+ metadata:
+ labels:
+ app: nginx
+ example: allowed-deployment-3
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_deployment3.yaml
+```
+
+
+
+example-allowed-nomatch-selector
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: nginx-deployment-allowed-4
+ namespace: default
+ labels:
+ app: non-matching-nginx
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: non-matching-nginx
+ example: allowed-deployment-4
+ template:
+ metadata:
+ labels:
+ app: non-matching-nginx
+ example: allowed-deployment-4
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/samples/poddisruptionbudget/example_allowed_deployment4.yaml
+```
+
+
+
+example-disallowed-min-available
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: nginx-deployment-disallowed
+ namespace: default
+ labels:
+ app: nginx
+spec:
+ replicas: 3
+ selector:
+ matchLabels:
+ app: nginx
+ example: disallowed-deployment
+ template:
+ metadata:
+ labels:
+ app: nginx
+ example: disallowed-deployment
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/poddisruptionbudget/samples/poddisruptionbudget/example_disallowed_deployment.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/privileged-containers.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/privileged-containers.md
new file mode 100644
index 0000000000000000000000000000000000000000..3147385c47d2bc62b6e9d91bc17591b9b8b2e1e4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/privileged-containers.md
@@ -0,0 +1,295 @@
+---
+id: privileged-containers
+title: Privileged Container
+---
+
+# Privileged Container
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Controls the ability of any container to enable privileged mode. Corresponds to the `privileged` field in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspprivilegedcontainer
+ annotations:
+ metadata.gatekeeper.sh/title: "Privileged Container"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the ability of any container to enable privileged mode.
+ Corresponds to the `privileged` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPPrivilegedContainer
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the ability of any container to enable privileged mode.
+ Corresponds to the `privileged` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))
+ ).map(container, container.image)
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ (has(container.securityContext) && has(container.securityContext.privileged) && container.securityContext.privileged)
+ ).map(container, "Privileged container is not allowed: " + container.name +", securityContext.privileged: true")
+ - name: isUpdate
+ expression: has(request.operation) && request.operation == "UPDATE"
+ validations:
+ - expression: variables.isUpdate || size(variables.badContainers) == 0
+ messageExpression: 'variables.badContainers.join(", ")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspprivileged
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.privileged field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ c.securityContext.privileged
+ msg := sprintf("Privileged container is not allowed: %v, securityContext: %v", [c.name, c.securityContext])
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/privileged-containers/template.yaml
+```
+## Examples
+
+privileged-containers-disallowed
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPPrivilegedContainer
+metadata:
+ name: psp-privileged-container
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ excludedNamespaces: ["kube-system"]
+ parameters:
+ exemptImages:
+ - "safeimages.com/*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privileged-disallowed
+ labels:
+ app: nginx-privileged
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ privileged: true
+ initContainers:
+ - name: nginx-init
+ image: nginx
+ securityContext:
+ privileged: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privileged-allowed
+ labels:
+ app: nginx-privileged
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ privileged: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privileged-disallowed
+ labels:
+ app: nginx-privileged
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ privileged: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/disallowed_ephemeral.yaml
+```
+
+
+
+exempted-image
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-privileged-allowed-exempt
+ labels:
+ app: nginx-privileged
+spec:
+ containers:
+ - name: nginx
+ image: safeimages.com/nginx
+ securityContext:
+ privileged: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/privileged-containers/samples/psp-privileged-container/example_allowed_exempt.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/proc-mount.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/proc-mount.md
new file mode 100644
index 0000000000000000000000000000000000000000..33e8a761b4c7e243e3f0d0e623df0a8737002019
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/proc-mount.md
@@ -0,0 +1,382 @@
+---
+id: proc-mount
+title: Proc Mount
+---
+
+# Proc Mount
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Controls the allowed `procMount` types for the container. Corresponds to the `allowedProcMountTypes` field in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#allowedprocmounttypes
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspprocmount
+ annotations:
+ metadata.gatekeeper.sh/title: "Proc Mount"
+ metadata.gatekeeper.sh/version: 1.1.3
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the allowed `procMount` types for the container. Corresponds to
+ the `allowedProcMountTypes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#allowedprocmounttypes
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPProcMount
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the allowed `procMount` types for the container. Corresponds to
+ the `allowedProcMountTypes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#allowedprocmounttypes
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ procMount:
+ type: string
+ description: >-
+ Defines the strategy for the security exposure of certain paths
+ in `/proc` by the container runtime. Setting to `Default` uses
+ the runtime defaults, where `Unmasked` bypasses the default
+ behavior.
+ enum:
+ - Default
+ - Unmasked
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(
+ container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(
+ exemption,
+ string(container.image).startsWith(exemption)
+ )
+ ).map(container, container.image)
+ - name: allowedProcMount
+ expression: |
+ !has(variables.params) ? "default" :
+ !has(variables.params.procMount) ? "default" :
+ (variables.params.procMount.lowerAscii() == "default" || variables.params.procMount.lowerAscii() == "unmasked") ? variables.params.procMount.lowerAscii() : "default"
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ !(
+ (variables.allowedProcMount == "unmasked") ||
+ (variables.allowedProcMount == "default" && (!has(container.securityContext) || !has(container.securityContext.procMount) || container.securityContext.procMount == null || container.securityContext.procMount.lowerAscii() == "default"))
+ )
+ ).map(container, "ProcMount type is not allowed, container: " + container.name +". Allowed procMount types: " + variables.allowedProcMount)
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badContainers) == 0'
+ messageExpression: 'variables.badContainers.join("\n")'
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspprocmount
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.procMount field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ allowedProcMount := get_allowed_proc_mount(input)
+ not input_proc_mount_type_allowed(allowedProcMount, c)
+ msg := sprintf("ProcMount type is not allowed, container: %v. Allowed procMount types: %v", [c.name, allowedProcMount])
+ }
+
+ input_proc_mount_type_allowed(allowedProcMount, c) {
+ allowedProcMount == "default"
+ lower(c.securityContext.procMount) == "default"
+ }
+ input_proc_mount_type_allowed(allowedProcMount, _) {
+ allowedProcMount == "unmasked"
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ c.securityContext.procMount != null
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ c.securityContext.procMount != null
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ c.securityContext.procMount != null
+ }
+
+ get_allowed_proc_mount(arg) = out {
+ not arg.parameters
+ out = "default"
+ }
+ get_allowed_proc_mount(arg) = out {
+ not arg.parameters.procMount
+ out = "default"
+ }
+ get_allowed_proc_mount(arg) = out {
+ arg.parameters.procMount
+ not valid_proc_mount(arg.parameters.procMount)
+ out = "default"
+ }
+ get_allowed_proc_mount(arg) = out {
+ valid_proc_mount(arg.parameters.procMount)
+ out = lower(arg.parameters.procMount)
+ }
+
+ valid_proc_mount(str) {
+ lower(str) == "default"
+ }
+ valid_proc_mount(str) {
+ lower(str) == "unmasked"
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/proc-mount/template.yaml
+```
+## Examples
+
+default-proc-mount-required
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPProcMount
+metadata:
+ name: psp-proc-mount
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ procMount: Default
+ exemptImages:
+ - "safeimages.com/*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/proc-mount/samples/psp-proc-mount/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-disallowed
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ procMount: Unmasked #Default
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-allowed
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ procMount: Default
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed.yaml
+```
+
+
+
+example-allowed-missing
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-disallowed
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ containers:
+ - name: no-proc-mount-value
+ image: nginx
+ securityContext:
+ procMount: null
+ - name: no-proc-mount
+ image: nginx
+ securityContext: {}
+ - name: no-context
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_missing.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-disallowed
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ procMount: Unmasked #Default
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/proc-mount/samples/psp-proc-mount/disallowed_ephemeral.yaml
+```
+
+
+
+image-exempt-prefix-match
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-proc-mount-exempt-image
+ labels:
+ app: nginx-proc-mount
+spec:
+ hostUsers: false
+ containers:
+ - name: nginx
+ image: safeimages.com/nginx
+ securityContext:
+ procMount: Unmasked #Default
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/proc-mount/samples/psp-proc-mount/example_allowed_exempt_image.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/read-only-root-filesystem.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/read-only-root-filesystem.md
new file mode 100644
index 0000000000000000000000000000000000000000..4a841832f6db59c134d99af93e44603954d72c71
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/read-only-root-filesystem.md
@@ -0,0 +1,439 @@
+---
+id: read-only-root-filesystem
+title: Read Only Root Filesystem
+---
+
+# Read Only Root Filesystem
+
+## Description
+Requires the use of a read-only root file system by pod containers. Corresponds to the `readOnlyRootFilesystem` field in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspreadonlyrootfilesystem
+ annotations:
+ metadata.gatekeeper.sh/title: "Read Only Root Filesystem"
+ metadata.gatekeeper.sh/version: 1.1.1
+ description: >-
+ Requires the use of a read-only root file system by pod containers.
+ Corresponds to the `readOnlyRootFilesystem` field in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPReadOnlyRootFilesystem
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires the use of a read-only root file system by pod containers.
+ Corresponds to the `readOnlyRootFilesystem` field in a
+ PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+ - name: badContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !(container.image in variables.exemptImages) &&
+ (!has(container.securityContext) ||
+ !has(container.securityContext.readOnlyRootFilesystem) ||
+ container.securityContext.readOnlyRootFilesystem != true)
+ ).map(container, container.name)
+ validations:
+ - expression: '(has(request.operation) && request.operation == "UPDATE") || size(variables.badContainers) == 0'
+ messageExpression: '"only read-only root filesystem container is allowed: " + variables.badContainers.join(", ")'
+
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspreadonlyrootfilesystem
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.readOnlyRootFilesystem field is immutable.
+ not is_update(input.review)
+
+ c := input_containers[_]
+ not is_exempt(c)
+ input_read_only_root_fs(c)
+ msg := sprintf("only read-only root filesystem container is allowed: %v", [c.name])
+ }
+
+ input_read_only_root_fs(c) {
+ not has_field(c, "securityContext")
+ }
+ input_read_only_root_fs(c) {
+ not c.securityContext.readOnlyRootFilesystem == true
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/template.yaml
+```
+## Examples
+
+require-read-only-root-filesystem
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPReadOnlyRootFilesystem
+metadata:
+ name: psp-readonlyrootfilesystem
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - "specialprogram"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-disallowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ readOnlyRootFilesystem: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-allowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ readOnlyRootFilesystem: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-disallowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ readOnlyRootFilesystem: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/disallowed_ephemeral.yaml
+```
+
+
+
+exact-exemption
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-disallowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: specialprogram
+ image: specialprogram
+ securityContext:
+ readOnlyRootFilesystem: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_allowed_exempted.yaml
+```
+
+
+
+
+
+full-wildcard
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPReadOnlyRootFilesystem
+metadata:
+ name: psp-readonlyrootfilesystem
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - "*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/full_wildcard/constraint.yaml
+```
+
+
+
+
+allow-normally-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-disallowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ readOnlyRootFilesystem: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/psp-readonlyrootfilesystem/example_disallowed.yaml
+```
+
+
+
+
+
+wildcard-prefix
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPReadOnlyRootFilesystem
+metadata:
+ name: psp-readonlyrootfilesystem
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - "safe-images.com/*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/constraint.yaml
+```
+
+
+
+
+image-with-exempt-prefix-readOnlyRootFilesystem-not-required
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-allowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: "safe-images.com/nginx"
+ securityContext:
+ readOnlyRootFilesystem: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_allowed_safe_prefix.yaml
+```
+
+
+
+image-with-different-prefix-must-set-readOnlyRootFilesystem
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-readonlyrootfilesystem-allowed
+ labels:
+ app: nginx-readonlyrootfilesystem
+spec:
+ containers:
+ - name: nginx
+ image: "unsafe-images.com/nginx"
+ securityContext:
+ readOnlyRootFilesystem: false
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/read-only-root-filesystem/samples/wildcard-prefix/example_disallowed_unsafe_prefix.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/replicalimits.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/replicalimits.md
new file mode 100644
index 0000000000000000000000000000000000000000..0126e956cc313ca3f91edd9c76fd9621879a940b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/replicalimits.md
@@ -0,0 +1,178 @@
+---
+id: replicalimits
+title: Replica Limits
+---
+
+# Replica Limits
+
+## Description
+Requires that objects with the field `spec.replicas` (Deployments, ReplicaSets, etc.) specify a number of replicas within defined ranges.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sreplicalimits
+ annotations:
+ metadata.gatekeeper.sh/title: "Replica Limits"
+ metadata.gatekeeper.sh/version: 1.0.2
+ description: >-
+ Requires that objects with the field `spec.replicas` (Deployments,
+ ReplicaSets, etc.) specify a number of replicas within defined ranges.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sReplicaLimits
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ properties:
+ ranges:
+ type: array
+ description: Allowed ranges for numbers of replicas. Values are inclusive.
+ items:
+ type: object
+ description: A range of allowed replicas. Values are inclusive.
+ properties:
+ min_replicas:
+ description: The minimum number of replicas allowed, inclusive.
+ type: integer
+ max_replicas:
+ description: The maximum number of replicas allowed, inclusive.
+ type: integer
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sreplicalimits
+
+ object_name = input.review.object.metadata.name
+ object_kind = input.review.kind.kind
+
+ violation[{"msg": msg}] {
+ spec := input.review.object.spec
+ not input_replica_limit(spec)
+ msg := sprintf("The provided number of replicas is not allowed for %v: %v. Allowed ranges: %v", [object_kind, object_name, input.parameters])
+ }
+
+ input_replica_limit(spec) {
+ provided := spec.replicas
+ count(input.parameters.ranges) > 0
+ range := input.parameters.ranges[_]
+ value_within_range(range, provided)
+ }
+
+ value_within_range(range, value) {
+ range.min_replicas <= value
+ range.max_replicas >= value
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/replicalimits/template.yaml
+```
+## Examples
+
+replica-limit
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sReplicaLimits
+metadata:
+ name: replica-limits
+spec:
+ match:
+ kinds:
+ - apiGroups: ["apps"]
+ kinds: ["Deployment"]
+ parameters:
+ ranges:
+ - min_replicas: 3
+ max_replicas: 50
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/replicalimits/samples/replicalimits/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: allowed-deployment
+spec:
+ selector:
+ matchLabels:
+ app: nginx
+ replicas: 3
+ template:
+ metadata:
+ labels:
+ app: nginx
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/replicalimits/samples/replicalimits/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: disallowed-deployment
+spec:
+ selector:
+ matchLabels:
+ app: nginx
+ replicas: 100
+ template:
+ metadata:
+ labels:
+ app: nginx
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/replicalimits/samples/replicalimits/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredannotations.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredannotations.md
new file mode 100644
index 0000000000000000000000000000000000000000..db9c7116980833be6f342052aa159286188056ae
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredannotations.md
@@ -0,0 +1,171 @@
+---
+id: requiredannotations
+title: Required Annotations
+---
+
+# Required Annotations
+
+## Description
+Requires resources to contain specified annotations, with values matching provided regular expressions.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8srequiredannotations
+ annotations:
+ metadata.gatekeeper.sh/title: "Required Annotations"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: >-
+ Requires resources to contain specified annotations, with values matching
+ provided regular expressions.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sRequiredAnnotations
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ message:
+ type: string
+ annotations:
+ type: array
+ description: >-
+ A list of annotations and values the object must specify.
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ description: >-
+ The required annotation.
+ allowedRegex:
+ type: string
+ description: >-
+ If specified, a regular expression the annotation's value
+ must match. The value must contain at least one match for
+ the regular expression.
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8srequiredannotations
+
+ violation[{"msg": msg, "details": {"missing_annotations": missing}}] {
+ provided := {annotation | input.review.object.metadata.annotations[annotation]}
+ required := {annotation | annotation := input.parameters.annotations[_].key}
+ missing := required - provided
+ count(missing) > 0
+ msg := sprintf("you must provide annotation(s): %v", [missing])
+ }
+
+ violation[{"msg": msg}] {
+ value := input.review.object.metadata.annotations[key]
+ expected := input.parameters.annotations[_]
+ expected.key == key
+ expected.allowedRegex != ""
+ not regex.match(expected.allowedRegex, value)
+ msg := sprintf("Annotation <%v: %v> does not satisfy allowed regex: %v", [key, value, expected.allowedRegex])
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredannotations/template.yaml
+```
+## Examples
+
+must-have-set-of-annotations
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sRequiredAnnotations
+metadata:
+ name: all-must-have-certain-set-of-annotations
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Service"]
+ parameters:
+ message: "All services must have a `a8r.io/owner` and `a8r.io/runbook` annotations."
+ annotations:
+ - key: a8r.io/owner
+ # Matches email address or github user
+ allowedRegex: ^([A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}|[a-z]{1,39})$
+ - key: a8r.io/runbook
+ # Matches urls including or not http/https
+ allowedRegex: ^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredannotations/samples/all-must-have-certain-set-of-annotations/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: allowed-service
+ annotations:
+ a8r.io/owner: "dev-team-alfa@contoso.com"
+ a8r.io/runbook: "https://confluence.contoso.com/dev-team-alfa/runbooks"
+spec:
+ ports:
+ - name: http
+ port: 80
+ targetPort: 8080
+ selector:
+ app: foo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredannotations/samples/all-must-have-certain-set-of-annotations/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: disallowed-service
+spec:
+ ports:
+ - name: http
+ port: 80
+ targetPort: 8080
+ selector:
+ app: foo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredannotations/samples/all-must-have-certain-set-of-annotations/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredlabels.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredlabels.md
new file mode 100644
index 0000000000000000000000000000000000000000..2bc76c52a54df366b9fac8e6e2967ebc4bb9211e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredlabels.md
@@ -0,0 +1,273 @@
+---
+id: requiredlabels
+title: Required Labels
+---
+
+# Required Labels
+
+## Description
+Requires resources to contain specified labels, with values matching provided regular expressions.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8srequiredlabels
+ annotations:
+ metadata.gatekeeper.sh/title: "Required Labels"
+ metadata.gatekeeper.sh/version: 1.1.2
+ description: >-
+ Requires resources to contain specified labels, with values matching
+ provided regular expressions.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sRequiredLabels
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ message:
+ type: string
+ labels:
+ type: array
+ description: >-
+ A list of labels and values the object must specify.
+ items:
+ type: object
+ properties:
+ key:
+ type: string
+ description: >-
+ The required label.
+ allowedRegex:
+ type: string
+ description: >-
+ If specified, a regular expression the annotation's value
+ must match. The value must contain at least one match for
+ the regular expression.
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ validations:
+ - expression: '(has(variables.anyObject.metadata) && variables.params.labels.all(entry, has(variables.anyObject.metadata.labels) && entry.key in variables.anyObject.metadata.labels))'
+ messageExpression: '"missing required label, requires all of: " + variables.params.labels.map(entry, entry.key).join(", ")'
+ - expression: '(has(variables.anyObject.metadata) && variables.params.labels.all(entry, has(variables.anyObject.metadata.labels) && entry.key in variables.anyObject.metadata.labels && (!has(entry.allowedRegex) || string(variables.anyObject.metadata.labels[entry.key]).matches(string(entry.allowedRegex)))))'
+ message: "regex mismatch"
+ - engine: Rego
+ source:
+ rego: |
+ package k8srequiredlabels
+
+ get_message(parameters, _default) := _default {
+ not parameters.message
+ }
+
+ get_message(parameters, _) := parameters.message
+
+ violation[{"msg": msg, "details": {"missing_labels": missing}}] {
+ provided := {label | input.review.object.metadata.labels[label]}
+ required := {label | label := input.parameters.labels[_].key}
+ missing := required - provided
+ count(missing) > 0
+ def_msg := sprintf("you must provide labels: %v", [missing])
+ msg := get_message(input.parameters, def_msg)
+ }
+
+ violation[{"msg": msg}] {
+ value := input.review.object.metadata.labels[key]
+ expected := input.parameters.labels[_]
+ expected.key == key
+ # do not match if allowedRegex is not defined, or is an empty string
+ expected.allowedRegex != ""
+ not regex.match(expected.allowedRegex, value)
+ def_msg := sprintf("Label <%v: %v> does not satisfy allowed regex: %v", [key, value, expected.allowedRegex])
+ msg := get_message(input.parameters, def_msg)
+ }
+
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredlabels/template.yaml
+```
+## Examples
+
+must-have-owner
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sRequiredLabels
+metadata:
+ name: all-must-have-owner
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Namespace"]
+ parameters:
+ message: "All namespaces must have an `owner` label that points to your company username"
+ labels:
+ - key: owner
+ allowedRegex: "^[a-zA-Z]+.agilebank.demo$"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredlabels/samples/all-must-have-owner/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: allowed-namespace
+ labels:
+ owner: user.agilebank.demo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredlabels/samples/all-must-have-owner/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: disallowed-namespace
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredlabels/samples/all-must-have-owner/example_disallowed.yaml
+```
+
+
+
+example-disallowed-label-value
+
+```yaml
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: disallowed-namespace
+ labels:
+ owner: user
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredlabels/samples/all-must-have-owner/example_disallowed_label_value.yaml
+```
+
+
+
+
+
+must-have-key
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sRequiredLabels
+metadata:
+ name: must-have-pizza
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ message: "All pods must have label of key `pizza` regardless of the label's value"
+ labels:
+ - key: pizza
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredlabels/samples/verify-label-key-only/constraint.yaml
+```
+
+
+
+
+label-present
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: has-pizza
+ labels:
+ pizza: is-great
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredlabels/samples/verify-label-key-only/example_allowed.yaml
+```
+
+
+
+label-missing
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: does-not-have-pizza
+ labels:
+ taco: is-great
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredlabels/samples/verify-label-key-only/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredprobes.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredprobes.md
new file mode 100644
index 0000000000000000000000000000000000000000..1f86ca65f5156759a1aa30468dfd93b933984e3d
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/requiredprobes.md
@@ -0,0 +1,261 @@
+---
+id: requiredprobes
+title: Required Probes
+---
+
+# Required Probes
+
+## Description
+Requires Pods to have readiness and/or liveness probes.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8srequiredprobes
+ annotations:
+ metadata.gatekeeper.sh/title: "Required Probes"
+ metadata.gatekeeper.sh/version: 1.0.1
+ description: Requires Pods to have readiness and/or liveness probes.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sRequiredProbes
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ probes:
+ description: "A list of probes that are required (ex: `readinessProbe`)"
+ type: array
+ items:
+ type: string
+ probeTypes:
+ description: "The probe must define a field listed in `probeType` in order to satisfy the constraint (ex. `tcpSocket` satisfies `['tcpSocket', 'exec']`)"
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8srequiredprobes
+
+ import data.lib.exclude_update.is_update
+
+ probe_type_set = probe_types {
+ probe_types := {type | type := input.parameters.probeTypes[_]}
+ }
+
+ violation[{"msg": msg}] {
+ # Probe fields are immutable.
+ not is_update(input.review)
+
+ container := input.review.object.spec.containers[_]
+ probe := input.parameters.probes[_]
+ probe_is_missing(container, probe)
+ msg := get_violation_message(container, input.review, probe)
+ }
+
+ probe_is_missing(ctr, probe) = true {
+ not ctr[probe]
+ }
+
+ probe_is_missing(ctr, probe) = true {
+ probe_field_empty(ctr, probe)
+ }
+
+ probe_field_empty(ctr, probe) = true {
+ probe_fields := {field | ctr[probe][field]}
+ diff_fields := probe_type_set - probe_fields
+ count(diff_fields) == count(probe_type_set)
+ }
+
+ get_violation_message(container, review, probe) = msg {
+ msg := sprintf("Container <%v> in your <%v> <%v> has no <%v>", [container.name, review.kind.kind, review.object.metadata.name, probe])
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredprobes/template.yaml
+```
+## Examples
+
+required-probes
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sRequiredProbes
+metadata:
+ name: must-have-probes
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ probes: ["readinessProbe", "livenessProbe"]
+ probeTypes: ["tcpSocket", "httpGet", "exec"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredprobes/samples/must-have-probes/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: test-pod1
+spec:
+ containers:
+ - name: tomcat
+ image: tomcat
+ ports:
+ - containerPort: 8080
+ livenessProbe:
+ tcpSocket:
+ port: 80
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ readinessProbe:
+ tcpSocket:
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: cache-volume
+ emptyDir: {}
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredprobes/samples/must-have-probes/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: test-pod1
+spec:
+ containers:
+ - name: nginx-1
+ image: nginx:1.7.9
+ ports:
+ - containerPort: 80
+ livenessProbe:
+ # tcpSocket:
+ # port: 80
+ # initialDelaySeconds: 5
+ # periodSeconds: 10
+ volumeMounts:
+ - mountPath: /tmp/cache
+ name: cache-volume
+ - name: tomcat
+ image: tomcat
+ ports:
+ - containerPort: 8080
+ readinessProbe:
+ tcpSocket:
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: cache-volume
+ emptyDir: {}
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredprobes/samples/must-have-probes/example_disallowed.yaml
+```
+
+
+
+example-disallowed2
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: test-pod2
+spec:
+ containers:
+ - name: nginx-1
+ image: nginx:1.7.9
+ ports:
+ - containerPort: 80
+ readinessProbe:
+ # httpGet:
+ # path: /
+ # port: 80
+ # initialDelaySeconds: 5
+ # periodSeconds: 10
+ livenessProbe:
+ tcpSocket:
+ port: 80
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumeMounts:
+ - mountPath: /tmp/cache
+ name: cache-volume
+ - name: tomcat
+ image: tomcat
+ ports:
+ - containerPort: 8080
+ readinessProbe:
+ tcpSocket:
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ # livenessProbe:
+ # tcpSocket:
+ # port: 8080
+ # initialDelaySeconds: 5
+ # periodSeconds: 10
+ volumes:
+ - name: cache-volume
+ emptyDir: {}
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/requiredprobes/samples/must-have-probes/example_disallowed2.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/seccomp.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/seccomp.md
new file mode 100644
index 0000000000000000000000000000000000000000..c56cc549e82e37cd8016367a694409ae83305da4
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/seccomp.md
@@ -0,0 +1,666 @@
+---
+id: seccomp
+title: Seccomp
+---
+
+# Seccomp
+
+## Description
+Controls the seccomp profile used by containers. Corresponds to the `seccomp.security.alpha.kubernetes.io/allowedProfileNames` annotation on a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspseccomp
+ annotations:
+ metadata.gatekeeper.sh/title: "Seccomp"
+ metadata.gatekeeper.sh/version: 1.1.0
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `seccomp.security.alpha.kubernetes.io/allowedProfileNames` annotation on
+ a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSeccomp
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `seccomp.security.alpha.kubernetes.io/allowedProfileNames` annotation on
+ a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedProfiles:
+ type: array
+ description: >-
+ An array of allowed profile values for seccomp on Pods/Containers.
+
+ Can use the annotation naming scheme: `runtime/default`, `docker/default`, `unconfined` and/or
+ `localhost/some-profile.json`. The item `localhost/*` will allow any localhost based profile.
+
+ Can also use the securityContext naming scheme: `RuntimeDefault`, `Unconfined`
+ and/or `Localhost`. For securityContext `Localhost`, use the parameter `allowedLocalhostProfiles`
+ to list the allowed profile JSON files.
+
+ The policy code will translate between the two schemes so it is not necessary to use both.
+
+ Putting a `*` in this array allows all Profiles to be used.
+
+ This field is required since with an empty list this policy will block all workloads.
+ items:
+ type: string
+ allowedLocalhostFiles:
+ type: array
+ description: >-
+ When using securityContext naming scheme for seccomp and including `Localhost` this array holds
+ the allowed profile JSON files.
+
+ Putting a `*` in this array will allows all JSON files to be used.
+
+ This field is required to allow `Localhost` in securityContext as with an empty list it will block.
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: allowAllProfiles
+ expression: |
+ has(variables.params.allowedProfiles) && variables.params.allowedProfiles.exists(profile, profile == "*")
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+ - name: unverifiedContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !variables.allowAllProfiles &&
+ !(container.image in variables.exemptImages))
+ - name: inputAllowedProfiles
+ expression: |
+ !has(variables.params.allowedProfiles) ? [] : variables.params.allowedProfiles
+ - name: allowedLocalhostFiles
+ expression: |
+ has(variables.params.allowedLocalhostFiles) ? variables.params.allowedLocalhostFiles : []
+ - name: allowedProfilesTranslation
+ expression: |
+ (variables.inputAllowedProfiles.filter(profile,
+ profile != "Localhost").map(profile, profile == "Unconfined" ? "unconfined" : profile)) +
+ (variables.inputAllowedProfiles.exists(profile, profile == "RuntimeDefault") ? ["runtime/default", "docker/default"] : [])
+ - name: allowSecurityContextLocalhost
+ expression: |
+ variables.inputAllowedProfiles.exists(profile, profile == "Localhost")
+ - name: derivedAllowedLocalhostFiles
+ expression: |
+ variables.allowSecurityContextLocalhost ? variables.params.allowedLocalhostFiles.map(file, "localhost/" + file) : []
+ - name: localhostWildcardAllowed
+ expression: |
+ variables.inputAllowedProfiles.exists(profile, profile == "localhost/*") || variables.derivedAllowedLocalhostFiles.exists(profile, profile == "localhost/*")
+ - name: allowedProfiles
+ expression: |
+ (variables.allowedProfilesTranslation + variables.derivedAllowedLocalhostFiles)
+ - name: hasPodSeccomp
+ expression: |
+ has(variables.anyObject.spec.securityContext) && has(variables.anyObject.spec.securityContext.seccompProfile)
+ - name: hasPodAnnotations
+ expression: |
+ has(variables.anyObject.metadata.annotations) && ("seccomp.security.alpha.kubernetes.io/pod" in variables.anyObject.metadata.annotations)
+ - name: podAnnotationsProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !(has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)) &&
+ !variables.hasPodSeccomp &&
+ variables.hasPodAnnotations
+ ).map(container, {
+ "container" : container.name,
+ "profile" : variables.anyObject.metadata.annotations["seccomp.security.alpha.kubernetes.io/pod"],
+ "file" : dyn(""),
+ "location" : dyn("annotation seccomp.security.alpha.kubernetes.io/pod"),
+ })
+ - name: containerAnnotationsProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !variables.hasPodSeccomp &&
+ has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : variables.anyObject.metadata.annotations["container.seccomp.security.alpha.kubernetes.io/" + container.name],
+ "file" : dyn(""),
+ "location" : dyn("annotation container.seccomp.security.alpha.kubernetes.io/" + container.name),
+ })
+ - name: podLocalHostProfile
+ expression: |
+ variables.hasPodSeccomp && has(variables.anyObject.spec.securityContext.seccompProfile.localhostProfile) ? variables.anyObject.spec.securityContext.seccompProfile.localhostProfile : ""
+ - name: canonicalPodSecurityContextProfile
+ expression: |
+ has(variables.hasPodSeccomp) && has(variables.anyObject.spec.securityContext.seccompProfile.type) ?
+ (variables.anyObject.spec.securityContext.seccompProfile.type == "RuntimeDefault" ? (
+ variables.allowedProfiles.exists(profile, profile == "runtime/default") ? "runtime/default" : variables.allowedProfiles.exists(profile, profile == "docker/default") ? "docker/default" : "runtime/default") :
+ variables.anyObject.spec.securityContext.seccompProfile.type == "Unconfined" ? "unconfined" : variables.anyObject.spec.securityContext.seccompProfile.type == "Localhost" ? "localhost/" + variables.podLocalHostProfile : "")
+ : ""
+ - name: podSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(variables.canonicalPodSecurityContextProfile),
+ "file" : variables.podLocalHostProfile,
+ "location" : dyn("pod securityContext"),
+ })
+ - name: containerSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ has(container.securityContext) && has(container.securityContext.seccompProfile)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(has(container.securityContext.seccompProfile.type) ? (container.securityContext.seccompProfile.type == "RuntimeDefault" ? (
+ variables.allowedProfiles.exists(profile, profile == "runtime/default") ? "runtime/default" : variables.allowedProfiles.exists(profile, profile == "docker/default") ? "docker/default" : "runtime/default") :
+ container.securityContext.seccompProfile.type == "Unconfined" ? "unconfined" : container.securityContext.seccompProfile.type == "Localhost" ? "localhost/" + container.securityContext.seccompProfile.localhostProfile : "")
+ : ""),
+ "file" : has(container.securityContext.seccompProfile.localhostProfile) ? container.securityContext.seccompProfile.localhostProfile : dyn(""),
+ "location" : dyn("container securityContext"),
+ })
+ - name: containerProfilesMissing
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !(has(variables.anyObject.metadata.annotations) && (("container.seccomp.security.alpha.kubernetes.io/" + container.name) in variables.anyObject.metadata.annotations)) &&
+ !variables.hasPodSeccomp &&
+ !variables.hasPodAnnotations
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn("not configured"),
+ "file" : dyn(""),
+ "location" : dyn("no explicit profile found"),
+ })
+ - name: allContainerProfiles
+ expression: |
+ variables.podAnnotationsProfiles + variables.containerAnnotationsProfiles + variables.podSecurityContextProfiles + variables.containerSecurityContextProfiles + variables.containerProfilesMissing
+ - name: badContainerProfiles
+ expression: |
+ variables.allContainerProfiles.filter(badContainerProfile,
+ !((badContainerProfile.profile in variables.allowedProfiles) || (badContainerProfile.profile.startsWith("localhost/") && variables.localhostWildcardAllowed))
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.allowedProfiles.join(", "))
+ validations:
+ - expression: 'size(variables.badContainerProfiles) == 0'
+ messageExpression: |
+ variables.badContainerProfiles.join(", ")
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspseccomp
+
+ import data.lib.exempt_container.is_exempt
+
+ container_annotation_key_prefix = "container.seccomp.security.alpha.kubernetes.io/"
+
+ pod_annotation_key = "seccomp.security.alpha.kubernetes.io/pod"
+
+ violation[{"msg": msg}] {
+ not input_wildcard_allowed_profiles
+ allowed_profiles := get_allowed_profiles
+ container := input_containers[name]
+ not is_exempt(container)
+ result := get_profile(container)
+ not allowed_profile(result.profile, result.file, allowed_profiles)
+ msg := get_message(result.profile, result.file, name, result.location, allowed_profiles)
+ }
+
+ get_message(profile, _, name, location, allowed_profiles) = message {
+ message := sprintf("Seccomp profile '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, name, location, allowed_profiles])
+ }
+
+ input_wildcard_allowed_profiles {
+ input.parameters.allowedProfiles[_] == "*"
+ }
+
+ input_wildcard_allowed_files {
+ input.parameters.allowedLocalhostFiles[_] == "*"
+ }
+
+ input_wildcard_allowed_files {
+ "localhost/*" == input.parameters.allowedProfiles[_]
+ }
+
+ # Simple allowed Profiles
+ allowed_profile(profile, _, allowed) {
+ not startswith(profile, "localhost/")
+ profile == allowed[_]
+ }
+
+ # annotation localhost with wildcard
+ allowed_profile(profile, _, allowed) {
+ "localhost/*" == allowed[_]
+ startswith(profile, "localhost/")
+ }
+
+ # annotation localhost without wildcard
+ allowed_profile(profile, _, allowed) {
+ startswith(profile, "localhost/")
+ profile == allowed[_]
+ }
+
+ # The profiles explicitly in the list
+ get_allowed_profiles[allowed] {
+ allowed := input.parameters.allowedProfiles[_]
+ }
+
+ # Seccomp Localhost to annotation translation
+ get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ not contains(profile, "/")
+ file := object.get(input.parameters, "allowedLocalhostFiles", [])[_]
+ allowed := canonicalize_seccomp_profile({"type": profile, "localhostProfile": file}, "")[_]
+ }
+
+ # Container profile as defined in pod annotation
+ get_profile(container) = {"profile": profile, "file": "", "location": location} {
+ not has_securitycontext_container(container)
+ not has_annotation(get_container_annotation_key(container.name))
+ not has_securitycontext_pod
+ profile := input.review.object.metadata.annotations[pod_annotation_key]
+ location := sprintf("annotation %v", [pod_annotation_key])
+ }
+
+ # Container profile as defined in container annotation
+ get_profile(container) = {"profile": profile, "file": "", "location": location} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+ container_annotation := get_container_annotation_key(container.name)
+ has_annotation(container_annotation)
+ profile := input.review.object.metadata.annotations[container_annotation]
+ location := sprintf("annotation %v", [container_annotation])
+ }
+
+ # Container profile as defined in pods securityContext
+ get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ not has_securitycontext_container(container)
+ profile := canonicalize_seccomp_profile(input.review.object.spec.securityContext.seccompProfile, canonicalize_runtime_default_profile)[_]
+ file := object.get(input.review.object.spec.securityContext.seccompProfile, "localhostProfile", "")
+ location := "pod securityContext"
+ }
+
+ # Container profile as defined in containers securityContext
+ get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ has_securitycontext_container(container)
+ profile := canonicalize_seccomp_profile(container.securityContext.seccompProfile, canonicalize_runtime_default_profile)[_]
+ file := object.get(container.securityContext.seccompProfile, "localhostProfile", "")
+ location := "container securityContext"
+ }
+
+ # Container profile missing
+ get_profile(container) = {"profile": "not configured", "file": "", "location": "no explicit profile found"} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+ not has_annotation(get_container_annotation_key(container.name))
+ not has_annotation(pod_annotation_key)
+ }
+
+ has_annotation(annotation) {
+ input.review.object.metadata.annotations[annotation]
+ }
+
+ has_securitycontext_pod {
+ input.review.object.spec.securityContext.seccompProfile
+ }
+
+ has_securitycontext_container(container) {
+ container.securityContext.seccompProfile
+ }
+
+ get_container_annotation_key(name) = annotation {
+ annotation := concat("", [container_annotation_key_prefix, name])
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.containers[_]
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.ephemeralContainers[_]
+ }
+
+ canonicalize_runtime_default_profile() = out {
+ "runtime/default" == input.parameters.allowedProfiles[_]
+ out := "runtime/default"
+ } else = out {
+ "docker/default" == input.parameters.allowedProfiles[_]
+ out := "docker/default"
+ } else = out {
+ out := "runtime/default"
+ }
+
+ canonicalize_seccomp_profile(profile, def) = out {
+ profile.type == "RuntimeDefault"
+ def == ""
+ out := ["runtime/default", "docker/default"]
+ } else = out {
+ profile.type == "RuntimeDefault"
+ def != ""
+ out := [def]
+ } else = out {
+ profile.type == "Localhost"
+ out := [sprintf("localhost/%s", [profile.localhostProfile])]
+ } else = out {
+ profile.type == "Unconfined"
+ out := ["unconfined"]
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/template.yaml
+```
+## Examples
+
+default-seccomp-required
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPSeccomp
+metadata:
+ name: psp-seccomp
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - nginx-exempt
+ allowedProfiles:
+ - runtime/default
+ - localhost/profile.json
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/constraint.yaml
+```
+
+
+
+
+example-disallowed-global
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed2
+ annotations:
+ seccomp.security.alpha.kubernetes.io/pod: unconfined
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed2.yaml
+```
+
+
+
+example-disallowed-container
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ annotations:
+ container.seccomp.security.alpha.kubernetes.io/nginx: unconfined
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed.yaml
+```
+
+
+
+example-allowed-container
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed
+ annotations:
+ container.seccomp.security.alpha.kubernetes.io/nginx: runtime/default
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed.yaml
+```
+
+
+
+example-allowed-global
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed2
+ annotations:
+ seccomp.security.alpha.kubernetes.io/pod: runtime/default
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed2.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ annotations:
+ container.seccomp.security.alpha.kubernetes.io/nginx: unconfined
+ labels:
+ app: nginx-seccomp
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/disallowed_ephemeral.yaml
+```
+
+
+
+example-allowed-container-exempt-image
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx-exempt
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_exempt_image.yaml
+```
+
+
+
+example-allowed-container-localhost-profile
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-localhost
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Localhost
+ localhostProfile: profile.json
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/example_allowed_localhost.yaml
+```
+
+
+
+example-disallowed-container-localhost-profile
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed-localhost
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Localhost
+ localhostProfile: profile.log
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccomp/samples/psp-seccomp/example_disallowed_localhost.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/seccompv2.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/seccompv2.md
new file mode 100644
index 0000000000000000000000000000000000000000..2d495e540521219c2993d0c80c26e3d73b53b9d2
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/seccompv2.md
@@ -0,0 +1,744 @@
+---
+id: seccompv2
+title: Seccomp V2
+---
+
+# Seccomp V2
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Controls the seccomp profile used by containers. Corresponds to the `securityContext.seccompProfile` field. Security contexts from the annotation is not considered as Kubernetes no longer reads security contexts from the annotation.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspseccompv2
+ annotations:
+ metadata.gatekeeper.sh/title: "Seccomp V2"
+ metadata.gatekeeper.sh/version: 1.0.1
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `securityContext.seccompProfile` field. Security contexts from the annotation is not considered as Kubernetes no longer reads security contexts from the annotation.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSeccompV2
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the seccomp profile used by containers. Corresponds to the
+ `securityContext.seccompProfile` field. Security contexts from the annotation is not considered as Kubernetes no longer reads security contexts from the annotation.
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedProfiles:
+ type: array
+ description: >-
+ An array of allowed profile values for seccomp on Pods/Containers.
+
+ Can use the securityContext naming scheme: `RuntimeDefault`, `Unconfined`
+ and/or `Localhost`. For securityContext `Localhost`, use the parameter `allowedLocalhostFiles`
+ to list the allowed profile JSON files.
+
+ The policy code will translate between the two schemes so it is not necessary to use both.
+
+ Putting a `*` in this array allows all Profiles to be used.
+
+ This field is required since with an empty list this policy will block all workloads.
+ items:
+ type: string
+ allowedLocalhostFiles:
+ type: array
+ description: >-
+ When using securityContext naming scheme for seccomp and including `Localhost` this array holds
+ the allowed profile JSON files.
+
+ Putting a `*` in this array will allows all JSON files to be used.
+
+ This field is required to allow `Localhost` in securityContext as with an empty list it will block.
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ code:
+ - engine: K8sNativeValidation
+ source:
+ variables:
+ - name: containers
+ expression: 'has(variables.anyObject.spec.containers) ? variables.anyObject.spec.containers : []'
+ - name: initContainers
+ expression: 'has(variables.anyObject.spec.initContainers) ? variables.anyObject.spec.initContainers : []'
+ - name: ephemeralContainers
+ expression: 'has(variables.anyObject.spec.ephemeralContainers) ? variables.anyObject.spec.ephemeralContainers : []'
+ - name: allowAllProfiles
+ expression: |
+ has(variables.params.allowedProfiles) && variables.params.allowedProfiles.exists(profile, profile == "*")
+ - name: exemptImagePrefixes
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, image.endsWith("*")).map(image, string(image).replace("*", ""))
+ - name: exemptImageExplicit
+ expression: |
+ !has(variables.params.exemptImages) ? [] :
+ variables.params.exemptImages.filter(image, !image.endsWith("*"))
+ - name: exemptImages
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ container.image in variables.exemptImageExplicit ||
+ variables.exemptImagePrefixes.exists(exemption, string(container.image).startsWith(exemption))).map(container, container.image)
+ - name: unverifiedContainers
+ expression: |
+ (variables.containers + variables.initContainers + variables.ephemeralContainers).filter(container,
+ !variables.allowAllProfiles &&
+ !(container.image in variables.exemptImages))
+ - name: inputNonLocalHostProfiles
+ expression: |
+ variables.params.allowedProfiles.filter(profile, profile != "Localhost").map(profile, {"type": profile})
+ - name: inputLocalHostProfiles
+ expression: |
+ variables.params.allowedProfiles.exists(profile, profile == "Localhost") ? variables.params.allowedLocalhostFiles.map(file, {"type": "Localhost", "localHostProfile": string(file)}) : []
+ - name: inputAllowedProfiles
+ expression: |
+ variables.inputNonLocalHostProfiles + variables.inputLocalHostProfiles
+ - name: hasPodSeccomp
+ expression: |
+ has(variables.anyObject.spec.securityContext) && has(variables.anyObject.spec.securityContext.seccompProfile)
+ - name: podLocalHostProfile
+ expression: |
+ variables.hasPodSeccomp && has(variables.anyObject.spec.securityContext.seccompProfile.localhostProfile) ? variables.anyObject.spec.securityContext.seccompProfile.localhostProfile : ""
+ - name: podSecurityContextProfileType
+ expression: |
+ has(variables.hasPodSeccomp) && has(variables.anyObject.spec.securityContext.seccompProfile.type) ? variables.anyObject.spec.securityContext.seccompProfile.type
+ : ""
+ - name: podSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(variables.podSecurityContextProfileType),
+ "file" : variables.podLocalHostProfile,
+ "location" : dyn("pod securityContext"),
+ })
+ - name: containerSecurityContextProfiles
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ has(container.securityContext) && has(container.securityContext.seccompProfile)
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn(container.securityContext.seccompProfile.type),
+ "file" : has(container.securityContext.seccompProfile.localhostProfile) ? container.securityContext.seccompProfile.localhostProfile : dyn(""),
+ "location" : dyn("container securityContext"),
+ })
+ - name: containerProfilesMissing
+ expression: |
+ variables.unverifiedContainers.filter(container,
+ !(has(container.securityContext) && has(container.securityContext.seccompProfile)) &&
+ !variables.hasPodSeccomp
+ ).map(container, {
+ "container" : container.name,
+ "profile" : dyn("not configured"),
+ "file" : dyn(""),
+ "location" : dyn("no explicit profile found"),
+ })
+ - name: allContainerProfiles
+ expression: |
+ variables.podSecurityContextProfiles + variables.containerSecurityContextProfiles + variables.containerProfilesMissing
+ - name: badContainerProfilesWithoutFiles
+ expression: |
+ variables.allContainerProfiles.filter(container,
+ container.profile != "Localhost" &&
+ !variables.inputAllowedProfiles.exists(profile, profile.type == container.profile)
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.inputAllowedProfiles.map(profile, "{\"type\": \"" + profile.type + "\"" + (has(profile.localHostProfile) ? ", \"localHostProfile\": \"" + profile.localHostProfile + "\"}" : "}")).join(", "))
+ - name: badContainerProfilesWithFiles
+ expression: |
+ variables.allContainerProfiles.filter(container,
+ container.profile == "Localhost" &&
+ !variables.inputAllowedProfiles.exists(profile, profile.type == "Localhost" && (has(profile.localHostProfile) && (profile.localHostProfile == container.file || profile.localHostProfile == "*")))
+ ).map(badProfile, "Seccomp profile '" + badProfile.profile + "' With file '" + badProfile.file + "' is not allowed for container '" + badProfile.container + "'. Found at: " + badProfile.location + ". Allowed profiles: " + variables.inputAllowedProfiles.map(profile, "{\"type\": \"" + profile.type + "\"" + (has(profile.localHostProfile) ? ", \"localHostProfile\": \"" + profile.localHostProfile + "\"}" : "}")).join(", "))
+ validations:
+ - expression: 'size(variables.badContainerProfilesWithoutFiles) == 0'
+ messageExpression: |
+ variables.badContainerProfilesWithoutFiles.join(", ")
+ - expression: 'size(variables.badContainerProfilesWithFiles) == 0'
+ messageExpression: |
+ variables.badContainerProfilesWithFiles.join(", ")
+ - engine: Rego
+ source:
+ rego: |
+ package k8spspseccomp
+
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ not input_wildcard_allowed_profiles
+ allowed_profiles := get_allowed_profiles
+ container := input_containers[name]
+ not is_exempt(container)
+ result := get_profile(container)
+ not allowed_profile(result.profile, result.file, allowed_profiles)
+ msg := get_message(result.profile, result.file, name, result.location, allowed_profiles)
+ }
+
+ get_message(profile, _, name, location, allowed_profiles) = message {
+ profile != "Localhost"
+ message := sprintf("Seccomp profile '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, name, location, allowed_profiles])
+ }
+
+ get_message(profile, file, name, location, allowed_profiles) = message {
+ profile == "Localhost"
+ message := sprintf("Seccomp profile '%v' with file '%v' is not allowed for container '%v'. Found at: %v. Allowed profiles: %v", [profile, file, name, location, allowed_profiles])
+ }
+
+ input_wildcard_allowed_profiles {
+ input.parameters.allowedProfiles[_] == "*"
+ }
+
+ input_wildcard_allowed_files {
+ input.parameters.allowedLocalhostFiles[_] == "*"
+ }
+
+ allowed_profile(_, _, _) {
+ input_wildcard_allowed_profiles
+ }
+
+ allowed_profile(profile, _, _) {
+ profile == "Localhost"
+ input_wildcard_allowed_files
+ }
+
+ # Simple allowed Profiles
+ allowed_profile(profile, _, allowed) {
+ profile != "Localhost"
+ allow_profile = allowed[_]
+ profile == allow_profile.type
+ }
+
+ # annotation localhost without wildcard
+ allowed_profile(profile, file, allowed) {
+ profile == "Localhost"
+ allow_profile = allowed[_]
+ allow_profile.type == "Localhost"
+ file == allow_profile.localHostProfile
+ }
+
+ # The profiles explicitly in the list
+ get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ profile != "Localhost"
+ allowed := {"type": profile}
+ }
+
+ get_allowed_profiles[allowed] {
+ profile := input.parameters.allowedProfiles[_]
+ profile == "Localhost"
+ file := object.get(input.parameters, "allowedLocalhostFiles", [""])[_]
+ allowed := {"type": "Localhost", "localHostProfile": file}
+ }
+
+ # Container profile as defined in containers securityContext
+ get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ has_securitycontext_container(container)
+ profile := container.securityContext.seccompProfile.type
+ file := object.get(container.securityContext.seccompProfile, "localhostProfile", "")
+ location := "container securityContext"
+ }
+
+ # Container profile as defined in pods securityContext
+ get_profile(container) = {"profile": profile, "file": file, "location": location} {
+ not has_securitycontext_container(container)
+ profile := input.review.object.spec.securityContext.seccompProfile.type
+ file := object.get(input.review.object.spec.securityContext.seccompProfile, "localhostProfile", "")
+ location := "pod securityContext"
+ }
+
+ # Container profile missing
+ get_profile(container) = {"profile": "not configured", "file": "", "location": "no explicit profile found"} {
+ not has_securitycontext_container(container)
+ not has_securitycontext_pod
+ }
+
+ has_securitycontext_pod {
+ input.review.object.spec.securityContext.seccompProfile
+ }
+
+ has_securitycontext_container(container) {
+ container.securityContext.seccompProfile
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.containers[_]
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.initContainers[_]
+ }
+
+ input_containers[container.name] = container {
+ container := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/template.yaml
+```
+## Examples
+
+seccomp-baseline
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPSeccompV2
+metadata:
+ name: psp-seccomp-baseline
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - nginx-exempt
+ allowedProfiles:
+ - RuntimeDefault
+ - Localhost
+ - not configured
+ allowedLocalhostFiles:
+ - "*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/constraint.yaml
+```
+
+
+
+
+example-disallowed-global
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed2
+ labels:
+ app: nginx-seccomp
+spec:
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed2.yaml
+```
+
+
+
+example-disallowed-container
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_disallowed.yaml
+```
+
+
+
+example-allowed-container
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: RuntimeDefault
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed.yaml
+```
+
+
+
+example-allowed-localhost
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-localhost
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Localhost
+ localhostProfile: profile.json
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_localhost.yaml
+```
+
+
+
+example-allowed-no-profile
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-no-profile
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_no_profile.yaml
+```
+
+
+
+example-allowed-exempt-image
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx-exempt
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/example_allowed_exempt_image.yaml
+```
+
+
+
+allowed-ephemeral-no-profile
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-ephemeral
+ labels:
+ app: nginx-seccomp
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-baseline/allowed_ephemeral.yaml
+```
+
+
+
+
+
+seccomp-restricted
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPSeccompV2
+metadata:
+ name: psp-seccomp-restricted
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ exemptImages:
+ - nginx-exempt
+ allowedProfiles:
+ - RuntimeDefault
+ - Localhost
+ allowedLocalhostFiles:
+ - "*"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/constraint.yaml
+```
+
+
+
+
+example-disallowed-global
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed2
+ labels:
+ app: nginx-seccomp
+spec:
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+ containers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed2.yaml
+```
+
+
+
+example-disallowed-container
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_disallowed.yaml
+```
+
+
+
+example-allowed-container
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: RuntimeDefault
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed.yaml
+```
+
+
+
+example-allowed-localhost
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-allowed-localhost
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seccompProfile:
+ type: Localhost
+ localhostProfile: profile.json
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_localhost.yaml
+```
+
+
+
+example-allowed-exempt-image
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ containers:
+ - name: nginx
+ image: nginx-exempt
+ securityContext:
+ seccompProfile:
+ type: Unconfined
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/example_allowed_exempt_image.yaml
+```
+
+
+
+disallowed-ephemeral-no-profile
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-seccomp-disallowed
+ labels:
+ app: nginx-seccomp
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/seccompv2/samples/psp-seccomp-restricted/disallowed_ephemeral.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/selinux.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/selinux.md
new file mode 100644
index 0000000000000000000000000000000000000000..045721c881855cdbebdb028e1ba6f5f5d2cda585
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/selinux.md
@@ -0,0 +1,288 @@
+---
+id: selinux
+title: SELinux V2
+---
+
+# SELinux V2
+
+**Bundles:** `pod-security-baseline` `pod-security-restricted`
+
+## Description
+Defines an allow-list of seLinuxOptions configurations for pod containers. Corresponds to a PodSecurityPolicy requiring SELinux configs. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#selinux
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspselinuxv2
+ annotations:
+ metadata.gatekeeper.sh/title: "SELinux V2"
+ metadata.gatekeeper.sh/version: 1.0.4
+ metadata.gatekeeper.sh/bundle: "pod-security-baseline, pod-security-restricted"
+ description: >-
+ Defines an allow-list of seLinuxOptions configurations for pod
+ containers. Corresponds to a PodSecurityPolicy requiring SELinux configs.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#selinux
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPSELinuxV2
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Defines an allow-list of seLinuxOptions configurations for pod
+ containers. Corresponds to a PodSecurityPolicy requiring SELinux configs.
+ For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#selinux
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ allowedSELinuxOptions:
+ type: array
+ description: "An allow-list of SELinux options configurations."
+ items:
+ type: object
+ description: "An allowed configuration of SELinux options for a pod container."
+ properties:
+ level:
+ type: string
+ description: "An SELinux level."
+ role:
+ type: string
+ description: "An SELinux role."
+ type:
+ type: string
+ description: "An SELinux type."
+ user:
+ type: string
+ description: "An SELinux user."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spspselinux
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ # Disallow top level custom SELinux options
+ violation[{"msg": msg, "details": {}}] {
+ # spec.securityContext.seLinuxOptions field is immutable.
+ not is_update(input.review)
+
+ has_field(input.review.object.spec.securityContext, "seLinuxOptions")
+ not input_seLinuxOptions_allowed(input.review.object.spec.securityContext.seLinuxOptions)
+ msg := sprintf("SELinux options is not allowed, pod: %v. Allowed options: %v", [input.review.object.metadata.name, input.parameters.allowedSELinuxOptions])
+ }
+ # Disallow container level custom SELinux options
+ violation[{"msg": msg, "details": {}}] {
+ # spec.containers.securityContext.seLinuxOptions field is immutable.
+ not is_update(input.review)
+
+ c := input_security_context[_]
+ not is_exempt(c)
+ has_field(c.securityContext, "seLinuxOptions")
+ not input_seLinuxOptions_allowed(c.securityContext.seLinuxOptions)
+ msg := sprintf("SELinux options is not allowed, pod: %v, container: %v. Allowed options: %v", [input.review.object.metadata.name, c.name, input.parameters.allowedSELinuxOptions])
+ }
+
+ input_seLinuxOptions_allowed(options) {
+ params := input.parameters.allowedSELinuxOptions[_]
+ field_allowed("level", options, params)
+ field_allowed("role", options, params)
+ field_allowed("type", options, params)
+ field_allowed("user", options, params)
+ }
+
+ field_allowed(field, options, params) {
+ params[field] == options[field]
+ }
+ field_allowed(field, options, _) {
+ not has_field(options, field)
+ }
+
+ input_security_context[c] {
+ c := input.review.object.spec.containers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+ }
+ input_security_context[c] {
+ c := input.review.object.spec.initContainers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+ }
+ input_security_context[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ has_field(c.securityContext, "seLinuxOptions")
+ }
+
+ # has_field returns whether an object has a field
+ has_field(object, field) = true {
+ object[field]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/selinux/template.yaml
+```
+## Examples
+
+require-matching-selinux-options
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPSELinuxV2
+metadata:
+ name: psp-selinux-v2
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ allowedSELinuxOptions:
+ - type: container_t
+ - type: container_init_t
+ - type: container_kvm_t
+ - type: container_engine_t
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/selinux/samples/psp-selinux-v2/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-selinux-disallowed
+ labels:
+ app: nginx-selinux
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seLinuxOptions:
+ type: svirt_lxc_net_t
+ user: sysadm_u
+ role: sysadm_r
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/selinux/samples/psp-selinux-v2/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-selinux-allowed
+ labels:
+ app: nginx-selinux
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seLinuxOptions:
+ type: container_t
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/selinux/samples/psp-selinux-v2/example_allowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-selinux-disallowed
+ labels:
+ app: nginx-selinux
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ seLinuxOptions:
+ type: svirt_lxc_net_t
+ user: sysadm_u
+ role: sysadm_r
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/selinux/samples/psp-selinux-v2/disallowed_ephemeral.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/storageclass.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/storageclass.md
new file mode 100644
index 0000000000000000000000000000000000000000..ce8144e165666b1811c6d1d60565fcce00d9a156
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/storageclass.md
@@ -0,0 +1,503 @@
+---
+id: storageclass
+title: Storage Class
+---
+
+# Storage Class
+
+## Description
+Requires storage classes to be specified when used. Only Gatekeeper 3.9+ and non-ephemeral containers are supported.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8sstorageclass
+ annotations:
+ metadata.gatekeeper.sh/title: "Storage Class"
+ metadata.gatekeeper.sh/version: 1.1.2
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups":["storage.k8s.io"],
+ "versions": ["v1"],
+ "kinds": ["StorageClass"]
+ }
+ ]
+ ]"
+ description: >-
+ Requires storage classes to be specified when used. Only Gatekeeper 3.9+ and non-ephemeral containers are supported.
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sStorageClass
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Requires storage classes to be specified when used.
+ properties:
+ includeStorageClassesInMessage:
+ type: boolean
+ default: true
+ allowedStorageClasses:
+ type: array
+ description: "An optional allow-list of storage classes. If specified, any storage class not in the `allowedStorageClasses` parameter is disallowed."
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8sstorageclass
+
+ is_pvc(obj) {
+ obj.apiVersion == "v1"
+ obj.kind == "PersistentVolumeClaim"
+ }
+
+ is_statefulset(obj) {
+ obj.apiVersion == "apps/v1"
+ obj.kind == "StatefulSet"
+ }
+
+ violation[{"msg": msg}] {
+ not data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"]
+ msg := sprintf("StorageClasses not synced. Gatekeeper may be misconfigured. Please have a cluster-admin consult the documentation.", [])
+ }
+
+ storageclass_allowed(name) {
+ data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][name]
+ # support both direct use of * and as the default value
+ object.get(input.parameters, "allowedStorageClasses", ["*"])[_] == "*"
+ }
+
+ storageclass_allowed(name) {
+ data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][name]
+ input.parameters.allowedStorageClasses[_] == name
+ }
+
+ violation[{"msg": pvc_storageclass_badname_msg}] {
+ is_pvc(input.review.object)
+ not storageclass_allowed(input.review.object.spec.storageClassName)
+ }
+ pvc_storageclass_badname_msg := sprintf("pvc did not specify a valid storage class name <%v>. Must be one of [%v]", args) {
+ input.parameters.includeStorageClassesInMessage
+ object.get(input.parameters, "allowedStorageClasses", null) == null
+ args := [
+ input.review.object.spec.storageClassName,
+ concat(", ", [n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]])
+ ]
+ } else := sprintf("pvc did not specify an allowed and valid storage class name <%v>. Must be one of [%v]", args) {
+ input.parameters.includeStorageClassesInMessage
+ object.get(input.parameters, "allowedStorageClasses", null) != null
+ sc := {n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]} & {x | x = object.get(input.parameters, "allowedStorageClasses", [])[_]}
+ args := [
+ input.review.object.spec.storageClassName,
+ concat(", ", sc)
+ ]
+ } else := sprintf(
+ "pvc did not specify a valid storage class name <%v>.",
+ [input.review.object.spec.storageClassName]
+ )
+
+ violation[{"msg": pvc_storageclass_noname_msg}] {
+ is_pvc(input.review.object)
+ not input.review.object.spec.storageClassName
+ }
+ pvc_storageclass_noname_msg := sprintf("pvc did not specify a storage class name. Must be one of [%v]", args) {
+ input.parameters.includeStorageClassesInMessage
+ args := [
+ concat(", ", [n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]])
+ ]
+ } else := sprintf(
+ "pvc did not specify a storage class name.",
+ []
+ )
+
+ violation[{"msg": statefulset_vct_badname_msg(vct)}] {
+ is_statefulset(input.review.object)
+ vct := input.review.object.spec.volumeClaimTemplates[_]
+ not storageclass_allowed(vct.spec.storageClassName)
+ }
+ statefulset_vct_badname_msg(vct) := msg {
+ input.parameters.includeStorageClassesInMessage
+ object.get(input.parameters, "allowedStorageClasses", null) == null
+ msg := sprintf(
+ "statefulset did not specify a valid storage class name <%v>. Must be one of [%v]", [
+ vct.spec.storageClassName,
+ concat(", ", [n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]])
+ ])
+ }
+ statefulset_vct_badname_msg(vct) := msg {
+ input.parameters.includeStorageClassesInMessage
+ object.get(input.parameters, "allowedStorageClasses", null) != null
+ sc := {n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]} & {x | x = object.get(input.parameters, "allowedStorageClasses", [])[_]}
+ msg := sprintf(
+ "statefulset did not specify an allowed and valid storage class name <%v>. Must be one of [%v]", [
+ vct.spec.storageClassName,
+ concat(", ", sc)
+ ])
+ }
+ statefulset_vct_badname_msg(vct) := msg {
+ not input.parameters.includeStorageClassesInMessage
+ msg := sprintf(
+ "statefulset did not specify a valid storage class name <%v>.", [
+ vct.spec.storageClassName
+ ])
+ }
+
+ violation[{"msg": statefulset_vct_noname_msg}] {
+ is_statefulset(input.review.object)
+ vct := input.review.object.spec.volumeClaimTemplates[_]
+ not vct.spec.storageClassName
+ }
+ statefulset_vct_noname_msg := sprintf("statefulset did not specify a storage class name. Must be one of [%v]", args) {
+ input.parameters.includeStorageClassesInMessage
+ args := [
+ concat(", ", [n | data.inventory.cluster["storage.k8s.io/v1"]["StorageClass"][n]])
+ ]
+ } else := sprintf(
+ "statefulset did not specify a storage class name.",
+ []
+ )
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/template.yaml
+```
+## Examples
+
+storageclass
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sStorageClass
+metadata:
+ name: storageclass
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["PersistentVolumeClaim"]
+ - apiGroups: ["apps"]
+ kinds: ["StatefulSet"]
+ parameters:
+ includeStorageClassesInMessage: true
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass/constraint.yaml
+```
+
+
+
+
+example-allowed-pvc
+
+```yaml
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: ok
+spec:
+ accessModes:
+ - ReadWriteOnce
+ volumeMode: Filesystem
+ resources:
+ requests:
+ storage: 8Gi
+ storageClassName: somestorageclass
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass/example_allowed_pvc.yaml
+```
+
+
+
+example-allowed-ss
+
+```yaml
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: volumeclaimstorageclass
+spec:
+ selector:
+ matchLabels:
+ app: volumeclaimstorageclass
+ serviceName: volumeclaimstorageclass
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: volumeclaimstorageclass
+ spec:
+ containers:
+ - name: main
+ image: registry.k8s.io/nginx-slim:0.8
+ volumeMounts:
+ - name: data
+ mountPath: /usr/share/nginx/html
+ volumeClaimTemplates:
+ - metadata:
+ name: data
+ spec:
+ accessModes: ["ReadWriteOnce"]
+ storageClassName: "somestorageclass"
+ resources:
+ requests:
+ storage: 1Gi
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass/example_allowed_ss.yaml
+```
+
+
+
+example-disallowed-pvc-badname
+
+```yaml
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: badstorageclass
+spec:
+ accessModes:
+ - ReadWriteOnce
+ volumeMode: Filesystem
+ resources:
+ requests:
+ storage: 8Gi
+ storageClassName: badstorageclass
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass/example_disallowed_pvc_badname.yaml
+```
+
+
+
+example-disallowed-ssvct-badnamename
+
+```yaml
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: badvolumeclaimstorageclass
+spec:
+ selector:
+ matchLabels:
+ app: badvolumeclaimstorageclass
+ serviceName: badvolumeclaimstorageclass
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: badvolumeclaimstorageclass
+ spec:
+ containers:
+ - name: main
+ image: registry.k8s.io/nginx-slim:0.8
+ volumeMounts:
+ - name: data
+ mountPath: /usr/share/nginx/html
+ volumeClaimTemplates:
+ - metadata:
+ name: data
+ spec:
+ accessModes: ["ReadWriteOnce"]
+ storageClassName: "badstorageclass"
+ resources:
+ requests:
+ storage: 1Gi
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass/example_disallowed_ssvct_badnamename.yaml
+```
+
+
+
+example-disallowed-pvc-nonamename
+
+```yaml
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: nostorageclass
+spec:
+ accessModes:
+ - ReadWriteOnce
+ volumeMode: Filesystem
+ resources:
+ requests:
+ storage: 8Gi
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass/example_disallowed_pvc_nonamename.yaml
+```
+
+
+
+example-disallowed-ssvct-nonamename
+
+```yaml
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: novolumeclaimstorageclass
+spec:
+ selector:
+ matchLabels:
+ app: novolumeclaimstorageclass
+ serviceName: novolumeclaimstorageclass
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: novolumeclaimstorageclass
+ spec:
+ containers:
+ - name: main
+ image: registry.k8s.io/nginx-slim:0.8
+ volumeMounts:
+ - name: data
+ mountPath: /usr/share/nginx/html
+ volumeClaimTemplates:
+ - metadata:
+ name: data
+ spec:
+ accessModes: ["ReadWriteOnce"]
+ resources:
+ requests:
+ storage: 1Gi
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass/example_disallowed_ssvct_nonamename.yaml
+```
+
+
+
+
+
+storageclass-allowlist
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sStorageClass
+metadata:
+ name: allowed-storageclass
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["PersistentVolumeClaim"]
+ - apiGroups: ["apps"]
+ kinds: ["StatefulSet"]
+ parameters:
+ includeStorageClassesInMessage: true
+ allowedStorageClasses:
+ - allowed-storage-class
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass-allowlist/constraint.yaml
+```
+
+
+
+
+allowed-storage-class-pvc
+
+```yaml
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: allowed-storage-class-pvc
+spec:
+ accessModes:
+ - ReadWriteOnce
+ volumeMode: Filesystem
+ resources:
+ requests:
+ storage: 8Gi
+ storageClassName: allowed-storage-class
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass-allowlist/example_allowed.yaml
+```
+
+
+
+disallowed-storage-class-pvc
+
+```yaml
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: disallowed-storage-class-pvc
+spec:
+ accessModes:
+ - ReadWriteOnce
+ volumeMode: Filesystem
+ resources:
+ requests:
+ storage: 8Gi
+ storageClassName: disallowed-storage-class
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/storageclass/samples/storageclass-allowlist/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/uniqueingresshost.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/uniqueingresshost.md
new file mode 100644
index 0000000000000000000000000000000000000000..7b07ae3497404a9d7c6727bed13c4d97ef67a363
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/uniqueingresshost.md
@@ -0,0 +1,216 @@
+---
+id: uniqueingresshost
+title: Unique Ingress Host
+---
+
+# Unique Ingress Host
+
+## Description
+Requires all Ingress rule hosts to be unique.
+Does not handle hostname wildcards: https://kubernetes.io/docs/concepts/services-networking/ingress/
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8suniqueingresshost
+ annotations:
+ metadata.gatekeeper.sh/title: "Unique Ingress Host"
+ metadata.gatekeeper.sh/version: 1.0.4
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups": ["extensions"],
+ "versions": ["v1beta1"],
+ "kinds": ["Ingress"]
+ },
+ {
+ "groups": ["networking.k8s.io"],
+ "versions": ["v1beta1", "v1"],
+ "kinds": ["Ingress"]
+ }
+ ]
+ ]"
+ description: >-
+ Requires all Ingress rule hosts to be unique.
+
+ Does not handle hostname wildcards:
+ https://kubernetes.io/docs/concepts/services-networking/ingress/
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sUniqueIngressHost
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8suniqueingresshost
+
+ identical(obj, review) {
+ obj.metadata.namespace == review.object.metadata.namespace
+ obj.metadata.name == review.object.metadata.name
+ }
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "Ingress"
+ regex.match("^(extensions|networking.k8s.io)$", input.review.kind.group)
+ host := input.review.object.spec.rules[_].host
+ other := data.inventory.namespace[_][otherapiversion]["Ingress"][name]
+ regex.match("^(extensions|networking.k8s.io)/.+$", otherapiversion)
+ other.spec.rules[_].host == host
+ not identical(other, input.review)
+ msg := sprintf("ingress host conflicts with an existing ingress <%v>", [host])
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueingresshost/template.yaml
+```
+## Examples
+
+unique-ingress-host
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sUniqueIngressHost
+metadata:
+ name: unique-ingress-host
+spec:
+ match:
+ kinds:
+ - apiGroups: ["extensions", "networking.k8s.io"]
+ kinds: ["Ingress"]
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueingresshost/samples/unique-ingress-host/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: ingress-host-allowed
+ namespace: default
+spec:
+ rules:
+ - host: example-allowed-host.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx
+ port:
+ number: 80
+ - host: example-allowed-host1.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx2
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueingresshost/samples/unique-ingress-host/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: ingress-host-disallowed
+ namespace: default
+spec:
+ rules:
+ - host: example-host.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueingresshost/samples/unique-ingress-host/example_disallowed.yaml
+```
+
+
+
+example-disallowed2
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: ingress-host-disallowed2
+ namespace: default
+spec:
+ rules:
+ - host: example-host2.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx
+ port:
+ number: 80
+ - host: example-host3.example.com
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: nginx2
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueingresshost/samples/unique-ingress-host/example_disallowed2.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/uniqueserviceselector.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/uniqueserviceselector.md
new file mode 100644
index 0000000000000000000000000000000000000000..a860b7d620296b4a916d345b85c3d1f4defbe4ab
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/uniqueserviceselector.md
@@ -0,0 +1,165 @@
+---
+id: uniqueserviceselector
+title: Unique Service Selector
+---
+
+# Unique Service Selector
+
+## Description
+Requires Services to have unique selectors within a namespace. Selectors are considered the same if they have identical keys and values. Selectors may share a key/value pair so long as there is at least one distinct key/value pair between them.
+https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8suniqueserviceselector
+ annotations:
+ metadata.gatekeeper.sh/title: "Unique Service Selector"
+ metadata.gatekeeper.sh/version: 1.0.2
+ metadata.gatekeeper.sh/requires-sync-data: |
+ "[
+ [
+ {
+ "groups":[""],
+ "versions": ["v1"],
+ "kinds": ["Service"]
+ }
+ ]
+ ]"
+ description: >-
+ Requires Services to have unique selectors within a namespace.
+ Selectors are considered the same if they have identical keys and values.
+ Selectors may share a key/value pair so long as there is at least one
+ distinct key/value pair between them.
+
+ https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sUniqueServiceSelector
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8suniqueserviceselector
+
+ make_apiversion(kind) = apiVersion {
+ g := kind.group
+ v := kind.version
+ g != ""
+ apiVersion = sprintf("%v/%v", [g, v])
+ }
+
+ make_apiversion(kind) = apiVersion {
+ kind.group == ""
+ apiVersion = kind.version
+ }
+
+ identical(obj, review) {
+ obj.metadata.namespace == review.namespace
+ obj.metadata.name == review.name
+ obj.kind == review.kind.kind
+ obj.apiVersion == make_apiversion(review.kind)
+ }
+
+ flatten_selector(obj) = flattened {
+ selectors := [s | s = concat(":", [key, val]); val = obj.spec.selector[key]]
+ flattened := concat(",", sort(selectors))
+ }
+
+ violation[{"msg": msg}] {
+ input.review.kind.kind == "Service"
+ input.review.kind.version == "v1"
+ input.review.kind.group == ""
+ input_selector := flatten_selector(input.review.object)
+ other := data.inventory.namespace[namespace][_]["Service"][name]
+ not identical(other, input.review)
+ other_selector := flatten_selector(other)
+ input_selector == other_selector
+ msg := sprintf("same selector as service <%v> in namespace <%v>", [name, namespace])
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueserviceselector/template.yaml
+```
+## Examples
+
+unique-service-selector
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sUniqueServiceSelector
+metadata:
+ name: unique-service-selector
+ labels:
+ owner: admin.agilebank.demo
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueserviceselector/samples/unique-service-selector/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: gatekeeper-test-service-disallowed
+ namespace: default
+spec:
+ ports:
+ - port: 443
+ selector:
+ key: other-value
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueserviceselector/samples/unique-service-selector/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Service
+metadata:
+ name: gatekeeper-test-service-disallowed
+ namespace: default
+spec:
+ ports:
+ - port: 443
+ selector:
+ key: value
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/uniqueserviceselector/samples/unique-service-selector/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/users.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/users.md
new file mode 100644
index 0000000000000000000000000000000000000000..d02bfdf00968f9d0d4edc21420416ba918cdb605
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/users.md
@@ -0,0 +1,434 @@
+---
+id: users
+title: Allowed Users
+---
+
+# Allowed Users
+
+**Bundles:** `pod-security-restricted`
+
+## Description
+Controls the user and group IDs of the container and some volumes. Corresponds to the `runAsUser`, `runAsGroup`, `supplementalGroups`, and `fsGroup` fields in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#users-and-groups
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspallowedusers
+ annotations:
+ metadata.gatekeeper.sh/title: "Allowed Users"
+ metadata.gatekeeper.sh/version: 1.0.3
+ metadata.gatekeeper.sh/bundle: "pod-security-restricted"
+ description: >-
+ Controls the user and group IDs of the container and some volumes.
+ Corresponds to the `runAsUser`, `runAsGroup`, `supplementalGroups`, and
+ `fsGroup` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#users-and-groups
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPAllowedUsers
+ validation:
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Controls the user and group IDs of the container and some volumes.
+ Corresponds to the `runAsUser`, `runAsGroup`, `supplementalGroups`, and
+ `fsGroup` fields in a PodSecurityPolicy. For more information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#users-and-groups
+ properties:
+ exemptImages:
+ description: >-
+ Any container that uses an image that matches an entry in this list will be excluded
+ from enforcement. Prefix-matching can be signified with `*`. For example: `my-image-*`.
+
+ It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name)
+ in order to avoid unexpectedly exempting images from an untrusted repository.
+ type: array
+ items:
+ type: string
+ runAsUser:
+ type: object
+ description: "Controls which user ID values are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the runAsUser restriction."
+ enum:
+ - MustRunAs
+ - MustRunAsNonRoot
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of user ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of user IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum user ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum user ID in the range, inclusive."
+ runAsGroup:
+ type: object
+ description: "Controls which group ID values are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the runAsGroup restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ supplementalGroups:
+ type: object
+ description: "Controls the supplementalGroups values that are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the supplementalGroups restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ fsGroup:
+ type: object
+ description: "Controls the fsGroup values that are allowed in a Pod or container-level SecurityContext."
+ properties:
+ rule:
+ type: string
+ description: "A strategy for applying the fsGroup restriction."
+ enum:
+ - MustRunAs
+ - MayRunAs
+ - RunAsAny
+ ranges:
+ type: array
+ description: "A list of group ID ranges affected by the rule."
+ items:
+ type: object
+ description: "The range of group IDs affected by the rule."
+ properties:
+ min:
+ type: integer
+ description: "The minimum group ID in the range, inclusive."
+ max:
+ type: integer
+ description: "The maximum group ID in the range, inclusive."
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spspallowedusers
+
+ import data.lib.exclude_update.is_update
+ import data.lib.exempt_container.is_exempt
+
+ violation[{"msg": msg}] {
+ # runAsUser, runAsGroup, supplementalGroups, fsGroup fields are immutable.
+ not is_update(input.review)
+
+ fields := ["runAsUser", "runAsGroup", "supplementalGroups", "fsGroup"]
+ field := fields[_]
+ container := input_containers[_]
+ not is_exempt(container)
+ msg := get_type_violation(field, container)
+ }
+
+ get_type_violation(field, container) = msg {
+ field == "runAsUser"
+ params := input.parameters[field]
+ msg := get_user_violation(params, container)
+ }
+
+ get_type_violation(field, container) = msg {
+ field != "runAsUser"
+ params := input.parameters[field]
+ msg := get_violation(field, params, container)
+ }
+
+ # RunAsUser (separate due to "MustRunAsNonRoot")
+ get_user_violation(params, container) = msg {
+ rule := params.rule
+ provided_user := get_field_value("runAsUser", container, input.review)
+ not accept_users(rule, provided_user)
+ msg := sprintf("Container %v is attempting to run as disallowed user %v. Allowed runAsUser: %v", [container.name, provided_user, params])
+ }
+
+ get_user_violation(params, container) = msg {
+ not get_field_value("runAsUser", container, input.review)
+ params.rule = "MustRunAs"
+ msg := sprintf("Container %v is attempting to run without a required securityContext/runAsUser", [container.name])
+ }
+
+ get_user_violation(params, container) = msg {
+ params.rule = "MustRunAsNonRoot"
+ not get_field_value("runAsUser", container, input.review)
+ not get_field_value("runAsNonRoot", container, input.review)
+ msg := sprintf("Container %v is attempting to run without a required securityContext/runAsNonRoot or securityContext/runAsUser != 0", [container.name])
+ }
+
+ accept_users("RunAsAny", _)
+
+ accept_users("MustRunAsNonRoot", provided_user) := provided_user != 0
+
+ accept_users("MustRunAs", provided_user) := res {
+ ranges := input.parameters.runAsUser.ranges
+ res := is_in_range(provided_user, ranges)
+ }
+
+ # Group Options
+ get_violation(field, params, container) = msg {
+ rule := params.rule
+ provided_value := get_field_value(field, container, input.review)
+ not is_array(provided_value)
+ not accept_value(rule, provided_value, params.ranges)
+ msg := sprintf("Container %v is attempting to run as disallowed group %v. Allowed %v: %v", [container.name, provided_value, field, params])
+ }
+ # SupplementalGroups is array value
+ get_violation(field, params, container) = msg {
+ rule := params.rule
+ array_value := get_field_value(field, container, input.review)
+ is_array(array_value)
+ provided_value := array_value[_]
+ not accept_value(rule, provided_value, params.ranges)
+ msg := sprintf("Container %v is attempting to run with disallowed supplementalGroups %v. Allowed %v: %v", [container.name, array_value, field, params])
+ }
+
+ get_violation(field, params, container) = msg {
+ not get_field_value(field, container, input.review)
+ params.rule == "MustRunAs"
+ msg := sprintf("Container %v is attempting to run without a required securityContext/%v. Allowed %v: %v", [container.name, field, field, params])
+ }
+
+ accept_value("RunAsAny", _, _)
+
+ accept_value("MayRunAs", provided_value, ranges) := is_in_range(provided_value, ranges)
+
+ accept_value("MustRunAs", provided_value, ranges) := is_in_range(provided_value, ranges)
+
+
+ # If container level is provided, that takes precedence
+ get_field_value(field, container, _) := get_seccontext_field(field, container)
+
+ # If no container level exists, use pod level
+ get_field_value(field, container, review) = out {
+ not has_seccontext_field(field, container)
+ review.kind.kind == "Pod"
+ pod_value := get_seccontext_field(field, review.object.spec)
+ out := pod_value
+ }
+
+ # Helper Functions
+ is_in_range(val, ranges) = res {
+ matching := {1 | val >= ranges[j].min; val <= ranges[j].max}
+ res := count(matching) > 0
+ }
+
+ has_seccontext_field(field, obj) {
+ get_seccontext_field(field, obj)
+ }
+
+ has_seccontext_field(field, obj) {
+ get_seccontext_field(field, obj) == false
+ }
+
+ get_seccontext_field(field, obj) = out {
+ out = obj.securityContext[field]
+ }
+
+ input_containers[c] {
+ c := input.review.object.spec.containers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.initContainers[_]
+ }
+ input_containers[c] {
+ c := input.review.object.spec.ephemeralContainers[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+ - |
+ package lib.exempt_container
+
+ is_exempt(container) {
+ exempt_images := object.get(object.get(input, "parameters", {}), "exemptImages", [])
+ img := container.image
+ exemption := exempt_images[_]
+ _matches_exemption(img, exemption)
+ }
+
+ _matches_exemption(img, exemption) {
+ not endswith(exemption, "*")
+ exemption == img
+ }
+
+ _matches_exemption(img, exemption) {
+ endswith(exemption, "*")
+ prefix := trim_suffix(exemption, "*")
+ startswith(img, prefix)
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/users/template.yaml
+```
+## Examples
+
+users-and-groups-together
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPAllowedUsers
+metadata:
+ name: psp-pods-allowed-user-ranges
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ runAsUser:
+ rule: MustRunAsNonRoot
+ runAsGroup:
+ rule: RunAsAny
+ supplementalGroups:
+ rule: RunAsAny
+ fsGroup:
+ rule: RunAsAny
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-users-disallowed
+ labels:
+ app: nginx-users
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ runAsUser: 0
+ runAsGroup: 0
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-users-allowed
+ labels:
+ app: nginx-users
+spec:
+ securityContext:
+ runAsNonRoot: true
+ containers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ runAsUser: 1000
+ runAsGroup: 1000
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/example_allowed.yaml
+```
+
+
+
+disallowed-ephemeral
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-users-disallowed
+ labels:
+ app: nginx-users
+spec:
+ ephemeralContainers:
+ - name: nginx
+ image: nginx
+ securityContext:
+ runAsUser: 0
+ runAsGroup: 0
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/disallowed_ephemeral.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/verifydeprecatedapi.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/verifydeprecatedapi.md
new file mode 100644
index 0000000000000000000000000000000000000000..b00e665300d6e0ce6679fc9dfe3d86f35eb18092
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/verifydeprecatedapi.md
@@ -0,0 +1,781 @@
+---
+id: verifydeprecatedapi
+title: Verify deprecated APIs
+---
+
+# Verify deprecated APIs
+
+## Description
+Verifies deprecated Kubernetes APIs to ensure all the API versions are up to date. This template does not apply to audit as audit looks at the resources which are already present in the cluster with non-deprecated API versions.
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: verifydeprecatedapi
+ annotations:
+ metadata.gatekeeper.sh/title: "Verify deprecated APIs"
+ metadata.gatekeeper.sh/version: 1.0.0
+ description: >-
+ Verifies deprecated Kubernetes APIs to ensure all the API versions are up to date. This template does not apply to audit as audit looks at the resources which are already present in the cluster with non-deprecated API versions.
+spec:
+ crd:
+ spec:
+ names:
+ kind: VerifyDeprecatedAPI
+ validation:
+ openAPIV3Schema:
+ type: object
+ properties:
+ kvs:
+ type: array
+ description: Deprecated api versions and corresponding kinds
+ items:
+ type: object
+ properties:
+ deprecatedAPI:
+ type: string
+ description: deprecated api
+ example: flowcontrol.apiserver.k8s.io/v1beta2
+ kinds:
+ type: array
+ items:
+ type: string
+ description: impacted list of kinds
+ example: '["FlowSchema", "PriorityLevelConfiguration"]'
+ targetAPI:
+ type: string
+ description: target api
+ example: flowcontrol.apiserver.k8s.io/v1beta3
+ k8sVersion:
+ type: number
+ description: kubernetes version
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package verifydeprecatedapi
+
+ violation[{"msg": msg}] {
+ kvs := input.parameters.kvs[_]
+ kvs.deprecatedAPI == input.review.object.apiVersion
+ k := kvs.kinds[_]
+ k == input.review.object.kind
+ msg := get_message(input.review.object.kind, input.review.object.apiVersion, input.parameters.k8sVersion, kvs.targetAPI)
+ }
+
+ get_message(kind, apiVersion, k8sVersion, targetAPI) = msg {
+ not match(targetAPI)
+ msg := sprintf("API %v for %v is deprecated in Kubernetes version %v, please use %v instead", [kind, apiVersion, k8sVersion, targetAPI])
+ }
+
+ get_message(kind, apiVersion, k8sVersion, targetAPI) = msg {
+ match(targetAPI)
+ msg := sprintf("API %v for %v is deprecated in Kubernetes version %v, please see Kubernetes API deprecation guide", [kind, apiVersion, k8sVersion])
+ }
+
+ match(api) {
+ api == "None"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/template.yaml
+```
+## Examples
+
+verifydeprecatedapi-1.16
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: VerifyDeprecatedAPI
+metadata:
+ name: verify-1.16
+spec:
+ match:
+ kinds:
+ - apiGroups: ["apps"]
+ kinds: ["Deployment", "ReplicaSet", "StatefulSet", "DaemonSet"]
+ - apiGroups: ["extensions"]
+ kinds: ["PodSecurityPolicy", "ReplicaSet", "Deployment", "DaemonSet", "NetworkPolicy"]
+ parameters:
+ kvs:
+ - deprecatedAPI: "apps/v1beta1"
+ kinds: ["Deployment", "ReplicaSet", "StatefulSet"]
+ targetAPI: "apps/v1"
+ - deprecatedAPI: "extensions/v1beta1"
+ kinds: ["ReplicaSet", "Deployment", "DaemonSet"]
+ targetAPI: "apps/v1"
+ - deprecatedAPI: "extensions/v1beta1"
+ kinds: ["PodSecurityPolicy"]
+ targetAPI: "policy/v1beta1"
+ - deprecatedAPI: "apps/v1beta2"
+ kinds: ["ReplicaSet", "StatefulSet", "Deployment", "DaemonSet"]
+ targetAPI: "apps/v1"
+ - deprecatedAPI: "extensions/v1beta1"
+ kinds: ["NetworkPolicy"]
+ targetAPI: "networking.k8s.io/v1"
+ k8sVersion: 1.16
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.16/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: allowed-deployment
+ labels:
+ app: nginx
+spec:
+ replicas: 3
+ selector:
+ matchLabels:
+ app: nginx
+ template:
+ metadata:
+ labels:
+ app: nginx
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.16/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+ name: disallowed-deployment
+ labels:
+ app: nginx
+spec:
+ replicas: 3
+ selector:
+ matchLabels:
+ app: nginx
+ template:
+ metadata:
+ labels:
+ app: nginx
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ ports:
+ - containerPort: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.16/example_disallowed.yaml
+```
+
+
+
+
+
+verifydeprecatedapi-1.22
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: VerifyDeprecatedAPI
+metadata:
+ name: verify-1.22
+spec:
+ match:
+ kinds:
+ - apiGroups: ["admissionregistration.k8s.io"]
+ kinds: ["MutatingWebhookConfiguration", "ValidatingWebhookConfiguration"]
+ - apiGroups: ["apiextensions.k8s.io"]
+ kinds: ["CustomResourceDefinition"]
+ - apiGroups: ["apiregistration.k8s.io"]
+ kinds: ["APIService"]
+ - apiGroups: ["authentication.k8s.io"]
+ kinds: ["TokenReview"]
+ - apiGroups: ["authorization.k8s.io"]
+ kinds: ["SubjectAccessReview"]
+ - apiGroups: ["certificates.k8s.io"]
+ kinds: ["CertificateSigningRequest"]
+ - apiGroups: ["coordination.k8s.io"]
+ kinds: ["Lease"]
+ - apiGroups: ["extensions", "networking.k8s.io"]
+ kinds: ["Ingress"]
+ - apiGroups: ["networking.k8s.io"]
+ kinds: ["IngressClass"]
+ - apiGroups: ["rbac.authorization.k8s.io"]
+ kinds: ["ClusterRole", "ClusterRoleBinding", "Role", "RoleBinding"]
+ - apiGroups: ["scheduling.k8s.io"]
+ kinds: ["PriorityClass"]
+ - apiGroups: ["storage.k8s.io"]
+ kinds: ["CSIDriver", "CSINode", "StorageClass", "VolumeAttachment"]
+ parameters:
+ kvs:
+ - deprecatedAPI: "admissionregistration.k8s.io/v1beta1"
+ kinds: ["MutatingWebhookConfiguration", "ValidatingWebhookConfiguration"]
+ targetAPI: "admissionregistration.k8s.io/v1"
+ - deprecatedAPI: "apiextensions.k8s.io/v1beta1"
+ kinds: ["CustomResourceDefinition"]
+ targetAPI: "apiextensions.k8s.io/v1"
+ - deprecatedAPI: "apiregistration.k8s.io/v1beta1"
+ kinds: ["APIService"]
+ targetAPI: "apiregistration.k8s.io/v1"
+ - deprecatedAPI: "authentication.k8s.io/v1beta1"
+ kinds: ["TokenReview"]
+ targetAPI: "authentication.k8s.io/v1"
+ - deprecatedAPI: "authorization.k8s.io/v1beta1"
+ kinds: ["SubjectAccessReview"]
+ targetAPI: "authorization.k8s.io/v1"
+ - deprecatedAPI: "certificates.k8s.io/v1beta1"
+ kinds: ["CertificateSigningRequest"]
+ targetAPI: "certificates.k8s.io/v1"
+ - deprecatedAPI: "coordination.k8s.io/v1beta1"
+ kinds: ["Lease"]
+ targetAPI: "coordination.k8s.io/v1"
+ - deprecatedAPI: "extensions/v1beta1"
+ kinds: ["Ingress"]
+ targetAPI: "networking.k8s.io/v1"
+ - deprecatedAPI: "networking.k8s.io/v1beta1"
+ kinds: ["Ingress", "IngressClass"]
+ targetAPI: "networking.k8s.io/v1"
+ - deprecatedAPI: "rbac.authorization.k8s.io/v1beta1"
+ kinds: ["ClusterRole", "ClusterRoleBinding", "Role", "RoleBinding"]
+ targetAPI: "rbac.authorization.k8s.io/v1"
+ - deprecatedAPI: "scheduling.k8s.io/v1beta1"
+ kinds: ["PriorityClass"]
+ targetAPI: "scheduling.k8s.io/v1"
+ - deprecatedAPI: "storage.k8s.io/v1beta1"
+ kinds: ["CSIDriver", "CSINode", "StorageClass", "VolumeAttachment"]
+ targetAPI: "storage.k8s.io/v1"
+ k8sVersion: 1.22
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.22/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: allowed-ingress
+ annotations:
+ nginx.ingress.kubernetes.io/rewrite-target: /
+spec:
+ ingressClassName: nginx-example
+ rules:
+ - http:
+ paths:
+ - path: /testpath
+ pathType: Prefix
+ backend:
+ service:
+ name: test
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.22/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: networking.k8s.io/v1beta1
+kind: Ingress
+metadata:
+ name: disallowed-ingress
+ annotations:
+ nginx.ingress.kubernetes.io/rewrite-target: /
+spec:
+ ingressClassName: nginx-example
+ rules:
+ - http:
+ paths:
+ - path: /testpath
+ pathType: Prefix
+ backend:
+ service:
+ name: test
+ port:
+ number: 80
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.22/example_disallowed.yaml
+```
+
+
+
+
+
+verifydeprecatedapi-1.25
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: VerifyDeprecatedAPI
+metadata:
+ name: verify-1.25
+spec:
+ match:
+ kinds:
+ - apiGroups: ["batch"]
+ kinds: ["CronJob"]
+ - apiGroups: ["discovery.k8s.io"]
+ kinds: ["EndpointSlice"]
+ - apiGroups: ["events.k8s.io"]
+ kinds: ["Event"]
+ - apiGroups: ["autoscaling"]
+ kinds: ["HorizontalPodAutoscaler"]
+ - apiGroups: ["policy"]
+ kinds: ["PodDisruptionBudget", "PodSecurityPolicy"]
+ - apiGroups: ["node.k8s.io"]
+ kinds: ["RuntimeClass"]
+ parameters:
+ kvs:
+ - deprecatedAPI: "batch/v1beta1"
+ kinds: ["CronJob"]
+ targetAPI: "batch/v1"
+ - deprecatedAPI: "discovery.k8s.io/v1beta1"
+ kinds: ["EndpointSlice"]
+ targetAPI: "discovery.k8s.io/v1"
+ - deprecatedAPI: "events.k8s.io/v1beta1"
+ kinds: ["Event"]
+ targetAPI: "events.k8s.io/v1"
+ - deprecatedAPI: "autoscaling/v2beta1"
+ kinds: ["HorizontalPodAutoscaler"]
+ targetAPI: "autoscaling/v2"
+ - deprecatedAPI: "policy/v1beta1"
+ kinds: ["PodDisruptionBudget"]
+ targetAPI: "policy/v1"
+ - deprecatedAPI: "policy/v1beta1"
+ kinds: ["PodSecurityPolicy"]
+ targetAPI: "None"
+ - deprecatedAPI: "node.k8s.io/v1beta1"
+ kinds: ["RuntimeClass"]
+ targetAPI: "node.k8s.io/v1"
+ k8sVersion: 1.25
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.25/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: batch/v1
+kind: CronJob
+metadata:
+ name: allowed-cronjob
+ namespace: default
+spec:
+ schedule: "* * * * *"
+ jobTemplate:
+ spec:
+ template:
+ spec:
+ containers:
+ - name: hello
+ image: busybox:1.28
+ imagePullPolicy: IfNotPresent
+ command:
+ - /bin/sh
+ - -c
+ - date; echo Hello from the Kubernetes cluster
+ restartPolicy: OnFailure
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.25/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: batch/v1beta1
+kind: CronJob
+metadata:
+ name: disallowed-cronjob
+ namespace: default
+spec:
+ schedule: "* * * * *"
+ jobTemplate:
+ spec:
+ template:
+ spec:
+ containers:
+ - name: hello
+ image: busybox:1.28
+ imagePullPolicy: IfNotPresent
+ command:
+ - /bin/sh
+ - -c
+ - date; echo Hello from the Kubernetes cluster
+ restartPolicy: OnFailure
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.25/example_disallowed.yaml
+```
+
+
+
+
+
+verifydeprecatedapi-1.26
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: VerifyDeprecatedAPI
+metadata:
+ name: verify-1.26
+spec:
+ match:
+ kinds:
+ - apiGroups: ["flowcontrol.apiserver.k8s.io"]
+ kinds: ["FlowSchema", "PriorityLevelConfiguration"]
+ - apiGroups: ["autoscaling"]
+ kinds: ["HorizontalPodAutoscaler"]
+ parameters:
+ kvs:
+ - deprecatedAPI: "flowcontrol.apiserver.k8s.io/v1beta1"
+ kinds: ["FlowSchema", "PriorityLevelConfiguration"]
+ targetAPI: "flowcontrol.apiserver.k8s.io/v1beta3"
+ - deprecatedAPI: "autoscaling/v2beta2"
+ kinds: ["HorizontalPodAutoscaler"]
+ targetAPI: "autoscaling/v2"
+ k8sVersion: 1.26
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.26/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
+kind: FlowSchema
+metadata:
+ name: allowed-flowcontrol
+ namespace: default
+spec:
+ matchingPrecedence: 1000
+ priorityLevelConfiguration:
+ name: exempt
+ rules:
+ - nonResourceRules:
+ - nonResourceURLs:
+ - "/healthz"
+ - "/livez"
+ - "/readyz"
+ verbs:
+ - "*"
+ subjects:
+ - kind: Group
+ group:
+ name: "system:unauthenticated"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.26/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: flowcontrol.apiserver.k8s.io/v1beta1
+kind: FlowSchema
+metadata:
+ name: disallowed-flowcontrol
+ namespace: default
+spec:
+ matchingPrecedence: 1000
+ priorityLevelConfiguration:
+ name: exempt
+ rules:
+ - nonResourceRules:
+ - nonResourceURLs:
+ - "/healthz"
+ - "/livez"
+ - "/readyz"
+ verbs:
+ - "*"
+ subjects:
+ - kind: Group
+ group:
+ name: "system:unauthenticated"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.26/example_disallowed.yaml
+```
+
+
+
+
+
+verifydeprecatedapi-1.27
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: VerifyDeprecatedAPI
+metadata:
+ name: verify-1.27
+spec:
+ match:
+ kinds:
+ - apiGroups: ["storage.k8s.io"]
+ kinds: ["CSIStorageCapacity"]
+ parameters:
+ kvs:
+ - deprecatedAPI: "storage.k8s.io/v1beta1"
+ kinds: ["CSIStorageCapacity"]
+ targetAPI: "storage.k8s.io/v1"
+ k8sVersion: 1.27
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.27/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: storage.k8s.io/v1
+kind: CSIStorageCapacity
+metadata:
+ name: allowed-csistoragecapacity
+storageClassName: standard
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.27/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: storage.k8s.io/v1beta1
+kind: CSIStorageCapacity
+metadata:
+ name: allowed-csistoragecapacity
+ namespace: default
+storageClassName: standard
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.27/example_disallowed.yaml
+```
+
+
+
+
+
+verifydeprecatedapi-1.29
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: VerifyDeprecatedAPI
+metadata:
+ name: verify-1.29
+spec:
+ match:
+ kinds:
+ - apiGroups: ["flowcontrol.apiserver.k8s.io"]
+ kinds: ["FlowSchema", "PriorityLevelConfiguration"]
+ parameters:
+ kvs:
+ - deprecatedAPI: "flowcontrol.apiserver.k8s.io/v1beta2"
+ kinds: ["FlowSchema", "PriorityLevelConfiguration"]
+ targetAPI: "flowcontrol.apiserver.k8s.io/v1beta3"
+ k8sVersion: 1.29
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.29/constraint.yaml
+```
+
+
+
+
+example-allowed
+
+```yaml
+apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
+kind: FlowSchema
+metadata:
+ name: allowed-flowcontrol
+ namespace: default
+spec:
+ matchingPrecedence: 1000
+ priorityLevelConfiguration:
+ name: exempt
+ rules:
+ - nonResourceRules:
+ - nonResourceURLs:
+ - "/healthz"
+ - "/livez"
+ - "/readyz"
+ verbs:
+ - "*"
+ subjects:
+ - kind: Group
+ group:
+ name: "system:unauthenticated"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.29/example_allowed.yaml
+```
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: flowcontrol.apiserver.k8s.io/v1beta2
+kind: FlowSchema
+metadata:
+ name: disallowed-flowcontrol
+ namespace: default
+spec:
+ matchingPrecedence: 1000
+ priorityLevelConfiguration:
+ name: exempt
+ rules:
+ - nonResourceRules:
+ - nonResourceURLs:
+ - "/healthz"
+ - "/livez"
+ - "/readyz"
+ verbs:
+ - "*"
+ subjects:
+ - kind: Group
+ group:
+ name: "system:unauthenticated"
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/general/verifydeprecatedapi/samples/verify-1.29/example_disallowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/volumes.md b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/volumes.md
new file mode 100644
index 0000000000000000000000000000000000000000..778ff1ee7babbd7e4f72385d3c1e35dcf5023cd0
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/validation/volumes.md
@@ -0,0 +1,203 @@
+---
+id: volumes
+title: Volume Types
+---
+
+# Volume Types
+
+**Bundles:** `pod-security-restricted`
+
+## Description
+Restricts mountable volume types to those specified by the user. Corresponds to the `volumes` field in a PodSecurityPolicy. For more information, see https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+
+## Template
+```yaml
+apiVersion: templates.gatekeeper.sh/v1
+kind: ConstraintTemplate
+metadata:
+ name: k8spspvolumetypes
+ annotations:
+ metadata.gatekeeper.sh/title: "Volume Types"
+ metadata.gatekeeper.sh/version: 1.0.3
+ metadata.gatekeeper.sh/bundle: "pod-security-restricted"
+ description: >-
+ Restricts mountable volume types to those specified by the user.
+ Corresponds to the `volumes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+spec:
+ crd:
+ spec:
+ names:
+ kind: K8sPSPVolumeTypes
+ validation:
+ # Schema for the `parameters` field
+ openAPIV3Schema:
+ type: object
+ description: >-
+ Restricts mountable volume types to those specified by the user.
+ Corresponds to the `volumes` field in a PodSecurityPolicy. For more
+ information, see
+ https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
+ properties:
+ volumes:
+ description: "`volumes` is an array of volume types. All volume types can be enabled using `*`."
+ type: array
+ items:
+ type: string
+ targets:
+ - target: admission.k8s.gatekeeper.sh
+ rego: |
+ package k8spspvolumetypes
+
+ import data.lib.exclude_update.is_update
+
+ violation[{"msg": msg, "details": {}}] {
+ # spec.volumes field is immutable.
+ not is_update(input.review)
+
+ volume_fields := {x | input.review.object.spec.volumes[_][x]; x != "name"}
+ field := volume_fields[_]
+ not input_volume_type_allowed(field)
+ msg := sprintf("The volume type %v is not allowed, pod: %v. Allowed volume types: %v", [field, input.review.object.metadata.name, input.parameters.volumes])
+ }
+
+ # * may be used to allow all volume types
+ input_volume_type_allowed(_) {
+ input.parameters.volumes[_] == "*"
+ }
+
+ input_volume_type_allowed(field) {
+ field == input.parameters.volumes[_]
+ }
+ libs:
+ - |
+ package lib.exclude_update
+
+ is_update(review) {
+ review.operation == "UPDATE"
+ }
+
+```
+
+### Usage
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/volumes/template.yaml
+```
+## Examples
+
+host-path-disallowed
+
+
+constraint
+
+```yaml
+apiVersion: constraints.gatekeeper.sh/v1beta1
+kind: K8sPSPVolumeTypes
+metadata:
+ name: psp-volume-types
+spec:
+ match:
+ kinds:
+ - apiGroups: [""]
+ kinds: ["Pod"]
+ parameters:
+ volumes:
+ # - "*" # * may be used to allow all volume types
+ - configMap
+ - csi
+ - downwardAPI
+ - emptyDir
+ - ephemeral
+ - persistentVolumeClaim
+ - projected
+ - secret
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/volumes/samples/psp-volume-types/constraint.yaml
+```
+
+
+
+
+example-disallowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-volume-types-disallowed
+ labels:
+ app: nginx-volume-types
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ - name: nginx2
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache2
+ name: demo-vol
+ volumes:
+ - name: cache-volume
+ hostPath:
+ path: /tmp # directory location on host
+ - name: demo-vol
+ emptyDir: {}
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/volumes/samples/psp-volume-types/example_disallowed.yaml
+```
+
+
+
+example-allowed
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-volume-types-allowed
+ labels:
+ app: nginx-volume-types
+spec:
+ containers:
+ - name: nginx
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache
+ name: cache-volume
+ - name: nginx2
+ image: nginx
+ volumeMounts:
+ - mountPath: /cache2
+ name: demo-vol
+ volumes:
+ - name: cache-volume
+ emptyDir: {}
+ - name: demo-vol
+ emptyDir: {}
+
+```
+
+Usage
+
+```shell
+kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/library/pod-security-policy/volumes/samples/psp-volume-types/example_allowed.yaml
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docusaurus.config.js b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docusaurus.config.js
new file mode 100644
index 0000000000000000000000000000000000000000..a30a1cd0116deb68d1e63026b85d60d10f9c994e
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docusaurus.config.js
@@ -0,0 +1,112 @@
+// @ts-check
+// Note: type annotations allow type checking and IDEs autocompletion
+
+const lightCodeTheme = require('prism-react-renderer').themes.github;
+const darkCodeTheme = require('prism-react-renderer').themes.dracula;
+
+/** @type {import('@docusaurus/types').Config} */
+const config = {
+ title: 'Gatekeeper Library',
+ tagline: 'Policy Controller for Kubernetes',
+ url: 'https://open-policy-agent.github.io',
+ baseUrl: '/gatekeeper-library/website/',
+ onBrokenLinks: 'throw',
+ onBrokenMarkdownLinks: 'warn',
+ favicon: 'img/favicon.ico',
+
+ // GitHub pages deployment config.
+ // If you aren't using GitHub pages, you don't need these.
+ organizationName: 'open-policy-agent', // Usually your GitHub org/user name.
+ projectName: 'gatekeeper-library', // Usually your repo name.
+
+ // Even if you don't use internalization, you can use this field to set useful
+ // metadata like html lang. For example, if your site is Chinese, you may want
+ // to replace "en" with "zh-Hans".
+ i18n: {
+ defaultLocale: 'en',
+ locales: ['en'],
+ },
+
+ presets: [
+ [
+ 'classic',
+ /** @type {import('@docusaurus/preset-classic').Options} */
+ ({
+ docs: {
+ sidebarPath: require.resolve('./sidebars.js'),
+ editUrl:
+ 'https://github.com/open-policy-agent/gatekeeper-library/edit/master/website',
+ routeBasePath: '/',
+ sidebarCollapsed: true
+ },
+ blog: false,
+ theme: {
+ customCss: require.resolve('./src/css/custom.css'),
+ },
+ gtag: {
+ trackingID: 'G-RX9N8G7RS5',
+ anonymizeIP: true,
+ },
+ }),
+ ],
+ ],
+
+ themeConfig:
+ /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
+ ({
+ algolia: {
+ appId: '50R2XL9XTU',
+ apiKey: 'c6cf0797aa351ac2c8640899d40c8821',
+ indexName: 'gatekeeper-library-web',
+ },
+ colorMode: {
+ defaultMode: 'light',
+ disableSwitch: false,
+ respectPrefersColorScheme: true,
+ },
+ navbar: {
+ title: 'Gatekeeper Library',
+ logo: {
+ alt: 'Gatekeeper logo',
+ src: 'img/logo.svg',
+ href: 'https://open-policy-agent.github.io/gatekeeper-library/',
+ },
+ items: [
+ {
+ href: 'https://github.com/open-policy-agent/gatekeeper-library',
+ position: 'right',
+ className: 'header-github-link',
+ 'aria-label': 'GitHub repository',
+ },
+ ],
+ },
+ footer: {
+ style: 'dark',
+ links: [
+ {
+ title: 'Community',
+ items: [
+ {
+ label: 'GitHub',
+ href: 'https://github.com/open-policy-agent/gatekeeper-library',
+ },
+ {
+ label: 'Slack',
+ href: 'https://openpolicyagent.slack.com/messages/CDTN970AX',
+ },
+ {
+ label: 'Meetings',
+ href: 'https://docs.google.com/document/d/1A1-Q-1OMw3QODs1wT6eqfLTagcGmgzAJAjJihiO3T48/edit)',
+ },
+ ],
+ },
+ ],
+ },
+ prism: {
+ theme: lightCodeTheme,
+ darkTheme: darkCodeTheme,
+ },
+ }),
+};
+
+module.exports = config;
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/package.json b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..a7cd2efb18b464025f34718fe596ab973120153c
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/package.json
@@ -0,0 +1,43 @@
+{
+ "name": "website",
+ "version": "0.0.0",
+ "private": true,
+ "scripts": {
+ "docusaurus": "docusaurus",
+ "start": "docusaurus start",
+ "build": "docusaurus build",
+ "swizzle": "docusaurus swizzle",
+ "deploy": "docusaurus deploy",
+ "clear": "docusaurus clear",
+ "serve": "docusaurus serve",
+ "write-translations": "docusaurus write-translations",
+ "write-heading-ids": "docusaurus write-heading-ids"
+ },
+ "dependencies": {
+ "@docusaurus/core": "3.0.1",
+ "@docusaurus/preset-classic": "3.0.1",
+ "@mdx-js/react": "^3.0.1",
+ "prism-react-renderer": "^2.3.1",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ },
+ "devDependencies": {
+ "@docusaurus/module-type-aliases": "3.0.1",
+ "@docusaurus/types": "3.0.1"
+ },
+ "browserslist": {
+ "production": [
+ ">0.5%",
+ "not dead",
+ "not op_mini all"
+ ],
+ "development": [
+ "last 1 chrome version",
+ "last 1 firefox version",
+ "last 1 safari version"
+ ]
+ },
+ "engines": {
+ "node": ">=18.00"
+ }
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/sidebars.js b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/sidebars.js
new file mode 100644
index 0000000000000000000000000000000000000000..c0ae2e0b8fbdf2040e9aade91026f0cf1f5a1c15
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/sidebars.js
@@ -0,0 +1,136 @@
+module.exports = {
+ docs: [
+ {
+ type: 'category',
+ label: 'Introduction',
+ collapsed: true,
+ items: [
+ 'intro',
+ ]
+ },
+ {
+ type: 'category',
+ label: 'Validation',
+ collapsed: true,
+ items: [
+ {
+ type: 'category',
+ label: 'General',
+ collapsed: true,
+ items: [
+ 'validation/allowedrepos',
+ 'validation/allowedreposv2',
+ 'validation/automount-serviceaccount-token',
+ 'validation/block-endpoint-edit-default-role',
+ 'validation/block-loadbalancer-services',
+ 'validation/block-nodeport-services',
+ 'validation/block-wildcard-ingress',
+ 'validation/containerlimits',
+ 'validation/containerrequests',
+ 'validation/containerresourceratios',
+ 'validation/containerresources',
+ 'validation/disallowanonymous',
+ 'validation/disallowedrepos',
+ 'validation/disallowedtags',
+ 'validation/disallowinteractive',
+ 'validation/ephemeralstoragelimit',
+ 'validation/externalip',
+ 'validation/horizontalpodautoscaler',
+ 'validation/httpsonly',
+ 'validation/imagedigests',
+ 'validation/noupdateserviceaccount',
+ 'validation/poddisruptionbudget',
+ 'validation/replicalimits',
+ 'validation/requiredannotations',
+ 'validation/requiredlabels',
+ 'validation/requiredprobes',
+ 'validation/storageclass',
+ 'validation/uniqueingresshost',
+ 'validation/uniqueserviceselector',
+ 'validation/verifydeprecatedapi',
+ ],
+ },
+ {
+ type: 'category',
+ label: 'Pod Security Standards',
+ collapsed: true,
+ items: [
+ 'pspintro',
+ {
+ type: 'category',
+ label: 'Profiles',
+ collapsed: true,
+ items: [
+ {
+ type: 'category',
+ label: 'Baseline',
+ collapsed: true,
+ items: [
+ 'validation/apparmor',
+ 'validation/capabilities',
+ 'validation/forbidden-sysctls',
+ 'validation/host-filesystem',
+ 'validation/host-namespaces',
+ 'validation/host-network-ports',
+ 'validation/host-probes-lifecycle',
+ 'validation/host-process',
+ 'validation/privileged-containers',
+ 'validation/proc-mount',
+ 'validation/seccompv2',
+ 'validation/selinux',
+ ],
+ },
+ {
+ type: 'category',
+ label: 'Restricted',
+ collapsed: true,
+ items: [
+ 'validation/allow-privilege-escalation',
+ 'validation/apparmor',
+ 'validation/capabilities',
+ 'validation/forbidden-sysctls',
+ 'validation/host-filesystem',
+ 'validation/host-namespaces',
+ 'validation/host-network-ports',
+ 'validation/host-probes-lifecycle',
+ 'validation/host-process',
+ 'validation/privileged-containers',
+ 'validation/proc-mount',
+ 'validation/seccompv2',
+ 'validation/selinux',
+ 'validation/users',
+ 'validation/volumes',
+ ],
+ },
+ ],
+ },
+ {
+ type: 'category',
+ label: 'Other',
+ collapsed: true,
+ items: [
+ 'validation/flexvolume-drivers',
+ 'validation/fsgroup',
+ 'validation/read-only-root-filesystem',
+ 'validation/seccomp',
+ ],
+ },
+ ],
+ },
+ ]
+ },
+ {
+ type: 'category',
+ label: 'Mutation',
+ collapsed: true,
+ items: [
+ 'mutation-examples/allow-privilege-escalation',
+ 'mutation-examples/capabilities',
+ 'mutation-examples/read-only-root-filesystem',
+ 'mutation-examples/seccomp',
+ 'mutation-examples/selinux',
+ 'mutation-examples/users',
+ ]
+ },
+ ],
+};
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/src/css/custom.css b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/src/css/custom.css
new file mode 100644
index 0000000000000000000000000000000000000000..ebfab2fe597b7c9fff454c261751a8ce32173f5b
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/src/css/custom.css
@@ -0,0 +1,48 @@
+/**
+ * Any CSS included here will be global. The classic template
+ * bundles Infima by default. Infima is a CSS framework designed to
+ * work well for content-centric websites.
+ */
+
+/* You can override the default Infima variables here. */
+:root {
+ --ifm-color-primary: #2e8555;
+ --ifm-color-primary-dark: #29784c;
+ --ifm-color-primary-darker: #277148;
+ --ifm-color-primary-darkest: #205d3b;
+ --ifm-color-primary-light: #33925d;
+ --ifm-color-primary-lighter: #359962;
+ --ifm-color-primary-lightest: #3cad6e;
+ --ifm-code-font-size: 95%;
+ --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
+}
+
+/* For readability concerns, you should choose a lighter palette in dark mode. */
+[data-theme='dark'] {
+ --ifm-color-primary: #25c2a0;
+ --ifm-color-primary-dark: #21af90;
+ --ifm-color-primary-darker: #1fa588;
+ --ifm-color-primary-darkest: #1a8870;
+ --ifm-color-primary-light: #29d5b0;
+ --ifm-color-primary-lighter: #32d8b4;
+ --ifm-color-primary-lightest: #4fddbf;
+ --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
+}
+
+.header-github-link:hover {
+ opacity: 0.6;
+}
+
+.header-github-link:before {
+ content: '';
+ width: 24px;
+ height: 24px;
+ display: flex;
+ background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
+ no-repeat;
+}
+
+html[data-theme='dark'] .header-github-link:before {
+ background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
+ no-repeat;
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/src/pages/index.module.css b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/src/pages/index.module.css
new file mode 100644
index 0000000000000000000000000000000000000000..9f71a5da775bd99379fa5c4d5bb73dc816d78bdd
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/src/pages/index.module.css
@@ -0,0 +1,23 @@
+/**
+ * CSS files with the .module.css suffix will be treated as CSS modules
+ * and scoped locally.
+ */
+
+.heroBanner {
+ padding: 4rem 0;
+ text-align: center;
+ position: relative;
+ overflow: hidden;
+}
+
+@media screen and (max-width: 996px) {
+ .heroBanner {
+ padding: 2rem;
+ }
+}
+
+.buttons {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/.nojekyll b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/.nojekyll
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/img/favicon.ico b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/img/favicon.ico
new file mode 100644
index 0000000000000000000000000000000000000000..50f3de17262736696ac0b10fc2e87313e8e46e4a
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/img/favicon.ico
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd4f0fb4e1bc85d257a819c4ce3ea2f6652575a71ee313c41c7c993412daa5fa
+size 154342
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/img/logo.svg b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/img/logo.svg
new file mode 100644
index 0000000000000000000000000000000000000000..c65ec359551f1e1de25e22642a1fbee3787a5c61
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/static/img/logo.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/yarn.lock b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/yarn.lock
new file mode 100644
index 0000000000000000000000000000000000000000..762dfee0297df6f8c50110dc09b185901c52b0d7
--- /dev/null
+++ b/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/yarn.lock
@@ -0,0 +1,8702 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+"@algolia/autocomplete-core@1.9.3":
+ version "1.9.3"
+ resolved "https://registry.yarnpkg.com/@algolia/autocomplete-core/-/autocomplete-core-1.9.3.tgz#1d56482a768c33aae0868c8533049e02e8961be7"
+ integrity sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==
+ dependencies:
+ "@algolia/autocomplete-plugin-algolia-insights" "1.9.3"
+ "@algolia/autocomplete-shared" "1.9.3"
+
+"@algolia/autocomplete-plugin-algolia-insights@1.9.3":
+ version "1.9.3"
+ resolved "https://registry.yarnpkg.com/@algolia/autocomplete-plugin-algolia-insights/-/autocomplete-plugin-algolia-insights-1.9.3.tgz#9b7f8641052c8ead6d66c1623d444cbe19dde587"
+ integrity sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==
+ dependencies:
+ "@algolia/autocomplete-shared" "1.9.3"
+
+"@algolia/autocomplete-preset-algolia@1.9.3":
+ version "1.9.3"
+ resolved "https://registry.yarnpkg.com/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.9.3.tgz#64cca4a4304cfcad2cf730e83067e0c1b2f485da"
+ integrity sha512-d4qlt6YmrLMYy95n5TB52wtNDr6EgAIPH81dvvvW8UmuWRgxEtY0NJiPwl/h95JtG2vmRM804M0DSwMCNZlzRA==
+ dependencies:
+ "@algolia/autocomplete-shared" "1.9.3"
+
+"@algolia/autocomplete-shared@1.9.3":
+ version "1.9.3"
+ resolved "https://registry.yarnpkg.com/@algolia/autocomplete-shared/-/autocomplete-shared-1.9.3.tgz#2e22e830d36f0a9cf2c0ccd3c7f6d59435b77dfa"
+ integrity sha512-Wnm9E4Ye6Rl6sTTqjoymD+l8DjSTHsHboVRYrKgEt8Q7UHm9nYbqhN/i0fhUYA3OAEH7WA8x3jfpnmJm3rKvaQ==
+
+"@algolia/cache-browser-local-storage@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.21.1.tgz#ecd8e6fe9a6ecbb63c9c29a9574e47315846347e"
+ integrity sha512-vUkac/vgj8inyGR/IgunRjTOQ6IlBwl7afFkIfUZRqbqKKXBs+A/g5wgH+UnAlCSW8wjFRAIfCzuvSRb1/qjsQ==
+ dependencies:
+ "@algolia/cache-common" "4.21.1"
+
+"@algolia/cache-common@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/cache-common/-/cache-common-4.21.1.tgz#86b9f5c8b5c21b7a6479d388e04678408a449e65"
+ integrity sha512-HUo4fRk8KXFMyCASW0k+Kl8iXBoRPdqAjV9OVaFibTNg1dbwnpe6eIxbSTM6AJ2X82ic/8x3GuAO8zF/E515PA==
+
+"@algolia/cache-in-memory@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/cache-in-memory/-/cache-in-memory-4.21.1.tgz#dfd3249c4887250fdceb76191b05ba95b94821b3"
+ integrity sha512-+l2pLg6yIwRaGNtv41pGF/f/e9Qk80FeYE41f4OXS9lb5vpyrxzqM5nUaffWk/ZSFrPDuw5J2E226c//tIIffA==
+ dependencies:
+ "@algolia/cache-common" "4.21.1"
+
+"@algolia/client-account@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/client-account/-/client-account-4.21.1.tgz#60e5225ea4b4440219030775dcb1b9bd3ad92e54"
+ integrity sha512-AC6SjA9n38th73gAUqcjsuxNUChpwaflaAhPL0qO9cUICN67njpQrnYaoSVZ/yx0opG5zQFRKbpEcuPGj0XjhQ==
+ dependencies:
+ "@algolia/client-common" "4.21.1"
+ "@algolia/client-search" "4.21.1"
+ "@algolia/transporter" "4.21.1"
+
+"@algolia/client-analytics@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/client-analytics/-/client-analytics-4.21.1.tgz#400d7defd32e8312ccdf8cd41533055f5ab4f52a"
+ integrity sha512-q6AxvAcBl4fNZXZsMwRRQXcsxUv0PK5eUAz/lHDvgkMWAg6cP7Fl+WIq0fHcG7cJA4EHf2sT5fV6Z+yUlf7NfA==
+ dependencies:
+ "@algolia/client-common" "4.21.1"
+ "@algolia/client-search" "4.21.1"
+ "@algolia/requester-common" "4.21.1"
+ "@algolia/transporter" "4.21.1"
+
+"@algolia/client-common@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/client-common/-/client-common-4.21.1.tgz#20798c96c1d45078648bf28dfb84e50cd13a5d94"
+ integrity sha512-LOH7ncYwY/x7epOgxc/MIuV7m3qzl00wIjDG5/9rgImFpkV0X+D/ndJI9DmPsIx7yaTLd5xv/XYuKLcvrUR0eQ==
+ dependencies:
+ "@algolia/requester-common" "4.21.1"
+ "@algolia/transporter" "4.21.1"
+
+"@algolia/client-personalization@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/client-personalization/-/client-personalization-4.21.1.tgz#55ed8edb8258b2f4b05bfc37d454dca9209bb106"
+ integrity sha512-u2CyQjHbyVwPqM5eSXd/o+rh1Pk949P/MO6s+OxyEGg6/R2YpYvmsafVZl9Q+xqT8pFaf5QygfcqlSdMUDHV5Q==
+ dependencies:
+ "@algolia/client-common" "4.21.1"
+ "@algolia/requester-common" "4.21.1"
+ "@algolia/transporter" "4.21.1"
+
+"@algolia/client-search@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/client-search/-/client-search-4.21.1.tgz#b08f6ccfaf404530e3e5a38e8492a635ff15153f"
+ integrity sha512-3KqSmMkQmF+ACY/Ms5TdcvrcK8iqgQP/N0EPnNUUP4LMUzAACpLLTdzA+AtCuc6oaz5ITtGJBVdPUljj5Jf/Lg==
+ dependencies:
+ "@algolia/client-common" "4.21.1"
+ "@algolia/requester-common" "4.21.1"
+ "@algolia/transporter" "4.21.1"
+
+"@algolia/events@^4.0.1":
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/@algolia/events/-/events-4.0.1.tgz#fd39e7477e7bc703d7f893b556f676c032af3950"
+ integrity sha512-FQzvOCgoFXAbf5Y6mYozw2aj5KCJoA3m4heImceldzPSMbdyS4atVjJzXKMsfX3wnZTFYwkkt8/z8UesLHlSBQ==
+
+"@algolia/logger-common@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/logger-common/-/logger-common-4.21.1.tgz#b0979321592af12b986aea2b7ac4fc368920860f"
+ integrity sha512-9AyYpR2OO9vPkkDlpTtW2/6nX+RmMd7LUwzJiAF3uN+BYUiQqgXEp+oGaH8UC0dgetmK7wJO6hw4b39cnTdEpw==
+
+"@algolia/logger-console@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/logger-console/-/logger-console-4.21.1.tgz#59bdceab3d93ed478e4cb61cfe8f951cb9ef1487"
+ integrity sha512-9wizQiQ8kL4DiBmT82i403UwacNuv+0hpfsfaWYZQrGjpzG+yvXETWM4AgwFZLj007esuKQiGfOPUoYFZNkGGA==
+ dependencies:
+ "@algolia/logger-common" "4.21.1"
+
+"@algolia/requester-browser-xhr@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.21.1.tgz#c841a76f64171d3b892aea16e23d819b7f6a8e0a"
+ integrity sha512-9NudesJLuXtRHV+JD8fTkrsdVj/oAPQbtLnxBbSQeMduzV6+a7W+G9VuWo5fwFymCdXR8/Hb6jy8D1owQIq5Gw==
+ dependencies:
+ "@algolia/requester-common" "4.21.1"
+
+"@algolia/requester-common@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/requester-common/-/requester-common-4.21.1.tgz#5fd9acce9faa8b931f91b0e86e384956874c3c43"
+ integrity sha512-KtX2Ep3C43XxoN3xKw755cdf9enE6gPgzh6ufZQRJBl4rYCOoXbiREU6noDYX/Nq+Q+sl03V37WAp0YgtIlh9g==
+
+"@algolia/requester-node-http@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/requester-node-http/-/requester-node-http-4.21.1.tgz#a39a0003e7697009da032238d2b3134a65ec9fae"
+ integrity sha512-EcD8cY6Bh2iMySpqXglTKU9+pt+km1ws3xF0V7CGMIUzW1HmN/ZVhi4apCBY4tEMytbyARv0XRTPsolSC4gSSw==
+ dependencies:
+ "@algolia/requester-common" "4.21.1"
+
+"@algolia/transporter@4.21.1":
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/@algolia/transporter/-/transporter-4.21.1.tgz#ffe43fb9d03c042aed89cec793687a41278fd35e"
+ integrity sha512-KGLFKz8krzOWRwcbR4FT49Grh1dES/mG8dHABEojbvrfUb6kUFxkAee/aezp2GIxuNx+gpQjRn1IzOsqbUZL0A==
+ dependencies:
+ "@algolia/cache-common" "4.21.1"
+ "@algolia/logger-common" "4.21.1"
+ "@algolia/requester-common" "4.21.1"
+
+"@ampproject/remapping@^2.2.0":
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630"
+ integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==
+ dependencies:
+ "@jridgewell/gen-mapping" "^0.3.0"
+ "@jridgewell/trace-mapping" "^0.3.9"
+
+"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.18.6", "@babel/code-frame@^7.8.3":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a"
+ integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==
+ dependencies:
+ "@babel/highlight" "^7.18.6"
+
+"@babel/code-frame@^7.22.13", "@babel/code-frame@^7.23.5":
+ version "7.23.5"
+ resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.5.tgz#9009b69a8c602293476ad598ff53e4562e15c244"
+ integrity sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==
+ dependencies:
+ "@babel/highlight" "^7.23.4"
+ chalk "^2.4.2"
+
+"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.23.3", "@babel/compat-data@^7.23.5":
+ version "7.23.5"
+ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.5.tgz#ffb878728bb6bdcb6f4510aa51b1be9afb8cfd98"
+ integrity sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==
+
+"@babel/core@^7.19.6", "@babel/core@^7.23.3":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.6.tgz#8be77cd77c55baadcc1eae1c33df90ab6d2151d4"
+ integrity sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==
+ dependencies:
+ "@ampproject/remapping" "^2.2.0"
+ "@babel/code-frame" "^7.23.5"
+ "@babel/generator" "^7.23.6"
+ "@babel/helper-compilation-targets" "^7.23.6"
+ "@babel/helper-module-transforms" "^7.23.3"
+ "@babel/helpers" "^7.23.6"
+ "@babel/parser" "^7.23.6"
+ "@babel/template" "^7.22.15"
+ "@babel/traverse" "^7.23.6"
+ "@babel/types" "^7.23.6"
+ convert-source-map "^2.0.0"
+ debug "^4.1.0"
+ gensync "^1.0.0-beta.2"
+ json5 "^2.2.3"
+ semver "^6.3.1"
+
+"@babel/generator@^7.23.3", "@babel/generator@^7.23.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.6.tgz#9e1fca4811c77a10580d17d26b57b036133f3c2e"
+ integrity sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==
+ dependencies:
+ "@babel/types" "^7.23.6"
+ "@jridgewell/gen-mapping" "^0.3.2"
+ "@jridgewell/trace-mapping" "^0.3.17"
+ jsesc "^2.5.1"
+
+"@babel/helper-annotate-as-pure@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb"
+ integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-annotate-as-pure@^7.22.5":
+ version "7.22.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882"
+ integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==
+ dependencies:
+ "@babel/types" "^7.22.5"
+
+"@babel/helper-builder-binary-assignment-operator-visitor@^7.22.15":
+ version "7.22.15"
+ resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz#5426b109cf3ad47b91120f8328d8ab1be8b0b956"
+ integrity sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==
+ dependencies:
+ "@babel/types" "^7.22.15"
+
+"@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.23.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991"
+ integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==
+ dependencies:
+ "@babel/compat-data" "^7.23.5"
+ "@babel/helper-validator-option" "^7.23.5"
+ browserslist "^4.22.2"
+ lru-cache "^5.1.1"
+ semver "^6.3.1"
+
+"@babel/helper-create-class-features-plugin@^7.18.9":
+ version "7.18.9"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.18.9.tgz#d802ee16a64a9e824fcbf0a2ffc92f19d58550ce"
+ integrity sha512-WvypNAYaVh23QcjpMR24CwZY2Nz6hqdOcFdPbNpV56hL5H6KiFheO7Xm1aPdlLQ7d5emYZX7VZwPp9x3z+2opw==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.18.6"
+ "@babel/helper-environment-visitor" "^7.18.9"
+ "@babel/helper-function-name" "^7.18.9"
+ "@babel/helper-member-expression-to-functions" "^7.18.9"
+ "@babel/helper-optimise-call-expression" "^7.18.6"
+ "@babel/helper-replace-supers" "^7.18.9"
+ "@babel/helper-split-export-declaration" "^7.18.6"
+
+"@babel/helper-create-class-features-plugin@^7.22.15", "@babel/helper-create-class-features-plugin@^7.23.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.6.tgz#b04d915ce92ce363666f816a884cdcfc9be04953"
+ integrity sha512-cBXU1vZni/CpGF29iTu4YRbOZt3Wat6zCoMDxRF1MayiEc4URxOj31tT65HUM0CRpMowA3HCJaAOVOUnMf96cw==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.22.5"
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-function-name" "^7.23.0"
+ "@babel/helper-member-expression-to-functions" "^7.23.0"
+ "@babel/helper-optimise-call-expression" "^7.22.5"
+ "@babel/helper-replace-supers" "^7.22.20"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
+ "@babel/helper-split-export-declaration" "^7.22.6"
+ semver "^6.3.1"
+
+"@babel/helper-create-regexp-features-plugin@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.18.6.tgz#3e35f4e04acbbf25f1b3534a657610a000543d3c"
+ integrity sha512-7LcpH1wnQLGrI+4v+nPp+zUvIkF9x0ddv1Hkdue10tg3gmRnLy97DXh4STiOf1qeIInyD69Qv5kKSZzKD8B/7A==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.18.6"
+ regexpu-core "^5.1.0"
+
+"@babel/helper-create-regexp-features-plugin@^7.22.15", "@babel/helper-create-regexp-features-plugin@^7.22.5":
+ version "7.22.15"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz#5ee90093914ea09639b01c711db0d6775e558be1"
+ integrity sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.22.5"
+ regexpu-core "^5.3.1"
+ semver "^6.3.1"
+
+"@babel/helper-define-polyfill-provider@^0.4.4":
+ version "0.4.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.4.tgz#64df615451cb30e94b59a9696022cffac9a10088"
+ integrity sha512-QcJMILQCu2jm5TFPGA3lCpJJTeEP+mqeXooG/NZbg/h5FTFi6V0+99ahlRsW8/kRLyb24LZVCCiclDedhLKcBA==
+ dependencies:
+ "@babel/helper-compilation-targets" "^7.22.6"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ debug "^4.1.1"
+ lodash.debounce "^4.0.8"
+ resolve "^1.14.2"
+
+"@babel/helper-environment-visitor@^7.18.9":
+ version "7.18.9"
+ resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be"
+ integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==
+
+"@babel/helper-environment-visitor@^7.22.20":
+ version "7.22.20"
+ resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167"
+ integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==
+
+"@babel/helper-function-name@^7.18.9":
+ version "7.18.9"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz#940e6084a55dee867d33b4e487da2676365e86b0"
+ integrity sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==
+ dependencies:
+ "@babel/template" "^7.18.6"
+ "@babel/types" "^7.18.9"
+
+"@babel/helper-function-name@^7.22.5", "@babel/helper-function-name@^7.23.0":
+ version "7.23.0"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759"
+ integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==
+ dependencies:
+ "@babel/template" "^7.22.15"
+ "@babel/types" "^7.23.0"
+
+"@babel/helper-hoist-variables@^7.22.5":
+ version "7.22.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb"
+ integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==
+ dependencies:
+ "@babel/types" "^7.22.5"
+
+"@babel/helper-member-expression-to-functions@^7.18.9":
+ version "7.18.9"
+ resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815"
+ integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==
+ dependencies:
+ "@babel/types" "^7.18.9"
+
+"@babel/helper-member-expression-to-functions@^7.22.15", "@babel/helper-member-expression-to-functions@^7.23.0":
+ version "7.23.0"
+ resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366"
+ integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==
+ dependencies:
+ "@babel/types" "^7.23.0"
+
+"@babel/helper-module-imports@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e"
+ integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-module-imports@^7.22.15":
+ version "7.22.15"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz#16146307acdc40cc00c3b2c647713076464bdbf0"
+ integrity sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==
+ dependencies:
+ "@babel/types" "^7.22.15"
+
+"@babel/helper-module-transforms@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz#d7d12c3c5d30af5b3c0fcab2a6d5217773e2d0f1"
+ integrity sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-module-imports" "^7.22.15"
+ "@babel/helper-simple-access" "^7.22.5"
+ "@babel/helper-split-export-declaration" "^7.22.6"
+ "@babel/helper-validator-identifier" "^7.22.20"
+
+"@babel/helper-optimise-call-expression@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe"
+ integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-optimise-call-expression@^7.22.5":
+ version "7.22.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz#f21531a9ccbff644fdd156b4077c16ff0c3f609e"
+ integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==
+ dependencies:
+ "@babel/types" "^7.22.5"
+
+"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
+ version "7.18.9"
+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz#4b8aea3b069d8cb8a72cdfe28ddf5ceca695ef2f"
+ integrity sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==
+
+"@babel/helper-plugin-utils@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz#2f75a831269d4f677de49986dff59927533cf375"
+ integrity sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==
+
+"@babel/helper-plugin-utils@^7.22.5":
+ version "7.22.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295"
+ integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==
+
+"@babel/helper-remap-async-to-generator@^7.22.20":
+ version "7.22.20"
+ resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz#7b68e1cb4fa964d2996fd063723fb48eca8498e0"
+ integrity sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.22.5"
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-wrap-function" "^7.22.20"
+
+"@babel/helper-replace-supers@^7.18.9":
+ version "7.18.9"
+ resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.18.9.tgz#1092e002feca980fbbb0bd4d51b74a65c6a500e6"
+ integrity sha512-dNsWibVI4lNT6HiuOIBr1oyxo40HvIVmbwPUm3XZ7wMh4k2WxrxTqZwSqw/eEmXDS9np0ey5M2bz9tBmO9c+YQ==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.18.9"
+ "@babel/helper-member-expression-to-functions" "^7.18.9"
+ "@babel/helper-optimise-call-expression" "^7.18.6"
+ "@babel/traverse" "^7.18.9"
+ "@babel/types" "^7.18.9"
+
+"@babel/helper-replace-supers@^7.22.20":
+ version "7.22.20"
+ resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz#e37d367123ca98fe455a9887734ed2e16eb7a793"
+ integrity sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-member-expression-to-functions" "^7.22.15"
+ "@babel/helper-optimise-call-expression" "^7.22.5"
+
+"@babel/helper-simple-access@^7.22.5":
+ version "7.22.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz#4938357dc7d782b80ed6dbb03a0fba3d22b1d5de"
+ integrity sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==
+ dependencies:
+ "@babel/types" "^7.22.5"
+
+"@babel/helper-skip-transparent-expression-wrappers@^7.22.5":
+ version "7.22.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz#007f15240b5751c537c40e77abb4e89eeaaa8847"
+ integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==
+ dependencies:
+ "@babel/types" "^7.22.5"
+
+"@babel/helper-split-export-declaration@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075"
+ integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-split-export-declaration@^7.22.6":
+ version "7.22.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c"
+ integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==
+ dependencies:
+ "@babel/types" "^7.22.5"
+
+"@babel/helper-string-parser@^7.18.10":
+ version "7.18.10"
+ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz#181f22d28ebe1b3857fa575f5c290b1aaf659b56"
+ integrity sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==
+
+"@babel/helper-string-parser@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83"
+ integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==
+
+"@babel/helper-validator-identifier@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076"
+ integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==
+
+"@babel/helper-validator-identifier@^7.22.20":
+ version "7.22.20"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0"
+ integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==
+
+"@babel/helper-validator-option@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8"
+ integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==
+
+"@babel/helper-validator-option@^7.22.15", "@babel/helper-validator-option@^7.23.5":
+ version "7.23.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307"
+ integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==
+
+"@babel/helper-wrap-function@^7.22.20":
+ version "7.22.20"
+ resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz#15352b0b9bfb10fc9c76f79f6342c00e3411a569"
+ integrity sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==
+ dependencies:
+ "@babel/helper-function-name" "^7.22.5"
+ "@babel/template" "^7.22.15"
+ "@babel/types" "^7.22.19"
+
+"@babel/helpers@^7.23.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.6.tgz#d03af2ee5fb34691eec0cda90f5ecbb4d4da145a"
+ integrity sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==
+ dependencies:
+ "@babel/template" "^7.22.15"
+ "@babel/traverse" "^7.23.6"
+ "@babel/types" "^7.23.6"
+
+"@babel/highlight@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf"
+ integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.18.6"
+ chalk "^2.0.0"
+ js-tokens "^4.0.0"
+
+"@babel/highlight@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b"
+ integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.22.20"
+ chalk "^2.4.2"
+ js-tokens "^4.0.0"
+
+"@babel/parser@^7.18.10":
+ version "7.18.11"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.11.tgz#68bb07ab3d380affa9a3f96728df07969645d2d9"
+ integrity sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ==
+
+"@babel/parser@^7.22.15", "@babel/parser@^7.22.7", "@babel/parser@^7.23.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.6.tgz#ba1c9e512bda72a47e285ae42aff9d2a635a9e3b"
+ integrity sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==
+
+"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.23.3.tgz#5cd1c87ba9380d0afb78469292c954fee5d2411a"
+ integrity sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.23.3.tgz#f6652bb16b94f8f9c20c50941e16e9756898dc5d"
+ integrity sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
+ "@babel/plugin-transform-optional-chaining" "^7.23.3"
+
+"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.3.tgz#20c60d4639d18f7da8602548512e9d3a4c8d7098"
+ integrity sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2":
+ version "7.21.0-placeholder-for-preset-env.2"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703"
+ integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==
+
+"@babel/plugin-syntax-async-generators@^7.8.4":
+ version "7.8.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d"
+ integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-class-properties@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10"
+ integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.12.13"
+
+"@babel/plugin-syntax-class-static-block@^7.14.5":
+ version "7.14.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406"
+ integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.14.5"
+
+"@babel/plugin-syntax-dynamic-import@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3"
+ integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-export-namespace-from@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a"
+ integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.3"
+
+"@babel/plugin-syntax-import-assertions@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz#9c05a7f592982aff1a2768260ad84bcd3f0c77fc"
+ integrity sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-syntax-import-attributes@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.23.3.tgz#992aee922cf04512461d7dae3ff6951b90a2dc06"
+ integrity sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-syntax-import-meta@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51"
+ integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.10.4"
+
+"@babel/plugin-syntax-json-strings@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a"
+ integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-jsx@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0"
+ integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.18.6"
+
+"@babel/plugin-syntax-jsx@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz#8f2e4f8a9b5f9aa16067e142c1ac9cd9f810f473"
+ integrity sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-syntax-logical-assignment-operators@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699"
+ integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.10.4"
+
+"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9"
+ integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-numeric-separator@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97"
+ integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.10.4"
+
+"@babel/plugin-syntax-object-rest-spread@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871"
+ integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-optional-catch-binding@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1"
+ integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-optional-chaining@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a"
+ integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-private-property-in-object@^7.14.5":
+ version "7.14.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad"
+ integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.14.5"
+
+"@babel/plugin-syntax-top-level-await@^7.14.5":
+ version "7.14.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c"
+ integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.14.5"
+
+"@babel/plugin-syntax-typescript@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.18.6.tgz#1c09cd25795c7c2b8a4ba9ae49394576d4133285"
+ integrity sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.18.6"
+
+"@babel/plugin-syntax-typescript@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz#24f460c85dbbc983cd2b9c4994178bcc01df958f"
+ integrity sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-syntax-unicode-sets-regex@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357"
+ integrity sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.18.6"
+ "@babel/helper-plugin-utils" "^7.18.6"
+
+"@babel/plugin-transform-arrow-functions@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz#94c6dcfd731af90f27a79509f9ab7fb2120fc38b"
+ integrity sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-async-generator-functions@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz#93ac8e3531f347fba519b4703f9ff2a75c6ae27a"
+ integrity sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-remap-async-to-generator" "^7.22.20"
+ "@babel/plugin-syntax-async-generators" "^7.8.4"
+
+"@babel/plugin-transform-async-to-generator@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz#d1f513c7a8a506d43f47df2bf25f9254b0b051fa"
+ integrity sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==
+ dependencies:
+ "@babel/helper-module-imports" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-remap-async-to-generator" "^7.22.20"
+
+"@babel/plugin-transform-block-scoped-functions@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz#fe1177d715fb569663095e04f3598525d98e8c77"
+ integrity sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-block-scoping@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz#b2d38589531c6c80fbe25e6b58e763622d2d3cf5"
+ integrity sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-class-properties@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz#35c377db11ca92a785a718b6aa4e3ed1eb65dc48"
+ integrity sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==
+ dependencies:
+ "@babel/helper-create-class-features-plugin" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-class-static-block@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz#2a202c8787a8964dd11dfcedf994d36bfc844ab5"
+ integrity sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==
+ dependencies:
+ "@babel/helper-create-class-features-plugin" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-class-static-block" "^7.14.5"
+
+"@babel/plugin-transform-classes@^7.23.5":
+ version "7.23.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.5.tgz#e7a75f815e0c534cc4c9a39c56636c84fc0d64f2"
+ integrity sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.22.5"
+ "@babel/helper-compilation-targets" "^7.22.15"
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-function-name" "^7.23.0"
+ "@babel/helper-optimise-call-expression" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-replace-supers" "^7.22.20"
+ "@babel/helper-split-export-declaration" "^7.22.6"
+ globals "^11.1.0"
+
+"@babel/plugin-transform-computed-properties@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz#652e69561fcc9d2b50ba4f7ac7f60dcf65e86474"
+ integrity sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/template" "^7.22.15"
+
+"@babel/plugin-transform-destructuring@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz#8c9ee68228b12ae3dff986e56ed1ba4f3c446311"
+ integrity sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-dotall-regex@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.23.3.tgz#3f7af6054882ede89c378d0cf889b854a993da50"
+ integrity sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-duplicate-keys@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.23.3.tgz#664706ca0a5dfe8d066537f99032fc1dc8b720ce"
+ integrity sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-dynamic-import@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz#c7629e7254011ac3630d47d7f34ddd40ca535143"
+ integrity sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-dynamic-import" "^7.8.3"
+
+"@babel/plugin-transform-exponentiation-operator@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.23.3.tgz#ea0d978f6b9232ba4722f3dbecdd18f450babd18"
+ integrity sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==
+ dependencies:
+ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-export-namespace-from@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz#084c7b25e9a5c8271e987a08cf85807b80283191"
+ integrity sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
+
+"@babel/plugin-transform-for-of@^7.23.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.6.tgz#81c37e24171b37b370ba6aaffa7ac86bcb46f94e"
+ integrity sha512-aYH4ytZ0qSuBbpfhuofbg/e96oQ7U2w1Aw/UQmKT+1l39uEhUPoFS3fHevDc1G0OvewyDudfMKY1OulczHzWIw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
+
+"@babel/plugin-transform-function-name@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz#8f424fcd862bf84cb9a1a6b42bc2f47ed630f8dc"
+ integrity sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==
+ dependencies:
+ "@babel/helper-compilation-targets" "^7.22.15"
+ "@babel/helper-function-name" "^7.23.0"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-json-strings@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz#a871d9b6bd171976efad2e43e694c961ffa3714d"
+ integrity sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-json-strings" "^7.8.3"
+
+"@babel/plugin-transform-literals@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz#8214665f00506ead73de157eba233e7381f3beb4"
+ integrity sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-logical-assignment-operators@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz#e599f82c51d55fac725f62ce55d3a0886279ecb5"
+ integrity sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
+
+"@babel/plugin-transform-member-expression-literals@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz#e37b3f0502289f477ac0e776b05a833d853cabcc"
+ integrity sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-modules-amd@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.3.tgz#e19b55436a1416829df0a1afc495deedfae17f7d"
+ integrity sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==
+ dependencies:
+ "@babel/helper-module-transforms" "^7.23.3"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-modules-commonjs@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz#661ae831b9577e52be57dd8356b734f9700b53b4"
+ integrity sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==
+ dependencies:
+ "@babel/helper-module-transforms" "^7.23.3"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-simple-access" "^7.22.5"
+
+"@babel/plugin-transform-modules-systemjs@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz#fa7e62248931cb15b9404f8052581c302dd9de81"
+ integrity sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==
+ dependencies:
+ "@babel/helper-hoist-variables" "^7.22.5"
+ "@babel/helper-module-transforms" "^7.23.3"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-validator-identifier" "^7.22.20"
+
+"@babel/plugin-transform-modules-umd@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.23.3.tgz#5d4395fccd071dfefe6585a4411aa7d6b7d769e9"
+ integrity sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==
+ dependencies:
+ "@babel/helper-module-transforms" "^7.23.3"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-named-capturing-groups-regex@^7.22.5":
+ version "7.22.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz#67fe18ee8ce02d57c855185e27e3dc959b2e991f"
+ integrity sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-new-target@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.23.3.tgz#5491bb78ed6ac87e990957cea367eab781c4d980"
+ integrity sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-nullish-coalescing-operator@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz#45556aad123fc6e52189ea749e33ce090637346e"
+ integrity sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
+
+"@babel/plugin-transform-numeric-separator@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz#03d08e3691e405804ecdd19dd278a40cca531f29"
+ integrity sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-numeric-separator" "^7.10.4"
+
+"@babel/plugin-transform-object-rest-spread@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz#2b9c2d26bf62710460bdc0d1730d4f1048361b83"
+ integrity sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==
+ dependencies:
+ "@babel/compat-data" "^7.23.3"
+ "@babel/helper-compilation-targets" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-object-rest-spread" "^7.8.3"
+ "@babel/plugin-transform-parameters" "^7.23.3"
+
+"@babel/plugin-transform-object-super@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz#81fdb636dcb306dd2e4e8fd80db5b2362ed2ebcd"
+ integrity sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-replace-supers" "^7.22.20"
+
+"@babel/plugin-transform-optional-catch-binding@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz#318066de6dacce7d92fa244ae475aa8d91778017"
+ integrity sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
+
+"@babel/plugin-transform-optional-chaining@^7.23.3", "@babel/plugin-transform-optional-chaining@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz#6acf61203bdfc4de9d4e52e64490aeb3e52bd017"
+ integrity sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
+ "@babel/plugin-syntax-optional-chaining" "^7.8.3"
+
+"@babel/plugin-transform-parameters@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz#83ef5d1baf4b1072fa6e54b2b0999a7b2527e2af"
+ integrity sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-private-methods@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.23.3.tgz#b2d7a3c97e278bfe59137a978d53b2c2e038c0e4"
+ integrity sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==
+ dependencies:
+ "@babel/helper-create-class-features-plugin" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-private-property-in-object@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz#3ec711d05d6608fd173d9b8de39872d8dbf68bf5"
+ integrity sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.22.5"
+ "@babel/helper-create-class-features-plugin" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-private-property-in-object" "^7.14.5"
+
+"@babel/plugin-transform-property-literals@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz#54518f14ac4755d22b92162e4a852d308a560875"
+ integrity sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-react-constant-elements@^7.18.12":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.23.3.tgz#5efc001d07ef0f7da0d73c3a86c132f73d28e43c"
+ integrity sha512-zP0QKq/p6O42OL94udMgSfKXyse4RyJ0JqbQ34zDAONWjyrEsghYEyTSK5FIpmXmCpB55SHokL1cRRKHv8L2Qw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-react-display-name@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415"
+ integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.18.6"
+
+"@babel/plugin-transform-react-display-name@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.23.3.tgz#70529f034dd1e561045ad3c8152a267f0d7b6200"
+ integrity sha512-GnvhtVfA2OAtzdX58FJxU19rhoGeQzyVndw3GgtdECQvQFXPEZIOVULHVZGAYmOgmqjXpVpfocAbSjh99V/Fqw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-react-jsx-development@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz#dbe5c972811e49c7405b630e4d0d2e1380c0ddc5"
+ integrity sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==
+ dependencies:
+ "@babel/plugin-transform-react-jsx" "^7.18.6"
+
+"@babel/plugin-transform-react-jsx-development@^7.22.5":
+ version "7.22.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.22.5.tgz#e716b6edbef972a92165cd69d92f1255f7e73e87"
+ integrity sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A==
+ dependencies:
+ "@babel/plugin-transform-react-jsx" "^7.22.5"
+
+"@babel/plugin-transform-react-jsx@^7.18.6":
+ version "7.18.10"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.18.10.tgz#ea47b2c4197102c196cbd10db9b3bb20daa820f1"
+ integrity sha512-gCy7Iikrpu3IZjYZolFE4M1Sm+nrh1/6za2Ewj77Z+XirT4TsbJcvOFOyF+fRPwU6AKKK136CZxx6L8AbSFG6A==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.18.6"
+ "@babel/helper-module-imports" "^7.18.6"
+ "@babel/helper-plugin-utils" "^7.18.9"
+ "@babel/plugin-syntax-jsx" "^7.18.6"
+ "@babel/types" "^7.18.10"
+
+"@babel/plugin-transform-react-jsx@^7.22.15", "@babel/plugin-transform-react-jsx@^7.22.5":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz#393f99185110cea87184ea47bcb4a7b0c2e39312"
+ integrity sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.22.5"
+ "@babel/helper-module-imports" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-jsx" "^7.23.3"
+ "@babel/types" "^7.23.4"
+
+"@babel/plugin-transform-react-pure-annotations@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz#561af267f19f3e5d59291f9950fd7b9663d0d844"
+ integrity sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.18.6"
+ "@babel/helper-plugin-utils" "^7.18.6"
+
+"@babel/plugin-transform-react-pure-annotations@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.23.3.tgz#fabedbdb8ee40edf5da96f3ecfc6958e3783b93c"
+ integrity sha512-qMFdSS+TUhB7Q/3HVPnEdYJDQIk57jkntAwSuz9xfSE4n+3I+vHYCli3HoHawN1Z3RfCz/y1zXA/JXjG6cVImQ==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.22.5"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-regenerator@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.23.3.tgz#141afd4a2057298602069fce7f2dc5173e6c561c"
+ integrity sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ regenerator-transform "^0.15.2"
+
+"@babel/plugin-transform-reserved-words@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.23.3.tgz#4130dcee12bd3dd5705c587947eb715da12efac8"
+ integrity sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-runtime@^7.22.9":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.23.6.tgz#bf853cd0a675c16ee33e6ba2a63b536e75e5d754"
+ integrity sha512-kF1Zg62aPseQ11orDhFRw+aPG/eynNQtI+TyY+m33qJa2cJ5EEvza2P2BNTIA9E5MyqFABHEyY6CPHwgdy9aNg==
+ dependencies:
+ "@babel/helper-module-imports" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ babel-plugin-polyfill-corejs2 "^0.4.6"
+ babel-plugin-polyfill-corejs3 "^0.8.5"
+ babel-plugin-polyfill-regenerator "^0.5.3"
+ semver "^6.3.1"
+
+"@babel/plugin-transform-shorthand-properties@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz#97d82a39b0e0c24f8a981568a8ed851745f59210"
+ integrity sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-spread@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz#41d17aacb12bde55168403c6f2d6bdca563d362c"
+ integrity sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
+
+"@babel/plugin-transform-sticky-regex@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.23.3.tgz#dec45588ab4a723cb579c609b294a3d1bd22ff04"
+ integrity sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-template-literals@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz#5f0f028eb14e50b5d0f76be57f90045757539d07"
+ integrity sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-typeof-symbol@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.23.3.tgz#9dfab97acc87495c0c449014eb9c547d8966bca4"
+ integrity sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-typescript@^7.18.6":
+ version "7.18.12"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.18.12.tgz#712e9a71b9e00fde9f8c0238e0cceee86ab2f8fd"
+ integrity sha512-2vjjam0cum0miPkenUbQswKowuxs/NjMwIKEq0zwegRxXk12C9YOF9STXnaUptITOtOJHKHpzvvWYOjbm6tc0w==
+ dependencies:
+ "@babel/helper-create-class-features-plugin" "^7.18.9"
+ "@babel/helper-plugin-utils" "^7.18.9"
+ "@babel/plugin-syntax-typescript" "^7.18.6"
+
+"@babel/plugin-transform-typescript@^7.23.3":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.23.6.tgz#aa36a94e5da8d94339ae3a4e22d40ed287feb34c"
+ integrity sha512-6cBG5mBvUu4VUD04OHKnYzbuHNP8huDsD3EDqqpIpsswTDoqHCjLoHb6+QgsV1WsT2nipRqCPgxD3LXnEO7XfA==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.22.5"
+ "@babel/helper-create-class-features-plugin" "^7.23.6"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/plugin-syntax-typescript" "^7.23.3"
+
+"@babel/plugin-transform-unicode-escapes@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.23.3.tgz#1f66d16cab01fab98d784867d24f70c1ca65b925"
+ integrity sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-unicode-property-regex@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.23.3.tgz#19e234129e5ffa7205010feec0d94c251083d7ad"
+ integrity sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-unicode-regex@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.23.3.tgz#26897708d8f42654ca4ce1b73e96140fbad879dc"
+ integrity sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/plugin-transform-unicode-sets-regex@^7.23.3":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.23.3.tgz#4fb6f0a719c2c5859d11f6b55a050cc987f3799e"
+ integrity sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.22.15"
+ "@babel/helper-plugin-utils" "^7.22.5"
+
+"@babel/preset-env@^7.19.4", "@babel/preset-env@^7.22.9":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.23.6.tgz#ad0ea799d5a3c07db5b9a172819bbd444092187a"
+ integrity sha512-2XPn/BqKkZCpzYhUUNZ1ssXw7DcXfKQEjv/uXZUXgaebCMYmkEsfZ2yY+vv+xtXv50WmL5SGhyB6/xsWxIvvOQ==
+ dependencies:
+ "@babel/compat-data" "^7.23.5"
+ "@babel/helper-compilation-targets" "^7.23.6"
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-validator-option" "^7.23.5"
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.23.3"
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.23.3"
+ "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.23.3"
+ "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2"
+ "@babel/plugin-syntax-async-generators" "^7.8.4"
+ "@babel/plugin-syntax-class-properties" "^7.12.13"
+ "@babel/plugin-syntax-class-static-block" "^7.14.5"
+ "@babel/plugin-syntax-dynamic-import" "^7.8.3"
+ "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
+ "@babel/plugin-syntax-import-assertions" "^7.23.3"
+ "@babel/plugin-syntax-import-attributes" "^7.23.3"
+ "@babel/plugin-syntax-import-meta" "^7.10.4"
+ "@babel/plugin-syntax-json-strings" "^7.8.3"
+ "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
+ "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
+ "@babel/plugin-syntax-numeric-separator" "^7.10.4"
+ "@babel/plugin-syntax-object-rest-spread" "^7.8.3"
+ "@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
+ "@babel/plugin-syntax-optional-chaining" "^7.8.3"
+ "@babel/plugin-syntax-private-property-in-object" "^7.14.5"
+ "@babel/plugin-syntax-top-level-await" "^7.14.5"
+ "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6"
+ "@babel/plugin-transform-arrow-functions" "^7.23.3"
+ "@babel/plugin-transform-async-generator-functions" "^7.23.4"
+ "@babel/plugin-transform-async-to-generator" "^7.23.3"
+ "@babel/plugin-transform-block-scoped-functions" "^7.23.3"
+ "@babel/plugin-transform-block-scoping" "^7.23.4"
+ "@babel/plugin-transform-class-properties" "^7.23.3"
+ "@babel/plugin-transform-class-static-block" "^7.23.4"
+ "@babel/plugin-transform-classes" "^7.23.5"
+ "@babel/plugin-transform-computed-properties" "^7.23.3"
+ "@babel/plugin-transform-destructuring" "^7.23.3"
+ "@babel/plugin-transform-dotall-regex" "^7.23.3"
+ "@babel/plugin-transform-duplicate-keys" "^7.23.3"
+ "@babel/plugin-transform-dynamic-import" "^7.23.4"
+ "@babel/plugin-transform-exponentiation-operator" "^7.23.3"
+ "@babel/plugin-transform-export-namespace-from" "^7.23.4"
+ "@babel/plugin-transform-for-of" "^7.23.6"
+ "@babel/plugin-transform-function-name" "^7.23.3"
+ "@babel/plugin-transform-json-strings" "^7.23.4"
+ "@babel/plugin-transform-literals" "^7.23.3"
+ "@babel/plugin-transform-logical-assignment-operators" "^7.23.4"
+ "@babel/plugin-transform-member-expression-literals" "^7.23.3"
+ "@babel/plugin-transform-modules-amd" "^7.23.3"
+ "@babel/plugin-transform-modules-commonjs" "^7.23.3"
+ "@babel/plugin-transform-modules-systemjs" "^7.23.3"
+ "@babel/plugin-transform-modules-umd" "^7.23.3"
+ "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5"
+ "@babel/plugin-transform-new-target" "^7.23.3"
+ "@babel/plugin-transform-nullish-coalescing-operator" "^7.23.4"
+ "@babel/plugin-transform-numeric-separator" "^7.23.4"
+ "@babel/plugin-transform-object-rest-spread" "^7.23.4"
+ "@babel/plugin-transform-object-super" "^7.23.3"
+ "@babel/plugin-transform-optional-catch-binding" "^7.23.4"
+ "@babel/plugin-transform-optional-chaining" "^7.23.4"
+ "@babel/plugin-transform-parameters" "^7.23.3"
+ "@babel/plugin-transform-private-methods" "^7.23.3"
+ "@babel/plugin-transform-private-property-in-object" "^7.23.4"
+ "@babel/plugin-transform-property-literals" "^7.23.3"
+ "@babel/plugin-transform-regenerator" "^7.23.3"
+ "@babel/plugin-transform-reserved-words" "^7.23.3"
+ "@babel/plugin-transform-shorthand-properties" "^7.23.3"
+ "@babel/plugin-transform-spread" "^7.23.3"
+ "@babel/plugin-transform-sticky-regex" "^7.23.3"
+ "@babel/plugin-transform-template-literals" "^7.23.3"
+ "@babel/plugin-transform-typeof-symbol" "^7.23.3"
+ "@babel/plugin-transform-unicode-escapes" "^7.23.3"
+ "@babel/plugin-transform-unicode-property-regex" "^7.23.3"
+ "@babel/plugin-transform-unicode-regex" "^7.23.3"
+ "@babel/plugin-transform-unicode-sets-regex" "^7.23.3"
+ "@babel/preset-modules" "0.1.6-no-external-plugins"
+ babel-plugin-polyfill-corejs2 "^0.4.6"
+ babel-plugin-polyfill-corejs3 "^0.8.5"
+ babel-plugin-polyfill-regenerator "^0.5.3"
+ core-js-compat "^3.31.0"
+ semver "^6.3.1"
+
+"@babel/preset-modules@0.1.6-no-external-plugins":
+ version "0.1.6-no-external-plugins"
+ resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz#ccb88a2c49c817236861fee7826080573b8a923a"
+ integrity sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.0.0"
+ "@babel/types" "^7.4.4"
+ esutils "^2.0.2"
+
+"@babel/preset-react@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.18.6.tgz#979f76d6277048dc19094c217b507f3ad517dd2d"
+ integrity sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.18.6"
+ "@babel/helper-validator-option" "^7.18.6"
+ "@babel/plugin-transform-react-display-name" "^7.18.6"
+ "@babel/plugin-transform-react-jsx" "^7.18.6"
+ "@babel/plugin-transform-react-jsx-development" "^7.18.6"
+ "@babel/plugin-transform-react-pure-annotations" "^7.18.6"
+
+"@babel/preset-react@^7.22.5":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.23.3.tgz#f73ca07e7590f977db07eb54dbe46538cc015709"
+ integrity sha512-tbkHOS9axH6Ysf2OUEqoSZ6T3Fa2SrNH6WTWSPBboxKzdxNc9qOICeLXkNG0ZEwbQ1HY8liwOce4aN/Ceyuq6w==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-validator-option" "^7.22.15"
+ "@babel/plugin-transform-react-display-name" "^7.23.3"
+ "@babel/plugin-transform-react-jsx" "^7.22.15"
+ "@babel/plugin-transform-react-jsx-development" "^7.22.5"
+ "@babel/plugin-transform-react-pure-annotations" "^7.23.3"
+
+"@babel/preset-typescript@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.18.6.tgz#ce64be3e63eddc44240c6358daefac17b3186399"
+ integrity sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.18.6"
+ "@babel/helper-validator-option" "^7.18.6"
+ "@babel/plugin-transform-typescript" "^7.18.6"
+
+"@babel/preset-typescript@^7.22.5":
+ version "7.23.3"
+ resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.23.3.tgz#14534b34ed5b6d435aa05f1ae1c5e7adcc01d913"
+ integrity sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.22.5"
+ "@babel/helper-validator-option" "^7.22.15"
+ "@babel/plugin-syntax-jsx" "^7.23.3"
+ "@babel/plugin-transform-modules-commonjs" "^7.23.3"
+ "@babel/plugin-transform-typescript" "^7.23.3"
+
+"@babel/regjsgen@^0.8.0":
+ version "0.8.0"
+ resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
+ integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==
+
+"@babel/runtime-corejs3@^7.22.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.23.6.tgz#c25dd662fc205a03fdaefd122066eb9d4533ccf9"
+ integrity sha512-Djs/ZTAnpyj0nyg7p1J6oiE/tZ9G2stqAFlLGZynrW+F3k2w2jGK2mLOBxzYIOcZYA89+c3d3wXKpYLcpwcU6w==
+ dependencies:
+ core-js-pure "^3.30.2"
+ regenerator-runtime "^0.14.0"
+
+"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.8.4":
+ version "7.22.6"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.6.tgz#57d64b9ae3cff1d67eb067ae117dac087f5bd438"
+ integrity sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==
+ dependencies:
+ regenerator-runtime "^0.13.11"
+
+"@babel/runtime@^7.22.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.6.tgz#c05e610dc228855dc92ef1b53d07389ed8ab521d"
+ integrity sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==
+ dependencies:
+ regenerator-runtime "^0.14.0"
+
+"@babel/template@^7.18.6":
+ version "7.18.10"
+ resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71"
+ integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==
+ dependencies:
+ "@babel/code-frame" "^7.18.6"
+ "@babel/parser" "^7.18.10"
+ "@babel/types" "^7.18.10"
+
+"@babel/template@^7.22.15":
+ version "7.22.15"
+ resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38"
+ integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==
+ dependencies:
+ "@babel/code-frame" "^7.22.13"
+ "@babel/parser" "^7.22.15"
+ "@babel/types" "^7.22.15"
+
+"@babel/traverse@^7.18.9", "@babel/traverse@^7.22.8", "@babel/traverse@^7.23.6":
+ version "7.23.7"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.7.tgz#9a7bf285c928cb99b5ead19c3b1ce5b310c9c305"
+ integrity sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==
+ dependencies:
+ "@babel/code-frame" "^7.23.5"
+ "@babel/generator" "^7.23.6"
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-function-name" "^7.23.0"
+ "@babel/helper-hoist-variables" "^7.22.5"
+ "@babel/helper-split-export-declaration" "^7.22.6"
+ "@babel/parser" "^7.23.6"
+ "@babel/types" "^7.23.6"
+ debug "^4.3.1"
+ globals "^11.1.0"
+
+"@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.4.4":
+ version "7.18.10"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.10.tgz#4908e81b6b339ca7c6b7a555a5fc29446f26dde6"
+ integrity sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==
+ dependencies:
+ "@babel/helper-string-parser" "^7.18.10"
+ "@babel/helper-validator-identifier" "^7.18.6"
+ to-fast-properties "^2.0.0"
+
+"@babel/types@^7.20.0", "@babel/types@^7.22.15", "@babel/types@^7.22.19", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.4", "@babel/types@^7.23.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.6.tgz#be33fdb151e1f5a56877d704492c240fc71c7ccd"
+ integrity sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==
+ dependencies:
+ "@babel/helper-string-parser" "^7.23.4"
+ "@babel/helper-validator-identifier" "^7.22.20"
+ to-fast-properties "^2.0.0"
+
+"@colors/colors@1.5.0":
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
+ integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==
+
+"@discoveryjs/json-ext@0.5.7":
+ version "0.5.7"
+ resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
+ integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==
+
+"@docsearch/css@3.5.2":
+ version "3.5.2"
+ resolved "https://registry.yarnpkg.com/@docsearch/css/-/css-3.5.2.tgz#610f47b48814ca94041df969d9fcc47b91fc5aac"
+ integrity sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==
+
+"@docsearch/react@^3.5.2":
+ version "3.5.2"
+ resolved "https://registry.yarnpkg.com/@docsearch/react/-/react-3.5.2.tgz#2e6bbee00eb67333b64906352734da6aef1232b9"
+ integrity sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==
+ dependencies:
+ "@algolia/autocomplete-core" "1.9.3"
+ "@algolia/autocomplete-preset-algolia" "1.9.3"
+ "@docsearch/css" "3.5.2"
+ algoliasearch "^4.19.1"
+
+"@docusaurus/core@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-3.0.1.tgz#ad9a66b20802ea81b25e65db75d4ca952eda7e01"
+ integrity sha512-CXrLpOnW+dJdSv8M5FAJ3JBwXtL6mhUWxFA8aS0ozK6jBG/wgxERk5uvH28fCeFxOGbAT9v1e9dOMo1X2IEVhQ==
+ dependencies:
+ "@babel/core" "^7.23.3"
+ "@babel/generator" "^7.23.3"
+ "@babel/plugin-syntax-dynamic-import" "^7.8.3"
+ "@babel/plugin-transform-runtime" "^7.22.9"
+ "@babel/preset-env" "^7.22.9"
+ "@babel/preset-react" "^7.22.5"
+ "@babel/preset-typescript" "^7.22.5"
+ "@babel/runtime" "^7.22.6"
+ "@babel/runtime-corejs3" "^7.22.6"
+ "@babel/traverse" "^7.22.8"
+ "@docusaurus/cssnano-preset" "3.0.1"
+ "@docusaurus/logger" "3.0.1"
+ "@docusaurus/mdx-loader" "3.0.1"
+ "@docusaurus/react-loadable" "5.5.2"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-common" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ "@slorber/static-site-generator-webpack-plugin" "^4.0.7"
+ "@svgr/webpack" "^6.5.1"
+ autoprefixer "^10.4.14"
+ babel-loader "^9.1.3"
+ babel-plugin-dynamic-import-node "^2.3.3"
+ boxen "^6.2.1"
+ chalk "^4.1.2"
+ chokidar "^3.5.3"
+ clean-css "^5.3.2"
+ cli-table3 "^0.6.3"
+ combine-promises "^1.1.0"
+ commander "^5.1.0"
+ copy-webpack-plugin "^11.0.0"
+ core-js "^3.31.1"
+ css-loader "^6.8.1"
+ css-minimizer-webpack-plugin "^4.2.2"
+ cssnano "^5.1.15"
+ del "^6.1.1"
+ detect-port "^1.5.1"
+ escape-html "^1.0.3"
+ eta "^2.2.0"
+ file-loader "^6.2.0"
+ fs-extra "^11.1.1"
+ html-minifier-terser "^7.2.0"
+ html-tags "^3.3.1"
+ html-webpack-plugin "^5.5.3"
+ leven "^3.1.0"
+ lodash "^4.17.21"
+ mini-css-extract-plugin "^2.7.6"
+ postcss "^8.4.26"
+ postcss-loader "^7.3.3"
+ prompts "^2.4.2"
+ react-dev-utils "^12.0.1"
+ react-helmet-async "^1.3.0"
+ react-loadable "npm:@docusaurus/react-loadable@5.5.2"
+ react-loadable-ssr-addon-v5-slorber "^1.0.1"
+ react-router "^5.3.4"
+ react-router-config "^5.1.1"
+ react-router-dom "^5.3.4"
+ rtl-detect "^1.0.4"
+ semver "^7.5.4"
+ serve-handler "^6.1.5"
+ shelljs "^0.8.5"
+ terser-webpack-plugin "^5.3.9"
+ tslib "^2.6.0"
+ update-notifier "^6.0.2"
+ url-loader "^4.1.1"
+ webpack "^5.88.1"
+ webpack-bundle-analyzer "^4.9.0"
+ webpack-dev-server "^4.15.1"
+ webpack-merge "^5.9.0"
+ webpackbar "^5.0.2"
+
+"@docusaurus/cssnano-preset@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/cssnano-preset/-/cssnano-preset-3.0.1.tgz#22fbf2e97389e338747864baf011743846e8fd26"
+ integrity sha512-wjuXzkHMW+ig4BD6Ya1Yevx9UJadO4smNZCEljqBoQfIQrQskTswBs7lZ8InHP7mCt273a/y/rm36EZhqJhknQ==
+ dependencies:
+ cssnano-preset-advanced "^5.3.10"
+ postcss "^8.4.26"
+ postcss-sort-media-queries "^4.4.1"
+ tslib "^2.6.0"
+
+"@docusaurus/logger@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/logger/-/logger-3.0.1.tgz#06f512eef6c6ae4e2da63064257e01b1cdc41a82"
+ integrity sha512-I5L6Nk8OJzkVA91O2uftmo71LBSxe1vmOn9AMR6JRCzYeEBrqneWMH02AqMvjJ2NpMiviO+t0CyPjyYV7nxCWQ==
+ dependencies:
+ chalk "^4.1.2"
+ tslib "^2.6.0"
+
+"@docusaurus/mdx-loader@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/mdx-loader/-/mdx-loader-3.0.1.tgz#89f221e5bcc570983fd61d7ab56d6fbe36810b59"
+ integrity sha512-ldnTmvnvlrONUq45oKESrpy+lXtbnTcTsFkOTIDswe5xx5iWJjt6eSa0f99ZaWlnm24mlojcIGoUWNCS53qVlQ==
+ dependencies:
+ "@babel/parser" "^7.22.7"
+ "@babel/traverse" "^7.22.8"
+ "@docusaurus/logger" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ "@mdx-js/mdx" "^3.0.0"
+ "@slorber/remark-comment" "^1.0.0"
+ escape-html "^1.0.3"
+ estree-util-value-to-estree "^3.0.1"
+ file-loader "^6.2.0"
+ fs-extra "^11.1.1"
+ image-size "^1.0.2"
+ mdast-util-mdx "^3.0.0"
+ mdast-util-to-string "^4.0.0"
+ rehype-raw "^7.0.0"
+ remark-directive "^3.0.0"
+ remark-emoji "^4.0.0"
+ remark-frontmatter "^5.0.0"
+ remark-gfm "^4.0.0"
+ stringify-object "^3.3.0"
+ tslib "^2.6.0"
+ unified "^11.0.3"
+ unist-util-visit "^5.0.0"
+ url-loader "^4.1.1"
+ vfile "^6.0.1"
+ webpack "^5.88.1"
+
+"@docusaurus/module-type-aliases@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/module-type-aliases/-/module-type-aliases-3.0.1.tgz#d45990fe377d7ffaa68841cf89401188a5d65293"
+ integrity sha512-DEHpeqUDsLynl3AhQQiO7AbC7/z/lBra34jTcdYuvp9eGm01pfH1wTVq8YqWZq6Jyx0BgcVl/VJqtE9StRd9Ag==
+ dependencies:
+ "@docusaurus/react-loadable" "5.5.2"
+ "@docusaurus/types" "3.0.1"
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+ "@types/react-router-config" "*"
+ "@types/react-router-dom" "*"
+ react-helmet-async "*"
+ react-loadable "npm:@docusaurus/react-loadable@5.5.2"
+
+"@docusaurus/plugin-content-blog@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.0.1.tgz#dee6147187c2d8b634252444d60312d12c9571a6"
+ integrity sha512-cLOvtvAyaMQFLI8vm4j26svg3ktxMPSXpuUJ7EERKoGbfpJSsgtowNHcRsaBVmfuCsRSk1HZ/yHBsUkTmHFEsg==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/logger" "3.0.1"
+ "@docusaurus/mdx-loader" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-common" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ cheerio "^1.0.0-rc.12"
+ feed "^4.2.2"
+ fs-extra "^11.1.1"
+ lodash "^4.17.21"
+ reading-time "^1.5.0"
+ srcset "^4.0.0"
+ tslib "^2.6.0"
+ unist-util-visit "^5.0.0"
+ utility-types "^3.10.0"
+ webpack "^5.88.1"
+
+"@docusaurus/plugin-content-docs@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-docs/-/plugin-content-docs-3.0.1.tgz#d9b1884562186573d5c4521ac3546b68512c1126"
+ integrity sha512-dRfAOA5Ivo+sdzzJGXEu33yAtvGg8dlZkvt/NEJ7nwi1F2j4LEdsxtfX2GKeETB2fP6XoGNSQnFXqa2NYGrHFg==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/logger" "3.0.1"
+ "@docusaurus/mdx-loader" "3.0.1"
+ "@docusaurus/module-type-aliases" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ "@types/react-router-config" "^5.0.7"
+ combine-promises "^1.1.0"
+ fs-extra "^11.1.1"
+ js-yaml "^4.1.0"
+ lodash "^4.17.21"
+ tslib "^2.6.0"
+ utility-types "^3.10.0"
+ webpack "^5.88.1"
+
+"@docusaurus/plugin-content-pages@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-pages/-/plugin-content-pages-3.0.1.tgz#27e6424c77173f867760efe53f848bbab8849ea6"
+ integrity sha512-oP7PoYizKAXyEttcvVzfX3OoBIXEmXTMzCdfmC4oSwjG4SPcJsRge3mmI6O8jcZBgUPjIzXD21bVGWEE1iu8gg==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/mdx-loader" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ fs-extra "^11.1.1"
+ tslib "^2.6.0"
+ webpack "^5.88.1"
+
+"@docusaurus/plugin-debug@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-debug/-/plugin-debug-3.0.1.tgz#886b5dd03c066e970484ca251c1b79613df90700"
+ integrity sha512-09dxZMdATky4qdsZGzhzlUvvC+ilQ2hKbYF+wez+cM2mGo4qHbv8+qKXqxq0CQZyimwlAOWQLoSozIXU0g0i7g==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ fs-extra "^11.1.1"
+ react-json-view-lite "^1.2.0"
+ tslib "^2.6.0"
+
+"@docusaurus/plugin-google-analytics@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-3.0.1.tgz#ec69902131ea3aad8b062eeb1d17bf0962986f80"
+ integrity sha512-jwseSz1E+g9rXQwDdr0ZdYNjn8leZBnKPjjQhMBEiwDoenL3JYFcNW0+p0sWoVF/f2z5t7HkKA+cYObrUh18gg==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ tslib "^2.6.0"
+
+"@docusaurus/plugin-google-gtag@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-3.0.1.tgz#bb5526377d3a324ebec235127846fda386562b05"
+ integrity sha512-UFTDvXniAWrajsulKUJ1DB6qplui1BlKLQZjX4F7qS/qfJ+qkKqSkhJ/F4VuGQ2JYeZstYb+KaUzUzvaPK1aRQ==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ "@types/gtag.js" "^0.0.12"
+ tslib "^2.6.0"
+
+"@docusaurus/plugin-google-tag-manager@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-3.0.1.tgz#4e36d13279cf90c2614b62438aa1109dd4696ec8"
+ integrity sha512-IPFvuz83aFuheZcWpTlAdiiX1RqWIHM+OH8wS66JgwAKOiQMR3+nLywGjkLV4bp52x7nCnwhNk1rE85Cpy/CIw==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ tslib "^2.6.0"
+
+"@docusaurus/plugin-sitemap@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-sitemap/-/plugin-sitemap-3.0.1.tgz#ab55857e90d4500f892e110b30e4bc3289202bd4"
+ integrity sha512-xARiWnjtVvoEniZudlCq5T9ifnhCu/GAZ5nA7XgyLfPcNpHQa241HZdsTlLtVcecEVVdllevBKOp7qknBBaMGw==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/logger" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-common" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ fs-extra "^11.1.1"
+ sitemap "^7.1.1"
+ tslib "^2.6.0"
+
+"@docusaurus/preset-classic@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/preset-classic/-/preset-classic-3.0.1.tgz#d363ac837bba967095ed2a896d13c54f3717d6b5"
+ integrity sha512-il9m9xZKKjoXn6h0cRcdnt6wce0Pv1y5t4xk2Wx7zBGhKG1idu4IFHtikHlD0QPuZ9fizpXspXcTzjL5FXc1Gw==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/plugin-content-blog" "3.0.1"
+ "@docusaurus/plugin-content-docs" "3.0.1"
+ "@docusaurus/plugin-content-pages" "3.0.1"
+ "@docusaurus/plugin-debug" "3.0.1"
+ "@docusaurus/plugin-google-analytics" "3.0.1"
+ "@docusaurus/plugin-google-gtag" "3.0.1"
+ "@docusaurus/plugin-google-tag-manager" "3.0.1"
+ "@docusaurus/plugin-sitemap" "3.0.1"
+ "@docusaurus/theme-classic" "3.0.1"
+ "@docusaurus/theme-common" "3.0.1"
+ "@docusaurus/theme-search-algolia" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+
+"@docusaurus/react-loadable@5.5.2":
+ version "5.5.2"
+ resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
+ integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
+ dependencies:
+ "@types/react" "*"
+ prop-types "^15.6.2"
+
+"@docusaurus/theme-classic@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/theme-classic/-/theme-classic-3.0.1.tgz#3ba4dc77553d2c1608e433c0d01bed7c6db14eb9"
+ integrity sha512-XD1FRXaJiDlmYaiHHdm27PNhhPboUah9rqIH0lMpBt5kYtsGjJzhqa27KuZvHLzOP2OEpqd2+GZ5b6YPq7Q05Q==
+ dependencies:
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/mdx-loader" "3.0.1"
+ "@docusaurus/module-type-aliases" "3.0.1"
+ "@docusaurus/plugin-content-blog" "3.0.1"
+ "@docusaurus/plugin-content-docs" "3.0.1"
+ "@docusaurus/plugin-content-pages" "3.0.1"
+ "@docusaurus/theme-common" "3.0.1"
+ "@docusaurus/theme-translations" "3.0.1"
+ "@docusaurus/types" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-common" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ "@mdx-js/react" "^3.0.0"
+ clsx "^2.0.0"
+ copy-text-to-clipboard "^3.2.0"
+ infima "0.2.0-alpha.43"
+ lodash "^4.17.21"
+ nprogress "^0.2.0"
+ postcss "^8.4.26"
+ prism-react-renderer "^2.3.0"
+ prismjs "^1.29.0"
+ react-router-dom "^5.3.4"
+ rtlcss "^4.1.0"
+ tslib "^2.6.0"
+ utility-types "^3.10.0"
+
+"@docusaurus/theme-common@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/theme-common/-/theme-common-3.0.1.tgz#29a5bcb286296a52bc10afa5308e360cbed6b49c"
+ integrity sha512-cr9TOWXuIOL0PUfuXv6L5lPlTgaphKP+22NdVBOYah5jSq5XAAulJTjfe+IfLsEG4L7lJttLbhW7LXDFSAI7Ag==
+ dependencies:
+ "@docusaurus/mdx-loader" "3.0.1"
+ "@docusaurus/module-type-aliases" "3.0.1"
+ "@docusaurus/plugin-content-blog" "3.0.1"
+ "@docusaurus/plugin-content-docs" "3.0.1"
+ "@docusaurus/plugin-content-pages" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-common" "3.0.1"
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+ "@types/react-router-config" "*"
+ clsx "^2.0.0"
+ parse-numeric-range "^1.3.0"
+ prism-react-renderer "^2.3.0"
+ tslib "^2.6.0"
+ utility-types "^3.10.0"
+
+"@docusaurus/theme-search-algolia@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/theme-search-algolia/-/theme-search-algolia-3.0.1.tgz#d8fb6bddca8d8355e4706c4c7d30d3b800217cf4"
+ integrity sha512-DDiPc0/xmKSEdwFkXNf1/vH1SzJPzuJBar8kMcBbDAZk/SAmo/4lf6GU2drou4Ae60lN2waix+jYWTWcJRahSA==
+ dependencies:
+ "@docsearch/react" "^3.5.2"
+ "@docusaurus/core" "3.0.1"
+ "@docusaurus/logger" "3.0.1"
+ "@docusaurus/plugin-content-docs" "3.0.1"
+ "@docusaurus/theme-common" "3.0.1"
+ "@docusaurus/theme-translations" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ "@docusaurus/utils-validation" "3.0.1"
+ algoliasearch "^4.18.0"
+ algoliasearch-helper "^3.13.3"
+ clsx "^2.0.0"
+ eta "^2.2.0"
+ fs-extra "^11.1.1"
+ lodash "^4.17.21"
+ tslib "^2.6.0"
+ utility-types "^3.10.0"
+
+"@docusaurus/theme-translations@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/theme-translations/-/theme-translations-3.0.1.tgz#837a01a166ccd698a3eceaed0c2f798555bc024b"
+ integrity sha512-6UrbpzCTN6NIJnAtZ6Ne9492vmPVX+7Fsz4kmp+yor3KQwA1+MCzQP7ItDNkP38UmVLnvB/cYk/IvehCUqS3dg==
+ dependencies:
+ fs-extra "^11.1.1"
+ tslib "^2.6.0"
+
+"@docusaurus/types@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-3.0.1.tgz#4fe306aa10ef7c97dbc07588864f6676a40f3b6f"
+ integrity sha512-plyX2iU1tcUsF46uQ01pAd4JhexR7n0iiQ5MSnBFX6M6NSJgDYdru/i1/YNPKOnQHBoXGLHv0dNT6OAlDWNjrg==
+ dependencies:
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+ commander "^5.1.0"
+ joi "^17.9.2"
+ react-helmet-async "^1.3.0"
+ utility-types "^3.10.0"
+ webpack "^5.88.1"
+ webpack-merge "^5.9.0"
+
+"@docusaurus/utils-common@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/utils-common/-/utils-common-3.0.1.tgz#111f450089d5f0a290c0c25f8a574a270d08436f"
+ integrity sha512-W0AxD6w6T8g6bNro8nBRWf7PeZ/nn7geEWM335qHU2DDDjHuV4UZjgUGP1AQsdcSikPrlIqTJJbKzer1lRSlIg==
+ dependencies:
+ tslib "^2.6.0"
+
+"@docusaurus/utils-validation@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/utils-validation/-/utils-validation-3.0.1.tgz#3c5f12941b328a19fc9acb34d070219f3e865ec6"
+ integrity sha512-ujTnqSfyGQ7/4iZdB4RRuHKY/Nwm58IIb+41s5tCXOv/MBU2wGAjOHq3U+AEyJ8aKQcHbxvTKJaRchNHYUVUQg==
+ dependencies:
+ "@docusaurus/logger" "3.0.1"
+ "@docusaurus/utils" "3.0.1"
+ joi "^17.9.2"
+ js-yaml "^4.1.0"
+ tslib "^2.6.0"
+
+"@docusaurus/utils@3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/utils/-/utils-3.0.1.tgz#c64f68980a90c5bc6d53a5b8f32deb9026b1e303"
+ integrity sha512-TwZ33Am0q4IIbvjhUOs+zpjtD/mXNmLmEgeTGuRq01QzulLHuPhaBTTAC/DHu6kFx3wDgmgpAlaRuCHfTcXv8g==
+ dependencies:
+ "@docusaurus/logger" "3.0.1"
+ "@svgr/webpack" "^6.5.1"
+ escape-string-regexp "^4.0.0"
+ file-loader "^6.2.0"
+ fs-extra "^11.1.1"
+ github-slugger "^1.5.0"
+ globby "^11.1.0"
+ gray-matter "^4.0.3"
+ jiti "^1.20.0"
+ js-yaml "^4.1.0"
+ lodash "^4.17.21"
+ micromatch "^4.0.5"
+ resolve-pathname "^3.0.0"
+ shelljs "^0.8.5"
+ tslib "^2.6.0"
+ url-loader "^4.1.1"
+ webpack "^5.88.1"
+
+"@hapi/hoek@^9.0.0":
+ version "9.3.0"
+ resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb"
+ integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==
+
+"@hapi/topo@^5.0.0":
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012"
+ integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==
+ dependencies:
+ "@hapi/hoek" "^9.0.0"
+
+"@jest/schemas@^29.6.3":
+ version "29.6.3"
+ resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03"
+ integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==
+ dependencies:
+ "@sinclair/typebox" "^0.27.8"
+
+"@jest/types@^29.6.3":
+ version "29.6.3"
+ resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59"
+ integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==
+ dependencies:
+ "@jest/schemas" "^29.6.3"
+ "@types/istanbul-lib-coverage" "^2.0.0"
+ "@types/istanbul-reports" "^3.0.0"
+ "@types/node" "*"
+ "@types/yargs" "^17.0.8"
+ chalk "^4.0.0"
+
+"@jridgewell/gen-mapping@^0.3.0":
+ version "0.3.3"
+ resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098"
+ integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==
+ dependencies:
+ "@jridgewell/set-array" "^1.0.1"
+ "@jridgewell/sourcemap-codec" "^1.4.10"
+ "@jridgewell/trace-mapping" "^0.3.9"
+
+"@jridgewell/gen-mapping@^0.3.2":
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9"
+ integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==
+ dependencies:
+ "@jridgewell/set-array" "^1.0.1"
+ "@jridgewell/sourcemap-codec" "^1.4.10"
+ "@jridgewell/trace-mapping" "^0.3.9"
+
+"@jridgewell/resolve-uri@3.1.0":
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78"
+ integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==
+
+"@jridgewell/set-array@^1.0.1":
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72"
+ integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==
+
+"@jridgewell/source-map@^0.3.3":
+ version "0.3.5"
+ resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.5.tgz#a3bb4d5c6825aab0d281268f47f6ad5853431e91"
+ integrity sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==
+ dependencies:
+ "@jridgewell/gen-mapping" "^0.3.0"
+ "@jridgewell/trace-mapping" "^0.3.9"
+
+"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10":
+ version "1.4.14"
+ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24"
+ integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==
+
+"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9":
+ version "0.3.18"
+ resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6"
+ integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==
+ dependencies:
+ "@jridgewell/resolve-uri" "3.1.0"
+ "@jridgewell/sourcemap-codec" "1.4.14"
+
+"@leichtgewicht/ip-codec@^2.0.1":
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b"
+ integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==
+
+"@mdx-js/mdx@^3.0.0":
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/@mdx-js/mdx/-/mdx-3.0.0.tgz#37ef87685143fafedf1165f0a79e9fe95fbe5154"
+ integrity sha512-Icm0TBKBLYqroYbNW3BPnzMGn+7mwpQOK310aZ7+fkCtiU3aqv2cdcX+nd0Ydo3wI5Rx8bX2Z2QmGb/XcAClCw==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ "@types/estree-jsx" "^1.0.0"
+ "@types/hast" "^3.0.0"
+ "@types/mdx" "^2.0.0"
+ collapse-white-space "^2.0.0"
+ devlop "^1.0.0"
+ estree-util-build-jsx "^3.0.0"
+ estree-util-is-identifier-name "^3.0.0"
+ estree-util-to-js "^2.0.0"
+ estree-walker "^3.0.0"
+ hast-util-to-estree "^3.0.0"
+ hast-util-to-jsx-runtime "^2.0.0"
+ markdown-extensions "^2.0.0"
+ periscopic "^3.0.0"
+ remark-mdx "^3.0.0"
+ remark-parse "^11.0.0"
+ remark-rehype "^11.0.0"
+ source-map "^0.7.0"
+ unified "^11.0.0"
+ unist-util-position-from-estree "^2.0.0"
+ unist-util-stringify-position "^4.0.0"
+ unist-util-visit "^5.0.0"
+ vfile "^6.0.0"
+
+"@mdx-js/react@^3.0.0", "@mdx-js/react@^3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@mdx-js/react/-/react-3.0.1.tgz#997a19b3a5b783d936c75ae7c47cfe62f967f746"
+ integrity sha512-9ZrPIU4MGf6et1m1ov3zKf+q9+deetI51zprKB1D/z3NOb+rUxxtEl3mCjW5wTGh6VhRdwPueh1oRzi6ezkA8A==
+ dependencies:
+ "@types/mdx" "^2.0.0"
+
+"@nodelib/fs.scandir@2.1.5":
+ version "2.1.5"
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
+ integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==
+ dependencies:
+ "@nodelib/fs.stat" "2.0.5"
+ run-parallel "^1.1.9"
+
+"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2":
+ version "2.0.5"
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b"
+ integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==
+
+"@nodelib/fs.walk@^1.2.3":
+ version "1.2.8"
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a"
+ integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==
+ dependencies:
+ "@nodelib/fs.scandir" "2.1.5"
+ fastq "^1.6.0"
+
+"@pnpm/config.env-replace@^1.1.0":
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz#ab29da53df41e8948a00f2433f085f54de8b3a4c"
+ integrity sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==
+
+"@pnpm/network.ca-file@^1.0.1":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz#2ab05e09c1af0cdf2fcf5035bea1484e222f7983"
+ integrity sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==
+ dependencies:
+ graceful-fs "4.2.10"
+
+"@pnpm/npm-conf@^2.1.0":
+ version "2.2.2"
+ resolved "https://registry.yarnpkg.com/@pnpm/npm-conf/-/npm-conf-2.2.2.tgz#0058baf1c26cbb63a828f0193795401684ac86f0"
+ integrity sha512-UA91GwWPhFExt3IizW6bOeY/pQ0BkuNwKjk9iQW9KqxluGCrg4VenZ0/L+2Y0+ZOtme72EVvg6v0zo3AMQRCeA==
+ dependencies:
+ "@pnpm/config.env-replace" "^1.1.0"
+ "@pnpm/network.ca-file" "^1.0.1"
+ config-chain "^1.1.11"
+
+"@polka/url@^1.0.0-next.20":
+ version "1.0.0-next.21"
+ resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1"
+ integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==
+
+"@sideway/address@^4.1.3":
+ version "4.1.4"
+ resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0"
+ integrity sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==
+ dependencies:
+ "@hapi/hoek" "^9.0.0"
+
+"@sideway/formula@^3.0.1":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f"
+ integrity sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==
+
+"@sideway/pinpoint@^2.0.0":
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
+ integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
+
+"@sinclair/typebox@^0.27.8":
+ version "0.27.8"
+ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e"
+ integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==
+
+"@sindresorhus/is@^4.6.0":
+ version "4.6.0"
+ resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f"
+ integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==
+
+"@sindresorhus/is@^5.2.0":
+ version "5.6.0"
+ resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-5.6.0.tgz#41dd6093d34652cddb5d5bdeee04eafc33826668"
+ integrity sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==
+
+"@slorber/remark-comment@^1.0.0":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@slorber/remark-comment/-/remark-comment-1.0.0.tgz#2a020b3f4579c89dec0361673206c28d67e08f5a"
+ integrity sha512-RCE24n7jsOj1M0UPvIQCHTe7fI0sFL4S2nwKVWwHyVr/wI/H8GosgsJGyhnsZoGFnD/P2hLf1mSbrrgSLN93NA==
+ dependencies:
+ micromark-factory-space "^1.0.0"
+ micromark-util-character "^1.1.0"
+ micromark-util-symbol "^1.0.1"
+
+"@slorber/static-site-generator-webpack-plugin@^4.0.7":
+ version "4.0.7"
+ resolved "https://registry.yarnpkg.com/@slorber/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.7.tgz#fc1678bddefab014e2145cbe25b3ce4e1cfc36f3"
+ integrity sha512-Ug7x6z5lwrz0WqdnNFOMYrDQNTPAprvHLSh6+/fmml3qUiz6l5eq+2MzLKWtn/q5K5NpSiFsZTP/fck/3vjSxA==
+ dependencies:
+ eval "^0.1.8"
+ p-map "^4.0.0"
+ webpack-sources "^3.2.2"
+
+"@svgr/babel-plugin-add-jsx-attribute@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz#74a5d648bd0347bda99d82409d87b8ca80b9a1ba"
+ integrity sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==
+
+"@svgr/babel-plugin-remove-jsx-attribute@*":
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz#69177f7937233caca3a1afb051906698f2f59186"
+ integrity sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==
+
+"@svgr/babel-plugin-remove-jsx-empty-expression@*":
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz#c2c48104cfd7dcd557f373b70a56e9e3bdae1d44"
+ integrity sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==
+
+"@svgr/babel-plugin-replace-jsx-attribute-value@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.5.1.tgz#fb9d22ea26d2bc5e0a44b763d4c46d5d3f596c60"
+ integrity sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==
+
+"@svgr/babel-plugin-svg-dynamic-title@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.5.1.tgz#01b2024a2b53ffaa5efceaa0bf3e1d5a4c520ce4"
+ integrity sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==
+
+"@svgr/babel-plugin-svg-em-dimensions@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.5.1.tgz#dd3fa9f5b24eb4f93bcf121c3d40ff5facecb217"
+ integrity sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==
+
+"@svgr/babel-plugin-transform-react-native-svg@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.5.1.tgz#1d8e945a03df65b601551097d8f5e34351d3d305"
+ integrity sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==
+
+"@svgr/babel-plugin-transform-svg-component@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.5.1.tgz#48620b9e590e25ff95a80f811544218d27f8a250"
+ integrity sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==
+
+"@svgr/babel-preset@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/babel-preset/-/babel-preset-6.5.1.tgz#b90de7979c8843c5c580c7e2ec71f024b49eb828"
+ integrity sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==
+ dependencies:
+ "@svgr/babel-plugin-add-jsx-attribute" "^6.5.1"
+ "@svgr/babel-plugin-remove-jsx-attribute" "*"
+ "@svgr/babel-plugin-remove-jsx-empty-expression" "*"
+ "@svgr/babel-plugin-replace-jsx-attribute-value" "^6.5.1"
+ "@svgr/babel-plugin-svg-dynamic-title" "^6.5.1"
+ "@svgr/babel-plugin-svg-em-dimensions" "^6.5.1"
+ "@svgr/babel-plugin-transform-react-native-svg" "^6.5.1"
+ "@svgr/babel-plugin-transform-svg-component" "^6.5.1"
+
+"@svgr/core@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/core/-/core-6.5.1.tgz#d3e8aa9dbe3fbd747f9ee4282c1c77a27410488a"
+ integrity sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==
+ dependencies:
+ "@babel/core" "^7.19.6"
+ "@svgr/babel-preset" "^6.5.1"
+ "@svgr/plugin-jsx" "^6.5.1"
+ camelcase "^6.2.0"
+ cosmiconfig "^7.0.1"
+
+"@svgr/hast-util-to-babel-ast@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.5.1.tgz#81800bd09b5bcdb968bf6ee7c863d2288fdb80d2"
+ integrity sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==
+ dependencies:
+ "@babel/types" "^7.20.0"
+ entities "^4.4.0"
+
+"@svgr/plugin-jsx@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/plugin-jsx/-/plugin-jsx-6.5.1.tgz#0e30d1878e771ca753c94e69581c7971542a7072"
+ integrity sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==
+ dependencies:
+ "@babel/core" "^7.19.6"
+ "@svgr/babel-preset" "^6.5.1"
+ "@svgr/hast-util-to-babel-ast" "^6.5.1"
+ svg-parser "^2.0.4"
+
+"@svgr/plugin-svgo@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/plugin-svgo/-/plugin-svgo-6.5.1.tgz#0f91910e988fc0b842f88e0960c2862e022abe84"
+ integrity sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==
+ dependencies:
+ cosmiconfig "^7.0.1"
+ deepmerge "^4.2.2"
+ svgo "^2.8.0"
+
+"@svgr/webpack@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@svgr/webpack/-/webpack-6.5.1.tgz#ecf027814fc1cb2decc29dc92f39c3cf691e40e8"
+ integrity sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==
+ dependencies:
+ "@babel/core" "^7.19.6"
+ "@babel/plugin-transform-react-constant-elements" "^7.18.12"
+ "@babel/preset-env" "^7.19.4"
+ "@babel/preset-react" "^7.18.6"
+ "@babel/preset-typescript" "^7.18.6"
+ "@svgr/core" "^6.5.1"
+ "@svgr/plugin-jsx" "^6.5.1"
+ "@svgr/plugin-svgo" "^6.5.1"
+
+"@szmarczak/http-timer@^5.0.1":
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-5.0.1.tgz#c7c1bf1141cdd4751b0399c8fc7b8b664cd5be3a"
+ integrity sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==
+ dependencies:
+ defer-to-connect "^2.0.1"
+
+"@trysound/sax@0.2.0":
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad"
+ integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==
+
+"@types/acorn@^4.0.0":
+ version "4.0.6"
+ resolved "https://registry.yarnpkg.com/@types/acorn/-/acorn-4.0.6.tgz#d61ca5480300ac41a7d973dd5b84d0a591154a22"
+ integrity sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==
+ dependencies:
+ "@types/estree" "*"
+
+"@types/body-parser@*":
+ version "1.19.2"
+ resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.2.tgz#aea2059e28b7658639081347ac4fab3de166e6f0"
+ integrity sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==
+ dependencies:
+ "@types/connect" "*"
+ "@types/node" "*"
+
+"@types/bonjour@^3.5.9":
+ version "3.5.10"
+ resolved "https://registry.yarnpkg.com/@types/bonjour/-/bonjour-3.5.10.tgz#0f6aadfe00ea414edc86f5d106357cda9701e275"
+ integrity sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==
+ dependencies:
+ "@types/node" "*"
+
+"@types/connect-history-api-fallback@^1.3.5":
+ version "1.3.5"
+ resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.5.tgz#d1f7a8a09d0ed5a57aee5ae9c18ab9b803205dae"
+ integrity sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==
+ dependencies:
+ "@types/express-serve-static-core" "*"
+ "@types/node" "*"
+
+"@types/connect@*":
+ version "3.4.35"
+ resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.35.tgz#5fcf6ae445e4021d1fc2219a4873cc73a3bb2ad1"
+ integrity sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==
+ dependencies:
+ "@types/node" "*"
+
+"@types/debug@^4.0.0":
+ version "4.1.12"
+ resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.12.tgz#a155f21690871953410df4b6b6f53187f0500917"
+ integrity sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==
+ dependencies:
+ "@types/ms" "*"
+
+"@types/eslint-scope@^3.7.3":
+ version "3.7.4"
+ resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.4.tgz#37fc1223f0786c39627068a12e94d6e6fc61de16"
+ integrity sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==
+ dependencies:
+ "@types/eslint" "*"
+ "@types/estree" "*"
+
+"@types/eslint@*":
+ version "8.4.5"
+ resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.4.5.tgz#acdfb7dd36b91cc5d812d7c093811a8f3d9b31e4"
+ integrity sha512-dhsC09y1gpJWnK+Ff4SGvCuSnk9DaU0BJZSzOwa6GVSg65XtTugLBITDAAzRU5duGBoXBHpdR/9jHGxJjNflJQ==
+ dependencies:
+ "@types/estree" "*"
+ "@types/json-schema" "*"
+
+"@types/estree-jsx@^1.0.0":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@types/estree-jsx/-/estree-jsx-1.0.3.tgz#f8aa833ec986d82b8271a294a92ed1565bf2c66a"
+ integrity sha512-pvQ+TKeRHeiUGRhvYwRrQ/ISnohKkSJR14fT2yqyZ4e9K5vqc7hrtY2Y1Dw0ZwAzQ6DQsxsaCUuSIIi8v0Cq6w==
+ dependencies:
+ "@types/estree" "*"
+
+"@types/estree@*", "@types/estree@^1.0.0":
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.1.tgz#aa22750962f3bf0e79d753d3cc067f010c95f194"
+ integrity sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==
+
+"@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.18":
+ version "4.17.30"
+ resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.30.tgz#0f2f99617fa8f9696170c46152ccf7500b34ac04"
+ integrity sha512-gstzbTWro2/nFed1WXtf+TtrpwxH7Ggs4RLYTLbeVgIkUQOI3WG/JKjgeOU1zXDvezllupjrf8OPIdvTbIaVOQ==
+ dependencies:
+ "@types/node" "*"
+ "@types/qs" "*"
+ "@types/range-parser" "*"
+
+"@types/express@*", "@types/express@^4.17.13":
+ version "4.17.13"
+ resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.13.tgz#a76e2995728999bab51a33fabce1d705a3709034"
+ integrity sha512-6bSZTPaTIACxn48l50SR+axgrqm6qXFIxrdAKaG6PaJk3+zuUr35hBlgT7vOmJcum+OEaIBLtHV/qloEAFITeA==
+ dependencies:
+ "@types/body-parser" "*"
+ "@types/express-serve-static-core" "^4.17.18"
+ "@types/qs" "*"
+ "@types/serve-static" "*"
+
+"@types/gtag.js@^0.0.12":
+ version "0.0.12"
+ resolved "https://registry.yarnpkg.com/@types/gtag.js/-/gtag.js-0.0.12.tgz#095122edca896689bdfcdd73b057e23064d23572"
+ integrity sha512-YQV9bUsemkzG81Ea295/nF/5GijnD2Af7QhEofh7xu+kvCN6RdodgNwwGWXB5GMI3NoyvQo0odNctoH/qLMIpg==
+
+"@types/hast@^3.0.0":
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/@types/hast/-/hast-3.0.3.tgz#7f75e6b43bc3f90316046a287d9ad3888309f7e1"
+ integrity sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==
+ dependencies:
+ "@types/unist" "*"
+
+"@types/history@^4.7.11":
+ version "4.7.11"
+ resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.11.tgz#56588b17ae8f50c53983a524fc3cc47437969d64"
+ integrity sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==
+
+"@types/html-minifier-terser@^6.0.0":
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz#4fc33a00c1d0c16987b1a20cf92d20614c55ac35"
+ integrity sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==
+
+"@types/http-cache-semantics@^4.0.2":
+ version "4.0.4"
+ resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz#b979ebad3919799c979b17c72621c0bc0a31c6c4"
+ integrity sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==
+
+"@types/http-proxy@^1.17.8":
+ version "1.17.9"
+ resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.9.tgz#7f0e7931343761efde1e2bf48c40f02f3f75705a"
+ integrity sha512-QsbSjA/fSk7xB+UXlCT3wHBy5ai9wOcNDWwZAtud+jXhwOM3l+EYZh8Lng4+/6n8uar0J7xILzqftJdJ/Wdfkw==
+ dependencies:
+ "@types/node" "*"
+
+"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7"
+ integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==
+
+"@types/istanbul-lib-report@*":
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz#53047614ae72e19fc0401d872de3ae2b4ce350bf"
+ integrity sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==
+ dependencies:
+ "@types/istanbul-lib-coverage" "*"
+
+"@types/istanbul-reports@^3.0.0":
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz#0f03e3d2f670fbdac586e34b433783070cc16f54"
+ integrity sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==
+ dependencies:
+ "@types/istanbul-lib-report" "*"
+
+"@types/json-schema@*", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
+ version "7.0.11"
+ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3"
+ integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==
+
+"@types/mdast@^4.0.0", "@types/mdast@^4.0.2":
+ version "4.0.3"
+ resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-4.0.3.tgz#1e011ff013566e919a4232d1701ad30d70cab333"
+ integrity sha512-LsjtqsyF+d2/yFOYaN22dHZI1Cpwkrj+g06G8+qtUKlhovPW89YhqSnfKtMbkgmEtYpH2gydRNULd6y8mciAFg==
+ dependencies:
+ "@types/unist" "*"
+
+"@types/mdx@^2.0.0":
+ version "2.0.10"
+ resolved "https://registry.yarnpkg.com/@types/mdx/-/mdx-2.0.10.tgz#0d7b57fb1d83e27656156e4ee0dfba96532930e4"
+ integrity sha512-Rllzc5KHk0Al5/WANwgSPl1/CwjqCy+AZrGd78zuK+jO9aDM6ffblZ+zIjgPNAaEBmlO0RYDvLNh7wD0zKVgEg==
+
+"@types/mime@*":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10"
+ integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==
+
+"@types/ms@*":
+ version "0.7.34"
+ resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.34.tgz#10964ba0dee6ac4cd462e2795b6bebd407303433"
+ integrity sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==
+
+"@types/node-forge@^1.3.0":
+ version "1.3.10"
+ resolved "https://registry.yarnpkg.com/@types/node-forge/-/node-forge-1.3.10.tgz#62a19d4f75a8b03290578c2b04f294b1a5a71b07"
+ integrity sha512-y6PJDYN4xYBxwd22l+OVH35N+1fCYWiuC3aiP2SlXVE6Lo7SS+rSx9r89hLxrP4pn6n1lBGhHJ12pj3F3Mpttw==
+ dependencies:
+ "@types/node" "*"
+
+"@types/node@*":
+ version "18.7.6"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.6.tgz#31743bc5772b6ac223845e18c3fc26f042713c83"
+ integrity sha512-EdxgKRXgYsNITy5mjjXjVE/CS8YENSdhiagGrLqjG0pvA2owgJ6i4l7wy/PFZGC0B1/H20lWKN7ONVDNYDZm7A==
+
+"@types/node@^17.0.5":
+ version "17.0.45"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.45.tgz#2c0fafd78705e7a18b7906b5201a522719dc5190"
+ integrity sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==
+
+"@types/parse-json@^4.0.0":
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
+ integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
+
+"@types/prismjs@^1.26.0":
+ version "1.26.3"
+ resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.26.3.tgz#47fe8e784c2dee24fe636cab82e090d3da9b7dec"
+ integrity sha512-A0D0aTXvjlqJ5ZILMz3rNfDBOx9hHxLZYv2by47Sm/pqW35zzjusrZTryatjN/Rf8Us2gZrJD+KeHbUSTux1Cw==
+
+"@types/prop-types@*":
+ version "15.7.5"
+ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf"
+ integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==
+
+"@types/qs@*":
+ version "6.9.7"
+ resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb"
+ integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==
+
+"@types/range-parser@*":
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc"
+ integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==
+
+"@types/react-router-config@*":
+ version "5.0.6"
+ resolved "https://registry.yarnpkg.com/@types/react-router-config/-/react-router-config-5.0.6.tgz#87c5c57e72d241db900d9734512c50ccec062451"
+ integrity sha512-db1mx37a1EJDf1XeX8jJN7R3PZABmJQXR8r28yUjVMFSjkmnQo6X6pOEEmNl+Tp2gYQOGPdYbFIipBtdElZ3Yg==
+ dependencies:
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+ "@types/react-router" "*"
+
+"@types/react-router-config@^5.0.7":
+ version "5.0.11"
+ resolved "https://registry.yarnpkg.com/@types/react-router-config/-/react-router-config-5.0.11.tgz#2761a23acc7905a66a94419ee40294a65aaa483a"
+ integrity sha512-WmSAg7WgqW7m4x8Mt4N6ZyKz0BubSj/2tVUMsAHp+Yd2AMwcSbeFq9WympT19p5heCFmF97R9eD5uUR/t4HEqw==
+ dependencies:
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+ "@types/react-router" "^5.1.0"
+
+"@types/react-router-dom@*":
+ version "5.3.3"
+ resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.3.3.tgz#e9d6b4a66fcdbd651a5f106c2656a30088cc1e83"
+ integrity sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==
+ dependencies:
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+ "@types/react-router" "*"
+
+"@types/react-router@*":
+ version "5.1.18"
+ resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.18.tgz#c8851884b60bc23733500d86c1266e1cfbbd9ef3"
+ integrity sha512-YYknwy0D0iOwKQgz9v8nOzt2J6l4gouBmDnWqUUznltOTaon+r8US8ky8HvN0tXvc38U9m6z/t2RsVsnd1zM0g==
+ dependencies:
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+
+"@types/react-router@^5.1.0":
+ version "5.1.20"
+ resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.20.tgz#88eccaa122a82405ef3efbcaaa5dcdd9f021387c"
+ integrity sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==
+ dependencies:
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+
+"@types/react@*":
+ version "18.0.17"
+ resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.17.tgz#4583d9c322d67efe4b39a935d223edcc7050ccf4"
+ integrity sha512-38ETy4tL+rn4uQQi7mB81G7V1g0u2ryquNmsVIOKUAEIDK+3CUjZ6rSRpdvS99dNBnkLFL83qfmtLacGOTIhwQ==
+ dependencies:
+ "@types/prop-types" "*"
+ "@types/scheduler" "*"
+ csstype "^3.0.2"
+
+"@types/retry@0.12.0":
+ version "0.12.0"
+ resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.0.tgz#2b35eccfcee7d38cd72ad99232fbd58bffb3c84d"
+ integrity sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==
+
+"@types/sax@^1.2.1":
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/@types/sax/-/sax-1.2.4.tgz#8221affa7f4f3cb21abd22f244cfabfa63e6a69e"
+ integrity sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==
+ dependencies:
+ "@types/node" "*"
+
+"@types/scheduler@*":
+ version "0.16.2"
+ resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39"
+ integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==
+
+"@types/serve-index@^1.9.1":
+ version "1.9.1"
+ resolved "https://registry.yarnpkg.com/@types/serve-index/-/serve-index-1.9.1.tgz#1b5e85370a192c01ec6cec4735cf2917337a6278"
+ integrity sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==
+ dependencies:
+ "@types/express" "*"
+
+"@types/serve-static@*", "@types/serve-static@^1.13.10":
+ version "1.15.0"
+ resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.15.0.tgz#c7930ff61afb334e121a9da780aac0d9b8f34155"
+ integrity sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==
+ dependencies:
+ "@types/mime" "*"
+ "@types/node" "*"
+
+"@types/sockjs@^0.3.33":
+ version "0.3.33"
+ resolved "https://registry.yarnpkg.com/@types/sockjs/-/sockjs-0.3.33.tgz#570d3a0b99ac995360e3136fd6045113b1bd236f"
+ integrity sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==
+ dependencies:
+ "@types/node" "*"
+
+"@types/unist@*", "@types/unist@^3.0.0":
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.2.tgz#6dd61e43ef60b34086287f83683a5c1b2dc53d20"
+ integrity sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==
+
+"@types/unist@^2.0.0":
+ version "2.0.7"
+ resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.7.tgz#5b06ad6894b236a1d2bd6b2f07850ca5c59cf4d6"
+ integrity sha512-cputDpIbFgLUaGQn6Vqg3/YsJwxUwHLO13v3i5ouxT4lat0khip9AEWxtERujXV9wxIB1EyF97BSJFt6vpdI8g==
+
+"@types/ws@^8.5.5":
+ version "8.5.10"
+ resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.10.tgz#4acfb517970853fa6574a3a6886791d04a396787"
+ integrity sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==
+ dependencies:
+ "@types/node" "*"
+
+"@types/yargs-parser@*":
+ version "21.0.3"
+ resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15"
+ integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==
+
+"@types/yargs@^17.0.8":
+ version "17.0.32"
+ resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.32.tgz#030774723a2f7faafebf645f4e5a48371dca6229"
+ integrity sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==
+ dependencies:
+ "@types/yargs-parser" "*"
+
+"@ungap/structured-clone@^1.0.0":
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
+ integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==
+
+"@webassemblyjs/ast@1.11.6", "@webassemblyjs/ast@^1.11.5":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.6.tgz#db046555d3c413f8966ca50a95176a0e2c642e24"
+ integrity sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==
+ dependencies:
+ "@webassemblyjs/helper-numbers" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+
+"@webassemblyjs/floating-point-hex-parser@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz#dacbcb95aff135c8260f77fa3b4c5fea600a6431"
+ integrity sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==
+
+"@webassemblyjs/helper-api-error@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz#6132f68c4acd59dcd141c44b18cbebbd9f2fa768"
+ integrity sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==
+
+"@webassemblyjs/helper-buffer@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz#b66d73c43e296fd5e88006f18524feb0f2c7c093"
+ integrity sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==
+
+"@webassemblyjs/helper-numbers@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz#cbce5e7e0c1bd32cf4905ae444ef64cea919f1b5"
+ integrity sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==
+ dependencies:
+ "@webassemblyjs/floating-point-hex-parser" "1.11.6"
+ "@webassemblyjs/helper-api-error" "1.11.6"
+ "@xtuc/long" "4.2.2"
+
+"@webassemblyjs/helper-wasm-bytecode@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz#bb2ebdb3b83aa26d9baad4c46d4315283acd51e9"
+ integrity sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==
+
+"@webassemblyjs/helper-wasm-section@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz#ff97f3863c55ee7f580fd5c41a381e9def4aa577"
+ integrity sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-buffer" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+ "@webassemblyjs/wasm-gen" "1.11.6"
+
+"@webassemblyjs/ieee754@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz#bb665c91d0b14fffceb0e38298c329af043c6e3a"
+ integrity sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==
+ dependencies:
+ "@xtuc/ieee754" "^1.2.0"
+
+"@webassemblyjs/leb128@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.11.6.tgz#70e60e5e82f9ac81118bc25381a0b283893240d7"
+ integrity sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==
+ dependencies:
+ "@xtuc/long" "4.2.2"
+
+"@webassemblyjs/utf8@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.11.6.tgz#90f8bc34c561595fe156603be7253cdbcd0fab5a"
+ integrity sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==
+
+"@webassemblyjs/wasm-edit@^1.11.5":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz#c72fa8220524c9b416249f3d94c2958dfe70ceab"
+ integrity sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-buffer" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+ "@webassemblyjs/helper-wasm-section" "1.11.6"
+ "@webassemblyjs/wasm-gen" "1.11.6"
+ "@webassemblyjs/wasm-opt" "1.11.6"
+ "@webassemblyjs/wasm-parser" "1.11.6"
+ "@webassemblyjs/wast-printer" "1.11.6"
+
+"@webassemblyjs/wasm-gen@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz#fb5283e0e8b4551cc4e9c3c0d7184a65faf7c268"
+ integrity sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+ "@webassemblyjs/ieee754" "1.11.6"
+ "@webassemblyjs/leb128" "1.11.6"
+ "@webassemblyjs/utf8" "1.11.6"
+
+"@webassemblyjs/wasm-opt@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz#d9a22d651248422ca498b09aa3232a81041487c2"
+ integrity sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-buffer" "1.11.6"
+ "@webassemblyjs/wasm-gen" "1.11.6"
+ "@webassemblyjs/wasm-parser" "1.11.6"
+
+"@webassemblyjs/wasm-parser@1.11.6", "@webassemblyjs/wasm-parser@^1.11.5":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz#bb85378c527df824004812bbdb784eea539174a1"
+ integrity sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-api-error" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+ "@webassemblyjs/ieee754" "1.11.6"
+ "@webassemblyjs/leb128" "1.11.6"
+ "@webassemblyjs/utf8" "1.11.6"
+
+"@webassemblyjs/wast-printer@1.11.6":
+ version "1.11.6"
+ resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz#a7bf8dd7e362aeb1668ff43f35cb849f188eff20"
+ integrity sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@xtuc/long" "4.2.2"
+
+"@xtuc/ieee754@^1.2.0":
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"
+ integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==
+
+"@xtuc/long@4.2.2":
+ version "4.2.2"
+ resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
+ integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==
+
+accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8:
+ version "1.3.8"
+ resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e"
+ integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==
+ dependencies:
+ mime-types "~2.1.34"
+ negotiator "0.6.3"
+
+acorn-import-assertions@^1.9.0:
+ version "1.9.0"
+ resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz#507276249d684797c84e0734ef84860334cfb1ac"
+ integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==
+
+acorn-jsx@^5.0.0:
+ version "5.3.2"
+ resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
+ integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
+
+acorn-walk@^8.0.0:
+ version "8.2.0"
+ resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1"
+ integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==
+
+acorn@^8.0.0:
+ version "8.11.2"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b"
+ integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==
+
+acorn@^8.0.4, acorn@^8.7.1, acorn@^8.8.2:
+ version "8.10.0"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5"
+ integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==
+
+address@^1.0.1, address@^1.1.2:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/address/-/address-1.2.0.tgz#d352a62c92fee90f89a693eccd2a8b2139ab02d9"
+ integrity sha512-tNEZYz5G/zYunxFm7sfhAxkXEuLj3K6BKwv6ZURlsF6yiUQ65z0Q2wZW9L5cPUl9ocofGvXOdFYbFHp0+6MOig==
+
+aggregate-error@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a"
+ integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==
+ dependencies:
+ clean-stack "^2.0.0"
+ indent-string "^4.0.0"
+
+ajv-formats@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520"
+ integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==
+ dependencies:
+ ajv "^8.0.0"
+
+ajv-keywords@^3.4.1, ajv-keywords@^3.5.2:
+ version "3.5.2"
+ resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d"
+ integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==
+
+ajv-keywords@^5.0.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16"
+ integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==
+ dependencies:
+ fast-deep-equal "^3.1.3"
+
+ajv@^6.12.2, ajv@^6.12.5:
+ version "6.12.6"
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
+ integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
+ dependencies:
+ fast-deep-equal "^3.1.1"
+ fast-json-stable-stringify "^2.0.0"
+ json-schema-traverse "^0.4.1"
+ uri-js "^4.2.2"
+
+ajv@^8.0.0, ajv@^8.8.0:
+ version "8.11.0"
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f"
+ integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==
+ dependencies:
+ fast-deep-equal "^3.1.1"
+ json-schema-traverse "^1.0.0"
+ require-from-string "^2.0.2"
+ uri-js "^4.2.2"
+
+algoliasearch-helper@^3.13.3:
+ version "3.16.0"
+ resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.16.0.tgz#42c7c8cecf5fa91fb9dd467011fa68c9050be7dc"
+ integrity sha512-RxOtBafSQwyqD5BLO/q9VsVw/zuNz8kjb51OZhCIWLr33uvKB+vrRis+QK+JFlNQXbXf+w28fsTWiBupc1pHew==
+ dependencies:
+ "@algolia/events" "^4.0.1"
+
+algoliasearch@^4.18.0, algoliasearch@^4.19.1:
+ version "4.21.1"
+ resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-4.21.1.tgz#61fd5f9d4480fca263d9c22c2cdf24ef6d37631d"
+ integrity sha512-Ym0MGwOcjQhZ+s1N/j0o94g3vQD0MzNpWsfJLyPVCt0zHflbi0DwYX+9GPmTJ4BzegoxWMyCPgcmpd3R+VlOzQ==
+ dependencies:
+ "@algolia/cache-browser-local-storage" "4.21.1"
+ "@algolia/cache-common" "4.21.1"
+ "@algolia/cache-in-memory" "4.21.1"
+ "@algolia/client-account" "4.21.1"
+ "@algolia/client-analytics" "4.21.1"
+ "@algolia/client-common" "4.21.1"
+ "@algolia/client-personalization" "4.21.1"
+ "@algolia/client-search" "4.21.1"
+ "@algolia/logger-common" "4.21.1"
+ "@algolia/logger-console" "4.21.1"
+ "@algolia/requester-browser-xhr" "4.21.1"
+ "@algolia/requester-common" "4.21.1"
+ "@algolia/requester-node-http" "4.21.1"
+ "@algolia/transporter" "4.21.1"
+
+ansi-align@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59"
+ integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==
+ dependencies:
+ string-width "^4.1.0"
+
+ansi-html-community@^0.0.8:
+ version "0.0.8"
+ resolved "https://registry.yarnpkg.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41"
+ integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==
+
+ansi-regex@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
+ integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
+
+ansi-regex@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a"
+ integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==
+
+ansi-styles@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
+ integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==
+ dependencies:
+ color-convert "^1.9.0"
+
+ansi-styles@^4.1.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
+ integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
+ dependencies:
+ color-convert "^2.0.1"
+
+ansi-styles@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.1.0.tgz#87313c102b8118abd57371afab34618bf7350ed3"
+ integrity sha512-VbqNsoz55SYGczauuup0MFUyXNQviSpFTj1RQtFzmQLk18qbVSpTFFGMT293rmDaQuKCT6InmbuEyUne4mTuxQ==
+
+anymatch@~3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716"
+ integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==
+ dependencies:
+ normalize-path "^3.0.0"
+ picomatch "^2.0.4"
+
+arg@^5.0.0:
+ version "5.0.2"
+ resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c"
+ integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==
+
+argparse@^1.0.7:
+ version "1.0.10"
+ resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
+ integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==
+ dependencies:
+ sprintf-js "~1.0.2"
+
+argparse@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
+ integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
+
+array-flatten@1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
+ integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==
+
+array-flatten@^2.1.2:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-2.1.2.tgz#24ef80a28c1a893617e2149b0c6d0d788293b099"
+ integrity sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==
+
+array-union@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"
+ integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==
+
+astring@^1.8.0:
+ version "1.8.6"
+ resolved "https://registry.yarnpkg.com/astring/-/astring-1.8.6.tgz#2c9c157cf1739d67561c56ba896e6948f6b93731"
+ integrity sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==
+
+at-least-node@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
+ integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==
+
+autoprefixer@^10.4.12:
+ version "10.4.14"
+ resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.14.tgz#e28d49902f8e759dd25b153264e862df2705f79d"
+ integrity sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==
+ dependencies:
+ browserslist "^4.21.5"
+ caniuse-lite "^1.0.30001464"
+ fraction.js "^4.2.0"
+ normalize-range "^0.1.2"
+ picocolors "^1.0.0"
+ postcss-value-parser "^4.2.0"
+
+autoprefixer@^10.4.14:
+ version "10.4.16"
+ resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.16.tgz#fad1411024d8670880bdece3970aa72e3572feb8"
+ integrity sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==
+ dependencies:
+ browserslist "^4.21.10"
+ caniuse-lite "^1.0.30001538"
+ fraction.js "^4.3.6"
+ normalize-range "^0.1.2"
+ picocolors "^1.0.0"
+ postcss-value-parser "^4.2.0"
+
+babel-loader@^9.1.3:
+ version "9.1.3"
+ resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-9.1.3.tgz#3d0e01b4e69760cc694ee306fe16d358aa1c6f9a"
+ integrity sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw==
+ dependencies:
+ find-cache-dir "^4.0.0"
+ schema-utils "^4.0.0"
+
+babel-plugin-dynamic-import-node@^2.3.3:
+ version "2.3.3"
+ resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz#84fda19c976ec5c6defef57f9427b3def66e17a3"
+ integrity sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==
+ dependencies:
+ object.assign "^4.1.0"
+
+babel-plugin-polyfill-corejs2@^0.4.6:
+ version "0.4.7"
+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.7.tgz#679d1b94bf3360f7682e11f2cb2708828a24fe8c"
+ integrity sha512-LidDk/tEGDfuHW2DWh/Hgo4rmnw3cduK6ZkOI1NPFceSK3n/yAGeOsNT7FLnSGHkXj3RHGSEVkN3FsCTY6w2CQ==
+ dependencies:
+ "@babel/compat-data" "^7.22.6"
+ "@babel/helper-define-polyfill-provider" "^0.4.4"
+ semver "^6.3.1"
+
+babel-plugin-polyfill-corejs3@^0.8.5:
+ version "0.8.7"
+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.7.tgz#941855aa7fdaac06ed24c730a93450d2b2b76d04"
+ integrity sha512-KyDvZYxAzkC0Aj2dAPyDzi2Ym15e5JKZSK+maI7NAwSqofvuFglbSsxE7wUOvTg9oFVnHMzVzBKcqEb4PJgtOA==
+ dependencies:
+ "@babel/helper-define-polyfill-provider" "^0.4.4"
+ core-js-compat "^3.33.1"
+
+babel-plugin-polyfill-regenerator@^0.5.3:
+ version "0.5.4"
+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.4.tgz#c6fc8eab610d3a11eb475391e52584bacfc020f4"
+ integrity sha512-S/x2iOCvDaCASLYsOOgWOq4bCfKYVqvO/uxjkaYyZ3rVsVE3CeAI/c84NpyuBBymEgNvHgjEot3a9/Z/kXvqsg==
+ dependencies:
+ "@babel/helper-define-polyfill-provider" "^0.4.4"
+
+bail@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/bail/-/bail-2.0.2.tgz#d26f5cd8fe5d6f832a31517b9f7c356040ba6d5d"
+ integrity sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==
+
+balanced-match@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
+ integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
+
+batch@0.6.1:
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16"
+ integrity sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==
+
+big.js@^5.2.2:
+ version "5.2.2"
+ resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328"
+ integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==
+
+binary-extensions@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
+ integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
+
+body-parser@1.20.2:
+ version "1.20.2"
+ resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.2.tgz#6feb0e21c4724d06de7ff38da36dad4f57a747fd"
+ integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==
+ dependencies:
+ bytes "3.1.2"
+ content-type "~1.0.5"
+ debug "2.6.9"
+ depd "2.0.0"
+ destroy "1.2.0"
+ http-errors "2.0.0"
+ iconv-lite "0.4.24"
+ on-finished "2.4.1"
+ qs "6.11.0"
+ raw-body "2.5.2"
+ type-is "~1.6.18"
+ unpipe "1.0.0"
+
+bonjour-service@^1.0.11:
+ version "1.0.13"
+ resolved "https://registry.yarnpkg.com/bonjour-service/-/bonjour-service-1.0.13.tgz#4ac003dc1626023252d58adf2946f57e5da450c1"
+ integrity sha512-LWKRU/7EqDUC9CTAQtuZl5HzBALoCYwtLhffW3et7vZMwv3bWLpJf8bRYlMD5OCcDpTfnPgNCV4yo9ZIaJGMiA==
+ dependencies:
+ array-flatten "^2.1.2"
+ dns-equal "^1.0.0"
+ fast-deep-equal "^3.1.3"
+ multicast-dns "^7.2.5"
+
+boolbase@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
+ integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==
+
+boxen@^6.2.1:
+ version "6.2.1"
+ resolved "https://registry.yarnpkg.com/boxen/-/boxen-6.2.1.tgz#b098a2278b2cd2845deef2dff2efc38d329b434d"
+ integrity sha512-H4PEsJXfFI/Pt8sjDWbHlQPx4zL/bvSQjcilJmaulGt5mLDorHOHpmdXAJcBcmru7PhYSp/cDMWRko4ZUMFkSw==
+ dependencies:
+ ansi-align "^3.0.1"
+ camelcase "^6.2.0"
+ chalk "^4.1.2"
+ cli-boxes "^3.0.0"
+ string-width "^5.0.1"
+ type-fest "^2.5.0"
+ widest-line "^4.0.1"
+ wrap-ansi "^8.0.1"
+
+boxen@^7.0.0:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/boxen/-/boxen-7.1.1.tgz#f9ba525413c2fec9cdb88987d835c4f7cad9c8f4"
+ integrity sha512-2hCgjEmP8YLWQ130n2FerGv7rYpfBmnmp9Uy2Le1vge6X3gZIfSmEzP5QTDElFxcvVcXlEn8Aq6MU/PZygIOog==
+ dependencies:
+ ansi-align "^3.0.1"
+ camelcase "^7.0.1"
+ chalk "^5.2.0"
+ cli-boxes "^3.0.0"
+ string-width "^5.1.2"
+ type-fest "^2.13.0"
+ widest-line "^4.0.1"
+ wrap-ansi "^8.1.0"
+
+brace-expansion@^1.1.7:
+ version "1.1.11"
+ resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
+ integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
+ dependencies:
+ balanced-match "^1.0.0"
+ concat-map "0.0.1"
+
+braces@^3.0.2, braces@~3.0.2:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"
+ integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
+ dependencies:
+ fill-range "^7.1.1"
+
+browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.18.1, browserslist@^4.21.4, browserslist@^4.21.5:
+ version "4.21.10"
+ resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.10.tgz#dbbac576628c13d3b2231332cb2ec5a46e015bb0"
+ integrity sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==
+ dependencies:
+ caniuse-lite "^1.0.30001517"
+ electron-to-chromium "^1.4.477"
+ node-releases "^2.0.13"
+ update-browserslist-db "^1.0.11"
+
+browserslist@^4.21.10, browserslist@^4.22.2:
+ version "4.22.2"
+ resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.2.tgz#704c4943072bd81ea18997f3bd2180e89c77874b"
+ integrity sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==
+ dependencies:
+ caniuse-lite "^1.0.30001565"
+ electron-to-chromium "^1.4.601"
+ node-releases "^2.0.14"
+ update-browserslist-db "^1.0.13"
+
+buffer-from@^1.0.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5"
+ integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
+
+bytes@3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
+ integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==
+
+bytes@3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
+ integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==
+
+cacheable-lookup@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz#3476a8215d046e5a3202a9209dd13fec1f933a27"
+ integrity sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==
+
+cacheable-request@^10.2.8:
+ version "10.2.14"
+ resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-10.2.14.tgz#eb915b665fda41b79652782df3f553449c406b9d"
+ integrity sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==
+ dependencies:
+ "@types/http-cache-semantics" "^4.0.2"
+ get-stream "^6.0.1"
+ http-cache-semantics "^4.1.1"
+ keyv "^4.5.3"
+ mimic-response "^4.0.0"
+ normalize-url "^8.0.0"
+ responselike "^3.0.0"
+
+call-bind@^1.0.0, call-bind@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
+ integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==
+ dependencies:
+ function-bind "^1.1.1"
+ get-intrinsic "^1.0.2"
+
+callsites@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
+ integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
+
+camel-case@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-4.1.2.tgz#9728072a954f805228225a6deea6b38461e1bd5a"
+ integrity sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==
+ dependencies:
+ pascal-case "^3.1.2"
+ tslib "^2.0.3"
+
+camelcase@^6.2.0:
+ version "6.3.0"
+ resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
+ integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
+
+camelcase@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-7.0.1.tgz#f02e50af9fd7782bc8b88a3558c32fd3a388f048"
+ integrity sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==
+
+caniuse-api@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-3.0.0.tgz#5e4d90e2274961d46291997df599e3ed008ee4c0"
+ integrity sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==
+ dependencies:
+ browserslist "^4.0.0"
+ caniuse-lite "^1.0.0"
+ lodash.memoize "^4.1.2"
+ lodash.uniq "^4.5.0"
+
+caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001464, caniuse-lite@^1.0.30001517:
+ version "1.0.30001518"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001518.tgz#b3ca93904cb4699c01218246c4d77a71dbe97150"
+ integrity sha512-rup09/e3I0BKjncL+FesTayKtPrdwKhUufQFd3riFw1hHg8JmIFoInYfB102cFcY/pPgGmdyl/iy+jgiDi2vdA==
+
+caniuse-lite@^1.0.30001538, caniuse-lite@^1.0.30001565:
+ version "1.0.30001570"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz#b4e5c1fa786f733ab78fc70f592df6b3f23244ca"
+ integrity sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==
+
+ccount@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5"
+ integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==
+
+chalk@^2.0.0, chalk@^2.4.2:
+ version "2.4.2"
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
+ integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
+ dependencies:
+ ansi-styles "^3.2.1"
+ escape-string-regexp "^1.0.5"
+ supports-color "^5.3.0"
+
+chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
+ integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
+ dependencies:
+ ansi-styles "^4.1.0"
+ supports-color "^7.1.0"
+
+chalk@^5.0.1, chalk@^5.2.0:
+ version "5.3.0"
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385"
+ integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==
+
+char-regex@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf"
+ integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==
+
+character-entities-html4@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-2.1.0.tgz#1f1adb940c971a4b22ba39ddca6b618dc6e56b2b"
+ integrity sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==
+
+character-entities-legacy@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz#76bc83a90738901d7bc223a9e93759fdd560125b"
+ integrity sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==
+
+character-entities@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-2.0.2.tgz#2d09c2e72cd9523076ccb21157dff66ad43fcc22"
+ integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==
+
+character-reference-invalid@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz#85c66b041e43b47210faf401278abf808ac45cb9"
+ integrity sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==
+
+cheerio-select@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/cheerio-select/-/cheerio-select-2.1.0.tgz#4d8673286b8126ca2a8e42740d5e3c4884ae21b4"
+ integrity sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==
+ dependencies:
+ boolbase "^1.0.0"
+ css-select "^5.1.0"
+ css-what "^6.1.0"
+ domelementtype "^2.3.0"
+ domhandler "^5.0.3"
+ domutils "^3.0.1"
+
+cheerio@^1.0.0-rc.12:
+ version "1.0.0-rc.12"
+ resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.12.tgz#788bf7466506b1c6bf5fae51d24a2c4d62e47683"
+ integrity sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==
+ dependencies:
+ cheerio-select "^2.1.0"
+ dom-serializer "^2.0.0"
+ domhandler "^5.0.3"
+ domutils "^3.0.1"
+ htmlparser2 "^8.0.1"
+ parse5 "^7.0.0"
+ parse5-htmlparser2-tree-adapter "^7.0.0"
+
+chokidar@^3.4.2, chokidar@^3.5.3:
+ version "3.5.3"
+ resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
+ integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
+ dependencies:
+ anymatch "~3.1.2"
+ braces "~3.0.2"
+ glob-parent "~5.1.2"
+ is-binary-path "~2.1.0"
+ is-glob "~4.0.1"
+ normalize-path "~3.0.0"
+ readdirp "~3.6.0"
+ optionalDependencies:
+ fsevents "~2.3.2"
+
+chrome-trace-event@^1.0.2:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac"
+ integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==
+
+ci-info@^3.2.0:
+ version "3.9.0"
+ resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4"
+ integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==
+
+clean-css@^5.2.2:
+ version "5.3.1"
+ resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.3.1.tgz#d0610b0b90d125196a2894d35366f734e5d7aa32"
+ integrity sha512-lCr8OHhiWCTw4v8POJovCoh4T7I9U11yVsPjMWWnnMmp9ZowCxyad1Pathle/9HjaDp+fdQKjO9fQydE6RHTZg==
+ dependencies:
+ source-map "~0.6.0"
+
+clean-css@^5.3.2, clean-css@~5.3.2:
+ version "5.3.3"
+ resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.3.3.tgz#b330653cd3bd6b75009cc25c714cae7b93351ccd"
+ integrity sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==
+ dependencies:
+ source-map "~0.6.0"
+
+clean-stack@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"
+ integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==
+
+cli-boxes@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-3.0.0.tgz#71a10c716feeba005e4504f36329ef0b17cf3145"
+ integrity sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==
+
+cli-table3@^0.6.3:
+ version "0.6.3"
+ resolved "https://registry.yarnpkg.com/cli-table3/-/cli-table3-0.6.3.tgz#61ab765aac156b52f222954ffc607a6f01dbeeb2"
+ integrity sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==
+ dependencies:
+ string-width "^4.2.0"
+ optionalDependencies:
+ "@colors/colors" "1.5.0"
+
+clone-deep@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
+ integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==
+ dependencies:
+ is-plain-object "^2.0.4"
+ kind-of "^6.0.2"
+ shallow-clone "^3.0.0"
+
+clsx@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.0.0.tgz#12658f3fd98fafe62075595a5c30e43d18f3d00b"
+ integrity sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==
+
+collapse-white-space@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-2.1.0.tgz#640257174f9f42c740b40f3b55ee752924feefca"
+ integrity sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw==
+
+color-convert@^1.9.0:
+ version "1.9.3"
+ resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
+ integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==
+ dependencies:
+ color-name "1.1.3"
+
+color-convert@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
+ integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
+ dependencies:
+ color-name "~1.1.4"
+
+color-name@1.1.3:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
+ integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==
+
+color-name@~1.1.4:
+ version "1.1.4"
+ resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
+ integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
+
+colord@^2.9.1:
+ version "2.9.3"
+ resolved "https://registry.yarnpkg.com/colord/-/colord-2.9.3.tgz#4f8ce919de456f1d5c1c368c307fe20f3e59fb43"
+ integrity sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==
+
+colorette@^2.0.10:
+ version "2.0.19"
+ resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798"
+ integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==
+
+combine-promises@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/combine-promises/-/combine-promises-1.1.0.tgz#72db90743c0ca7aab7d0d8d2052fd7b0f674de71"
+ integrity sha512-ZI9jvcLDxqwaXEixOhArm3r7ReIivsXkpbyEWyeOhzz1QS0iSgBPnWvEqvIQtYyamGCYA88gFhmUrs9hrrQ0pg==
+
+comma-separated-tokens@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz#4e89c9458acb61bc8fef19f4529973b2392839ee"
+ integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==
+
+commander@^10.0.0:
+ version "10.0.1"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06"
+ integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==
+
+commander@^2.20.0:
+ version "2.20.3"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
+ integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
+
+commander@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
+ integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==
+
+commander@^7.2.0:
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7"
+ integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
+
+commander@^8.3.0:
+ version "8.3.0"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
+ integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
+
+common-path-prefix@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz#7d007a7e07c58c4b4d5f433131a19141b29f11e0"
+ integrity sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==
+
+compressible@~2.0.16:
+ version "2.0.18"
+ resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba"
+ integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==
+ dependencies:
+ mime-db ">= 1.43.0 < 2"
+
+compression@^1.7.4:
+ version "1.7.4"
+ resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"
+ integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==
+ dependencies:
+ accepts "~1.3.5"
+ bytes "3.0.0"
+ compressible "~2.0.16"
+ debug "2.6.9"
+ on-headers "~1.0.2"
+ safe-buffer "5.1.2"
+ vary "~1.1.2"
+
+concat-map@0.0.1:
+ version "0.0.1"
+ resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
+ integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
+
+config-chain@^1.1.11:
+ version "1.1.13"
+ resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4"
+ integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==
+ dependencies:
+ ini "^1.3.4"
+ proto-list "~1.2.1"
+
+configstore@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/configstore/-/configstore-6.0.0.tgz#49eca2ebc80983f77e09394a1a56e0aca8235566"
+ integrity sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA==
+ dependencies:
+ dot-prop "^6.0.1"
+ graceful-fs "^4.2.6"
+ unique-string "^3.0.0"
+ write-file-atomic "^3.0.3"
+ xdg-basedir "^5.0.1"
+
+connect-history-api-fallback@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8"
+ integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==
+
+consola@^2.15.3:
+ version "2.15.3"
+ resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550"
+ integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==
+
+content-disposition@0.5.2:
+ version "0.5.2"
+ resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4"
+ integrity sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==
+
+content-disposition@0.5.4:
+ version "0.5.4"
+ resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe"
+ integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==
+ dependencies:
+ safe-buffer "5.2.1"
+
+content-type@~1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
+ integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==
+
+content-type@~1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918"
+ integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==
+
+convert-source-map@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a"
+ integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==
+
+cookie-signature@1.0.6:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
+ integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==
+
+cookie@0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051"
+ integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==
+
+copy-text-to-clipboard@^3.2.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz#0202b2d9bdae30a49a53f898626dcc3b49ad960b"
+ integrity sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q==
+
+copy-webpack-plugin@^11.0.0:
+ version "11.0.0"
+ resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz#96d4dbdb5f73d02dd72d0528d1958721ab72e04a"
+ integrity sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==
+ dependencies:
+ fast-glob "^3.2.11"
+ glob-parent "^6.0.1"
+ globby "^13.1.1"
+ normalize-path "^3.0.0"
+ schema-utils "^4.0.0"
+ serialize-javascript "^6.0.0"
+
+core-js-compat@^3.31.0, core-js-compat@^3.33.1:
+ version "3.34.0"
+ resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.34.0.tgz#61a4931a13c52f8f08d924522bba65f8c94a5f17"
+ integrity sha512-4ZIyeNbW/Cn1wkMMDy+mvrRUxrwFNjKwbhCfQpDd+eLgYipDqp8oGFGtLmhh18EDPKA0g3VUBYOxQGGwvWLVpA==
+ dependencies:
+ browserslist "^4.22.2"
+
+core-js-pure@^3.30.2:
+ version "3.34.0"
+ resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.34.0.tgz#981e462500708664c91b827a75b011f04a8134a0"
+ integrity sha512-pmhivkYXkymswFfbXsANmBAewXx86UBfmagP+w0wkK06kLsLlTK5oQmsURPivzMkIBQiYq2cjamcZExIwlFQIg==
+
+core-js@^3.31.1:
+ version "3.34.0"
+ resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.34.0.tgz#5705e6ad5982678612e96987d05b27c6c7c274a5"
+ integrity sha512-aDdvlDder8QmY91H88GzNi9EtQi2TjvQhpCX6B1v/dAZHU1AuLgHvRh54RiOerpEhEW46Tkf+vgAViB/CWC0ag==
+
+core-util-is@~1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
+ integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==
+
+cosmiconfig@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982"
+ integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==
+ dependencies:
+ "@types/parse-json" "^4.0.0"
+ import-fresh "^3.1.0"
+ parse-json "^5.0.0"
+ path-type "^4.0.0"
+ yaml "^1.7.2"
+
+cosmiconfig@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d"
+ integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==
+ dependencies:
+ "@types/parse-json" "^4.0.0"
+ import-fresh "^3.2.1"
+ parse-json "^5.0.0"
+ path-type "^4.0.0"
+ yaml "^1.10.0"
+
+cosmiconfig@^8.2.0:
+ version "8.3.6"
+ resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz#060a2b871d66dba6c8538ea1118ba1ac16f5fae3"
+ integrity sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==
+ dependencies:
+ import-fresh "^3.3.0"
+ js-yaml "^4.1.0"
+ parse-json "^5.2.0"
+ path-type "^4.0.0"
+
+cross-spawn@^7.0.3:
+ version "7.0.3"
+ resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
+ integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
+ dependencies:
+ path-key "^3.1.0"
+ shebang-command "^2.0.0"
+ which "^2.0.1"
+
+crypto-random-string@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-4.0.0.tgz#5a3cc53d7dd86183df5da0312816ceeeb5bb1fc2"
+ integrity sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==
+ dependencies:
+ type-fest "^1.0.1"
+
+css-declaration-sorter@^6.3.1:
+ version "6.4.1"
+ resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz#28beac7c20bad7f1775be3a7129d7eae409a3a71"
+ integrity sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==
+
+css-loader@^6.8.1:
+ version "6.8.1"
+ resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-6.8.1.tgz#0f8f52699f60f5e679eab4ec0fcd68b8e8a50a88"
+ integrity sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==
+ dependencies:
+ icss-utils "^5.1.0"
+ postcss "^8.4.21"
+ postcss-modules-extract-imports "^3.0.0"
+ postcss-modules-local-by-default "^4.0.3"
+ postcss-modules-scope "^3.0.0"
+ postcss-modules-values "^4.0.0"
+ postcss-value-parser "^4.2.0"
+ semver "^7.3.8"
+
+css-minimizer-webpack-plugin@^4.2.2:
+ version "4.2.2"
+ resolved "https://registry.yarnpkg.com/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-4.2.2.tgz#79f6199eb5adf1ff7ba57f105e3752d15211eb35"
+ integrity sha512-s3Of/4jKfw1Hj9CxEO1E5oXhQAxlayuHO2y/ML+C6I9sQ7FdzfEV6QgMLN3vI+qFsjJGIAFLKtQK7t8BOXAIyA==
+ dependencies:
+ cssnano "^5.1.8"
+ jest-worker "^29.1.2"
+ postcss "^8.4.17"
+ schema-utils "^4.0.0"
+ serialize-javascript "^6.0.0"
+ source-map "^0.6.1"
+
+css-select@^4.1.3:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/css-select/-/css-select-4.3.0.tgz#db7129b2846662fd8628cfc496abb2b59e41529b"
+ integrity sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==
+ dependencies:
+ boolbase "^1.0.0"
+ css-what "^6.0.1"
+ domhandler "^4.3.1"
+ domutils "^2.8.0"
+ nth-check "^2.0.1"
+
+css-select@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/css-select/-/css-select-5.1.0.tgz#b8ebd6554c3637ccc76688804ad3f6a6fdaea8a6"
+ integrity sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==
+ dependencies:
+ boolbase "^1.0.0"
+ css-what "^6.1.0"
+ domhandler "^5.0.2"
+ domutils "^3.0.1"
+ nth-check "^2.0.1"
+
+css-tree@^1.1.2, css-tree@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d"
+ integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==
+ dependencies:
+ mdn-data "2.0.14"
+ source-map "^0.6.1"
+
+css-what@^6.0.1, css-what@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4"
+ integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==
+
+cssesc@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"
+ integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==
+
+cssnano-preset-advanced@^5.3.10:
+ version "5.3.10"
+ resolved "https://registry.yarnpkg.com/cssnano-preset-advanced/-/cssnano-preset-advanced-5.3.10.tgz#25558a1fbf3a871fb6429ce71e41be7f5aca6eef"
+ integrity sha512-fnYJyCS9jgMU+cmHO1rPSPf9axbQyD7iUhLO5Df6O4G+fKIOMps+ZbU0PdGFejFBBZ3Pftf18fn1eG7MAPUSWQ==
+ dependencies:
+ autoprefixer "^10.4.12"
+ cssnano-preset-default "^5.2.14"
+ postcss-discard-unused "^5.1.0"
+ postcss-merge-idents "^5.1.1"
+ postcss-reduce-idents "^5.2.0"
+ postcss-zindex "^5.1.0"
+
+cssnano-preset-default@^5.2.12, cssnano-preset-default@^5.2.14:
+ version "5.2.14"
+ resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz#309def4f7b7e16d71ab2438052093330d9ab45d8"
+ integrity sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==
+ dependencies:
+ css-declaration-sorter "^6.3.1"
+ cssnano-utils "^3.1.0"
+ postcss-calc "^8.2.3"
+ postcss-colormin "^5.3.1"
+ postcss-convert-values "^5.1.3"
+ postcss-discard-comments "^5.1.2"
+ postcss-discard-duplicates "^5.1.0"
+ postcss-discard-empty "^5.1.1"
+ postcss-discard-overridden "^5.1.0"
+ postcss-merge-longhand "^5.1.7"
+ postcss-merge-rules "^5.1.4"
+ postcss-minify-font-values "^5.1.0"
+ postcss-minify-gradients "^5.1.1"
+ postcss-minify-params "^5.1.4"
+ postcss-minify-selectors "^5.2.1"
+ postcss-normalize-charset "^5.1.0"
+ postcss-normalize-display-values "^5.1.0"
+ postcss-normalize-positions "^5.1.1"
+ postcss-normalize-repeat-style "^5.1.1"
+ postcss-normalize-string "^5.1.0"
+ postcss-normalize-timing-functions "^5.1.0"
+ postcss-normalize-unicode "^5.1.1"
+ postcss-normalize-url "^5.1.0"
+ postcss-normalize-whitespace "^5.1.1"
+ postcss-ordered-values "^5.1.3"
+ postcss-reduce-initial "^5.1.2"
+ postcss-reduce-transforms "^5.1.0"
+ postcss-svgo "^5.1.0"
+ postcss-unique-selectors "^5.1.1"
+
+cssnano-utils@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/cssnano-utils/-/cssnano-utils-3.1.0.tgz#95684d08c91511edfc70d2636338ca37ef3a6861"
+ integrity sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==
+
+cssnano@^5.1.15:
+ version "5.1.15"
+ resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-5.1.15.tgz#ded66b5480d5127fcb44dac12ea5a983755136bf"
+ integrity sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==
+ dependencies:
+ cssnano-preset-default "^5.2.14"
+ lilconfig "^2.0.3"
+ yaml "^1.10.2"
+
+cssnano@^5.1.8:
+ version "5.1.13"
+ resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-5.1.13.tgz#83d0926e72955332dc4802a7070296e6258efc0a"
+ integrity sha512-S2SL2ekdEz6w6a2epXn4CmMKU4K3KpcyXLKfAYc9UQQqJRkD/2eLUG0vJ3Db/9OvO5GuAdgXw3pFbR6abqghDQ==
+ dependencies:
+ cssnano-preset-default "^5.2.12"
+ lilconfig "^2.0.3"
+ yaml "^1.10.2"
+
+csso@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/csso/-/csso-4.2.0.tgz#ea3a561346e8dc9f546d6febedd50187cf389529"
+ integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==
+ dependencies:
+ css-tree "^1.1.2"
+
+csstype@^3.0.2:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.0.tgz#4ddcac3718d787cf9df0d1b7d15033925c8f29f2"
+ integrity sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==
+
+debounce@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5"
+ integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==
+
+debug@2.6.9, debug@^2.6.0:
+ version "2.6.9"
+ resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
+ integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
+ dependencies:
+ ms "2.0.0"
+
+debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1:
+ version "4.3.4"
+ resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
+ integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
+ dependencies:
+ ms "2.1.2"
+
+decode-named-character-reference@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz#daabac9690874c394c81e4162a0304b35d824f0e"
+ integrity sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==
+ dependencies:
+ character-entities "^2.0.0"
+
+decompress-response@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc"
+ integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==
+ dependencies:
+ mimic-response "^3.1.0"
+
+deep-extend@^0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
+ integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==
+
+deepmerge@^4.2.2:
+ version "4.2.2"
+ resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955"
+ integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==
+
+default-gateway@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71"
+ integrity sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==
+ dependencies:
+ execa "^5.0.0"
+
+defer-to-connect@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587"
+ integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==
+
+define-lazy-prop@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f"
+ integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==
+
+define-properties@^1.1.4:
+ version "1.1.4"
+ resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1"
+ integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==
+ dependencies:
+ has-property-descriptors "^1.0.0"
+ object-keys "^1.1.1"
+
+del@^6.1.1:
+ version "6.1.1"
+ resolved "https://registry.yarnpkg.com/del/-/del-6.1.1.tgz#3b70314f1ec0aa325c6b14eb36b95786671edb7a"
+ integrity sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==
+ dependencies:
+ globby "^11.0.1"
+ graceful-fs "^4.2.4"
+ is-glob "^4.0.1"
+ is-path-cwd "^2.2.0"
+ is-path-inside "^3.0.2"
+ p-map "^4.0.0"
+ rimraf "^3.0.2"
+ slash "^3.0.0"
+
+depd@2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"
+ integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==
+
+depd@~1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
+ integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==
+
+dequal@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be"
+ integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==
+
+destroy@1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015"
+ integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==
+
+detect-node@^2.0.4:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1"
+ integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==
+
+detect-port-alt@^1.1.6:
+ version "1.1.6"
+ resolved "https://registry.yarnpkg.com/detect-port-alt/-/detect-port-alt-1.1.6.tgz#24707deabe932d4a3cf621302027c2b266568275"
+ integrity sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==
+ dependencies:
+ address "^1.0.1"
+ debug "^2.6.0"
+
+detect-port@^1.5.1:
+ version "1.5.1"
+ resolved "https://registry.yarnpkg.com/detect-port/-/detect-port-1.5.1.tgz#451ca9b6eaf20451acb0799b8ab40dff7718727b"
+ integrity sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==
+ dependencies:
+ address "^1.0.1"
+ debug "4"
+
+devlop@^1.0.0, devlop@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/devlop/-/devlop-1.1.0.tgz#4db7c2ca4dc6e0e834c30be70c94bbc976dc7018"
+ integrity sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==
+ dependencies:
+ dequal "^2.0.0"
+
+dir-glob@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"
+ integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==
+ dependencies:
+ path-type "^4.0.0"
+
+dns-equal@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/dns-equal/-/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d"
+ integrity sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==
+
+dns-packet@^5.2.2:
+ version "5.4.0"
+ resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-5.4.0.tgz#1f88477cf9f27e78a213fb6d118ae38e759a879b"
+ integrity sha512-EgqGeaBB8hLiHLZtp/IbaDQTL8pZ0+IvwzSHA6d7VyMDM+B9hgddEMa9xjK5oYnw0ci0JQ6g2XCD7/f6cafU6g==
+ dependencies:
+ "@leichtgewicht/ip-codec" "^2.0.1"
+
+dom-converter@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768"
+ integrity sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==
+ dependencies:
+ utila "~0.4"
+
+dom-serializer@^1.0.1:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-1.4.1.tgz#de5d41b1aea290215dc45a6dae8adcf1d32e2d30"
+ integrity sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==
+ dependencies:
+ domelementtype "^2.0.1"
+ domhandler "^4.2.0"
+ entities "^2.0.0"
+
+dom-serializer@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-2.0.0.tgz#e41b802e1eedf9f6cae183ce5e622d789d7d8e53"
+ integrity sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==
+ dependencies:
+ domelementtype "^2.3.0"
+ domhandler "^5.0.2"
+ entities "^4.2.0"
+
+domelementtype@^2.0.1, domelementtype@^2.2.0, domelementtype@^2.3.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d"
+ integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==
+
+domhandler@^4.0.0, domhandler@^4.2.0, domhandler@^4.3.1:
+ version "4.3.1"
+ resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.3.1.tgz#8d792033416f59d68bc03a5aa7b018c1ca89279c"
+ integrity sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==
+ dependencies:
+ domelementtype "^2.2.0"
+
+domhandler@^5.0.2, domhandler@^5.0.3:
+ version "5.0.3"
+ resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-5.0.3.tgz#cc385f7f751f1d1fc650c21374804254538c7d31"
+ integrity sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==
+ dependencies:
+ domelementtype "^2.3.0"
+
+domutils@^2.5.2, domutils@^2.8.0:
+ version "2.8.0"
+ resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.8.0.tgz#4437def5db6e2d1f5d6ee859bd95ca7d02048135"
+ integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==
+ dependencies:
+ dom-serializer "^1.0.1"
+ domelementtype "^2.2.0"
+ domhandler "^4.2.0"
+
+domutils@^3.0.1:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/domutils/-/domutils-3.1.0.tgz#c47f551278d3dc4b0b1ab8cbb42d751a6f0d824e"
+ integrity sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==
+ dependencies:
+ dom-serializer "^2.0.0"
+ domelementtype "^2.3.0"
+ domhandler "^5.0.3"
+
+dot-case@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751"
+ integrity sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==
+ dependencies:
+ no-case "^3.0.4"
+ tslib "^2.0.3"
+
+dot-prop@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-6.0.1.tgz#fc26b3cf142b9e59b74dbd39ed66ce620c681083"
+ integrity sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==
+ dependencies:
+ is-obj "^2.0.0"
+
+duplexer@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6"
+ integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==
+
+eastasianwidth@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
+ integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
+
+ee-first@1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
+ integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
+
+electron-to-chromium@^1.4.477:
+ version "1.4.479"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.479.tgz#ec9f676f23d3a0b0e429bc454d25e0b3253d2118"
+ integrity sha512-ABv1nHMIR8I5n3O3Een0gr6i0mfM+YcTZqjHy3pAYaOjgFG+BMquuKrSyfYf5CbEkLr9uM05RA3pOk4udNB/aQ==
+
+electron-to-chromium@^1.4.601:
+ version "1.4.611"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.611.tgz#92d3a8f03110fbf5f99b054da97825f994fa480a"
+ integrity sha512-ZtRpDxrjHapOwxtv+nuth5ByB8clyn8crVynmRNGO3wG3LOp8RTcyZDqwaI6Ng6y8FCK2hVZmJoqwCskKbNMaw==
+
+emoji-regex@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
+ integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
+
+emoji-regex@^9.2.2:
+ version "9.2.2"
+ resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
+ integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
+
+emojilib@^2.4.0:
+ version "2.4.0"
+ resolved "https://registry.yarnpkg.com/emojilib/-/emojilib-2.4.0.tgz#ac518a8bb0d5f76dda57289ccb2fdf9d39ae721e"
+ integrity sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==
+
+emojis-list@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78"
+ integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==
+
+emoticon@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/emoticon/-/emoticon-4.0.1.tgz#2d2bbbf231ce3a5909e185bbb64a9da703a1e749"
+ integrity sha512-dqx7eA9YaqyvYtUhJwT4rC1HIp82j5ybS1/vQ42ur+jBe17dJMwZE4+gvL1XadSFfxaPFFGt3Xsw+Y8akThDlw==
+
+encodeurl@~1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
+ integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==
+
+enhanced-resolve@^5.15.0:
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35"
+ integrity sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==
+ dependencies:
+ graceful-fs "^4.2.4"
+ tapable "^2.2.0"
+
+entities@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55"
+ integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==
+
+entities@^4.2.0, entities@^4.4.0:
+ version "4.5.0"
+ resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
+ integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
+
+error-ex@^1.3.1:
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
+ integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==
+ dependencies:
+ is-arrayish "^0.2.1"
+
+es-module-lexer@^1.2.1:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.3.0.tgz#6be9c9e0b4543a60cd166ff6f8b4e9dae0b0c16f"
+ integrity sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==
+
+escalade@^3.1.1:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
+ integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
+
+escape-goat@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-4.0.0.tgz#9424820331b510b0666b98f7873fe11ac4aa8081"
+ integrity sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg==
+
+escape-html@^1.0.3, escape-html@~1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
+ integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==
+
+escape-string-regexp@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
+ integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==
+
+escape-string-regexp@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
+ integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
+
+escape-string-regexp@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
+ integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
+
+eslint-scope@5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
+ integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==
+ dependencies:
+ esrecurse "^4.3.0"
+ estraverse "^4.1.1"
+
+esprima@^4.0.0:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
+ integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
+
+esrecurse@^4.3.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921"
+ integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==
+ dependencies:
+ estraverse "^5.2.0"
+
+estraverse@^4.1.1:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
+ integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
+
+estraverse@^5.2.0:
+ version "5.3.0"
+ resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
+ integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
+
+estree-util-attach-comments@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/estree-util-attach-comments/-/estree-util-attach-comments-3.0.0.tgz#344bde6a64c8a31d15231e5ee9e297566a691c2d"
+ integrity sha512-cKUwm/HUcTDsYh/9FgnuFqpfquUbwIqwKM26BVCGDPVgvaCl/nDCCjUfiLlx6lsEZ3Z4RFxNbOQ60pkaEwFxGw==
+ dependencies:
+ "@types/estree" "^1.0.0"
+
+estree-util-build-jsx@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/estree-util-build-jsx/-/estree-util-build-jsx-3.0.1.tgz#b6d0bced1dcc4f06f25cf0ceda2b2dcaf98168f1"
+ integrity sha512-8U5eiL6BTrPxp/CHbs2yMgP8ftMhR5ww1eIKoWRMlqvltHF8fZn5LRDvTKuxD3DUn+shRbLGqXemcP51oFCsGQ==
+ dependencies:
+ "@types/estree-jsx" "^1.0.0"
+ devlop "^1.0.0"
+ estree-util-is-identifier-name "^3.0.0"
+ estree-walker "^3.0.0"
+
+estree-util-is-identifier-name@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz#0b5ef4c4ff13508b34dcd01ecfa945f61fce5dbd"
+ integrity sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==
+
+estree-util-to-js@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/estree-util-to-js/-/estree-util-to-js-2.0.0.tgz#10a6fb924814e6abb62becf0d2bc4dea51d04f17"
+ integrity sha512-WDF+xj5rRWmD5tj6bIqRi6CkLIXbbNQUcxQHzGysQzvHmdYG2G7p/Tf0J0gpxGgkeMZNTIjT/AoSvC9Xehcgdg==
+ dependencies:
+ "@types/estree-jsx" "^1.0.0"
+ astring "^1.8.0"
+ source-map "^0.7.0"
+
+estree-util-value-to-estree@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/estree-util-value-to-estree/-/estree-util-value-to-estree-3.0.1.tgz#0b7b5d6b6a4aaad5c60999ffbc265a985df98ac5"
+ integrity sha512-b2tdzTurEIbwRh+mKrEcaWfu1wgb8J1hVsgREg7FFiecWwK/PhO8X0kyc+0bIcKNtD4sqxIdNoRy6/p/TvECEA==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ is-plain-obj "^4.0.0"
+
+estree-util-visit@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/estree-util-visit/-/estree-util-visit-2.0.0.tgz#13a9a9f40ff50ed0c022f831ddf4b58d05446feb"
+ integrity sha512-m5KgiH85xAhhW8Wta0vShLcUvOsh3LLPI2YVwcbio1l7E09NTLL1EyMZFM1OyWowoH0skScNbhOPl4kcBgzTww==
+ dependencies:
+ "@types/estree-jsx" "^1.0.0"
+ "@types/unist" "^3.0.0"
+
+estree-walker@^3.0.0:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-3.0.3.tgz#67c3e549ec402a487b4fc193d1953a524752340d"
+ integrity sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==
+ dependencies:
+ "@types/estree" "^1.0.0"
+
+esutils@^2.0.2:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
+ integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
+
+eta@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/eta/-/eta-2.2.0.tgz#eb8b5f8c4e8b6306561a455e62cd7492fe3a9b8a"
+ integrity sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g==
+
+etag@~1.8.1:
+ version "1.8.1"
+ resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
+ integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==
+
+eval@^0.1.8:
+ version "0.1.8"
+ resolved "https://registry.yarnpkg.com/eval/-/eval-0.1.8.tgz#2b903473b8cc1d1989b83a1e7923f883eb357f85"
+ integrity sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw==
+ dependencies:
+ "@types/node" "*"
+ require-like ">= 0.1.1"
+
+eventemitter3@^4.0.0:
+ version "4.0.7"
+ resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f"
+ integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==
+
+events@^3.2.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
+ integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==
+
+execa@^5.0.0:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
+ integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==
+ dependencies:
+ cross-spawn "^7.0.3"
+ get-stream "^6.0.0"
+ human-signals "^2.1.0"
+ is-stream "^2.0.0"
+ merge-stream "^2.0.0"
+ npm-run-path "^4.0.1"
+ onetime "^5.1.2"
+ signal-exit "^3.0.3"
+ strip-final-newline "^2.0.0"
+
+express@^4.17.3:
+ version "4.19.2"
+ resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465"
+ integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==
+ dependencies:
+ accepts "~1.3.8"
+ array-flatten "1.1.1"
+ body-parser "1.20.2"
+ content-disposition "0.5.4"
+ content-type "~1.0.4"
+ cookie "0.6.0"
+ cookie-signature "1.0.6"
+ debug "2.6.9"
+ depd "2.0.0"
+ encodeurl "~1.0.2"
+ escape-html "~1.0.3"
+ etag "~1.8.1"
+ finalhandler "1.2.0"
+ fresh "0.5.2"
+ http-errors "2.0.0"
+ merge-descriptors "1.0.1"
+ methods "~1.1.2"
+ on-finished "2.4.1"
+ parseurl "~1.3.3"
+ path-to-regexp "0.1.7"
+ proxy-addr "~2.0.7"
+ qs "6.11.0"
+ range-parser "~1.2.1"
+ safe-buffer "5.2.1"
+ send "0.18.0"
+ serve-static "1.15.0"
+ setprototypeof "1.2.0"
+ statuses "2.0.1"
+ type-is "~1.6.18"
+ utils-merge "1.0.1"
+ vary "~1.1.2"
+
+extend-shallow@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f"
+ integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==
+ dependencies:
+ is-extendable "^0.1.0"
+
+extend@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"
+ integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==
+
+fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
+ integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
+
+fast-glob@^3.2.11, fast-glob@^3.2.9:
+ version "3.2.11"
+ resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9"
+ integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==
+ dependencies:
+ "@nodelib/fs.stat" "^2.0.2"
+ "@nodelib/fs.walk" "^1.2.3"
+ glob-parent "^5.1.2"
+ merge2 "^1.3.0"
+ micromatch "^4.0.4"
+
+fast-json-stable-stringify@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
+ integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
+
+fast-url-parser@1.1.3:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d"
+ integrity sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==
+ dependencies:
+ punycode "^1.3.2"
+
+fastq@^1.6.0:
+ version "1.13.0"
+ resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c"
+ integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==
+ dependencies:
+ reusify "^1.0.4"
+
+fault@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/fault/-/fault-2.0.1.tgz#d47ca9f37ca26e4bd38374a7c500b5a384755b6c"
+ integrity sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==
+ dependencies:
+ format "^0.2.0"
+
+faye-websocket@^0.11.3:
+ version "0.11.4"
+ resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.4.tgz#7f0d9275cfdd86a1c963dc8b65fcc451edcbb1da"
+ integrity sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==
+ dependencies:
+ websocket-driver ">=0.5.1"
+
+feed@^4.2.2:
+ version "4.2.2"
+ resolved "https://registry.yarnpkg.com/feed/-/feed-4.2.2.tgz#865783ef6ed12579e2c44bbef3c9113bc4956a7e"
+ integrity sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==
+ dependencies:
+ xml-js "^1.6.11"
+
+file-loader@^6.2.0:
+ version "6.2.0"
+ resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d"
+ integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==
+ dependencies:
+ loader-utils "^2.0.0"
+ schema-utils "^3.0.0"
+
+filesize@^8.0.6:
+ version "8.0.7"
+ resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz#695e70d80f4e47012c132d57a059e80c6b580bd8"
+ integrity sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==
+
+fill-range@^7.1.1:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
+ integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
+ dependencies:
+ to-regex-range "^5.0.1"
+
+finalhandler@1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.2.0.tgz#7d23fe5731b207b4640e4fcd00aec1f9207a7b32"
+ integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==
+ dependencies:
+ debug "2.6.9"
+ encodeurl "~1.0.2"
+ escape-html "~1.0.3"
+ on-finished "2.4.1"
+ parseurl "~1.3.3"
+ statuses "2.0.1"
+ unpipe "~1.0.0"
+
+find-cache-dir@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-4.0.0.tgz#a30ee0448f81a3990708f6453633c733e2f6eec2"
+ integrity sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg==
+ dependencies:
+ common-path-prefix "^3.0.0"
+ pkg-dir "^7.0.0"
+
+find-up@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73"
+ integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==
+ dependencies:
+ locate-path "^3.0.0"
+
+find-up@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc"
+ integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==
+ dependencies:
+ locate-path "^6.0.0"
+ path-exists "^4.0.0"
+
+find-up@^6.3.0:
+ version "6.3.0"
+ resolved "https://registry.yarnpkg.com/find-up/-/find-up-6.3.0.tgz#2abab3d3280b2dc7ac10199ef324c4e002c8c790"
+ integrity sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==
+ dependencies:
+ locate-path "^7.1.0"
+ path-exists "^5.0.0"
+
+flat@^5.0.2:
+ version "5.0.2"
+ resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241"
+ integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==
+
+follow-redirects@^1.0.0:
+ version "1.15.6"
+ resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
+ integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==
+
+fork-ts-checker-webpack-plugin@^6.5.0:
+ version "6.5.2"
+ resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.2.tgz#4f67183f2f9eb8ba7df7177ce3cf3e75cdafb340"
+ integrity sha512-m5cUmF30xkZ7h4tWUgTAcEaKmUW7tfyUyTqNNOz7OxWJ0v1VWKTcOvH8FWHUwSjlW/356Ijc9vi3XfcPstpQKA==
+ dependencies:
+ "@babel/code-frame" "^7.8.3"
+ "@types/json-schema" "^7.0.5"
+ chalk "^4.1.0"
+ chokidar "^3.4.2"
+ cosmiconfig "^6.0.0"
+ deepmerge "^4.2.2"
+ fs-extra "^9.0.0"
+ glob "^7.1.6"
+ memfs "^3.1.2"
+ minimatch "^3.0.4"
+ schema-utils "2.7.0"
+ semver "^7.3.2"
+ tapable "^1.0.0"
+
+form-data-encoder@^2.1.2:
+ version "2.1.4"
+ resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-2.1.4.tgz#261ea35d2a70d48d30ec7a9603130fa5515e9cd5"
+ integrity sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==
+
+format@^0.2.0:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b"
+ integrity sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==
+
+forwarded@0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811"
+ integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==
+
+fraction.js@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950"
+ integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==
+
+fraction.js@^4.3.6:
+ version "4.3.7"
+ resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7"
+ integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==
+
+fresh@0.5.2:
+ version "0.5.2"
+ resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
+ integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==
+
+fs-extra@^11.1.1:
+ version "11.2.0"
+ resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b"
+ integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==
+ dependencies:
+ graceful-fs "^4.2.0"
+ jsonfile "^6.0.1"
+ universalify "^2.0.0"
+
+fs-extra@^9.0.0:
+ version "9.1.0"
+ resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
+ integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==
+ dependencies:
+ at-least-node "^1.0.0"
+ graceful-fs "^4.2.0"
+ jsonfile "^6.0.1"
+ universalify "^2.0.0"
+
+fs-monkey@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.3.tgz#ae3ac92d53bb328efe0e9a1d9541f6ad8d48e2d3"
+ integrity sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==
+
+fs.realpath@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
+ integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
+
+fsevents@~2.3.2:
+ version "2.3.2"
+ resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
+ integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
+
+function-bind@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
+ integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
+
+gensync@^1.0.0-beta.2:
+ version "1.0.0-beta.2"
+ resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
+ integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==
+
+get-intrinsic@^1.0.2, get-intrinsic@^1.1.1:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.2.tgz#336975123e05ad0b7ba41f152ee4aadbea6cf598"
+ integrity sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==
+ dependencies:
+ function-bind "^1.1.1"
+ has "^1.0.3"
+ has-symbols "^1.0.3"
+
+get-own-enumerable-property-symbols@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz#b5fde77f22cbe35f390b4e089922c50bce6ef664"
+ integrity sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==
+
+get-stream@^6.0.0, get-stream@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
+ integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
+
+github-slugger@^1.5.0:
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.5.0.tgz#17891bbc73232051474d68bd867a34625c955f7d"
+ integrity sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==
+
+glob-parent@^5.1.2, glob-parent@~5.1.2:
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
+ integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
+ dependencies:
+ is-glob "^4.0.1"
+
+glob-parent@^6.0.1:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
+ integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
+ dependencies:
+ is-glob "^4.0.3"
+
+glob-to-regexp@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e"
+ integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==
+
+glob@^7.0.0, glob@^7.1.3, glob@^7.1.6:
+ version "7.2.3"
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
+ integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
+ dependencies:
+ fs.realpath "^1.0.0"
+ inflight "^1.0.4"
+ inherits "2"
+ minimatch "^3.1.1"
+ once "^1.3.0"
+ path-is-absolute "^1.0.0"
+
+global-dirs@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-3.0.0.tgz#70a76fe84ea315ab37b1f5576cbde7d48ef72686"
+ integrity sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==
+ dependencies:
+ ini "2.0.0"
+
+global-modules@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780"
+ integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==
+ dependencies:
+ global-prefix "^3.0.0"
+
+global-prefix@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97"
+ integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==
+ dependencies:
+ ini "^1.3.5"
+ kind-of "^6.0.2"
+ which "^1.3.1"
+
+globals@^11.1.0:
+ version "11.12.0"
+ resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
+ integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
+
+globby@^11.0.1, globby@^11.0.4, globby@^11.1.0:
+ version "11.1.0"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
+ integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
+ dependencies:
+ array-union "^2.1.0"
+ dir-glob "^3.0.1"
+ fast-glob "^3.2.9"
+ ignore "^5.2.0"
+ merge2 "^1.4.1"
+ slash "^3.0.0"
+
+globby@^13.1.1:
+ version "13.1.2"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-13.1.2.tgz#29047105582427ab6eca4f905200667b056da515"
+ integrity sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ==
+ dependencies:
+ dir-glob "^3.0.1"
+ fast-glob "^3.2.11"
+ ignore "^5.2.0"
+ merge2 "^1.4.1"
+ slash "^4.0.0"
+
+got@^12.1.0:
+ version "12.6.1"
+ resolved "https://registry.yarnpkg.com/got/-/got-12.6.1.tgz#8869560d1383353204b5a9435f782df9c091f549"
+ integrity sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==
+ dependencies:
+ "@sindresorhus/is" "^5.2.0"
+ "@szmarczak/http-timer" "^5.0.1"
+ cacheable-lookup "^7.0.0"
+ cacheable-request "^10.2.8"
+ decompress-response "^6.0.0"
+ form-data-encoder "^2.1.2"
+ get-stream "^6.0.1"
+ http2-wrapper "^2.1.10"
+ lowercase-keys "^3.0.0"
+ p-cancelable "^3.0.0"
+ responselike "^3.0.0"
+
+graceful-fs@4.2.10, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9:
+ version "4.2.10"
+ resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
+ integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
+
+gray-matter@^4.0.3:
+ version "4.0.3"
+ resolved "https://registry.yarnpkg.com/gray-matter/-/gray-matter-4.0.3.tgz#e893c064825de73ea1f5f7d88c7a9f7274288798"
+ integrity sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==
+ dependencies:
+ js-yaml "^3.13.1"
+ kind-of "^6.0.2"
+ section-matter "^1.0.0"
+ strip-bom-string "^1.0.0"
+
+gzip-size@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462"
+ integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==
+ dependencies:
+ duplexer "^0.1.2"
+
+handle-thing@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e"
+ integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==
+
+has-flag@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
+ integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==
+
+has-flag@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
+ integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
+
+has-property-descriptors@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861"
+ integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==
+ dependencies:
+ get-intrinsic "^1.1.1"
+
+has-symbols@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8"
+ integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==
+
+has-yarn@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-3.0.0.tgz#c3c21e559730d1d3b57e28af1f30d06fac38147d"
+ integrity sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA==
+
+has@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
+ integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
+ dependencies:
+ function-bind "^1.1.1"
+
+hast-util-from-parse5@^8.0.0:
+ version "8.0.1"
+ resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-8.0.1.tgz#654a5676a41211e14ee80d1b1758c399a0327651"
+ integrity sha512-Er/Iixbc7IEa7r/XLtuG52zoqn/b3Xng/w6aZQ0xGVxzhw5xUFxcRqdPzP6yFi/4HBYRaifaI5fQ1RH8n0ZeOQ==
+ dependencies:
+ "@types/hast" "^3.0.0"
+ "@types/unist" "^3.0.0"
+ devlop "^1.0.0"
+ hastscript "^8.0.0"
+ property-information "^6.0.0"
+ vfile "^6.0.0"
+ vfile-location "^5.0.0"
+ web-namespaces "^2.0.0"
+
+hast-util-parse-selector@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz#352879fa86e25616036037dd8931fb5f34cb4a27"
+ integrity sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==
+ dependencies:
+ "@types/hast" "^3.0.0"
+
+hast-util-raw@^9.0.0:
+ version "9.0.1"
+ resolved "https://registry.yarnpkg.com/hast-util-raw/-/hast-util-raw-9.0.1.tgz#2ba8510e4ed2a1e541cde2a4ebb5c38ab4c82c2d"
+ integrity sha512-5m1gmba658Q+lO5uqL5YNGQWeh1MYWZbZmWrM5lncdcuiXuo5E2HT/CIOp0rLF8ksfSwiCVJ3twlgVRyTGThGA==
+ dependencies:
+ "@types/hast" "^3.0.0"
+ "@types/unist" "^3.0.0"
+ "@ungap/structured-clone" "^1.0.0"
+ hast-util-from-parse5 "^8.0.0"
+ hast-util-to-parse5 "^8.0.0"
+ html-void-elements "^3.0.0"
+ mdast-util-to-hast "^13.0.0"
+ parse5 "^7.0.0"
+ unist-util-position "^5.0.0"
+ unist-util-visit "^5.0.0"
+ vfile "^6.0.0"
+ web-namespaces "^2.0.0"
+ zwitch "^2.0.0"
+
+hast-util-to-estree@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/hast-util-to-estree/-/hast-util-to-estree-3.1.0.tgz#f2afe5e869ddf0cf690c75f9fc699f3180b51b19"
+ integrity sha512-lfX5g6hqVh9kjS/B9E2gSkvHH4SZNiQFiqWS0x9fENzEl+8W12RqdRxX6d/Cwxi30tPQs3bIO+aolQJNp1bIyw==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ "@types/estree-jsx" "^1.0.0"
+ "@types/hast" "^3.0.0"
+ comma-separated-tokens "^2.0.0"
+ devlop "^1.0.0"
+ estree-util-attach-comments "^3.0.0"
+ estree-util-is-identifier-name "^3.0.0"
+ hast-util-whitespace "^3.0.0"
+ mdast-util-mdx-expression "^2.0.0"
+ mdast-util-mdx-jsx "^3.0.0"
+ mdast-util-mdxjs-esm "^2.0.0"
+ property-information "^6.0.0"
+ space-separated-tokens "^2.0.0"
+ style-to-object "^0.4.0"
+ unist-util-position "^5.0.0"
+ zwitch "^2.0.0"
+
+hast-util-to-jsx-runtime@^2.0.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.0.tgz#3ed27caf8dc175080117706bf7269404a0aa4f7c"
+ integrity sha512-H/y0+IWPdsLLS738P8tDnrQ8Z+dj12zQQ6WC11TIM21C8WFVoIxcqWXf2H3hiTVZjF1AWqoimGwrTWecWrnmRQ==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ "@types/hast" "^3.0.0"
+ "@types/unist" "^3.0.0"
+ comma-separated-tokens "^2.0.0"
+ devlop "^1.0.0"
+ estree-util-is-identifier-name "^3.0.0"
+ hast-util-whitespace "^3.0.0"
+ mdast-util-mdx-expression "^2.0.0"
+ mdast-util-mdx-jsx "^3.0.0"
+ mdast-util-mdxjs-esm "^2.0.0"
+ property-information "^6.0.0"
+ space-separated-tokens "^2.0.0"
+ style-to-object "^1.0.0"
+ unist-util-position "^5.0.0"
+ vfile-message "^4.0.0"
+
+hast-util-to-parse5@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/hast-util-to-parse5/-/hast-util-to-parse5-8.0.0.tgz#477cd42d278d4f036bc2ea58586130f6f39ee6ed"
+ integrity sha512-3KKrV5ZVI8if87DVSi1vDeByYrkGzg4mEfeu4alwgmmIeARiBLKCZS2uw5Gb6nU9x9Yufyj3iudm6i7nl52PFw==
+ dependencies:
+ "@types/hast" "^3.0.0"
+ comma-separated-tokens "^2.0.0"
+ devlop "^1.0.0"
+ property-information "^6.0.0"
+ space-separated-tokens "^2.0.0"
+ web-namespaces "^2.0.0"
+ zwitch "^2.0.0"
+
+hast-util-whitespace@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz#7778ed9d3c92dd9e8c5c8f648a49c21fc51cb621"
+ integrity sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==
+ dependencies:
+ "@types/hast" "^3.0.0"
+
+hastscript@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-8.0.0.tgz#4ef795ec8dee867101b9f23cc830d4baf4fd781a"
+ integrity sha512-dMOtzCEd3ABUeSIISmrETiKuyydk1w0pa+gE/uormcTpSYuaNJPbX1NU3JLyscSLjwAQM8bWMhhIlnCqnRvDTw==
+ dependencies:
+ "@types/hast" "^3.0.0"
+ comma-separated-tokens "^2.0.0"
+ hast-util-parse-selector "^4.0.0"
+ property-information "^6.0.0"
+ space-separated-tokens "^2.0.0"
+
+he@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
+ integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
+
+history@^4.9.0:
+ version "4.10.1"
+ resolved "https://registry.yarnpkg.com/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3"
+ integrity sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==
+ dependencies:
+ "@babel/runtime" "^7.1.2"
+ loose-envify "^1.2.0"
+ resolve-pathname "^3.0.0"
+ tiny-invariant "^1.0.2"
+ tiny-warning "^1.0.0"
+ value-equal "^1.0.1"
+
+hoist-non-react-statics@^3.1.0:
+ version "3.3.2"
+ resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
+ integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
+ dependencies:
+ react-is "^16.7.0"
+
+hpack.js@^2.1.6:
+ version "2.1.6"
+ resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2"
+ integrity sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==
+ dependencies:
+ inherits "^2.0.1"
+ obuf "^1.0.0"
+ readable-stream "^2.0.1"
+ wbuf "^1.1.0"
+
+html-entities@^2.3.2:
+ version "2.3.3"
+ resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-2.3.3.tgz#117d7626bece327fc8baace8868fa6f5ef856e46"
+ integrity sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==
+
+html-escaper@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453"
+ integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
+
+html-minifier-terser@^6.0.2:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz#bfc818934cc07918f6b3669f5774ecdfd48f32ab"
+ integrity sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==
+ dependencies:
+ camel-case "^4.1.2"
+ clean-css "^5.2.2"
+ commander "^8.3.0"
+ he "^1.2.0"
+ param-case "^3.0.4"
+ relateurl "^0.2.7"
+ terser "^5.10.0"
+
+html-minifier-terser@^7.2.0:
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/html-minifier-terser/-/html-minifier-terser-7.2.0.tgz#18752e23a2f0ed4b0f550f217bb41693e975b942"
+ integrity sha512-tXgn3QfqPIpGl9o+K5tpcj3/MN4SfLtsx2GWwBC3SSd0tXQGyF3gsSqad8loJgKZGM3ZxbYDd5yhiBIdWpmvLA==
+ dependencies:
+ camel-case "^4.1.2"
+ clean-css "~5.3.2"
+ commander "^10.0.0"
+ entities "^4.4.0"
+ param-case "^3.0.4"
+ relateurl "^0.2.7"
+ terser "^5.15.1"
+
+html-tags@^3.3.1:
+ version "3.3.1"
+ resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.3.1.tgz#a04026a18c882e4bba8a01a3d39cfe465d40b5ce"
+ integrity sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==
+
+html-void-elements@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/html-void-elements/-/html-void-elements-3.0.0.tgz#fc9dbd84af9e747249034d4d62602def6517f1d7"
+ integrity sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==
+
+html-webpack-plugin@^5.5.3:
+ version "5.5.4"
+ resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-5.5.4.tgz#517a48e6f046ff1ae1a172c983cd993eb79d2f6a"
+ integrity sha512-3wNSaVVxdxcu0jd4FpQFoICdqgxs4zIQQvj+2yQKFfBOnLETQ6X5CDWdeasuGlSsooFlMkEioWDTqBv1wvw5Iw==
+ dependencies:
+ "@types/html-minifier-terser" "^6.0.0"
+ html-minifier-terser "^6.0.2"
+ lodash "^4.17.21"
+ pretty-error "^4.0.0"
+ tapable "^2.0.0"
+
+htmlparser2@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-6.1.0.tgz#c4d762b6c3371a05dbe65e94ae43a9f845fb8fb7"
+ integrity sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==
+ dependencies:
+ domelementtype "^2.0.1"
+ domhandler "^4.0.0"
+ domutils "^2.5.2"
+ entities "^2.0.0"
+
+htmlparser2@^8.0.1:
+ version "8.0.2"
+ resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-8.0.2.tgz#f002151705b383e62433b5cf466f5b716edaec21"
+ integrity sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==
+ dependencies:
+ domelementtype "^2.3.0"
+ domhandler "^5.0.3"
+ domutils "^3.0.1"
+ entities "^4.4.0"
+
+http-cache-semantics@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a"
+ integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==
+
+http-deceiver@^1.2.7:
+ version "1.2.7"
+ resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87"
+ integrity sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==
+
+http-errors@2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3"
+ integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==
+ dependencies:
+ depd "2.0.0"
+ inherits "2.0.4"
+ setprototypeof "1.2.0"
+ statuses "2.0.1"
+ toidentifier "1.0.1"
+
+http-errors@~1.6.2:
+ version "1.6.3"
+ resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d"
+ integrity sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==
+ dependencies:
+ depd "~1.1.2"
+ inherits "2.0.3"
+ setprototypeof "1.1.0"
+ statuses ">= 1.4.0 < 2"
+
+http-parser-js@>=0.5.1:
+ version "0.5.8"
+ resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.8.tgz#af23090d9ac4e24573de6f6aecc9d84a48bf20e3"
+ integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==
+
+http-proxy-middleware@^2.0.3:
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz#e1a4dd6979572c7ab5a4e4b55095d1f32a74963f"
+ integrity sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==
+ dependencies:
+ "@types/http-proxy" "^1.17.8"
+ http-proxy "^1.18.1"
+ is-glob "^4.0.1"
+ is-plain-obj "^3.0.0"
+ micromatch "^4.0.2"
+
+http-proxy@^1.18.1:
+ version "1.18.1"
+ resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549"
+ integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==
+ dependencies:
+ eventemitter3 "^4.0.0"
+ follow-redirects "^1.0.0"
+ requires-port "^1.0.0"
+
+http2-wrapper@^2.1.10:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/http2-wrapper/-/http2-wrapper-2.2.1.tgz#310968153dcdedb160d8b72114363ef5fce1f64a"
+ integrity sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ==
+ dependencies:
+ quick-lru "^5.1.1"
+ resolve-alpn "^1.2.0"
+
+human-signals@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
+ integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
+
+iconv-lite@0.4.24:
+ version "0.4.24"
+ resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
+ integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==
+ dependencies:
+ safer-buffer ">= 2.1.2 < 3"
+
+icss-utils@^5.0.0, icss-utils@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae"
+ integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==
+
+ignore@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a"
+ integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==
+
+image-size@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/image-size/-/image-size-1.0.2.tgz#d778b6d0ab75b2737c1556dd631652eb963bc486"
+ integrity sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==
+ dependencies:
+ queue "6.0.2"
+
+immer@^9.0.7:
+ version "9.0.15"
+ resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.15.tgz#0b9169e5b1d22137aba7d43f8a81a495dd1b62dc"
+ integrity sha512-2eB/sswms9AEUSkOm4SbV5Y7Vmt/bKRwByd52jfLkW4OLYeaTP3EEiJ9agqU0O/tq6Dk62Zfj+TJSqfm1rLVGQ==
+
+import-fresh@^3.1.0, import-fresh@^3.2.1, import-fresh@^3.3.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
+ integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
+ dependencies:
+ parent-module "^1.0.0"
+ resolve-from "^4.0.0"
+
+import-lazy@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153"
+ integrity sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==
+
+imurmurhash@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
+ integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==
+
+indent-string@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251"
+ integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==
+
+infima@0.2.0-alpha.43:
+ version "0.2.0-alpha.43"
+ resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.43.tgz#f7aa1d7b30b6c08afef441c726bac6150228cbe0"
+ integrity sha512-2uw57LvUqW0rK/SWYnd/2rRfxNA5DDNOh33jxF7fy46VWoNhGxiUQyVZHbBMjQ33mQem0cjdDVwgWVAmlRfgyQ==
+
+inflight@^1.0.4:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
+ integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
+ dependencies:
+ once "^1.3.0"
+ wrappy "1"
+
+inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.3:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
+ integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
+
+inherits@2.0.3:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
+ integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==
+
+ini@2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5"
+ integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==
+
+ini@^1.3.4, ini@^1.3.5, ini@~1.3.0:
+ version "1.3.8"
+ resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
+ integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==
+
+inline-style-parser@0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/inline-style-parser/-/inline-style-parser-0.1.1.tgz#ec8a3b429274e9c0a1f1c4ffa9453a7fef72cea1"
+ integrity sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==
+
+inline-style-parser@0.2.2:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/inline-style-parser/-/inline-style-parser-0.2.2.tgz#d498b4e6de0373458fc610ff793f6b14ebf45633"
+ integrity sha512-EcKzdTHVe8wFVOGEYXiW9WmJXPjqi1T+234YpJr98RiFYKHV3cdy1+3mkTE+KHTHxFFLH51SfaGOoUdW+v7ViQ==
+
+interpret@^1.0.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
+ integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==
+
+invariant@^2.2.4:
+ version "2.2.4"
+ resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
+ integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
+ dependencies:
+ loose-envify "^1.0.0"
+
+ipaddr.js@1.9.1:
+ version "1.9.1"
+ resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
+ integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==
+
+ipaddr.js@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.0.1.tgz#eca256a7a877e917aeb368b0a7497ddf42ef81c0"
+ integrity sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==
+
+is-alphabetical@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-2.0.1.tgz#01072053ea7c1036df3c7d19a6daaec7f19e789b"
+ integrity sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==
+
+is-alphanumerical@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz#7c03fbe96e3e931113e57f964b0a368cc2dfd875"
+ integrity sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==
+ dependencies:
+ is-alphabetical "^2.0.0"
+ is-decimal "^2.0.0"
+
+is-arrayish@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
+ integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==
+
+is-binary-path@~2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
+ integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
+ dependencies:
+ binary-extensions "^2.0.0"
+
+is-ci@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867"
+ integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==
+ dependencies:
+ ci-info "^3.2.0"
+
+is-core-module@^2.9.0:
+ version "2.10.0"
+ resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.10.0.tgz#9012ede0a91c69587e647514e1d5277019e728ed"
+ integrity sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==
+ dependencies:
+ has "^1.0.3"
+
+is-decimal@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-2.0.1.tgz#9469d2dc190d0214fd87d78b78caecc0cc14eef7"
+ integrity sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==
+
+is-docker@^2.0.0, is-docker@^2.1.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
+ integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==
+
+is-extendable@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
+ integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==
+
+is-extglob@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
+ integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==
+
+is-fullwidth-code-point@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d"
+ integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
+
+is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
+ version "4.0.3"
+ resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
+ integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
+ dependencies:
+ is-extglob "^2.1.1"
+
+is-hexadecimal@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz#86b5bf668fca307498d319dfc03289d781a90027"
+ integrity sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==
+
+is-installed-globally@^0.4.0:
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.4.0.tgz#9a0fd407949c30f86eb6959ef1b7994ed0b7b520"
+ integrity sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==
+ dependencies:
+ global-dirs "^3.0.0"
+ is-path-inside "^3.0.2"
+
+is-npm@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-6.0.0.tgz#b59e75e8915543ca5d881ecff864077cba095261"
+ integrity sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ==
+
+is-number@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
+ integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
+
+is-obj@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f"
+ integrity sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==
+
+is-obj@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
+ integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==
+
+is-path-cwd@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb"
+ integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==
+
+is-path-inside@^3.0.2:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283"
+ integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==
+
+is-plain-obj@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7"
+ integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==
+
+is-plain-obj@^4.0.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0"
+ integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==
+
+is-plain-object@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
+ integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==
+ dependencies:
+ isobject "^3.0.1"
+
+is-plain-object@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344"
+ integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==
+
+is-reference@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-3.0.2.tgz#154747a01f45cd962404ee89d43837af2cba247c"
+ integrity sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==
+ dependencies:
+ "@types/estree" "*"
+
+is-regexp@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069"
+ integrity sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==
+
+is-root@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/is-root/-/is-root-2.1.0.tgz#809e18129cf1129644302a4f8544035d51984a9c"
+ integrity sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==
+
+is-stream@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077"
+ integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==
+
+is-typedarray@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
+ integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==
+
+is-wsl@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
+ integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
+ dependencies:
+ is-docker "^2.0.0"
+
+is-yarn-global@^0.4.0:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.4.1.tgz#b312d902b313f81e4eaf98b6361ba2b45cd694bb"
+ integrity sha512-/kppl+R+LO5VmhYSEWARUFjodS25D68gvj8W7z0I7OWhUla5xWu8KL6CtB2V0R6yqhnRgbcaREMr4EEM6htLPQ==
+
+isarray@0.0.1:
+ version "0.0.1"
+ resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
+ integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==
+
+isarray@~1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
+ integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==
+
+isexe@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
+ integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
+
+isobject@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
+ integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==
+
+jest-util@^29.7.0:
+ version "29.7.0"
+ resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc"
+ integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==
+ dependencies:
+ "@jest/types" "^29.6.3"
+ "@types/node" "*"
+ chalk "^4.0.0"
+ ci-info "^3.2.0"
+ graceful-fs "^4.2.9"
+ picomatch "^2.2.3"
+
+jest-worker@^27.4.5:
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0"
+ integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==
+ dependencies:
+ "@types/node" "*"
+ merge-stream "^2.0.0"
+ supports-color "^8.0.0"
+
+jest-worker@^29.1.2:
+ version "29.7.0"
+ resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.7.0.tgz#acad073acbbaeb7262bd5389e1bcf43e10058d4a"
+ integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==
+ dependencies:
+ "@types/node" "*"
+ jest-util "^29.7.0"
+ merge-stream "^2.0.0"
+ supports-color "^8.0.0"
+
+jiti@^1.18.2, jiti@^1.20.0:
+ version "1.21.0"
+ resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d"
+ integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==
+
+joi@^17.9.2:
+ version "17.11.0"
+ resolved "https://registry.yarnpkg.com/joi/-/joi-17.11.0.tgz#aa9da753578ec7720e6f0ca2c7046996ed04fc1a"
+ integrity sha512-NgB+lZLNoqISVy1rZocE9PZI36bL/77ie924Ri43yEvi9GUUMPeyVIr8KdFTMUlby1p0PBYMk9spIxEUQYqrJQ==
+ dependencies:
+ "@hapi/hoek" "^9.0.0"
+ "@hapi/topo" "^5.0.0"
+ "@sideway/address" "^4.1.3"
+ "@sideway/formula" "^3.0.1"
+ "@sideway/pinpoint" "^2.0.0"
+
+"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
+ integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
+
+js-yaml@^3.13.1:
+ version "3.14.1"
+ resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537"
+ integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==
+ dependencies:
+ argparse "^1.0.7"
+ esprima "^4.0.0"
+
+js-yaml@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
+ integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
+ dependencies:
+ argparse "^2.0.1"
+
+jsesc@^2.5.1:
+ version "2.5.2"
+ resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"
+ integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==
+
+jsesc@~0.5.0:
+ version "0.5.0"
+ resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d"
+ integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==
+
+json-buffer@3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13"
+ integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==
+
+json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1:
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d"
+ integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
+
+json-schema-traverse@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
+ integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
+
+json-schema-traverse@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2"
+ integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==
+
+json5@^2.1.2, json5@^2.2.3:
+ version "2.2.3"
+ resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
+ integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
+
+jsonfile@^6.0.1:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
+ integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==
+ dependencies:
+ universalify "^2.0.0"
+ optionalDependencies:
+ graceful-fs "^4.1.6"
+
+keyv@^4.5.3:
+ version "4.5.4"
+ resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93"
+ integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==
+ dependencies:
+ json-buffer "3.0.1"
+
+kind-of@^6.0.0, kind-of@^6.0.2:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
+ integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==
+
+kleur@^3.0.3:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
+ integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
+
+latest-version@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-7.0.0.tgz#843201591ea81a4d404932eeb61240fe04e9e5da"
+ integrity sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==
+ dependencies:
+ package-json "^8.1.0"
+
+launch-editor@^2.6.0:
+ version "2.6.1"
+ resolved "https://registry.yarnpkg.com/launch-editor/-/launch-editor-2.6.1.tgz#f259c9ef95cbc9425620bbbd14b468fcdb4ffe3c"
+ integrity sha512-eB/uXmFVpY4zezmGp5XtU21kwo7GBbKB+EQ+UZeWtGb9yAM5xt/Evk+lYH3eRNAtId+ej4u7TYPFZ07w4s7rRw==
+ dependencies:
+ picocolors "^1.0.0"
+ shell-quote "^1.8.1"
+
+leven@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2"
+ integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==
+
+lilconfig@^2.0.3:
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.6.tgz#32a384558bd58af3d4c6e077dd1ad1d397bc69d4"
+ integrity sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==
+
+lines-and-columns@^1.1.6:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
+ integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
+
+loader-runner@^4.2.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1"
+ integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==
+
+loader-utils@^2.0.0:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.4.tgz#8b5cb38b5c34a9a018ee1fc0e6a066d1dfcc528c"
+ integrity sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==
+ dependencies:
+ big.js "^5.2.2"
+ emojis-list "^3.0.0"
+ json5 "^2.1.2"
+
+loader-utils@^3.2.0:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.2.1.tgz#4fb104b599daafd82ef3e1a41fb9265f87e1f576"
+ integrity sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==
+
+locate-path@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e"
+ integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==
+ dependencies:
+ p-locate "^3.0.0"
+ path-exists "^3.0.0"
+
+locate-path@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286"
+ integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==
+ dependencies:
+ p-locate "^5.0.0"
+
+locate-path@^7.1.0:
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-7.2.0.tgz#69cb1779bd90b35ab1e771e1f2f89a202c2a8a8a"
+ integrity sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==
+ dependencies:
+ p-locate "^6.0.0"
+
+lodash.debounce@^4.0.8:
+ version "4.0.8"
+ resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
+ integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==
+
+lodash.memoize@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
+ integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==
+
+lodash.uniq@^4.5.0:
+ version "4.5.0"
+ resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
+ integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==
+
+lodash@^4.17.20, lodash@^4.17.21:
+ version "4.17.21"
+ resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
+ integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
+
+longest-streak@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-3.1.0.tgz#62fa67cd958742a1574af9f39866364102d90cd4"
+ integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==
+
+loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1, loose-envify@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
+ integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
+ dependencies:
+ js-tokens "^3.0.0 || ^4.0.0"
+
+lower-case@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28"
+ integrity sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==
+ dependencies:
+ tslib "^2.0.3"
+
+lowercase-keys@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-3.0.0.tgz#c5e7d442e37ead247ae9db117a9d0a467c89d4f2"
+ integrity sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==
+
+lru-cache@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
+ integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
+ dependencies:
+ yallist "^3.0.2"
+
+lru-cache@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
+ integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
+ dependencies:
+ yallist "^4.0.0"
+
+markdown-extensions@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/markdown-extensions/-/markdown-extensions-2.0.0.tgz#34bebc83e9938cae16e0e017e4a9814a8330d3c4"
+ integrity sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==
+
+markdown-table@^3.0.0:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-3.0.3.tgz#e6331d30e493127e031dd385488b5bd326e4a6bd"
+ integrity sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==
+
+mdast-util-directive@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-directive/-/mdast-util-directive-3.0.0.tgz#3fb1764e705bbdf0afb0d3f889e4404c3e82561f"
+ integrity sha512-JUpYOqKI4mM3sZcNxmF/ox04XYFFkNwr0CFlrQIkCwbvH0xzMCqkMqAde9wRd80VAhaUrwFwKm2nxretdT1h7Q==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ "@types/unist" "^3.0.0"
+ devlop "^1.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+ parse-entities "^4.0.0"
+ stringify-entities "^4.0.0"
+ unist-util-visit-parents "^6.0.0"
+
+mdast-util-find-and-replace@^3.0.0, mdast-util-find-and-replace@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.1.tgz#a6fc7b62f0994e973490e45262e4bc07607b04e0"
+ integrity sha512-SG21kZHGC3XRTSUhtofZkBzZTJNM5ecCi0SK2IMKmSXR8vO3peL+kb1O0z7Zl83jKtutG4k5Wv/W7V3/YHvzPA==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ escape-string-regexp "^5.0.0"
+ unist-util-is "^6.0.0"
+ unist-util-visit-parents "^6.0.0"
+
+mdast-util-from-markdown@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.0.tgz#52f14815ec291ed061f2922fd14d6689c810cb88"
+ integrity sha512-n7MTOr/z+8NAX/wmhhDji8O3bRvPTV/U0oTCaZJkjhPSKTPhS3xufVhKGF8s1pJ7Ox4QgoIU7KHseh09S+9rTA==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ "@types/unist" "^3.0.0"
+ decode-named-character-reference "^1.0.0"
+ devlop "^1.0.0"
+ mdast-util-to-string "^4.0.0"
+ micromark "^4.0.0"
+ micromark-util-decode-numeric-character-reference "^2.0.0"
+ micromark-util-decode-string "^2.0.0"
+ micromark-util-normalize-identifier "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ unist-util-stringify-position "^4.0.0"
+
+mdast-util-frontmatter@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/mdast-util-frontmatter/-/mdast-util-frontmatter-2.0.1.tgz#f5f929eb1eb36c8a7737475c7eb438261f964ee8"
+ integrity sha512-LRqI9+wdgC25P0URIJY9vwocIzCcksduHQ9OF2joxQoyTNVduwLAFUzjoopuRJbJAReaKrNQKAZKL3uCMugWJA==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ devlop "^1.0.0"
+ escape-string-regexp "^5.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+ micromark-extension-frontmatter "^2.0.0"
+
+mdast-util-gfm-autolink-literal@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.0.tgz#5baf35407421310a08e68c15e5d8821e8898ba2a"
+ integrity sha512-FyzMsduZZHSc3i0Px3PQcBT4WJY/X/RCtEJKuybiC6sjPqLv7h1yqAkmILZtuxMSsUyaLUWNp71+vQH2zqp5cg==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ ccount "^2.0.0"
+ devlop "^1.0.0"
+ mdast-util-find-and-replace "^3.0.0"
+ micromark-util-character "^2.0.0"
+
+mdast-util-gfm-footnote@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.0.0.tgz#25a1753c7d16db8bfd53cd84fe50562bd1e6d6a9"
+ integrity sha512-5jOT2boTSVkMnQ7LTrd6n/18kqwjmuYqo7JUPe+tRCY6O7dAuTFMtTPauYYrMPpox9hlN0uOx/FL8XvEfG9/mQ==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ devlop "^1.1.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+ micromark-util-normalize-identifier "^2.0.0"
+
+mdast-util-gfm-strikethrough@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz#d44ef9e8ed283ac8c1165ab0d0dfd058c2764c16"
+ integrity sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+
+mdast-util-gfm-table@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz#7a435fb6223a72b0862b33afbd712b6dae878d38"
+ integrity sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ devlop "^1.0.0"
+ markdown-table "^3.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+
+mdast-util-gfm-task-list-item@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz#e68095d2f8a4303ef24094ab642e1047b991a936"
+ integrity sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ devlop "^1.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+
+mdast-util-gfm@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm/-/mdast-util-gfm-3.0.0.tgz#3f2aecc879785c3cb6a81ff3a243dc11eca61095"
+ integrity sha512-dgQEX5Amaq+DuUqf26jJqSK9qgixgd6rYDHAv4aTBuA92cTknZlKpPfa86Z/s8Dj8xsAQpFfBmPUHWJBWqS4Bw==
+ dependencies:
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-gfm-autolink-literal "^2.0.0"
+ mdast-util-gfm-footnote "^2.0.0"
+ mdast-util-gfm-strikethrough "^2.0.0"
+ mdast-util-gfm-table "^2.0.0"
+ mdast-util-gfm-task-list-item "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+
+mdast-util-mdx-expression@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.0.tgz#4968b73724d320a379110d853e943a501bfd9d87"
+ integrity sha512-fGCu8eWdKUKNu5mohVGkhBXCXGnOTLuFqOvGMvdikr+J1w7lDJgxThOKpwRWzzbyXAU2hhSwsmssOY4yTokluw==
+ dependencies:
+ "@types/estree-jsx" "^1.0.0"
+ "@types/hast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
+ devlop "^1.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+
+mdast-util-mdx-jsx@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.0.0.tgz#f73631fa5bb7a36712ff1e9cedec0cafed03401c"
+ integrity sha512-XZuPPzQNBPAlaqsTTgRrcJnyFbSOBovSadFgbFu8SnuNgm+6Bdx1K+IWoitsmj6Lq6MNtI+ytOqwN70n//NaBA==
+ dependencies:
+ "@types/estree-jsx" "^1.0.0"
+ "@types/hast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
+ "@types/unist" "^3.0.0"
+ ccount "^2.0.0"
+ devlop "^1.1.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+ parse-entities "^4.0.0"
+ stringify-entities "^4.0.0"
+ unist-util-remove-position "^5.0.0"
+ unist-util-stringify-position "^4.0.0"
+ vfile-message "^4.0.0"
+
+mdast-util-mdx@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-mdx/-/mdast-util-mdx-3.0.0.tgz#792f9cf0361b46bee1fdf1ef36beac424a099c41"
+ integrity sha512-JfbYLAW7XnYTTbUsmpu0kdBUVe+yKVJZBItEjwyYJiDJuZ9w4eeaqks4HQO+R7objWgS2ymV60GYpI14Ug554w==
+ dependencies:
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-mdx-expression "^2.0.0"
+ mdast-util-mdx-jsx "^3.0.0"
+ mdast-util-mdxjs-esm "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+
+mdast-util-mdxjs-esm@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz#019cfbe757ad62dd557db35a695e7314bcc9fa97"
+ integrity sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==
+ dependencies:
+ "@types/estree-jsx" "^1.0.0"
+ "@types/hast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
+ devlop "^1.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
+
+mdast-util-phrasing@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-phrasing/-/mdast-util-phrasing-4.0.0.tgz#468cbbb277375523de807248b8ad969feb02a5c7"
+ integrity sha512-xadSsJayQIucJ9n053dfQwVu1kuXg7jCTdYsMK8rqzKZh52nLfSH/k0sAxE0u+pj/zKZX+o5wB+ML5mRayOxFA==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ unist-util-is "^6.0.0"
+
+mdast-util-to-hast@^13.0.0:
+ version "13.0.2"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-13.0.2.tgz#74c0a9f014bb2340cae6118f6fccd75467792be7"
+ integrity sha512-U5I+500EOOw9e3ZrclN3Is3fRpw8c19SMyNZlZ2IS+7vLsNzb2Om11VpIVOR+/0137GhZsFEF6YiKD5+0Hr2Og==
+ dependencies:
+ "@types/hast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
+ "@ungap/structured-clone" "^1.0.0"
+ devlop "^1.0.0"
+ micromark-util-sanitize-uri "^2.0.0"
+ trim-lines "^3.0.0"
+ unist-util-position "^5.0.0"
+ unist-util-visit "^5.0.0"
+
+mdast-util-to-markdown@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.0.tgz#9813f1d6e0cdaac7c244ec8c6dabfdb2102ea2b4"
+ integrity sha512-SR2VnIEdVNCJbP6y7kVTJgPLifdr8WEU440fQec7qHoHOUz/oJ2jmNRqdDQ3rbiStOXb2mCDGTuwsK5OPUgYlQ==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ "@types/unist" "^3.0.0"
+ longest-streak "^3.0.0"
+ mdast-util-phrasing "^4.0.0"
+ mdast-util-to-string "^4.0.0"
+ micromark-util-decode-string "^2.0.0"
+ unist-util-visit "^5.0.0"
+ zwitch "^2.0.0"
+
+mdast-util-to-string@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz#7a5121475556a04e7eddeb67b264aae79d312814"
+ integrity sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+
+mdn-data@2.0.14:
+ version "2.0.14"
+ resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
+ integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==
+
+media-typer@0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
+ integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==
+
+memfs@^3.1.2, memfs@^3.4.3:
+ version "3.4.7"
+ resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.4.7.tgz#e5252ad2242a724f938cb937e3c4f7ceb1f70e5a"
+ integrity sha512-ygaiUSNalBX85388uskeCyhSAoOSgzBbtVCr9jA2RROssFL9Q19/ZXFqS+2Th2sr1ewNIWgFdLzLC3Yl1Zv+lw==
+ dependencies:
+ fs-monkey "^1.0.3"
+
+merge-descriptors@1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61"
+ integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==
+
+merge-stream@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"
+ integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==
+
+merge2@^1.3.0, merge2@^1.4.1:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
+ integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
+
+methods@~1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
+ integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==
+
+micromark-core-commonmark@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-2.0.0.tgz#50740201f0ee78c12a675bf3e68ffebc0bf931a3"
+ integrity sha512-jThOz/pVmAYUtkroV3D5c1osFXAMv9e0ypGDOIZuCeAe91/sD6BoE2Sjzt30yuXtwOYUmySOhMas/PVyh02itA==
+ dependencies:
+ decode-named-character-reference "^1.0.0"
+ devlop "^1.0.0"
+ micromark-factory-destination "^2.0.0"
+ micromark-factory-label "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-factory-title "^2.0.0"
+ micromark-factory-whitespace "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-chunked "^2.0.0"
+ micromark-util-classify-character "^2.0.0"
+ micromark-util-html-tag-name "^2.0.0"
+ micromark-util-normalize-identifier "^2.0.0"
+ micromark-util-resolve-all "^2.0.0"
+ micromark-util-subtokenize "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-directive@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-directive/-/micromark-extension-directive-3.0.0.tgz#527869de497a6de9024138479091bc885dae076b"
+ integrity sha512-61OI07qpQrERc+0wEysLHMvoiO3s2R56x5u7glHq2Yqq6EHbH4dW25G9GfDdGCDYqA21KE6DWgNSzxSwHc2hSg==
+ dependencies:
+ devlop "^1.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-factory-whitespace "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ parse-entities "^4.0.0"
+
+micromark-extension-frontmatter@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-frontmatter/-/micromark-extension-frontmatter-2.0.0.tgz#651c52ffa5d7a8eeed687c513cd869885882d67a"
+ integrity sha512-C4AkuM3dA58cgZha7zVnuVxBhDsbttIMiytjgsM2XbHAB2faRVaHRle40558FBN+DJcrLNCoqG5mlrpdU4cRtg==
+ dependencies:
+ fault "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-gfm-autolink-literal@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.0.0.tgz#f1e50b42e67d441528f39a67133eddde2bbabfd9"
+ integrity sha512-rTHfnpt/Q7dEAK1Y5ii0W8bhfJlVJFnJMHIPisfPK3gpVNuOP0VnRl96+YJ3RYWV/P4gFeQoGKNlT3RhuvpqAg==
+ dependencies:
+ micromark-util-character "^2.0.0"
+ micromark-util-sanitize-uri "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-gfm-footnote@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.0.0.tgz#91afad310065a94b636ab1e9dab2c60d1aab953c"
+ integrity sha512-6Rzu0CYRKDv3BfLAUnZsSlzx3ak6HAoI85KTiijuKIz5UxZxbUI+pD6oHgw+6UtQuiRwnGRhzMmPRv4smcz0fg==
+ dependencies:
+ devlop "^1.0.0"
+ micromark-core-commonmark "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-normalize-identifier "^2.0.0"
+ micromark-util-sanitize-uri "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-gfm-strikethrough@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.0.0.tgz#6917db8e320da70e39ffbf97abdbff83e6783e61"
+ integrity sha512-c3BR1ClMp5fxxmwP6AoOY2fXO9U8uFMKs4ADD66ahLTNcwzSCyRVU4k7LPV5Nxo/VJiR4TdzxRQY2v3qIUceCw==
+ dependencies:
+ devlop "^1.0.0"
+ micromark-util-chunked "^2.0.0"
+ micromark-util-classify-character "^2.0.0"
+ micromark-util-resolve-all "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-gfm-table@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.0.0.tgz#2cf3fe352d9e089b7ef5fff003bdfe0da29649b7"
+ integrity sha512-PoHlhypg1ItIucOaHmKE8fbin3vTLpDOUg8KAr8gRCF1MOZI9Nquq2i/44wFvviM4WuxJzc3demT8Y3dkfvYrw==
+ dependencies:
+ devlop "^1.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-gfm-tagfilter@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz#f26d8a7807b5985fba13cf61465b58ca5ff7dc57"
+ integrity sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==
+ dependencies:
+ micromark-util-types "^2.0.0"
+
+micromark-extension-gfm-task-list-item@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.0.1.tgz#ee8b208f1ced1eb9fb11c19a23666e59d86d4838"
+ integrity sha512-cY5PzGcnULaN5O7T+cOzfMoHjBW7j+T9D2sucA5d/KbsBTPcYdebm9zUd9zzdgJGCwahV+/W78Z3nbulBYVbTw==
+ dependencies:
+ devlop "^1.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-gfm@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz#3e13376ab95dd7a5cfd0e29560dfe999657b3c5b"
+ integrity sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==
+ dependencies:
+ micromark-extension-gfm-autolink-literal "^2.0.0"
+ micromark-extension-gfm-footnote "^2.0.0"
+ micromark-extension-gfm-strikethrough "^2.0.0"
+ micromark-extension-gfm-table "^2.0.0"
+ micromark-extension-gfm-tagfilter "^2.0.0"
+ micromark-extension-gfm-task-list-item "^2.0.0"
+ micromark-util-combine-extensions "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-mdx-expression@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdx-expression/-/micromark-extension-mdx-expression-3.0.0.tgz#1407b9ce69916cf5e03a196ad9586889df25302a"
+ integrity sha512-sI0nwhUDz97xyzqJAbHQhp5TfaxEvZZZ2JDqUo+7NvyIYG6BZ5CPPqj2ogUoPJlmXHBnyZUzISg9+oUmU6tUjQ==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ devlop "^1.0.0"
+ micromark-factory-mdx-expression "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-events-to-acorn "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-mdx-jsx@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdx-jsx/-/micromark-extension-mdx-jsx-3.0.0.tgz#4aba0797c25efb2366a3fd2d367c6b1c1159f4f5"
+ integrity sha512-uvhhss8OGuzR4/N17L1JwvmJIpPhAd8oByMawEKx6NVdBCbesjH4t+vjEp3ZXft9DwvlKSD07fCeI44/N0Vf2w==
+ dependencies:
+ "@types/acorn" "^4.0.0"
+ "@types/estree" "^1.0.0"
+ devlop "^1.0.0"
+ estree-util-is-identifier-name "^3.0.0"
+ micromark-factory-mdx-expression "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ vfile-message "^4.0.0"
+
+micromark-extension-mdx-md@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdx-md/-/micromark-extension-mdx-md-2.0.0.tgz#1d252881ea35d74698423ab44917e1f5b197b92d"
+ integrity sha512-EpAiszsB3blw4Rpba7xTOUptcFeBFi+6PY8VnJ2hhimH+vCQDirWgsMpz7w1XcZE7LVrSAUGb9VJpG9ghlYvYQ==
+ dependencies:
+ micromark-util-types "^2.0.0"
+
+micromark-extension-mdxjs-esm@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdxjs-esm/-/micromark-extension-mdxjs-esm-3.0.0.tgz#de21b2b045fd2059bd00d36746081de38390d54a"
+ integrity sha512-DJFl4ZqkErRpq/dAPyeWp15tGrcrrJho1hKK5uBS70BCtfrIFg81sqcTVu3Ta+KD1Tk5vAtBNElWxtAa+m8K9A==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ devlop "^1.0.0"
+ micromark-core-commonmark "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-events-to-acorn "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ unist-util-position-from-estree "^2.0.0"
+ vfile-message "^4.0.0"
+
+micromark-extension-mdxjs@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdxjs/-/micromark-extension-mdxjs-3.0.0.tgz#b5a2e0ed449288f3f6f6c544358159557549de18"
+ integrity sha512-A873fJfhnJ2siZyUrJ31l34Uqwy4xIFmvPY1oj+Ean5PHcPBYzEsvqvWGaWcfEIr11O5Dlw3p2y0tZWpKHDejQ==
+ dependencies:
+ acorn "^8.0.0"
+ acorn-jsx "^5.0.0"
+ micromark-extension-mdx-expression "^3.0.0"
+ micromark-extension-mdx-jsx "^3.0.0"
+ micromark-extension-mdx-md "^2.0.0"
+ micromark-extension-mdxjs-esm "^3.0.0"
+ micromark-util-combine-extensions "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-factory-destination@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-destination/-/micromark-factory-destination-2.0.0.tgz#857c94debd2c873cba34e0445ab26b74f6a6ec07"
+ integrity sha512-j9DGrQLm/Uhl2tCzcbLhy5kXsgkHUrjJHg4fFAeoMRwJmJerT9aw4FEhIbZStWN8A3qMwOp1uzHr4UL8AInxtA==
+ dependencies:
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-factory-label@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-label/-/micromark-factory-label-2.0.0.tgz#17c5c2e66ce39ad6f4fc4cbf40d972f9096f726a"
+ integrity sha512-RR3i96ohZGde//4WSe/dJsxOX6vxIg9TimLAS3i4EhBAFx8Sm5SmqVfR8E87DPSR31nEAjZfbt91OMZWcNgdZw==
+ dependencies:
+ devlop "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-factory-mdx-expression@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-factory-mdx-expression/-/micromark-factory-mdx-expression-2.0.1.tgz#f2a9724ce174f1751173beb2c1f88062d3373b1b"
+ integrity sha512-F0ccWIUHRLRrYp5TC9ZYXmZo+p2AM13ggbsW4T0b5CRKP8KHVRB8t4pwtBgTxtjRmwrK0Irwm7vs2JOZabHZfg==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ devlop "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-events-to-acorn "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ unist-util-position-from-estree "^2.0.0"
+ vfile-message "^4.0.0"
+
+micromark-factory-space@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz#c8f40b0640a0150751d3345ed885a080b0d15faf"
+ integrity sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==
+ dependencies:
+ micromark-util-character "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-factory-space@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz#5e7afd5929c23b96566d0e1ae018ae4fcf81d030"
+ integrity sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==
+ dependencies:
+ micromark-util-character "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-factory-title@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-title/-/micromark-factory-title-2.0.0.tgz#726140fc77892af524705d689e1cf06c8a83ea95"
+ integrity sha512-jY8CSxmpWLOxS+t8W+FG3Xigc0RDQA9bKMY/EwILvsesiRniiVMejYTE4wumNc2f4UbAa4WsHqe3J1QS1sli+A==
+ dependencies:
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-factory-whitespace@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.0.tgz#9e92eb0f5468083381f923d9653632b3cfb5f763"
+ integrity sha512-28kbwaBjc5yAI1XadbdPYHX/eDnqaUFVikLwrO7FDnKG7lpgxnvk/XGRhX/PN0mOZ+dBSZ+LgunHS+6tYQAzhA==
+ dependencies:
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-util-character@^1.0.0, micromark-util-character@^1.1.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-character/-/micromark-util-character-1.2.0.tgz#4fedaa3646db249bc58caeb000eb3549a8ca5dcc"
+ integrity sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==
+ dependencies:
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+
+micromark-util-character@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-character/-/micromark-util-character-2.0.1.tgz#52b824c2e2633b6fb33399d2ec78ee2a90d6b298"
+ integrity sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==
+ dependencies:
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-util-chunked@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-chunked/-/micromark-util-chunked-2.0.0.tgz#e51f4db85fb203a79dbfef23fd41b2f03dc2ef89"
+ integrity sha512-anK8SWmNphkXdaKgz5hJvGa7l00qmcaUQoMYsBwDlSKFKjc6gjGXPDw3FNL3Nbwq5L8gE+RCbGqTw49FK5Qyvg==
+ dependencies:
+ micromark-util-symbol "^2.0.0"
+
+micromark-util-classify-character@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-classify-character/-/micromark-util-classify-character-2.0.0.tgz#8c7537c20d0750b12df31f86e976d1d951165f34"
+ integrity sha512-S0ze2R9GH+fu41FA7pbSqNWObo/kzwf8rN/+IGlW/4tC6oACOs8B++bh+i9bVyNnwCcuksbFwsBme5OCKXCwIw==
+ dependencies:
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-util-combine-extensions@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.0.tgz#75d6ab65c58b7403616db8d6b31315013bfb7ee5"
+ integrity sha512-vZZio48k7ON0fVS3CUgFatWHoKbbLTK/rT7pzpJ4Bjp5JjkZeasRfrS9wsBdDJK2cJLHMckXZdzPSSr1B8a4oQ==
+ dependencies:
+ micromark-util-chunked "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-util-decode-numeric-character-reference@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.1.tgz#2698bbb38f2a9ba6310e359f99fcb2b35a0d2bd5"
+ integrity sha512-bmkNc7z8Wn6kgjZmVHOX3SowGmVdhYS7yBpMnuMnPzDq/6xwVA604DuOXMZTO1lvq01g+Adfa0pE2UKGlxL1XQ==
+ dependencies:
+ micromark-util-symbol "^2.0.0"
+
+micromark-util-decode-string@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-decode-string/-/micromark-util-decode-string-2.0.0.tgz#7dfa3a63c45aecaa17824e656bcdb01f9737154a"
+ integrity sha512-r4Sc6leeUTn3P6gk20aFMj2ntPwn6qpDZqWvYmAG6NgvFTIlj4WtrAudLi65qYoaGdXYViXYw2pkmn7QnIFasA==
+ dependencies:
+ decode-named-character-reference "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-decode-numeric-character-reference "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+
+micromark-util-encode@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-encode/-/micromark-util-encode-2.0.0.tgz#0921ac7953dc3f1fd281e3d1932decfdb9382ab1"
+ integrity sha512-pS+ROfCXAGLWCOc8egcBvT0kf27GoWMqtdarNfDcjb6YLuV5cM3ioG45Ys2qOVqeqSbjaKg72vU+Wby3eddPsA==
+
+micromark-util-events-to-acorn@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/micromark-util-events-to-acorn/-/micromark-util-events-to-acorn-2.0.2.tgz#4275834f5453c088bd29cd72dfbf80e3327cec07"
+ integrity sha512-Fk+xmBrOv9QZnEDguL9OI9/NQQp6Hz4FuQ4YmCb/5V7+9eAh1s6AYSvL20kHkD67YIg7EpE54TiSlcsf3vyZgA==
+ dependencies:
+ "@types/acorn" "^4.0.0"
+ "@types/estree" "^1.0.0"
+ "@types/unist" "^3.0.0"
+ devlop "^1.0.0"
+ estree-util-visit "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ vfile-message "^4.0.0"
+
+micromark-util-html-tag-name@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.0.tgz#ae34b01cbe063363847670284c6255bb12138ec4"
+ integrity sha512-xNn4Pqkj2puRhKdKTm8t1YHC/BAjx6CEwRFXntTaRf/x16aqka6ouVoutm+QdkISTlT7e2zU7U4ZdlDLJd2Mcw==
+
+micromark-util-normalize-identifier@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.0.tgz#91f9a4e65fe66cc80c53b35b0254ad67aa431d8b"
+ integrity sha512-2xhYT0sfo85FMrUPtHcPo2rrp1lwbDEEzpx7jiH2xXJLqBuy4H0GgXk5ToU8IEwoROtXuL8ND0ttVa4rNqYK3w==
+ dependencies:
+ micromark-util-symbol "^2.0.0"
+
+micromark-util-resolve-all@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.0.tgz#189656e7e1a53d0c86a38a652b284a252389f364"
+ integrity sha512-6KU6qO7DZ7GJkaCgwBNtplXCvGkJToU86ybBAUdavvgsCiG8lSSvYxr9MhwmQ+udpzywHsl4RpGJsYWG1pDOcA==
+ dependencies:
+ micromark-util-types "^2.0.0"
+
+micromark-util-sanitize-uri@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.0.tgz#ec8fbf0258e9e6d8f13d9e4770f9be64342673de"
+ integrity sha512-WhYv5UEcZrbAtlsnPuChHUAsu/iBPOVaEVsntLBIdpibO0ddy8OzavZz3iL2xVvBZOpolujSliP65Kq0/7KIYw==
+ dependencies:
+ micromark-util-character "^2.0.0"
+ micromark-util-encode "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+
+micromark-util-subtokenize@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-subtokenize/-/micromark-util-subtokenize-2.0.0.tgz#9f412442d77e0c5789ffdf42377fa8a2bcbdf581"
+ integrity sha512-vc93L1t+gpR3p8jxeVdaYlbV2jTYteDje19rNSS/H5dlhxUYll5Fy6vJ2cDwP8RnsXi818yGty1ayP55y3W6fg==
+ dependencies:
+ devlop "^1.0.0"
+ micromark-util-chunked "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-util-symbol@^1.0.0, micromark-util-symbol@^1.0.1:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz#813cd17837bdb912d069a12ebe3a44b6f7063142"
+ integrity sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==
+
+micromark-util-symbol@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz#12225c8f95edf8b17254e47080ce0862d5db8044"
+ integrity sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==
+
+micromark-util-types@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-types/-/micromark-util-types-1.1.0.tgz#e6676a8cae0bb86a2171c498167971886cb7e283"
+ integrity sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==
+
+micromark-util-types@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-types/-/micromark-util-types-2.0.0.tgz#63b4b7ffeb35d3ecf50d1ca20e68fc7caa36d95e"
+ integrity sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==
+
+micromark@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/micromark/-/micromark-4.0.0.tgz#84746a249ebd904d9658cfabc1e8e5f32cbc6249"
+ integrity sha512-o/sd0nMof8kYff+TqcDx3VSrgBTcZpSvYcAHIfHhv5VAuNmisCxjhx6YmxS8PFEpb9z5WKWKPdzf0jM23ro3RQ==
+ dependencies:
+ "@types/debug" "^4.0.0"
+ debug "^4.0.0"
+ decode-named-character-reference "^1.0.0"
+ devlop "^1.0.0"
+ micromark-core-commonmark "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-chunked "^2.0.0"
+ micromark-util-combine-extensions "^2.0.0"
+ micromark-util-decode-numeric-character-reference "^2.0.0"
+ micromark-util-encode "^2.0.0"
+ micromark-util-normalize-identifier "^2.0.0"
+ micromark-util-resolve-all "^2.0.0"
+ micromark-util-sanitize-uri "^2.0.0"
+ micromark-util-subtokenize "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5:
+ version "4.0.5"
+ resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
+ integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
+ dependencies:
+ braces "^3.0.2"
+ picomatch "^2.3.1"
+
+mime-db@1.52.0, "mime-db@>= 1.43.0 < 2":
+ version "1.52.0"
+ resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
+ integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==
+
+mime-db@~1.33.0:
+ version "1.33.0"
+ resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db"
+ integrity sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==
+
+mime-types@2.1.18, mime-types@~2.1.17:
+ version "2.1.18"
+ resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8"
+ integrity sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==
+ dependencies:
+ mime-db "~1.33.0"
+
+mime-types@^2.1.27, mime-types@^2.1.31, mime-types@~2.1.24, mime-types@~2.1.34:
+ version "2.1.35"
+ resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a"
+ integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==
+ dependencies:
+ mime-db "1.52.0"
+
+mime@1.6.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
+ integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
+
+mimic-fn@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"
+ integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==
+
+mimic-response@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9"
+ integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==
+
+mimic-response@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-4.0.0.tgz#35468b19e7c75d10f5165ea25e75a5ceea7cf70f"
+ integrity sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==
+
+mini-css-extract-plugin@^2.7.6:
+ version "2.7.6"
+ resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz#282a3d38863fddcd2e0c220aaed5b90bc156564d"
+ integrity sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==
+ dependencies:
+ schema-utils "^4.0.0"
+
+minimalistic-assert@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
+ integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
+
+minimatch@3.1.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
+ integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
+ dependencies:
+ brace-expansion "^1.1.7"
+
+minimist@^1.2.0:
+ version "1.2.6"
+ resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
+ integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
+
+mrmime@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/mrmime/-/mrmime-1.0.1.tgz#5f90c825fad4bdd41dc914eff5d1a8cfdaf24f27"
+ integrity sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==
+
+ms@2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
+ integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==
+
+ms@2.1.2:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
+ integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
+
+ms@2.1.3:
+ version "2.1.3"
+ resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
+ integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
+
+multicast-dns@^7.2.5:
+ version "7.2.5"
+ resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-7.2.5.tgz#77eb46057f4d7adbd16d9290fa7299f6fa64cced"
+ integrity sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==
+ dependencies:
+ dns-packet "^5.2.2"
+ thunky "^1.0.2"
+
+nanoid@^3.3.7:
+ version "3.3.7"
+ resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8"
+ integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==
+
+negotiator@0.6.3:
+ version "0.6.3"
+ resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd"
+ integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==
+
+neo-async@^2.6.2:
+ version "2.6.2"
+ resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
+ integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
+
+no-case@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d"
+ integrity sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==
+ dependencies:
+ lower-case "^2.0.2"
+ tslib "^2.0.3"
+
+node-emoji@^2.1.0:
+ version "2.1.3"
+ resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-2.1.3.tgz#93cfabb5cc7c3653aa52f29d6ffb7927d8047c06"
+ integrity sha512-E2WEOVsgs7O16zsURJ/eH8BqhF029wGpEOnv7Urwdo2wmQanOACwJQh0devF9D9RhoZru0+9JXIS0dBXIAz+lA==
+ dependencies:
+ "@sindresorhus/is" "^4.6.0"
+ char-regex "^1.0.2"
+ emojilib "^2.4.0"
+ skin-tone "^2.0.0"
+
+node-forge@^1:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3"
+ integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==
+
+node-releases@^2.0.13:
+ version "2.0.13"
+ resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d"
+ integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==
+
+node-releases@^2.0.14:
+ version "2.0.14"
+ resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b"
+ integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==
+
+normalize-path@^3.0.0, normalize-path@~3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
+ integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
+
+normalize-range@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
+ integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==
+
+normalize-url@^6.0.1:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a"
+ integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==
+
+normalize-url@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-8.0.0.tgz#593dbd284f743e8dcf6a5ddf8fadff149c82701a"
+ integrity sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==
+
+npm-run-path@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea"
+ integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==
+ dependencies:
+ path-key "^3.0.0"
+
+nprogress@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/nprogress/-/nprogress-0.2.0.tgz#cb8f34c53213d895723fcbab907e9422adbcafb1"
+ integrity sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==
+
+nth-check@^2.0.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d"
+ integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==
+ dependencies:
+ boolbase "^1.0.0"
+
+object-assign@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
+ integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
+
+object-inspect@^1.9.0:
+ version "1.12.2"
+ resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea"
+ integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==
+
+object-keys@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
+ integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
+
+object.assign@^4.1.0:
+ version "4.1.4"
+ resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f"
+ integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ has-symbols "^1.0.3"
+ object-keys "^1.1.1"
+
+obuf@^1.0.0, obuf@^1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e"
+ integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==
+
+on-finished@2.4.1:
+ version "2.4.1"
+ resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f"
+ integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==
+ dependencies:
+ ee-first "1.1.1"
+
+on-headers@~1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f"
+ integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==
+
+once@^1.3.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
+ integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
+ dependencies:
+ wrappy "1"
+
+onetime@^5.1.2:
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
+ integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
+ dependencies:
+ mimic-fn "^2.1.0"
+
+open@^8.0.9, open@^8.4.0:
+ version "8.4.0"
+ resolved "https://registry.yarnpkg.com/open/-/open-8.4.0.tgz#345321ae18f8138f82565a910fdc6b39e8c244f8"
+ integrity sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==
+ dependencies:
+ define-lazy-prop "^2.0.0"
+ is-docker "^2.1.1"
+ is-wsl "^2.2.0"
+
+opener@^1.5.2:
+ version "1.5.2"
+ resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598"
+ integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==
+
+p-cancelable@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-3.0.0.tgz#63826694b54d61ca1c20ebcb6d3ecf5e14cd8050"
+ integrity sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==
+
+p-limit@^2.0.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1"
+ integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==
+ dependencies:
+ p-try "^2.0.0"
+
+p-limit@^3.0.2:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b"
+ integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==
+ dependencies:
+ yocto-queue "^0.1.0"
+
+p-limit@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-4.0.0.tgz#914af6544ed32bfa54670b061cafcbd04984b644"
+ integrity sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==
+ dependencies:
+ yocto-queue "^1.0.0"
+
+p-locate@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4"
+ integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==
+ dependencies:
+ p-limit "^2.0.0"
+
+p-locate@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834"
+ integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==
+ dependencies:
+ p-limit "^3.0.2"
+
+p-locate@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-6.0.0.tgz#3da9a49d4934b901089dca3302fa65dc5a05c04f"
+ integrity sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==
+ dependencies:
+ p-limit "^4.0.0"
+
+p-map@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b"
+ integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==
+ dependencies:
+ aggregate-error "^3.0.0"
+
+p-retry@^4.5.0:
+ version "4.6.2"
+ resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-4.6.2.tgz#9baae7184057edd4e17231cee04264106e092a16"
+ integrity sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==
+ dependencies:
+ "@types/retry" "0.12.0"
+ retry "^0.13.1"
+
+p-try@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
+ integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
+
+package-json@^8.1.0:
+ version "8.1.1"
+ resolved "https://registry.yarnpkg.com/package-json/-/package-json-8.1.1.tgz#3e9948e43df40d1e8e78a85485f1070bf8f03dc8"
+ integrity sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==
+ dependencies:
+ got "^12.1.0"
+ registry-auth-token "^5.0.1"
+ registry-url "^6.0.0"
+ semver "^7.3.7"
+
+param-case@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5"
+ integrity sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==
+ dependencies:
+ dot-case "^3.0.4"
+ tslib "^2.0.3"
+
+parent-module@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
+ integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
+ dependencies:
+ callsites "^3.0.0"
+
+parse-entities@^4.0.0:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-4.0.1.tgz#4e2a01111fb1c986549b944af39eeda258fc9e4e"
+ integrity sha512-SWzvYcSJh4d/SGLIOQfZ/CoNv6BTlI6YEQ7Nj82oDVnRpwe/Z/F1EMx42x3JAOwGBlCjeCH0BRJQbQ/opHL17w==
+ dependencies:
+ "@types/unist" "^2.0.0"
+ character-entities "^2.0.0"
+ character-entities-legacy "^3.0.0"
+ character-reference-invalid "^2.0.0"
+ decode-named-character-reference "^1.0.0"
+ is-alphanumerical "^2.0.0"
+ is-decimal "^2.0.0"
+ is-hexadecimal "^2.0.0"
+
+parse-json@^5.0.0, parse-json@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
+ integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==
+ dependencies:
+ "@babel/code-frame" "^7.0.0"
+ error-ex "^1.3.1"
+ json-parse-even-better-errors "^2.3.0"
+ lines-and-columns "^1.1.6"
+
+parse-numeric-range@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz#7c63b61190d61e4d53a1197f0c83c47bb670ffa3"
+ integrity sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==
+
+parse5-htmlparser2-tree-adapter@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz#23c2cc233bcf09bb7beba8b8a69d46b08c62c2f1"
+ integrity sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==
+ dependencies:
+ domhandler "^5.0.2"
+ parse5 "^7.0.0"
+
+parse5@^7.0.0:
+ version "7.1.2"
+ resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.2.tgz#0736bebbfd77793823240a23b7fc5e010b7f8e32"
+ integrity sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==
+ dependencies:
+ entities "^4.4.0"
+
+parseurl@~1.3.2, parseurl@~1.3.3:
+ version "1.3.3"
+ resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4"
+ integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==
+
+pascal-case@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.2.tgz#b48e0ef2b98e205e7c1dae747d0b1508237660eb"
+ integrity sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==
+ dependencies:
+ no-case "^3.0.4"
+ tslib "^2.0.3"
+
+path-exists@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
+ integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==
+
+path-exists@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"
+ integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==
+
+path-exists@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-5.0.0.tgz#a6aad9489200b21fab31e49cf09277e5116fb9e7"
+ integrity sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==
+
+path-is-absolute@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
+ integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
+
+path-is-inside@1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
+ integrity sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==
+
+path-key@^3.0.0, path-key@^3.1.0:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
+ integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
+
+path-parse@^1.0.7:
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
+ integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
+
+path-to-regexp@0.1.7:
+ version "0.1.7"
+ resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
+ integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==
+
+path-to-regexp@2.2.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-2.2.1.tgz#90b617025a16381a879bc82a38d4e8bdeb2bcf45"
+ integrity sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==
+
+path-to-regexp@^1.7.0:
+ version "1.8.0"
+ resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a"
+ integrity sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==
+ dependencies:
+ isarray "0.0.1"
+
+path-type@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
+ integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
+
+periscopic@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/periscopic/-/periscopic-3.1.0.tgz#7e9037bf51c5855bd33b48928828db4afa79d97a"
+ integrity sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ estree-walker "^3.0.0"
+ is-reference "^3.0.0"
+
+picocolors@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
+ integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
+
+picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1:
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
+ integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
+
+pkg-dir@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-7.0.0.tgz#8f0c08d6df4476756c5ff29b3282d0bab7517d11"
+ integrity sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==
+ dependencies:
+ find-up "^6.3.0"
+
+pkg-up@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5"
+ integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==
+ dependencies:
+ find-up "^3.0.0"
+
+postcss-calc@^8.2.3:
+ version "8.2.4"
+ resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.2.4.tgz#77b9c29bfcbe8a07ff6693dc87050828889739a5"
+ integrity sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==
+ dependencies:
+ postcss-selector-parser "^6.0.9"
+ postcss-value-parser "^4.2.0"
+
+postcss-colormin@^5.3.1:
+ version "5.3.1"
+ resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-5.3.1.tgz#86c27c26ed6ba00d96c79e08f3ffb418d1d1988f"
+ integrity sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==
+ dependencies:
+ browserslist "^4.21.4"
+ caniuse-api "^3.0.0"
+ colord "^2.9.1"
+ postcss-value-parser "^4.2.0"
+
+postcss-convert-values@^5.1.3:
+ version "5.1.3"
+ resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz#04998bb9ba6b65aa31035d669a6af342c5f9d393"
+ integrity sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==
+ dependencies:
+ browserslist "^4.21.4"
+ postcss-value-parser "^4.2.0"
+
+postcss-discard-comments@^5.1.2:
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz#8df5e81d2925af2780075840c1526f0660e53696"
+ integrity sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==
+
+postcss-discard-duplicates@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz#9eb4fe8456706a4eebd6d3b7b777d07bad03e848"
+ integrity sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==
+
+postcss-discard-empty@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz#e57762343ff7f503fe53fca553d18d7f0c369c6c"
+ integrity sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==
+
+postcss-discard-overridden@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz#7e8c5b53325747e9d90131bb88635282fb4a276e"
+ integrity sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==
+
+postcss-discard-unused@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-discard-unused/-/postcss-discard-unused-5.1.0.tgz#8974e9b143d887677304e558c1166d3762501142"
+ integrity sha512-KwLWymI9hbwXmJa0dkrzpRbSJEh0vVUd7r8t0yOGPcfKzyJJxFM8kLyC5Ev9avji6nY95pOp1W6HqIrfT+0VGw==
+ dependencies:
+ postcss-selector-parser "^6.0.5"
+
+postcss-loader@^7.3.3:
+ version "7.3.3"
+ resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-7.3.3.tgz#6da03e71a918ef49df1bb4be4c80401df8e249dd"
+ integrity sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==
+ dependencies:
+ cosmiconfig "^8.2.0"
+ jiti "^1.18.2"
+ semver "^7.3.8"
+
+postcss-merge-idents@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-merge-idents/-/postcss-merge-idents-5.1.1.tgz#7753817c2e0b75d0853b56f78a89771e15ca04a1"
+ integrity sha512-pCijL1TREiCoog5nQp7wUe+TUonA2tC2sQ54UGeMmryK3UFGIYKqDyjnqd6RcuI4znFn9hWSLNN8xKE/vWcUQw==
+ dependencies:
+ cssnano-utils "^3.1.0"
+ postcss-value-parser "^4.2.0"
+
+postcss-merge-longhand@^5.1.7:
+ version "5.1.7"
+ resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz#24a1bdf402d9ef0e70f568f39bdc0344d568fb16"
+ integrity sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+ stylehacks "^5.1.1"
+
+postcss-merge-rules@^5.1.4:
+ version "5.1.4"
+ resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz#2f26fa5cacb75b1402e213789f6766ae5e40313c"
+ integrity sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==
+ dependencies:
+ browserslist "^4.21.4"
+ caniuse-api "^3.0.0"
+ cssnano-utils "^3.1.0"
+ postcss-selector-parser "^6.0.5"
+
+postcss-minify-font-values@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz#f1df0014a726083d260d3bd85d7385fb89d1f01b"
+ integrity sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-minify-gradients@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz#f1fe1b4f498134a5068240c2f25d46fcd236ba2c"
+ integrity sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==
+ dependencies:
+ colord "^2.9.1"
+ cssnano-utils "^3.1.0"
+ postcss-value-parser "^4.2.0"
+
+postcss-minify-params@^5.1.4:
+ version "5.1.4"
+ resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz#c06a6c787128b3208b38c9364cfc40c8aa5d7352"
+ integrity sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==
+ dependencies:
+ browserslist "^4.21.4"
+ cssnano-utils "^3.1.0"
+ postcss-value-parser "^4.2.0"
+
+postcss-minify-selectors@^5.2.1:
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz#d4e7e6b46147b8117ea9325a915a801d5fe656c6"
+ integrity sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==
+ dependencies:
+ postcss-selector-parser "^6.0.5"
+
+postcss-modules-extract-imports@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz#cda1f047c0ae80c97dbe28c3e76a43b88025741d"
+ integrity sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==
+
+postcss-modules-local-by-default@^4.0.3:
+ version "4.0.3"
+ resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz#b08eb4f083050708998ba2c6061b50c2870ca524"
+ integrity sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==
+ dependencies:
+ icss-utils "^5.0.0"
+ postcss-selector-parser "^6.0.2"
+ postcss-value-parser "^4.1.0"
+
+postcss-modules-scope@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz#9ef3151456d3bbfa120ca44898dfca6f2fa01f06"
+ integrity sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==
+ dependencies:
+ postcss-selector-parser "^6.0.4"
+
+postcss-modules-values@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz#d7c5e7e68c3bb3c9b27cbf48ca0bb3ffb4602c9c"
+ integrity sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==
+ dependencies:
+ icss-utils "^5.0.0"
+
+postcss-normalize-charset@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz#9302de0b29094b52c259e9b2cf8dc0879879f0ed"
+ integrity sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==
+
+postcss-normalize-display-values@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz#72abbae58081960e9edd7200fcf21ab8325c3da8"
+ integrity sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-normalize-positions@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz#ef97279d894087b59325b45c47f1e863daefbb92"
+ integrity sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-normalize-repeat-style@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz#e9eb96805204f4766df66fd09ed2e13545420fb2"
+ integrity sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-normalize-string@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz#411961169e07308c82c1f8c55f3e8a337757e228"
+ integrity sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-normalize-timing-functions@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz#d5614410f8f0b2388e9f240aa6011ba6f52dafbb"
+ integrity sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-normalize-unicode@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz#f67297fca3fea7f17e0d2caa40769afc487aa030"
+ integrity sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==
+ dependencies:
+ browserslist "^4.21.4"
+ postcss-value-parser "^4.2.0"
+
+postcss-normalize-url@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz#ed9d88ca82e21abef99f743457d3729a042adcdc"
+ integrity sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==
+ dependencies:
+ normalize-url "^6.0.1"
+ postcss-value-parser "^4.2.0"
+
+postcss-normalize-whitespace@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz#08a1a0d1ffa17a7cc6efe1e6c9da969cc4493cfa"
+ integrity sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-ordered-values@^5.1.3:
+ version "5.1.3"
+ resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz#b6fd2bd10f937b23d86bc829c69e7732ce76ea38"
+ integrity sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==
+ dependencies:
+ cssnano-utils "^3.1.0"
+ postcss-value-parser "^4.2.0"
+
+postcss-reduce-idents@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/postcss-reduce-idents/-/postcss-reduce-idents-5.2.0.tgz#c89c11336c432ac4b28792f24778859a67dfba95"
+ integrity sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-reduce-initial@^5.1.2:
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz#798cd77b3e033eae7105c18c9d371d989e1382d6"
+ integrity sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==
+ dependencies:
+ browserslist "^4.21.4"
+ caniuse-api "^3.0.0"
+
+postcss-reduce-transforms@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz#333b70e7758b802f3dd0ddfe98bb1ccfef96b6e9"
+ integrity sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+
+postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.9:
+ version "6.0.10"
+ resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz#79b61e2c0d1bfc2602d549e11d0876256f8df88d"
+ integrity sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==
+ dependencies:
+ cssesc "^3.0.0"
+ util-deprecate "^1.0.2"
+
+postcss-sort-media-queries@^4.4.1:
+ version "4.4.1"
+ resolved "https://registry.yarnpkg.com/postcss-sort-media-queries/-/postcss-sort-media-queries-4.4.1.tgz#04a5a78db3921eb78f28a1a781a2e68e65258128"
+ integrity sha512-QDESFzDDGKgpiIh4GYXsSy6sek2yAwQx1JASl5AxBtU1Lq2JfKBljIPNdil989NcSKRQX1ToiaKphImtBuhXWw==
+ dependencies:
+ sort-css-media-queries "2.1.0"
+
+postcss-svgo@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-5.1.0.tgz#0a317400ced789f233a28826e77523f15857d80d"
+ integrity sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==
+ dependencies:
+ postcss-value-parser "^4.2.0"
+ svgo "^2.7.0"
+
+postcss-unique-selectors@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz#a9f273d1eacd09e9aa6088f4b0507b18b1b541b6"
+ integrity sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==
+ dependencies:
+ postcss-selector-parser "^6.0.5"
+
+postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
+ integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
+
+postcss-zindex@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-zindex/-/postcss-zindex-5.1.0.tgz#4a5c7e5ff1050bd4c01d95b1847dfdcc58a496ff"
+ integrity sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==
+
+postcss@^8.4.17, postcss@^8.4.21, postcss@^8.4.26:
+ version "8.4.32"
+ resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.32.tgz#1dac6ac51ab19adb21b8b34fd2d93a86440ef6c9"
+ integrity sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==
+ dependencies:
+ nanoid "^3.3.7"
+ picocolors "^1.0.0"
+ source-map-js "^1.0.2"
+
+pretty-error@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-4.0.0.tgz#90a703f46dd7234adb46d0f84823e9d1cb8f10d6"
+ integrity sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==
+ dependencies:
+ lodash "^4.17.20"
+ renderkid "^3.0.0"
+
+pretty-time@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/pretty-time/-/pretty-time-1.1.0.tgz#ffb7429afabb8535c346a34e41873adf3d74dd0e"
+ integrity sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==
+
+prism-react-renderer@^2.3.0, prism-react-renderer@^2.3.1:
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/prism-react-renderer/-/prism-react-renderer-2.3.1.tgz#e59e5450052ede17488f6bc85de1553f584ff8d5"
+ integrity sha512-Rdf+HzBLR7KYjzpJ1rSoxT9ioO85nZngQEoFIhL07XhtJHlCU3SOz0GJ6+qvMyQe0Se+BV3qpe6Yd/NmQF5Juw==
+ dependencies:
+ "@types/prismjs" "^1.26.0"
+ clsx "^2.0.0"
+
+prismjs@^1.29.0:
+ version "1.29.0"
+ resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.29.0.tgz#f113555a8fa9b57c35e637bba27509dcf802dd12"
+ integrity sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==
+
+process-nextick-args@~2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
+ integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==
+
+prompts@^2.4.2:
+ version "2.4.2"
+ resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069"
+ integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==
+ dependencies:
+ kleur "^3.0.3"
+ sisteransi "^1.0.5"
+
+prop-types@^15.6.2, prop-types@^15.7.2:
+ version "15.8.1"
+ resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
+ integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
+ dependencies:
+ loose-envify "^1.4.0"
+ object-assign "^4.1.1"
+ react-is "^16.13.1"
+
+property-information@^6.0.0:
+ version "6.4.0"
+ resolved "https://registry.yarnpkg.com/property-information/-/property-information-6.4.0.tgz#6bc4c618b0c2d68b3bb8b552cbb97f8e300a0f82"
+ integrity sha512-9t5qARVofg2xQqKtytzt+lZ4d1Qvj8t5B8fEwXK6qOfgRLgH/b13QlgEyDh033NOS31nXeFbYv7CLUDG1CeifQ==
+
+proto-list@~1.2.1:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
+ integrity sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==
+
+proxy-addr@~2.0.7:
+ version "2.0.7"
+ resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025"
+ integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==
+ dependencies:
+ forwarded "0.2.0"
+ ipaddr.js "1.9.1"
+
+punycode@^1.3.2:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
+ integrity sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==
+
+punycode@^2.1.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
+ integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
+
+pupa@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/pupa/-/pupa-3.1.0.tgz#f15610274376bbcc70c9a3aa8b505ea23f41c579"
+ integrity sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==
+ dependencies:
+ escape-goat "^4.0.0"
+
+qs@6.11.0:
+ version "6.11.0"
+ resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a"
+ integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==
+ dependencies:
+ side-channel "^1.0.4"
+
+queue-microtask@^1.2.2:
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
+ integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
+
+queue@6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/queue/-/queue-6.0.2.tgz#b91525283e2315c7553d2efa18d83e76432fed65"
+ integrity sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==
+ dependencies:
+ inherits "~2.0.3"
+
+quick-lru@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932"
+ integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==
+
+randombytes@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"
+ integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
+ dependencies:
+ safe-buffer "^5.1.0"
+
+range-parser@1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e"
+ integrity sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==
+
+range-parser@^1.2.1, range-parser@~1.2.1:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
+ integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
+
+raw-body@2.5.2:
+ version "2.5.2"
+ resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a"
+ integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==
+ dependencies:
+ bytes "3.1.2"
+ http-errors "2.0.0"
+ iconv-lite "0.4.24"
+ unpipe "1.0.0"
+
+rc@1.2.8:
+ version "1.2.8"
+ resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
+ integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==
+ dependencies:
+ deep-extend "^0.6.0"
+ ini "~1.3.0"
+ minimist "^1.2.0"
+ strip-json-comments "~2.0.1"
+
+react-dev-utils@^12.0.1:
+ version "12.0.1"
+ resolved "https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-12.0.1.tgz#ba92edb4a1f379bd46ccd6bcd4e7bc398df33e73"
+ integrity sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==
+ dependencies:
+ "@babel/code-frame" "^7.16.0"
+ address "^1.1.2"
+ browserslist "^4.18.1"
+ chalk "^4.1.2"
+ cross-spawn "^7.0.3"
+ detect-port-alt "^1.1.6"
+ escape-string-regexp "^4.0.0"
+ filesize "^8.0.6"
+ find-up "^5.0.0"
+ fork-ts-checker-webpack-plugin "^6.5.0"
+ global-modules "^2.0.0"
+ globby "^11.0.4"
+ gzip-size "^6.0.0"
+ immer "^9.0.7"
+ is-root "^2.1.0"
+ loader-utils "^3.2.0"
+ open "^8.4.0"
+ pkg-up "^3.1.0"
+ prompts "^2.4.2"
+ react-error-overlay "^6.0.11"
+ recursive-readdir "^2.2.2"
+ shell-quote "^1.7.3"
+ strip-ansi "^6.0.1"
+ text-table "^0.2.0"
+
+react-dom@^18.2.0:
+ version "18.2.0"
+ resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
+ integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
+ dependencies:
+ loose-envify "^1.1.0"
+ scheduler "^0.23.0"
+
+react-error-overlay@^6.0.11:
+ version "6.0.11"
+ resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.11.tgz#92835de5841c5cf08ba00ddd2d677b6d17ff9adb"
+ integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==
+
+react-fast-compare@^3.2.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
+ integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
+
+react-helmet-async@*, react-helmet-async@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/react-helmet-async/-/react-helmet-async-1.3.0.tgz#7bd5bf8c5c69ea9f02f6083f14ce33ef545c222e"
+ integrity sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==
+ dependencies:
+ "@babel/runtime" "^7.12.5"
+ invariant "^2.2.4"
+ prop-types "^15.7.2"
+ react-fast-compare "^3.2.0"
+ shallowequal "^1.1.0"
+
+react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0:
+ version "16.13.1"
+ resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
+ integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
+
+react-json-view-lite@^1.2.0:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/react-json-view-lite/-/react-json-view-lite-1.2.1.tgz#c59a0bea4ede394db331d482ee02e293d38f8218"
+ integrity sha512-Itc0g86fytOmKZoIoJyGgvNqohWSbh3NXIKNgH6W6FT9PC1ck4xas1tT3Rr/b3UlFXyA9Jjaw9QSXdZy2JwGMQ==
+
+react-loadable-ssr-addon-v5-slorber@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/react-loadable-ssr-addon-v5-slorber/-/react-loadable-ssr-addon-v5-slorber-1.0.1.tgz#2cdc91e8a744ffdf9e3556caabeb6e4278689883"
+ integrity sha512-lq3Lyw1lGku8zUEJPDxsNm1AfYHBrO9Y1+olAYwpUJ2IGFBskM0DMKok97A6LWUpHm+o7IvQBOWu9MLenp9Z+A==
+ dependencies:
+ "@babel/runtime" "^7.10.3"
+
+"react-loadable@npm:@docusaurus/react-loadable@5.5.2":
+ version "5.5.2"
+ resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
+ integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
+ dependencies:
+ "@types/react" "*"
+ prop-types "^15.6.2"
+
+react-router-config@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/react-router-config/-/react-router-config-5.1.1.tgz#0f4263d1a80c6b2dc7b9c1902c9526478194a988"
+ integrity sha512-DuanZjaD8mQp1ppHjgnnUnyOlqYXZVjnov/JzFhjLEwd3Z4dYjMSnqrEzzGThH47vpCOqPPwJM2FtthLeJ8Pbg==
+ dependencies:
+ "@babel/runtime" "^7.1.2"
+
+react-router-dom@^5.3.4:
+ version "5.3.4"
+ resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-5.3.4.tgz#2ed62ffd88cae6db134445f4a0c0ae8b91d2e5e6"
+ integrity sha512-m4EqFMHv/Ih4kpcBCONHbkT68KoAeHN4p3lAGoNryfHi0dMy0kCzEZakiKRsvg5wHZ/JLrLW8o8KomWiz/qbYQ==
+ dependencies:
+ "@babel/runtime" "^7.12.13"
+ history "^4.9.0"
+ loose-envify "^1.3.1"
+ prop-types "^15.6.2"
+ react-router "5.3.4"
+ tiny-invariant "^1.0.2"
+ tiny-warning "^1.0.0"
+
+react-router@5.3.4, react-router@^5.3.4:
+ version "5.3.4"
+ resolved "https://registry.yarnpkg.com/react-router/-/react-router-5.3.4.tgz#8ca252d70fcc37841e31473c7a151cf777887bb5"
+ integrity sha512-Ys9K+ppnJah3QuaRiLxk+jDWOR1MekYQrlytiXxC1RyfbdsZkS5pvKAzCCr031xHixZwpnsYNT5xysdFHQaYsA==
+ dependencies:
+ "@babel/runtime" "^7.12.13"
+ history "^4.9.0"
+ hoist-non-react-statics "^3.1.0"
+ loose-envify "^1.3.1"
+ path-to-regexp "^1.7.0"
+ prop-types "^15.6.2"
+ react-is "^16.6.0"
+ tiny-invariant "^1.0.2"
+ tiny-warning "^1.0.0"
+
+react@^18.2.0:
+ version "18.2.0"
+ resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
+ integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
+ dependencies:
+ loose-envify "^1.1.0"
+
+readable-stream@^2.0.1:
+ version "2.3.7"
+ resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
+ integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==
+ dependencies:
+ core-util-is "~1.0.0"
+ inherits "~2.0.3"
+ isarray "~1.0.0"
+ process-nextick-args "~2.0.0"
+ safe-buffer "~5.1.1"
+ string_decoder "~1.1.1"
+ util-deprecate "~1.0.1"
+
+readable-stream@^3.0.6:
+ version "3.6.0"
+ resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
+ integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==
+ dependencies:
+ inherits "^2.0.3"
+ string_decoder "^1.1.1"
+ util-deprecate "^1.0.1"
+
+readdirp@~3.6.0:
+ version "3.6.0"
+ resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
+ integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
+ dependencies:
+ picomatch "^2.2.1"
+
+reading-time@^1.5.0:
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/reading-time/-/reading-time-1.5.0.tgz#d2a7f1b6057cb2e169beaf87113cc3411b5bc5bb"
+ integrity sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==
+
+rechoir@^0.6.2:
+ version "0.6.2"
+ resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
+ integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==
+ dependencies:
+ resolve "^1.1.6"
+
+recursive-readdir@^2.2.2:
+ version "2.2.3"
+ resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.3.tgz#e726f328c0d69153bcabd5c322d3195252379372"
+ integrity sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==
+ dependencies:
+ minimatch "^3.0.5"
+
+regenerate-unicode-properties@^10.0.1:
+ version "10.0.1"
+ resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz#7f442732aa7934a3740c779bb9b3340dccc1fb56"
+ integrity sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw==
+ dependencies:
+ regenerate "^1.4.2"
+
+regenerate-unicode-properties@^10.1.0:
+ version "10.1.1"
+ resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz#6b0e05489d9076b04c436f318d9b067bba459480"
+ integrity sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==
+ dependencies:
+ regenerate "^1.4.2"
+
+regenerate@^1.4.2:
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a"
+ integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==
+
+regenerator-runtime@^0.13.11:
+ version "0.13.11"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
+ integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
+
+regenerator-runtime@^0.14.0:
+ version "0.14.0"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz#5e19d68eb12d486f797e15a3c6a918f7cec5eb45"
+ integrity sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==
+
+regenerator-transform@^0.15.2:
+ version "0.15.2"
+ resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz#5bbae58b522098ebdf09bca2f83838929001c7a4"
+ integrity sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==
+ dependencies:
+ "@babel/runtime" "^7.8.4"
+
+regexpu-core@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.1.0.tgz#2f8504c3fd0ebe11215783a41541e21c79942c6d"
+ integrity sha512-bb6hk+xWd2PEOkj5It46A16zFMs2mv86Iwpdu94la4S3sJ7C973h2dHpYKwIBGaWSO7cIRJ+UX0IeMaWcO4qwA==
+ dependencies:
+ regenerate "^1.4.2"
+ regenerate-unicode-properties "^10.0.1"
+ regjsgen "^0.6.0"
+ regjsparser "^0.8.2"
+ unicode-match-property-ecmascript "^2.0.0"
+ unicode-match-property-value-ecmascript "^2.0.0"
+
+regexpu-core@^5.3.1:
+ version "5.3.2"
+ resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.3.2.tgz#11a2b06884f3527aec3e93dbbf4a3b958a95546b"
+ integrity sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==
+ dependencies:
+ "@babel/regjsgen" "^0.8.0"
+ regenerate "^1.4.2"
+ regenerate-unicode-properties "^10.1.0"
+ regjsparser "^0.9.1"
+ unicode-match-property-ecmascript "^2.0.0"
+ unicode-match-property-value-ecmascript "^2.1.0"
+
+registry-auth-token@^5.0.1:
+ version "5.0.2"
+ resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-5.0.2.tgz#8b026cc507c8552ebbe06724136267e63302f756"
+ integrity sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==
+ dependencies:
+ "@pnpm/npm-conf" "^2.1.0"
+
+registry-url@^6.0.0:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-6.0.1.tgz#056d9343680f2f64400032b1e199faa692286c58"
+ integrity sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==
+ dependencies:
+ rc "1.2.8"
+
+regjsgen@^0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.6.0.tgz#83414c5354afd7d6627b16af5f10f41c4e71808d"
+ integrity sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA==
+
+regjsparser@^0.8.2:
+ version "0.8.4"
+ resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.8.4.tgz#8a14285ffcc5de78c5b95d62bbf413b6bc132d5f"
+ integrity sha512-J3LABycON/VNEu3abOviqGHuB/LOtOQj8SKmfP9anY5GfAVw/SPjwzSjxGjbZXIxbGfqTHtJw58C2Li/WkStmA==
+ dependencies:
+ jsesc "~0.5.0"
+
+regjsparser@^0.9.1:
+ version "0.9.1"
+ resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709"
+ integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==
+ dependencies:
+ jsesc "~0.5.0"
+
+rehype-raw@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/rehype-raw/-/rehype-raw-7.0.0.tgz#59d7348fd5dbef3807bbaa1d443efd2dd85ecee4"
+ integrity sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==
+ dependencies:
+ "@types/hast" "^3.0.0"
+ hast-util-raw "^9.0.0"
+ vfile "^6.0.0"
+
+relateurl@^0.2.7:
+ version "0.2.7"
+ resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9"
+ integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==
+
+remark-directive@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/remark-directive/-/remark-directive-3.0.0.tgz#34452d951b37e6207d2e2a4f830dc33442923268"
+ integrity sha512-l1UyWJ6Eg1VPU7Hm/9tt0zKtReJQNOA4+iDMAxTyZNWnJnFlbS/7zhiel/rogTLQ2vMYwDzSJa4BiVNqGlqIMA==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ mdast-util-directive "^3.0.0"
+ micromark-extension-directive "^3.0.0"
+ unified "^11.0.0"
+
+remark-emoji@^4.0.0:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/remark-emoji/-/remark-emoji-4.0.1.tgz#671bfda668047689e26b2078c7356540da299f04"
+ integrity sha512-fHdvsTR1dHkWKev9eNyhTo4EFwbUvJ8ka9SgeWkMPYFX4WoI7ViVBms3PjlQYgw5TLvNQso3GUB/b/8t3yo+dg==
+ dependencies:
+ "@types/mdast" "^4.0.2"
+ emoticon "^4.0.1"
+ mdast-util-find-and-replace "^3.0.1"
+ node-emoji "^2.1.0"
+ unified "^11.0.4"
+
+remark-frontmatter@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/remark-frontmatter/-/remark-frontmatter-5.0.0.tgz#b68d61552a421ec412c76f4f66c344627dc187a2"
+ integrity sha512-XTFYvNASMe5iPN0719nPrdItC9aU0ssC4v14mH1BCi1u0n1gAocqcujWUrByftZTbLhRtiKRyjYTSIOcr69UVQ==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ mdast-util-frontmatter "^2.0.0"
+ micromark-extension-frontmatter "^2.0.0"
+ unified "^11.0.0"
+
+remark-gfm@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-4.0.0.tgz#aea777f0744701aa288b67d28c43565c7e8c35de"
+ integrity sha512-U92vJgBPkbw4Zfu/IiW2oTZLSL3Zpv+uI7My2eq8JxKgqraFdU8YUGicEJCEgSbeaG+QDFqIcwwfMTOEelPxuA==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ mdast-util-gfm "^3.0.0"
+ micromark-extension-gfm "^3.0.0"
+ remark-parse "^11.0.0"
+ remark-stringify "^11.0.0"
+ unified "^11.0.0"
+
+remark-mdx@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/remark-mdx/-/remark-mdx-3.0.0.tgz#146905a3925b078970e05fc89b0e16b9cc3bfddd"
+ integrity sha512-O7yfjuC6ra3NHPbRVxfflafAj3LTwx3b73aBvkEFU5z4PsD6FD4vrqJAkE5iNGLz71GdjXfgRqm3SQ0h0VuE7g==
+ dependencies:
+ mdast-util-mdx "^3.0.0"
+ micromark-extension-mdxjs "^3.0.0"
+
+remark-parse@^11.0.0:
+ version "11.0.0"
+ resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-11.0.0.tgz#aa60743fcb37ebf6b069204eb4da304e40db45a1"
+ integrity sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ micromark-util-types "^2.0.0"
+ unified "^11.0.0"
+
+remark-rehype@^11.0.0:
+ version "11.0.0"
+ resolved "https://registry.yarnpkg.com/remark-rehype/-/remark-rehype-11.0.0.tgz#7f21c08738bde024be5f16e4a8b13e5d7a04cf6b"
+ integrity sha512-vx8x2MDMcxuE4lBmQ46zYUDfcFMmvg80WYX+UNLeG6ixjdCCLcw1lrgAukwBTuOFsS78eoAedHGn9sNM0w7TPw==
+ dependencies:
+ "@types/hast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
+ mdast-util-to-hast "^13.0.0"
+ unified "^11.0.0"
+ vfile "^6.0.0"
+
+remark-stringify@^11.0.0:
+ version "11.0.0"
+ resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-11.0.0.tgz#4c5b01dd711c269df1aaae11743eb7e2e7636fd3"
+ integrity sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==
+ dependencies:
+ "@types/mdast" "^4.0.0"
+ mdast-util-to-markdown "^2.0.0"
+ unified "^11.0.0"
+
+renderkid@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-3.0.0.tgz#5fd823e4d6951d37358ecc9a58b1f06836b6268a"
+ integrity sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==
+ dependencies:
+ css-select "^4.1.3"
+ dom-converter "^0.2.0"
+ htmlparser2 "^6.1.0"
+ lodash "^4.17.21"
+ strip-ansi "^6.0.1"
+
+require-from-string@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"
+ integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
+
+"require-like@>= 0.1.1":
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/require-like/-/require-like-0.1.2.tgz#ad6f30c13becd797010c468afa775c0c0a6b47fa"
+ integrity sha512-oyrU88skkMtDdauHDuKVrgR+zuItqr6/c//FXzvmxRGMexSDc6hNvJInGW3LL46n+8b50RykrvwSUIIQH2LQ5A==
+
+requires-port@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
+ integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==
+
+resolve-alpn@^1.2.0:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/resolve-alpn/-/resolve-alpn-1.2.1.tgz#b7adbdac3546aaaec20b45e7d8265927072726f9"
+ integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==
+
+resolve-from@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
+ integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
+
+resolve-pathname@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-3.0.0.tgz#99d02224d3cf263689becbb393bc560313025dcd"
+ integrity sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==
+
+resolve@^1.1.6, resolve@^1.14.2:
+ version "1.22.1"
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177"
+ integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==
+ dependencies:
+ is-core-module "^2.9.0"
+ path-parse "^1.0.7"
+ supports-preserve-symlinks-flag "^1.0.0"
+
+responselike@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/responselike/-/responselike-3.0.0.tgz#20decb6c298aff0dbee1c355ca95461d42823626"
+ integrity sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==
+ dependencies:
+ lowercase-keys "^3.0.0"
+
+retry@^0.13.1:
+ version "0.13.1"
+ resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658"
+ integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==
+
+reusify@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
+ integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
+
+rimraf@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
+ integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
+ dependencies:
+ glob "^7.1.3"
+
+rtl-detect@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/rtl-detect/-/rtl-detect-1.0.4.tgz#40ae0ea7302a150b96bc75af7d749607392ecac6"
+ integrity sha512-EBR4I2VDSSYr7PkBmFy04uhycIpDKp+21p/jARYXlCSjQksTBQcJ0HFUPOO79EPPH5JS6VAhiIQbycf0O3JAxQ==
+
+rtlcss@^4.1.0:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/rtlcss/-/rtlcss-4.1.1.tgz#f20409fcc197e47d1925996372be196fee900c0c"
+ integrity sha512-/oVHgBtnPNcggP2aVXQjSy6N1mMAfHg4GSag0QtZBlD5bdDgAHwr4pydqJGd+SUCu9260+Pjqbjwtvu7EMH1KQ==
+ dependencies:
+ escalade "^3.1.1"
+ picocolors "^1.0.0"
+ postcss "^8.4.21"
+ strip-json-comments "^3.1.1"
+
+run-parallel@^1.1.9:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
+ integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==
+ dependencies:
+ queue-microtask "^1.2.2"
+
+safe-buffer@5.1.2, safe-buffer@>=5.1.0, safe-buffer@^5.1.0, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
+ integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
+
+safe-buffer@5.2.1, safe-buffer@~5.2.0:
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
+ integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
+
+"safer-buffer@>= 2.1.2 < 3":
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
+ integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
+
+sax@^1.2.4:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
+ integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
+
+scheduler@^0.23.0:
+ version "0.23.0"
+ resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
+ integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
+ dependencies:
+ loose-envify "^1.1.0"
+
+schema-utils@2.7.0:
+ version "2.7.0"
+ resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.0.tgz#17151f76d8eae67fbbf77960c33c676ad9f4efc7"
+ integrity sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==
+ dependencies:
+ "@types/json-schema" "^7.0.4"
+ ajv "^6.12.2"
+ ajv-keywords "^3.4.1"
+
+schema-utils@^3.0.0, schema-utils@^3.1.1:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281"
+ integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==
+ dependencies:
+ "@types/json-schema" "^7.0.8"
+ ajv "^6.12.5"
+ ajv-keywords "^3.5.2"
+
+schema-utils@^3.2.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe"
+ integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==
+ dependencies:
+ "@types/json-schema" "^7.0.8"
+ ajv "^6.12.5"
+ ajv-keywords "^3.5.2"
+
+schema-utils@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.0.0.tgz#60331e9e3ae78ec5d16353c467c34b3a0a1d3df7"
+ integrity sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==
+ dependencies:
+ "@types/json-schema" "^7.0.9"
+ ajv "^8.8.0"
+ ajv-formats "^2.1.1"
+ ajv-keywords "^5.0.0"
+
+section-matter@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/section-matter/-/section-matter-1.0.0.tgz#e9041953506780ec01d59f292a19c7b850b84167"
+ integrity sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==
+ dependencies:
+ extend-shallow "^2.0.1"
+ kind-of "^6.0.0"
+
+select-hose@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca"
+ integrity sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==
+
+selfsigned@^2.1.1:
+ version "2.4.1"
+ resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.4.1.tgz#560d90565442a3ed35b674034cec4e95dceb4ae0"
+ integrity sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==
+ dependencies:
+ "@types/node-forge" "^1.3.0"
+ node-forge "^1"
+
+semver-diff@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-4.0.0.tgz#3afcf5ed6d62259f5c72d0d5d50dffbdc9680df5"
+ integrity sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==
+ dependencies:
+ semver "^7.3.5"
+
+semver@^6.3.1:
+ version "6.3.1"
+ resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
+ integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
+
+semver@^7.3.2, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.4:
+ version "7.5.4"
+ resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
+ integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
+ dependencies:
+ lru-cache "^6.0.0"
+
+send@0.18.0:
+ version "0.18.0"
+ resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be"
+ integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==
+ dependencies:
+ debug "2.6.9"
+ depd "2.0.0"
+ destroy "1.2.0"
+ encodeurl "~1.0.2"
+ escape-html "~1.0.3"
+ etag "~1.8.1"
+ fresh "0.5.2"
+ http-errors "2.0.0"
+ mime "1.6.0"
+ ms "2.1.3"
+ on-finished "2.4.1"
+ range-parser "~1.2.1"
+ statuses "2.0.1"
+
+serialize-javascript@^6.0.0, serialize-javascript@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.1.tgz#b206efb27c3da0b0ab6b52f48d170b7996458e5c"
+ integrity sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==
+ dependencies:
+ randombytes "^2.1.0"
+
+serve-handler@^6.1.5:
+ version "6.1.5"
+ resolved "https://registry.yarnpkg.com/serve-handler/-/serve-handler-6.1.5.tgz#a4a0964f5c55c7e37a02a633232b6f0d6f068375"
+ integrity sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==
+ dependencies:
+ bytes "3.0.0"
+ content-disposition "0.5.2"
+ fast-url-parser "1.1.3"
+ mime-types "2.1.18"
+ minimatch "3.1.2"
+ path-is-inside "1.0.2"
+ path-to-regexp "2.2.1"
+ range-parser "1.2.0"
+
+serve-index@^1.9.1:
+ version "1.9.1"
+ resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239"
+ integrity sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==
+ dependencies:
+ accepts "~1.3.4"
+ batch "0.6.1"
+ debug "2.6.9"
+ escape-html "~1.0.3"
+ http-errors "~1.6.2"
+ mime-types "~2.1.17"
+ parseurl "~1.3.2"
+
+serve-static@1.15.0:
+ version "1.15.0"
+ resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540"
+ integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==
+ dependencies:
+ encodeurl "~1.0.2"
+ escape-html "~1.0.3"
+ parseurl "~1.3.3"
+ send "0.18.0"
+
+setprototypeof@1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656"
+ integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==
+
+setprototypeof@1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424"
+ integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
+
+shallow-clone@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3"
+ integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==
+ dependencies:
+ kind-of "^6.0.2"
+
+shallowequal@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8"
+ integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==
+
+shebang-command@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
+ integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
+ dependencies:
+ shebang-regex "^3.0.0"
+
+shebang-regex@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
+ integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
+
+shell-quote@^1.7.3:
+ version "1.7.3"
+ resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123"
+ integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==
+
+shell-quote@^1.8.1:
+ version "1.8.1"
+ resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680"
+ integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==
+
+shelljs@^0.8.5:
+ version "0.8.5"
+ resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c"
+ integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==
+ dependencies:
+ glob "^7.0.0"
+ interpret "^1.0.0"
+ rechoir "^0.6.2"
+
+side-channel@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
+ integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==
+ dependencies:
+ call-bind "^1.0.0"
+ get-intrinsic "^1.0.2"
+ object-inspect "^1.9.0"
+
+signal-exit@^3.0.2, signal-exit@^3.0.3:
+ version "3.0.7"
+ resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
+ integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
+
+sirv@^2.0.3:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/sirv/-/sirv-2.0.3.tgz#ca5868b87205a74bef62a469ed0296abceccd446"
+ integrity sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA==
+ dependencies:
+ "@polka/url" "^1.0.0-next.20"
+ mrmime "^1.0.0"
+ totalist "^3.0.0"
+
+sisteransi@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed"
+ integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==
+
+sitemap@^7.1.1:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-7.1.1.tgz#eeed9ad6d95499161a3eadc60f8c6dce4bea2bef"
+ integrity sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==
+ dependencies:
+ "@types/node" "^17.0.5"
+ "@types/sax" "^1.2.1"
+ arg "^5.0.0"
+ sax "^1.2.4"
+
+skin-tone@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/skin-tone/-/skin-tone-2.0.0.tgz#4e3933ab45c0d4f4f781745d64b9f4c208e41237"
+ integrity sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==
+ dependencies:
+ unicode-emoji-modifier-base "^1.0.0"
+
+slash@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
+ integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
+
+slash@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7"
+ integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==
+
+sockjs@^0.3.24:
+ version "0.3.24"
+ resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce"
+ integrity sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==
+ dependencies:
+ faye-websocket "^0.11.3"
+ uuid "^8.3.2"
+ websocket-driver "^0.7.4"
+
+sort-css-media-queries@2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz#7c85e06f79826baabb232f5560e9745d7a78c4ce"
+ integrity sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==
+
+source-map-js@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
+ integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
+
+source-map-support@~0.5.20:
+ version "0.5.21"
+ resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f"
+ integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==
+ dependencies:
+ buffer-from "^1.0.0"
+ source-map "^0.6.0"
+
+source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0:
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
+ integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
+
+source-map@^0.7.0:
+ version "0.7.4"
+ resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656"
+ integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==
+
+space-separated-tokens@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz#1ecd9d2350a3844572c3f4a312bceb018348859f"
+ integrity sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==
+
+spdy-transport@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31"
+ integrity sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==
+ dependencies:
+ debug "^4.1.0"
+ detect-node "^2.0.4"
+ hpack.js "^2.1.6"
+ obuf "^1.1.2"
+ readable-stream "^3.0.6"
+ wbuf "^1.7.3"
+
+spdy@^4.0.2:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/spdy/-/spdy-4.0.2.tgz#b74f466203a3eda452c02492b91fb9e84a27677b"
+ integrity sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==
+ dependencies:
+ debug "^4.1.0"
+ handle-thing "^2.0.0"
+ http-deceiver "^1.2.7"
+ select-hose "^2.0.0"
+ spdy-transport "^3.0.0"
+
+sprintf-js@~1.0.2:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
+ integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==
+
+srcset@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/srcset/-/srcset-4.0.0.tgz#336816b665b14cd013ba545b6fe62357f86e65f4"
+ integrity sha512-wvLeHgcVHKO8Sc/H/5lkGreJQVeYMm9rlmt8PuR1xE31rIuXhuzznUUqAt8MqLhB3MqJdFzlNAfpcWnxiFUcPw==
+
+stable@^0.1.8:
+ version "0.1.8"
+ resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf"
+ integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==
+
+statuses@2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63"
+ integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==
+
+"statuses@>= 1.4.0 < 2":
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
+ integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
+
+std-env@^3.0.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.2.1.tgz#00e260ec3901333537125f81282b9296b00d7304"
+ integrity sha512-D/uYFWkI/31OrnKmXZqGAGK5GbQRPp/BWA1nuITcc6ICblhhuQUPHS5E2GSCVS7Hwhf4ciq8qsATwBUxv+lI6w==
+
+string-width@^4.1.0, string-width@^4.2.0:
+ version "4.2.3"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.1"
+
+string-width@^5.0.1, string-width@^5.1.2:
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
+ integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
+ dependencies:
+ eastasianwidth "^0.2.0"
+ emoji-regex "^9.2.2"
+ strip-ansi "^7.0.1"
+
+string_decoder@^1.1.1:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"
+ integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==
+ dependencies:
+ safe-buffer "~5.2.0"
+
+string_decoder@~1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
+ integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==
+ dependencies:
+ safe-buffer "~5.1.0"
+
+stringify-entities@^4.0.0:
+ version "4.0.3"
+ resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-4.0.3.tgz#cfabd7039d22ad30f3cc435b0ca2c1574fc88ef8"
+ integrity sha512-BP9nNHMhhfcMbiuQKCqMjhDP5yBCAxsPu4pHFFzJ6Alo9dZgY4VLDPutXqIjpRiMoKdp7Av85Gr73Q5uH9k7+g==
+ dependencies:
+ character-entities-html4 "^2.0.0"
+ character-entities-legacy "^3.0.0"
+
+stringify-object@^3.3.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629"
+ integrity sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==
+ dependencies:
+ get-own-enumerable-property-symbols "^3.0.0"
+ is-obj "^1.0.1"
+ is-regexp "^1.0.0"
+
+strip-ansi@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
+ dependencies:
+ ansi-regex "^5.0.1"
+
+strip-ansi@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2"
+ integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==
+ dependencies:
+ ansi-regex "^6.0.1"
+
+strip-bom-string@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/strip-bom-string/-/strip-bom-string-1.0.0.tgz#e5211e9224369fbb81d633a2f00044dc8cedad92"
+ integrity sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==
+
+strip-final-newline@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad"
+ integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==
+
+strip-json-comments@^3.1.1:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
+ integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
+
+strip-json-comments@~2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
+ integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==
+
+style-to-object@^0.4.0:
+ version "0.4.4"
+ resolved "https://registry.yarnpkg.com/style-to-object/-/style-to-object-0.4.4.tgz#266e3dfd56391a7eefb7770423612d043c3f33ec"
+ integrity sha512-HYNoHZa2GorYNyqiCaBgsxvcJIn7OHq6inEga+E6Ke3m5JkoqpQbnFssk4jwe+K7AhGa2fcha4wSOf1Kn01dMg==
+ dependencies:
+ inline-style-parser "0.1.1"
+
+style-to-object@^1.0.0:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/style-to-object/-/style-to-object-1.0.5.tgz#5e918349bc3a39eee3a804497d97fcbbf2f0d7c0"
+ integrity sha512-rDRwHtoDD3UMMrmZ6BzOW0naTjMsVZLIjsGleSKS/0Oz+cgCfAPRspaqJuE8rDzpKha/nEvnM0IF4seEAZUTKQ==
+ dependencies:
+ inline-style-parser "0.2.2"
+
+stylehacks@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-5.1.1.tgz#7934a34eb59d7152149fa69d6e9e56f2fc34bcc9"
+ integrity sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==
+ dependencies:
+ browserslist "^4.21.4"
+ postcss-selector-parser "^6.0.4"
+
+supports-color@^5.3.0:
+ version "5.5.0"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
+ integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
+ dependencies:
+ has-flag "^3.0.0"
+
+supports-color@^7.1.0:
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da"
+ integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==
+ dependencies:
+ has-flag "^4.0.0"
+
+supports-color@^8.0.0:
+ version "8.1.1"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c"
+ integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==
+ dependencies:
+ has-flag "^4.0.0"
+
+supports-preserve-symlinks-flag@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
+ integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
+
+svg-parser@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5"
+ integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==
+
+svgo@^2.7.0, svgo@^2.8.0:
+ version "2.8.0"
+ resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz#4ff80cce6710dc2795f0c7c74101e6764cfccd24"
+ integrity sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==
+ dependencies:
+ "@trysound/sax" "0.2.0"
+ commander "^7.2.0"
+ css-select "^4.1.3"
+ css-tree "^1.1.3"
+ csso "^4.2.0"
+ picocolors "^1.0.0"
+ stable "^0.1.8"
+
+tapable@^1.0.0:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2"
+ integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==
+
+tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0"
+ integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
+
+terser-webpack-plugin@^5.3.7, terser-webpack-plugin@^5.3.9:
+ version "5.3.9"
+ resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz#832536999c51b46d468067f9e37662a3b96adfe1"
+ integrity sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==
+ dependencies:
+ "@jridgewell/trace-mapping" "^0.3.17"
+ jest-worker "^27.4.5"
+ schema-utils "^3.1.1"
+ serialize-javascript "^6.0.1"
+ terser "^5.16.8"
+
+terser@^5.10.0, terser@^5.16.8:
+ version "5.19.2"
+ resolved "https://registry.yarnpkg.com/terser/-/terser-5.19.2.tgz#bdb8017a9a4a8de4663a7983f45c506534f9234e"
+ integrity sha512-qC5+dmecKJA4cpYxRa5aVkKehYsQKc+AHeKl0Oe62aYjBL8ZA33tTljktDHJSaxxMnbI5ZYw+o/S2DxxLu8OfA==
+ dependencies:
+ "@jridgewell/source-map" "^0.3.3"
+ acorn "^8.8.2"
+ commander "^2.20.0"
+ source-map-support "~0.5.20"
+
+terser@^5.15.1:
+ version "5.26.0"
+ resolved "https://registry.yarnpkg.com/terser/-/terser-5.26.0.tgz#ee9f05d929f4189a9c28a0feb889d96d50126fe1"
+ integrity sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==
+ dependencies:
+ "@jridgewell/source-map" "^0.3.3"
+ acorn "^8.8.2"
+ commander "^2.20.0"
+ source-map-support "~0.5.20"
+
+text-table@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
+ integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==
+
+thunky@^1.0.2:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d"
+ integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==
+
+tiny-invariant@^1.0.2:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.2.0.tgz#a1141f86b672a9148c72e978a19a73b9b94a15a9"
+ integrity sha512-1Uhn/aqw5C6RI4KejVeTg6mIS7IqxnLJ8Mv2tV5rTc0qWobay7pDUz6Wi392Cnc8ak1H0F2cjoRzb2/AW4+Fvg==
+
+tiny-warning@^1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"
+ integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==
+
+to-fast-properties@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
+ integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==
+
+to-regex-range@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
+ integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
+ dependencies:
+ is-number "^7.0.0"
+
+toidentifier@1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35"
+ integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==
+
+totalist@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/totalist/-/totalist-3.0.1.tgz#ba3a3d600c915b1a97872348f79c127475f6acf8"
+ integrity sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==
+
+trim-lines@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338"
+ integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==
+
+trough@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/trough/-/trough-2.1.0.tgz#0f7b511a4fde65a46f18477ab38849b22c554876"
+ integrity sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==
+
+tslib@^2.0.3:
+ version "2.4.0"
+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
+ integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
+
+tslib@^2.6.0:
+ version "2.6.2"
+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
+ integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
+
+type-fest@^1.0.1:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1"
+ integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==
+
+type-fest@^2.13.0:
+ version "2.19.0"
+ resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.19.0.tgz#88068015bb33036a598b952e55e9311a60fd3a9b"
+ integrity sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==
+
+type-fest@^2.5.0:
+ version "2.18.1"
+ resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.18.1.tgz#a94f068c60b5a2d6beccccffa711210d7dd99b38"
+ integrity sha512-UKCINsd4qiATXD6OIlnQw9t1ux/n2ld+Nl0kzPbCONhCaUIS/BhJbNw14w6584HCQWf3frBK8vmWnGZq/sbPHQ==
+
+type-is@~1.6.18:
+ version "1.6.18"
+ resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131"
+ integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==
+ dependencies:
+ media-typer "0.3.0"
+ mime-types "~2.1.24"
+
+typedarray-to-buffer@^3.1.5:
+ version "3.1.5"
+ resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080"
+ integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==
+ dependencies:
+ is-typedarray "^1.0.0"
+
+unicode-canonical-property-names-ecmascript@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc"
+ integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==
+
+unicode-emoji-modifier-base@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/unicode-emoji-modifier-base/-/unicode-emoji-modifier-base-1.0.0.tgz#dbbd5b54ba30f287e2a8d5a249da6c0cef369459"
+ integrity sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==
+
+unicode-match-property-ecmascript@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3"
+ integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==
+ dependencies:
+ unicode-canonical-property-names-ecmascript "^2.0.0"
+ unicode-property-aliases-ecmascript "^2.0.0"
+
+unicode-match-property-value-ecmascript@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz#1a01aa57247c14c568b89775a54938788189a714"
+ integrity sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==
+
+unicode-match-property-value-ecmascript@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz#cb5fffdcd16a05124f5a4b0bf7c3770208acbbe0"
+ integrity sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==
+
+unicode-property-aliases-ecmascript@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz#0a36cb9a585c4f6abd51ad1deddb285c165297c8"
+ integrity sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==
+
+unified@^11.0.0, unified@^11.0.3, unified@^11.0.4:
+ version "11.0.4"
+ resolved "https://registry.yarnpkg.com/unified/-/unified-11.0.4.tgz#f4be0ac0fe4c88cb873687c07c64c49ed5969015"
+ integrity sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ==
+ dependencies:
+ "@types/unist" "^3.0.0"
+ bail "^2.0.0"
+ devlop "^1.0.0"
+ extend "^3.0.0"
+ is-plain-obj "^4.0.0"
+ trough "^2.0.0"
+ vfile "^6.0.0"
+
+unique-string@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-3.0.0.tgz#84a1c377aff5fd7a8bc6b55d8244b2bd90d75b9a"
+ integrity sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==
+ dependencies:
+ crypto-random-string "^4.0.0"
+
+unist-util-is@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-6.0.0.tgz#b775956486aff107a9ded971d996c173374be424"
+ integrity sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==
+ dependencies:
+ "@types/unist" "^3.0.0"
+
+unist-util-position-from-estree@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/unist-util-position-from-estree/-/unist-util-position-from-estree-2.0.0.tgz#d94da4df596529d1faa3de506202f0c9a23f2200"
+ integrity sha512-KaFVRjoqLyF6YXCbVLNad/eS4+OfPQQn2yOd7zF/h5T/CSL2v8NpN6a5TPvtbXthAGw5nG+PuTtq+DdIZr+cRQ==
+ dependencies:
+ "@types/unist" "^3.0.0"
+
+unist-util-position@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-5.0.0.tgz#678f20ab5ca1207a97d7ea8a388373c9cf896be4"
+ integrity sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==
+ dependencies:
+ "@types/unist" "^3.0.0"
+
+unist-util-remove-position@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-5.0.0.tgz#fea68a25658409c9460408bc6b4991b965b52163"
+ integrity sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==
+ dependencies:
+ "@types/unist" "^3.0.0"
+ unist-util-visit "^5.0.0"
+
+unist-util-stringify-position@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz#449c6e21a880e0855bf5aabadeb3a740314abac2"
+ integrity sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==
+ dependencies:
+ "@types/unist" "^3.0.0"
+
+unist-util-visit-parents@^6.0.0:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz#4d5f85755c3b8f0dc69e21eca5d6d82d22162815"
+ integrity sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==
+ dependencies:
+ "@types/unist" "^3.0.0"
+ unist-util-is "^6.0.0"
+
+unist-util-visit@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-5.0.0.tgz#a7de1f31f72ffd3519ea71814cccf5fd6a9217d6"
+ integrity sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==
+ dependencies:
+ "@types/unist" "^3.0.0"
+ unist-util-is "^6.0.0"
+ unist-util-visit-parents "^6.0.0"
+
+universalify@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
+ integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
+
+unpipe@1.0.0, unpipe@~1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
+ integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==
+
+update-browserslist-db@^1.0.11:
+ version "1.0.11"
+ resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940"
+ integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==
+ dependencies:
+ escalade "^3.1.1"
+ picocolors "^1.0.0"
+
+update-browserslist-db@^1.0.13:
+ version "1.0.13"
+ resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4"
+ integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==
+ dependencies:
+ escalade "^3.1.1"
+ picocolors "^1.0.0"
+
+update-notifier@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-6.0.2.tgz#a6990253dfe6d5a02bd04fbb6a61543f55026b60"
+ integrity sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og==
+ dependencies:
+ boxen "^7.0.0"
+ chalk "^5.0.1"
+ configstore "^6.0.0"
+ has-yarn "^3.0.0"
+ import-lazy "^4.0.0"
+ is-ci "^3.0.1"
+ is-installed-globally "^0.4.0"
+ is-npm "^6.0.0"
+ is-yarn-global "^0.4.0"
+ latest-version "^7.0.0"
+ pupa "^3.1.0"
+ semver "^7.3.7"
+ semver-diff "^4.0.0"
+ xdg-basedir "^5.1.0"
+
+uri-js@^4.2.2:
+ version "4.4.1"
+ resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
+ integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==
+ dependencies:
+ punycode "^2.1.0"
+
+url-loader@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-4.1.1.tgz#28505e905cae158cf07c92ca622d7f237e70a4e2"
+ integrity sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==
+ dependencies:
+ loader-utils "^2.0.0"
+ mime-types "^2.1.27"
+ schema-utils "^3.0.0"
+
+util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
+ integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
+
+utila@~0.4:
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c"
+ integrity sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==
+
+utility-types@^3.10.0:
+ version "3.10.0"
+ resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.10.0.tgz#ea4148f9a741015f05ed74fd615e1d20e6bed82b"
+ integrity sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==
+
+utils-merge@1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
+ integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==
+
+uuid@^8.3.2:
+ version "8.3.2"
+ resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
+ integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
+
+value-equal@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c"
+ integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==
+
+vary@~1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
+ integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==
+
+vfile-location@^5.0.0:
+ version "5.0.2"
+ resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-5.0.2.tgz#220d9ca1ab6f8b2504a4db398f7ebc149f9cb464"
+ integrity sha512-NXPYyxyBSH7zB5U6+3uDdd6Nybz6o6/od9rk8bp9H8GR3L+cm/fC0uUTbqBmUTnMCUDslAGBOIKNfvvb+gGlDg==
+ dependencies:
+ "@types/unist" "^3.0.0"
+ vfile "^6.0.0"
+
+vfile-message@^4.0.0:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-4.0.2.tgz#c883c9f677c72c166362fd635f21fc165a7d1181"
+ integrity sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==
+ dependencies:
+ "@types/unist" "^3.0.0"
+ unist-util-stringify-position "^4.0.0"
+
+vfile@^6.0.0, vfile@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/vfile/-/vfile-6.0.1.tgz#1e8327f41eac91947d4fe9d237a2dd9209762536"
+ integrity sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==
+ dependencies:
+ "@types/unist" "^3.0.0"
+ unist-util-stringify-position "^4.0.0"
+ vfile-message "^4.0.0"
+
+watchpack@^2.4.0:
+ version "2.4.0"
+ resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d"
+ integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==
+ dependencies:
+ glob-to-regexp "^0.4.1"
+ graceful-fs "^4.1.2"
+
+wbuf@^1.1.0, wbuf@^1.7.3:
+ version "1.7.3"
+ resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.3.tgz#c1d8d149316d3ea852848895cb6a0bfe887b87df"
+ integrity sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==
+ dependencies:
+ minimalistic-assert "^1.0.0"
+
+web-namespaces@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692"
+ integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==
+
+webpack-bundle-analyzer@^4.9.0:
+ version "4.10.1"
+ resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.10.1.tgz#84b7473b630a7b8c21c741f81d8fe4593208b454"
+ integrity sha512-s3P7pgexgT/HTUSYgxJyn28A+99mmLq4HsJepMPzu0R8ImJc52QNqaFYW1Z2z2uIb1/J3eYgaAWVpaC+v/1aAQ==
+ dependencies:
+ "@discoveryjs/json-ext" "0.5.7"
+ acorn "^8.0.4"
+ acorn-walk "^8.0.0"
+ commander "^7.2.0"
+ debounce "^1.2.1"
+ escape-string-regexp "^4.0.0"
+ gzip-size "^6.0.0"
+ html-escaper "^2.0.2"
+ is-plain-object "^5.0.0"
+ opener "^1.5.2"
+ picocolors "^1.0.0"
+ sirv "^2.0.3"
+ ws "^7.3.1"
+
+webpack-dev-middleware@^5.3.1:
+ version "5.3.4"
+ resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz#eb7b39281cbce10e104eb2b8bf2b63fce49a3517"
+ integrity sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q==
+ dependencies:
+ colorette "^2.0.10"
+ memfs "^3.4.3"
+ mime-types "^2.1.31"
+ range-parser "^1.2.1"
+ schema-utils "^4.0.0"
+
+webpack-dev-server@^4.15.1:
+ version "4.15.1"
+ resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz#8944b29c12760b3a45bdaa70799b17cb91b03df7"
+ integrity sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==
+ dependencies:
+ "@types/bonjour" "^3.5.9"
+ "@types/connect-history-api-fallback" "^1.3.5"
+ "@types/express" "^4.17.13"
+ "@types/serve-index" "^1.9.1"
+ "@types/serve-static" "^1.13.10"
+ "@types/sockjs" "^0.3.33"
+ "@types/ws" "^8.5.5"
+ ansi-html-community "^0.0.8"
+ bonjour-service "^1.0.11"
+ chokidar "^3.5.3"
+ colorette "^2.0.10"
+ compression "^1.7.4"
+ connect-history-api-fallback "^2.0.0"
+ default-gateway "^6.0.3"
+ express "^4.17.3"
+ graceful-fs "^4.2.6"
+ html-entities "^2.3.2"
+ http-proxy-middleware "^2.0.3"
+ ipaddr.js "^2.0.1"
+ launch-editor "^2.6.0"
+ open "^8.0.9"
+ p-retry "^4.5.0"
+ rimraf "^3.0.2"
+ schema-utils "^4.0.0"
+ selfsigned "^2.1.1"
+ serve-index "^1.9.1"
+ sockjs "^0.3.24"
+ spdy "^4.0.2"
+ webpack-dev-middleware "^5.3.1"
+ ws "^8.13.0"
+
+webpack-merge@^5.9.0:
+ version "5.10.0"
+ resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177"
+ integrity sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==
+ dependencies:
+ clone-deep "^4.0.1"
+ flat "^5.0.2"
+ wildcard "^2.0.0"
+
+webpack-sources@^3.2.2, webpack-sources@^3.2.3:
+ version "3.2.3"
+ resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde"
+ integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
+
+webpack@^5.88.1:
+ version "5.89.0"
+ resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.89.0.tgz#56b8bf9a34356e93a6625770006490bf3a7f32dc"
+ integrity sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==
+ dependencies:
+ "@types/eslint-scope" "^3.7.3"
+ "@types/estree" "^1.0.0"
+ "@webassemblyjs/ast" "^1.11.5"
+ "@webassemblyjs/wasm-edit" "^1.11.5"
+ "@webassemblyjs/wasm-parser" "^1.11.5"
+ acorn "^8.7.1"
+ acorn-import-assertions "^1.9.0"
+ browserslist "^4.14.5"
+ chrome-trace-event "^1.0.2"
+ enhanced-resolve "^5.15.0"
+ es-module-lexer "^1.2.1"
+ eslint-scope "5.1.1"
+ events "^3.2.0"
+ glob-to-regexp "^0.4.1"
+ graceful-fs "^4.2.9"
+ json-parse-even-better-errors "^2.3.1"
+ loader-runner "^4.2.0"
+ mime-types "^2.1.27"
+ neo-async "^2.6.2"
+ schema-utils "^3.2.0"
+ tapable "^2.1.1"
+ terser-webpack-plugin "^5.3.7"
+ watchpack "^2.4.0"
+ webpack-sources "^3.2.3"
+
+webpackbar@^5.0.2:
+ version "5.0.2"
+ resolved "https://registry.yarnpkg.com/webpackbar/-/webpackbar-5.0.2.tgz#d3dd466211c73852741dfc842b7556dcbc2b0570"
+ integrity sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==
+ dependencies:
+ chalk "^4.1.0"
+ consola "^2.15.3"
+ pretty-time "^1.1.0"
+ std-env "^3.0.1"
+
+websocket-driver@>=0.5.1, websocket-driver@^0.7.4:
+ version "0.7.4"
+ resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760"
+ integrity sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==
+ dependencies:
+ http-parser-js ">=0.5.1"
+ safe-buffer ">=5.1.0"
+ websocket-extensions ">=0.1.1"
+
+websocket-extensions@>=0.1.1:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42"
+ integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==
+
+which@^1.3.1:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
+ integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==
+ dependencies:
+ isexe "^2.0.0"
+
+which@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
+ integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
+ dependencies:
+ isexe "^2.0.0"
+
+widest-line@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-4.0.1.tgz#a0fc673aaba1ea6f0a0d35b3c2795c9a9cc2ebf2"
+ integrity sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==
+ dependencies:
+ string-width "^5.0.1"
+
+wildcard@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.0.tgz#a77d20e5200c6faaac979e4b3aadc7b3dd7f8fec"
+ integrity sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==
+
+wrap-ansi@^8.0.1:
+ version "8.0.1"
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.0.1.tgz#2101e861777fec527d0ea90c57c6b03aac56a5b3"
+ integrity sha512-QFF+ufAqhoYHvoHdajT/Po7KoXVBPXS2bgjIam5isfWJPfIOnQZ50JtUiVvCv/sjgacf3yRrt2ZKUZ/V4itN4g==
+ dependencies:
+ ansi-styles "^6.1.0"
+ string-width "^5.0.1"
+ strip-ansi "^7.0.1"
+
+wrap-ansi@^8.1.0:
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
+ integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==
+ dependencies:
+ ansi-styles "^6.1.0"
+ string-width "^5.0.1"
+ strip-ansi "^7.0.1"
+
+wrappy@1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
+ integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
+
+write-file-atomic@^3.0.3:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8"
+ integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==
+ dependencies:
+ imurmurhash "^0.1.4"
+ is-typedarray "^1.0.0"
+ signal-exit "^3.0.2"
+ typedarray-to-buffer "^3.1.5"
+
+ws@^7.3.1:
+ version "7.5.10"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9"
+ integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==
+
+ws@^8.13.0:
+ version "8.17.1"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b"
+ integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==
+
+xdg-basedir@^5.0.1, xdg-basedir@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-5.1.0.tgz#1efba19425e73be1bc6f2a6ceb52a3d2c884c0c9"
+ integrity sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==
+
+xml-js@^1.6.11:
+ version "1.6.11"
+ resolved "https://registry.yarnpkg.com/xml-js/-/xml-js-1.6.11.tgz#927d2f6947f7f1c19a316dd8eea3614e8b18f8e9"
+ integrity sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==
+ dependencies:
+ sax "^1.2.4"
+
+yallist@^3.0.2:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
+ integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
+
+yallist@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
+ integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
+
+yaml@^1.10.0, yaml@^1.10.2, yaml@^1.7.2:
+ version "1.10.2"
+ resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
+ integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==
+
+yocto-queue@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
+ integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
+
+yocto-queue@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251"
+ integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==
+
+zwitch@^2.0.0:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-2.0.4.tgz#c827d4b0acb76fc3e685a4c6ec2902d51070e9d7"
+ integrity sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==