Skip to content

Commit

Permalink
docs: disable SSH access to AKS nodes
Browse files Browse the repository at this point in the history
azure cli recommends to do so, therefore we integrate this step in our setup guide. SSH access to the node does not undermine CC security in any way.

Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jan 21, 2025
1 parent b20ffd8 commit 78f04de
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion docs/docs/getting-started/cluster-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ az feature register \
--name "KataCcIsolationPreview"
```

Also enable the feature flag to disable SSH access to the AKS node (recommended, not required):

```bash
az feature register \
--namespace "Microsoft.ContainerService" \
--name "DisableSSHPreview"
```

The registration can take a few minutes. The status of the operation can be checked with the following
command, which should show the registration state as `Registered`:

Expand All @@ -41,6 +49,10 @@ az feature show \
--namespace "Microsoft.ContainerService" \
--name "KataCcIsolationPreview" \
--output table
az feature show \
--namespace "Microsoft.ContainerService" \
--name "DisableSSHPreview" \
--output table
```

Afterward, refresh the registration of the ContainerService provider:
Expand Down Expand Up @@ -99,7 +111,7 @@ az aks create \
--node-vm-size Standard_DC4as_cc_v5 \
--workload-runtime KataCcIsolation \
--node-count 1 \
--generate-ssh-keys
--ssh-access disabled
```

Finally, update your kubeconfig with the credentials to access the cluster:
Expand Down
2 changes: 1 addition & 1 deletion packages/create-coco-aks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ az aks create \
--node-vm-size Standard_DC4as_cc_v5 \
--workload-runtime KataCcIsolation \
--node-count 1 \
--generate-ssh-keys
--ssh-access disabled

az aks get-credentials \
--resource-group "${name}" \
Expand Down

0 comments on commit 78f04de

Please sign in to comment.