mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user