MCPcopy Index your code
hub / github.com/coder/coder / sanitizeEnv

Function sanitizeEnv

support/support.go:1229–1235  ·  view source on GitHub ↗

sanitizeEnv modifies kvs in place and replaces the values all non-empty keys with the string ***REDACTED***

(kvs map[string]string)

Source from the content-addressed store, hash-verified

1227// sanitizeEnv modifies kvs in place and replaces the values all non-empty keys
1228// with the string ***REDACTED***
1229func sanitizeEnv(kvs map[string]string) {
1230 for k, v := range kvs {
1231 if v != "" {
1232 kvs[k] = "***REDACTED***"
1233 }
1234 }
1235}

Callers 4

DeploymentInfoFunction · 0.85
WorkspaceInfoFunction · 0.85
AgentInfoFunction · 0.85
connectedAgentInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected