redaction
Removing or hiding sensitive values, such as tokens or personal data, before data is logged, displayed or shared.
In more detail
Redact at the point of logging rather than hoping nobody prints the value, and test that redaction works. Typical targets are passwords, tokens, cookies, card numbers and personal data.
Example
The course redacts in two central places rather than at every call site: a secret type whose printed form hides the value, and a logging filter that masks anything shaped like a live key.Related terms
- log — A time-stamped record of an individual event in a system, such as one request being handled; structured logs record it as named fields rather than free text.
- personally identifiable information — Any information that can identify a person, directly or combined with other data, such as a name, email address, location or account number.
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
- structured logging — Writing each log entry as named fields, such as status, duration and request identifier, instead of a free-text sentence.
- telemetry — The data a running system sends out about itself, such as logs, metrics and traces.
- access log — A log file where a web server writes one line per request, with the client address, time, method, path and status code.
- secret wrapper type — A small class that holds a secret and refuses to print it, so it can travel through code without leaking into logs.
Taught in
- Observability: Logs, Metrics, Traces — Modern API Architecture: REST, GraphQL & gRPC
- Handling PII And Data Privacy — Modern API Architecture: REST, GraphQL & gRPC
- Environment Configuration: Secrets & Multi-Stage — Production Full-Stack Engineering
- Structured Logging & Correlation IDs: Context Stitching — Production Full-Stack Engineering
- Why Secrets Leak — Application Security & Threat Modeling for Engineers
- The Environment Variable Trap — Application Security & Threat Modeling for Engineers
- Moving To A Secret Manager — Application Security & Threat Modeling for Engineers
- Secret Scanning — Application Security & Threat Modeling for Engineers