refactor(scenarios): split monolithic configuration into individual files

- Split `scenarios/scenarios.json` into individual JSON files under `scenarios/data/` named `<scenario-id>.json`
- Split `scenarios/bundles.json` into individual JSON files under `scenarios/bundles/` named `<bundle-id>.json`
- Updated `backend/server.js` to dynamically load scenario and bundle files from their respective directories
- Updated documentation in `scenarios/SCHEMA.md` and `README.md` to reflect the new repository layout and contributor workflow

Signed-off-by: Abhinav Sinha <[email protected]>
This commit is contained in:
Abhinav Sinha
2026-06-15 07:52:47 +05:30
parent 2104c5fea6
commit 124e5276d4
94 changed files with 4256 additions and 4217 deletions
+33
View File
@@ -0,0 +1,33 @@
{
"id": "cks-mcq-kubelet-auth",
"title": "Securing the Kubelet",
"category": "Cluster Setup",
"difficulty": "Medium",
"type": "mcq",
"weight": 2,
"description": "The kubelet exposes its own API on port 10250, which can allow an attacker to run `exec` commands on pods if left unsecured. Which configuration setting in the kubelet config file ensures unauthenticated requests are rejected?",
"options": [
{
"id": "a",
"text": "authorization.mode: Webhook"
},
{
"id": "b",
"text": "readOnlyPort: 0"
},
{
"id": "c",
"text": "authentication.anonymous.enabled: false"
},
{
"id": "d",
"text": "protectKernelDefaults: true"
}
],
"correct_option": "c",
"explanation": "Setting `authentication.anonymous.enabled: false` ensures that the kubelet will reject any API requests that do not present a valid client certificate or bearer token.",
"hints": [],
"setup_commands": [],
"default_namespace": "default",
"teardown_commands": []
}