redact

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package redact removes secrets from text that leaves the device in a diagnostic report (the mobile apps' and the desktop app's): passwords, tokens, keys. Host IDs, names and addresses stay, because following a connection needs them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SecretKey

func SecretKey(k string) bool

SecretKey reports whether an attribute named k holds a secret.

func Text

func Text(s string) string

Text removes secrets from s: gateway tokens in URLs, secret query parameters and key=value pairs, authorization headers, PEM private keys and long opaque tokens. Host IDs, host names and IP addresses are kept.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL