fix(coderd): mark provisioner daemon psk as secret (#12322)

* fix(coderd): mark provisioner daemon psk as secret

Marks provisioner daemon PSK with the secret annotation.
This ensures it will be scrubbed from API requests to
/api/v2/deployment/config.

* make gen
This commit is contained in:
Cian Johnston
2024-02-27 16:33:32 +00:00
committed by GitHub
parent 19baca55da
commit b9e2d0a400
5 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1408,7 +1408,7 @@ when required by your organization's security policy.`,
Env: "CODER_PROVISIONER_DAEMON_PSK",
Value: &c.Provisioner.DaemonPSK,
Group: &deploymentGroupProvisioning,
YAML: "daemonPSK",
Annotations: clibase.Annotations{}.Mark(annotationSecretKey, "true"),
},
// RateLimit settings
{
+3
View File
@@ -71,6 +71,9 @@ func TestDeploymentValues_HighlyConfigurable(t *testing.T) {
flag: true,
env: true,
},
"Provisioner Daemon Pre-shared Key (PSK)": {
yaml: true,
},
}
set := (&codersdk.DeploymentValues{}).Options()