Commit Graph
6 Commits
Author SHA1 Message Date
Daniel Eggert 879c1bff09 Fix Log Redaction of PII (#683) 2022-02-07 17:35:50 +01:00
David Evans 8ac6696b3c Implement encoding logging mode for redaction (#678)
Resolves #662

Command/Response Encoder can be configured using loggingMode. If turned on then user-sensitive strings won't be encoding, but any metadata will.

For example, 1 LOGIN username password becomes 1 LOGIN "" "", thereby hiding the user's information.
2022-01-26 15:50:12 -08:00
David Evans 11469f3d9b Conform CommandStreamPart, TaggedCommand, and Command to CustomDebugStringConvertible (#647) 2021-12-09 16:45:17 +00:00
David Evans 8565ac900e Rename Command types to better represent what they are (#557)
Resolves #522

Some command names were misleading, they should be better now. Also removed a redundant initialiser.

PartialCommandStream -> SynchronizedCommand

CommandStream -> CommandStreamPart
2021-05-21 16:39:22 +01:00
David Evans d54da15714 Cleanup command encoding (#305)
* Simplify

* Fix sanity

* Remove duplicate logic

* Fix typo

* Write out

* Command encoder tests

* Fix sanity
2020-09-10 11:14:34 +01:00
David Evans 701d2d54d7 Refactor and fix Append (#228)
* Support encoding append commands

* Yay it works

* Cleanup 1

* Cleanup 2

* Fix sanity

* Fix command decoder test

* Fix parsing partial commands sync literals

* Fix parser stress tests

* Fix tests

* Remove unused code

* Code refactor and cleanup

* Fix sanity

* Tests

* Tests and sanity

* Encode AppendCommand tests

* Fix sanity
2020-06-30 12:56:56 +01:00