diff --git a/panel/src/panel/views.py b/panel/src/panel/views.py index 341a9135..ec649576 100644 --- a/panel/src/panel/views.py +++ b/panel/src/panel/views.py @@ -23,6 +23,10 @@ class Index(TemplateView): template_name = 'index.html' +class Index(TemplateView): + template_name = 'index.html' + + class AccountDetail(LoginRequiredMixin, DetailView): model = User template_name = 'account_detail.html' @@ -109,6 +113,12 @@ class DeploymentStatus(ConfigurationForm): # pass in form info to our deployment "DEPLOYMENT": config.json() } + # 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" + # direnv wants this run upfront, and chaining in subprocess feels awkward + subprocess.check_call(["direnv", "allow"], cwd=cwd) cmd = [ "nix", "develop", @@ -119,9 +129,6 @@ class DeploymentStatus(ConfigurationForm): "apply", "test", ] - deployment_result = subprocess.run( - cmd, - cwd=settings.repo_dir, - env=env, - ) + deployment_result = subprocess.run(cmd, cwd=cwd, env=env) + logger.debug("deployment_result: %s", deployment_result) return deployment_result, config