MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / RedactBytes

Method RedactBytes

cli/internal/secrets/secrets.go:34–39  ·  view source on GitHub ↗
(msg []byte)

Source from the content-addressed store, hash-verified

32}
33
34func (s *SecretAwareRedactor) RedactBytes(msg []byte) []byte {
35 for v, k := range s.secrets {
36 msg = bytes.ReplaceAll(msg, []byte(v), []byte(k))
37 }
38 return msg
39}
40
41func (s *SecretAwareRedactor) AddSecretEnv(envs []string) {
42 for _, v := range envs {

Callers 2

RedactStrMethod · 0.95
WriteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected