codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.62k stars 343 forks source link

Immuclient tampering example #1444

Closed Otacon27 closed 1 year ago

Otacon27 commented 2 years ago

Is it possible to have an example of the output immuclient proviedes in case of a tampering detection?

In other words, what kind of output should I look for in /var/log/immuclient/immuclient.log when tampering is detected?

byo commented 2 years ago

Hi @Otacon27

Here are some examples with immudb 1.4.0:

  1. State on the client diverged from the server
$ ./immuclient safeget a
data is corrupted
  1. State on the client indicates that there should be more transactions on the server (e.g. database was truncated)
$ ./immuclient safeget a
 illegal state
$ ./immuclient safeset a a
rpc error: code = InvalidArgument desc = illegal state