Skip to content

Commit

Permalink
Disable compute-init by default, warn of security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Feb 18, 2025
1 parent 25eea00 commit 458e0bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ansible/roles/compute_init/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Experimental functionality to allow compute nodes to rejoin the cluster after
a reboot without running the `ansible/site.yml` playbook.

**CAUTION:** The approach used here of exporting cluster secrets over NFS
is considered to be a security risk due to the potential for cluster users to
mount the share on a user-controlled machine by tunnelling through a login
node. This feature should not be enabled on production clusters at this time.

To enable this:
1. Add the `compute` group (or a subset) into the `compute_init` group. This is
the default when using cookiecutter to create an environment, via the
Expand Down
3 changes: 1 addition & 2 deletions environments/common/layouts/everything
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ cluster
[sshd]
# Hosts where the OpenSSH server daemon should be configured

[compute_init:children]
[compute_init]
# EXPERIMENTAL: Compute hosts to enable joining cluster on boot on
compute

[k3s:children]
# Hosts to run k3s server/agent
Expand Down

0 comments on commit 458e0bb

Please sign in to comment.