|
|
il y a 1 mois | |
|---|---|---|
| .. | ||
| tests | il y a 1 mois | |
| .terraform.lock.hcl | il y a 1 mois | |
| README.md | il y a 1 mois | |
| cloud-init.yaml.tftpl | il y a 1 mois | |
| main.tf | il y a 1 mois | |
| outputs.tf | il y a 1 mois | |
| variables.tf | il y a 1 mois | |
| versions.tf | il y a 1 mois | |
One hardened droplet that runs Docker Engine and Portainer CE, set up by
cloud-init. It is the machine of stage 3 (the workload host); the stack
stacks/30-workloads gives it its tag, its
firewall and its Twingate resources. There is no Twingate connector in this
module and no inbound path of its own.
Unapplied. Only stacks/30-workloads calls this module, behind a switch
that defaults to off, and the stage is not approved. Nothing here has run on a
real machine.
Workloads are compose stacks deployed in Portainer over Twingate, not by this module. One is written and documented but not applied: workloads/searxng (SearXNG and its Valkey cache). It needs nothing from this module beyond the host and changes none of its resources. Its README says what was verified and what was not, including that its memory need is unknown.
reboot_time).cah-admin) with one public key, no
password, root locked; sshd drop-in (PermitRootLogin no,
PasswordAuthentication no, AllowUsers cah-admin); a sysctl drop-in that
leaves ip_forward alone because Docker needs it.sshd -t && systemctl restart ssh, before any application is
installed.cah-apt-key-check), before it is trusted. No piped installer.
Then Portainer CE, pinned to an exact tag./etc/docker/daemon.json has no hosts key, so the Docker API is the local
socket only, and its default bind address is 127.0.0.1.${PORTAINER_BIND:?}:9443:9443.
cah-portainer-up reads the VPC address from the droplet metadata endpoint
and writes it to .env; with no private address nothing starts. The Edge
agent port (8000) and plain HTTP (9000) are not published.instance_id, instance_name, droplet_urn, private_ip, size,
portainer_port. user_data is never an output.
docker_apt_key_fingerprint is 9DC858229FC7DD38854AE2D88D81803C0EBFCD88.
The key file at https://download.docker.com/linux/ubuntu/gpg was downloaded
with plain curl, the page https://docs.docker.com/engine/install/ubuntu/
(which points apt at that exact URL) was fetched the same day, and
gpg --show-keys --with-colons in an Ubuntu 24.04 container listed one
primary key (Docker Release (CE deb) <docker@docker.com>) with exactly this
fingerprint. It matched what was first written from memory, so nothing
changed. The published install page itself does not print the fingerprint;
the proof is the downloaded key.Docker's apt origin spelling for unattended upgrades, the metadata path for the private address, and Portainer's behavior with these flags are written from the vendors' documentation and mocked tests only. The stage guide lists the checks to run after the first boot.