MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / isSensitiveConfigKey

Function isSensitiveConfigKey

cmd/client/diagnostics.go:293–312  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

291}
292
293func isSensitiveConfigKey(key string) bool {
294 if key == "" {
295 return false
296 }
297 sensitiveParts := []string{
298 "key",
299 "secret",
300 "password",
301 "pass",
302 "psk",
303 "token",
304 "credential",
305 }
306 for _, part := range sensitiveParts {
307 if strings.Contains(key, part) {
308 return true
309 }
310 }
311 return false
312}
313
314func redactSecretString(s, label string) string {
315 if s == "" {

Callers 1

redactJSONValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected