Store client addresses truncated by default
- Comparing
- v1 to v2
- Current
- Read the document
Context
Several Some of the records the panel keeps are worth reading there to be read afterwards. A session record is read to tell one session from from
another:
: whose it is, when it was last used, and whether it looks like the person whose account it belongs to. Tokens Tokens
and audit
audit records will be read for the same reason. Each would naturally record where the its request came from, and the
engineHTTP transport in RFC-0010 already represents a client address with one a single value object, ,
which all three will use.
A client address identifies a person, and in several jurisdictions is treated treat it as personal data in its own right.
. The panel panel
is self-hosted, so whoever runs an installation answers for what it stores, not the project.
Hashing is does not a way outavoid this. An address is drawn Addresses come from a small space, so every possible one can be hashed and compared
in compared in
seconds, leaving and a plain hash that of one is reversible. Keying the A keyed hash prevents thatcannot be reversed that way, and leaves a value but nobody reading the
record the record
can make sense ofof it either, which and being read is the only reason it the address was stored.
Decision
We I will store a client address truncated: , keeping the part identifying that identifies the network is kept, and dropping the part identifying that
identifies the machine
is droppedmachine. An operator will be able to configure full addresses instead, or none at all. An address will will
be recorded
recorded for a person to read, and nothing will use one to decide whether a request is legitimate.
Alternatives
Storing the full address by default. It is the most useful form for when investigating an incident. We I rejected this
because it is also the most identifying form to hold for every session of every user, on an installation whose operator
may not have considered what holding it means.
Storing a hash of the address. We I rejected this because a plain hash can be reversed by hashing every possible
address. A keyed hash cannot be reversed, but it cannot be read either, and reading it being read is the point.
Storing nothing. We I rejected this because sessions could then be told apart only by the their user agent, and telling them
telling
them apart is what makes the record worth reading.
Consequences
Easier:
- A record will show enough for someone to recognise their own session, or to spot one that does not belong, without holding the exact address it came from.
- An operator who needs full addresses, and has
a basisgrounds for keeping them, will choose them deliberately rather thandiscoveringdiscover that the panel kept them anyway.
Harder:
- Two clients
behindon one network will look alike, so an investigationneedingthat needs to tell them apartdependswill depend on the operator having chosen full addresses beforehand.
Constrained:
- Nothing
maywill be allowed to bind a session, a token or any other credential to the address it was created from.Binding logs outBinding would sign out anyone whose address changes, which happens to anyone moving between networks. - Everything that records an address will follow this, starting with sessions and extending to tokens and audit records.
- A record holding an address will
livelast no longer than the thing it belongs to, so the address will go whentheits session expires and is pruned.
Source adr/0022-truncated-client-addresses.md · commit 9444a99 · published