Rotate One Secret with -replace

easy 10 XP ~4 minHands-on lab

This machine has OpenTofu, the open-source tool that reads the same configuration language as Terraform. Run it as tofu (terraform runs the same program). There is no network: the local, random and null providers are already installed.

/home/student/infra/indexer generates two passwords, random_password.db and random_password.api, and writes them to files. The database password may have leaked.

Task

  • Generate a new value for random_password.db (and its file).
  • random_password.api and its file must keep their current values.
  • Do not change the configuration. A new plan must report no changes.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

TerminalNot started

Your machine is ready to start

Create a free account to open a machine and get graded.