Cloud security lab
Review an OpenTofu plan.
A pull request updates an internal DigitalOcean workload. Read the sample plan and decide whether you would approve it.
Scenario
The worker stores job data on its local disk. The pull request includes no migration or rollback plan.
Deployment policy
- Administrative access must stay on the private network.
- Replacing a worker with local data requires an approved migration and rollback plan.
+Create~Update in place-/+Destroy and recreate
$ tofu plan
OpenTofu will perform the following actions:
# digitalocean_droplet.worker must be replaced
-/+ resource "digitalocean_droplet" "worker" {
~ id = "100001" -> (known after apply)
~ region = "fra1" -> "ams3" # forces replacement
}
# digitalocean_firewall.private will be updated in-place
~ resource "digitalocean_firewall" "private" {
+ inbound_rule {
+ protocol = "tcp"
+ port_range = "22"
+ source_addresses = ["0.0.0.0/0", "::/0"]
}
}
# digitalocean_tag.observability will be created
+ resource "digitalocean_tag" "observability" {
+ name = "observability"
}
# digitalocean_monitor_alert.cpu will be updated in-place
~ resource "digitalocean_monitor_alert" "cpu" {
~ description = "Worker CPU alert" -> "Private worker CPU alert"
}
Plan: 2 to add, 2 to change, 1 to destroy.
Submit your review
Flag every change that should block deployment, then select your verdict.