Security foundations Data classification 2 min read

What is data classification?

A developer wants to log a request ID and the access token beside it. Both are strings. Why should the logging system treat them differently?

  1. Classify fields by what they reveal or allow

    The request ID helps support find an event. In this example it only links related records. The access token is a credential that can authorize requests while it is valid. Their uses give them different sensitivity.

    Keep the request ID for tracing and omit the access token from the log. Log eventRequest IDKeep for tracingAccess tokenOmit credential

    In short Classify data by what someone could do with it.

  2. Use the classification to decide what to retain

    Record the request ID and omit the token. This lets support trace the request without putting a credential in logs that may be copied, retained, or visible to more people.

    In short Keep the field needed for troubleshooting and omit the credential.

Where this example stops

A request ID can still link to private records elsewhere. Decide who can see the logs and how long to keep them based on what the full event reveals.

Keep this

Classify data before sending it somewhere new.

Ask what each field reveals or permits, then apply the handling rule for that sensitivity.

Sources

Last reviewed 21 November 2026.

Next byte · Security foundations Public and private keys