run direnv allow in panel to ensure it can get proxmox credentials

This commit is contained in:
Kiara Grouwstra 2025-05-11 12:20:11 +02:00
parent a9b0e88315
commit 4af36e4f65
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -116,7 +116,7 @@ class DeploymentStatus(ConfigurationForm):
# XXX should we not log this if it may show proxmox credentials from `.envrc`s?
# those could instead be passed as sensitive TF vars, but that would not address this.
logger.debug("env: %s", env)
cwd = f"{settings.repo_dir}/launch"
cwd = f"{settings.repo_dir}/infra/operator"
# direnv wants this run upfront, and chaining in subprocess feels awkward
subprocess.check_call(["direnv", "allow"], cwd=cwd)
cmd = [