Commit Graph

288 Commits

Author SHA1 Message Date
Christian Grothoff
5cabe157dc
fix lag reporting 2019-09-04 05:16:04 +02:00
Christian Grothoff
4b5de800dc
add test 11 2019-09-04 04:11:40 +02:00
Christian Grothoff
e975dd3bdd
fix test 2019-09-04 04:07:57 +02:00
Christian Grothoff
97ca10d835
more auditor tests, misc auditor bugfixes 2019-09-04 04:06:16 +02:00
Christian Grothoff
161958a2bb
notes on next steps 2019-09-03 16:12:48 +02:00
Christian Grothoff
77da8db053
add test for wrong signature in reserve_out 2019-09-03 11:01:53 +02:00
Christian Grothoff
e9e58b7354
implement FIXME42: denomination signature checks (and test) in taler-auditor 2019-09-03 06:21:51 +02:00
Christian Grothoff
dd6a006201
bump test counter 2019-09-03 04:45:26 +02:00
Christian Grothoff
3eb0a3766f
add test for missing denomination signature checks 2019-09-03 04:44:48 +02:00
Christian Grothoff
e43b679337
expand test suite, minor style improvements 2019-09-03 04:29:43 +02:00
Christian Grothoff
05b92c2431
check h_wire/wire consistency 2019-09-03 04:16:28 +02:00
Christian Grothoff
736927f05a
another test, more fixes in auditor-report template 2019-09-03 03:14:23 +02:00
Christian Grothoff
67aeb85a13
misc. auditor bugfixes 2019-09-02 08:01:55 +02:00
Christian Grothoff
1891dfd4da
expand auditor test logic 2019-09-02 03:32:28 +02:00
Christian Grothoff
7b20ee8c8d
minor auditor report generation bugfixes: 2019-08-26 03:18:32 +02:00
Florian Dold
eb55997084
re-format code 2019-08-25 16:18:24 +02:00
Christian Grothoff
5cfb3d3b96
fix ftbfs 2019-08-25 15:40:47 +02:00
Christian Grothoff
1457e0adfc
skip accounts not configured for credit/debit 2019-08-24 23:14:15 +02:00
Christian Grothoff
322e97cb11
shutdown when done 2019-08-24 23:06:18 +02:00
Christian Grothoff
9044449f5b
round time 2019-08-24 22:53:32 +02:00
Christian Grothoff
71ae493c7a
refactor wire auditor to properly handle multiple accounts 2019-08-24 22:49:35 +02:00
Christian Grothoff
b5dd2bcdbb
indentation, discuss logic flaw, discuss todo in test-auditor.sh script 2019-08-23 21:14:50 +02:00
Christian Grothoff
135d365893
integrate auditor test into build system 2019-08-23 15:21:26 +02:00
Christian Grothoff
0d230131e6
check required commands exist 2019-08-23 15:17:54 +02:00
Christian Grothoff
b58410ce13
full audit generation in test 2019-08-23 15:10:10 +02:00
Christian Grothoff
6e6d6013be
fix test-auditor.sh check for no emergencies 2019-08-23 13:26:51 +02:00
Christian Grothoff
aba79636ab
more comments 2019-08-22 15:48:35 +02:00
Christian Grothoff
027f04a0f1
expand auditor test 2019-08-22 15:43:30 +02:00
Christian Grothoff
318f94bf90
update ignores 2019-08-22 15:30:02 +02:00
Christian Grothoff
5b2efa2b06
fixing #5767 2019-07-28 15:39:28 +02:00
Christian Grothoff
fbf94ee666
todos 2019-07-27 23:25:56 +02:00
Christian Grothoff
ccfe99a82d
more denom sig checking in auditor 2019-07-27 20:43:52 +02:00
Christian Grothoff
1057333666
add check that denomination was actually revoked if it is involved in /payback 2019-07-27 20:06:55 +02:00
Christian Grothoff
19c4feda56
handle payback cases when processing coin history in auditor 2019-07-26 22:03:15 +02:00
Christian Grothoff
d1c0c0f197
update auditordb to include payback losses 2019-07-25 19:26:25 +02:00
Christian Grothoff
03af37ef23
add ppc progress points for payback ops 2019-07-24 14:13:25 +02:00
Christian Grothoff
10e7f7c28c
fixing indentation only 2019-07-24 13:51:38 +02:00
Christian Grothoff
f1a9eaeb0b
fixing indentation only 2019-07-24 13:31:48 +02:00
Christian Grothoff
e9f43adb5b
use proper default configuration 2019-06-30 17:44:58 +02:00
Christian Grothoff
0ade45d315
log on no change to db 2019-06-30 17:29:09 +02:00
Christian Grothoff
7263711ad8
indenting 2019-06-30 17:13:02 +02:00
Christian Grothoff
72fea453aa
indenting 2019-06-30 17:13:01 +02:00
Christian Grothoff
9c194f79a5
adapt to GNUnet API change 2019-05-02 22:25:47 +02:00
Christian Grothoff
de9fdf860a
replace denom_pub with denom_pub_hash in exchange API to reduce bandwidth 2019-05-02 21:16:51 +02:00
ng0
79dcb72760
Refactor auditor/taler-wire-auditor.c for GNUNET_memcmp 2019-04-08 14:58:21 +00:00
ng0
0b8a87126b
Refactor auditor/taler-auditor.c for GNUNET_memcmp 2019-04-08 14:58:21 +00:00
Marcello Stanisci
3ccd61a89c
debug 2019-03-27 16:26:49 +01:00
Christian Grothoff
e235945df9
improve test case logging, fix process initialization of taler-auditor-exchange 2019-03-11 03:43:32 +01:00
Christian Grothoff
4dea098f54
actually disable 100 continue 2019-03-02 19:18:12 +01:00
Christian Grothoff
a98825675b
add option to be selective about dropping the exchange list 2019-02-14 14:23:16 +01:00
Marcello Stanisci
f68e7d0b07
Adding map: wire method name <--> plugin name. 2019-01-30 15:17:03 +01:00
Marcello Stanisci
452ab68423
fix DB 2019-01-29 22:05:23 +01:00
Marcello Stanisci
64de8a0fe6
Fix /deposit-confirmation as per JSON encode/decode. 2019-01-28 16:48:27 +01:00
Christian Grothoff
feec0d49ab
fix #5484 2019-01-08 19:10:38 +01:00
Christian Grothoff
7b10ad0851
fix numbering of EC codes, distinguish auditor DB store errors 2018-12-22 12:32:56 +01:00
Christian Grothoff
85aa6d17c7
fix misc. memory leaks 2018-11-25 14:51:31 +01:00
Christian Grothoff
a71756eee2
get auditor api test to pass (minimal version) 2018-11-18 14:41:27 +01:00
Christian Grothoff
ac850bfcd2
add auditing of deposit confirmations to auditor (#5447) 2018-11-04 17:36:56 +01:00
Christian Grothoff
332341cb7b
add check for #coins depoisted exceeding #coins issued (not just by amount), fixes #5446 2018-11-04 16:20:34 +01:00
Christian Grothoff
b39c3f9ca6
add missing default configs for auditor-httpd, make -u not mandatory as it is not needed for -r and check URL is well-formed if given; fix auditordb exchange insertion/removal logic 2018-11-04 10:48:32 +01:00
Christian Grothoff
ebc8ae68be
implement taler-auditor-exchange 2018-11-03 21:28:52 +01:00
Christian Grothoff
af41624591
implement /exchanges handler in auditor-httpd 2018-10-28 12:03:07 +01:00
Christian Grothoff
bd40aad7dc
track number of coins issued per denomination in auditor (not yet used) 2018-10-28 11:30:02 +01:00
Christian Grothoff
7b62deabac
split up progress points of auditor by coin/reserve/aggregation to minimize DB conflicts 2018-10-27 21:27:23 +02:00
Christian Grothoff
2024ccd2f9
complete auditor httpd side of deposit confirmation handling (auditordb not yet ready, though) 2018-10-27 19:26:17 +02:00
Christian Grothoff
4ad39b6b73
first skeleton of /deposit-confirmation API implementation; not yet complete, cannot work as-is, see FIXMEs 2018-10-21 20:52:26 +02:00
Christian Grothoff
eb1b6fbc97
add skeleton for auditor httpd 2018-10-06 17:29:03 +02:00
Christian Grothoff
a56e2e34bc
fix #5434 (no more salt in exchange wire replies) 2018-10-06 15:05:06 +02:00
Christian Grothoff
190a1fadaf
re-init logging so we can tell by PID who it is 2018-08-19 17:19:27 +02:00
Marcello Stanisci
eedb4dd4ed
auditor tool to reset db tables. 2018-04-23 17:04:19 +02:00
Christian Grothoff
aea82d3dcd
allow auditor to operate per-account 2018-04-02 21:12:18 +02:00
Christian Grothoff
cb55c1a3af
Changing configuration structure to enable multiple accounts.
This change enables using multiple wire plugins at the same time.
Also, we now distinguish between the wire plugin (i.e. EBICS or
taler_bank) and the wire method (i.e. SEPA or x-taler-bank) that
the wire plugin is implementing.  The "taler-bank" wire method
was renamed from "test" to "x-taler-bank".

This also changes the format of the /wire response of the exchange,
as we now need to return multiple accounts.  Note that wire fees
are specified per wire method, not per wire account.

taler-exchange-keyup now automatically signs all of the /wire
responses in the location specified by the configuration.

Account identification in wire plugins was changed to use
payto://-URLs instead of method-specific JSON fields.  Signing
and validation of /wire responses was moved from each wire
plugin to a generic validation method in libtalerutil (crypto)
or libtalerjson (for JSON-formatted inputs).
Convenience methods were added to generate JSON for wire accounts
(salting, signing).

Various section and option names were adjusted to streamline the
configuration and make it more consistent overall.  Documentation
was updated as well.
2018-04-02 14:29:44 +02:00
Christian Grothoff
a166ca7fec
fix #5281 for exchange: do preflight check that an old transaction is no longer running by accident 2018-03-12 11:33:10 +01:00
Florian Dold
6f9354cac6
better error message 2018-01-30 02:33:47 +01:00
Christian Grothoff
0906696ec2
bugfixes in auditor and rendering 2018-01-04 10:38:16 +01:00
Christian Grothoff
7d60d3a618
nicer formatting, some DCE 2018-01-04 09:22:33 +01:00
Christian Grothoff
5587732f52
fix auditor to properly verify wire fee signatures and more gracefully handle arithmetic amount issue 2018-01-04 00:41:19 +01:00
Christian Grothoff
76769e9429
fix test for '*' accepted encoding 2017-12-10 00:18:48 +01:00
Christian Grothoff
af6e9f134a
fix potential NPE 2017-12-09 23:51:49 +01:00
Christian Grothoff
1d40d2973c
initialize rev_rowid always 2017-12-09 23:35:04 +01:00
Christian Grothoff
042616899f
largely fix #5077 2017-12-06 19:24:00 +01:00
Christian Grothoff
499247a480
fixing #5178 2017-11-29 20:23:08 +01:00
Christian Grothoff
111abd5944
do not break on issues we log to JSON 2017-11-20 21:56:06 +01:00
Christian Grothoff
7749a683ba
fix issue in wire auditor's history processing 2017-11-20 21:55:24 +01:00
Christian Grothoff
11269125fa
implement #5177 (not yet tested) 2017-11-20 14:20:09 +01:00
Christian Grothoff
8f48db8fdf
implementing #4961: detection of missing aggregate transfers 2017-11-19 22:36:58 +01:00
Christian Grothoff
53be6c6337
update bug refs to #5177 2017-11-12 15:51:53 +01:00
Christian Grothoff
8440de1333
work on #5077: reserve_pub vs. wtid issue, add reject functionality to wire plugin API (with stub implementations for now) 2017-11-12 15:46:52 +01:00
Christian Grothoff
f299130c50
make -m option optional for taler-auditor and taler-wire-auditor 2017-11-12 14:11:05 +01:00
Christian Grothoff
1665941154
fix misc typos in auditor report logic 2017-11-08 19:07:21 +01:00
Christian Grothoff
1139f74ffe
fix minor wire auditor bugs, add samples of output 2017-11-08 18:44:12 +01:00
Christian Grothoff
f8af22b882
more work on wire auditor and reporting (#4958) 2017-11-07 14:38:45 +01:00
Christian Grothoff
45c443f348
update auditor report format to capture nicely all diagnostics that may currently be generated by the auditor (closes #4962) 2017-11-06 19:11:43 +01:00
Christian Grothoff
cc09fbbb29
working on #4962 2017-11-06 14:54:52 +01:00
Christian Grothoff
c5f9c0ca88
work on making auditor reports nicer (#4962) 2017-11-06 00:03:08 +01:00
Christian Grothoff
a946dc30bb
start template for generating nicely formatted auditor reports 2017-10-26 22:39:59 +02:00
Christian Grothoff
fbc685a76c
make --wire argument mandatory 2017-10-17 19:53:43 +02:00
Christian Grothoff
4a84520514
resolve #4963 2017-10-16 17:57:29 +02:00
Christian Grothoff
2cddf524a8
work on #4963 for taler-auditor 2017-10-16 17:57:29 +02:00
Christian Grothoff
d970d6abb4
suppress compiler warning 2017-10-15 17:42:41 +02:00
Christian Grothoff
7a232a0941
add references to Mantis bugs to TODO/FIXME comments in code 2017-10-12 20:56:16 +02:00
Christian Grothoff
cb13afaf54
complete first pass of taler-wre-auditor's wire-out audit logic 2017-10-12 20:46:42 +02:00
Christian Grothoff
600d1684e3
completing reserves_in logic of taler-wire-auditor, but not tested 2017-10-12 16:26:52 +02:00
Christian Grothoff
1261971987
yet another TALER_amount_get_zero with missing rval check 2017-10-06 22:08:35 +02:00
Christian Grothoff
d86a6615cc
really carefully check strtoll() return value before casting to uint64_t 2017-10-06 22:04:51 +02:00
Christian Grothoff
ad97b8d439
use proper type for do_shutdown() callback 2017-10-06 21:36:40 +02:00
Christian Grothoff
7f37c2ae00
more return value checks on TALER_amount_get_zero 2017-10-06 21:21:20 +02:00
Christian Grothoff
2f715c27f8
check return value from TALER_JSON_hash 2017-10-06 20:02:28 +02:00
Christian Grothoff
85a2d3dc0e
modify wire auditor to deal with asynchrony of WIRE plugin API 2017-09-30 21:28:17 +02:00
Christian Grothoff
6a4f6b1836
also store wire position in auditordb 2017-09-30 20:47:52 +02:00
Christian Grothoff
96e04d33e1
update auditordb API to support logic for taler-wire-auditor 2017-09-30 20:29:19 +02:00
Christian Grothoff
a0d410e01b
fix mapping of auditor sigs to DKs, avoid one hash operation by caching hash value 2017-09-26 15:05:27 +02:00
Christian Grothoff
e78e0f6c4e
starting point for #4948 2017-09-25 23:27:16 +02:00
Christian Grothoff
7123015dbc
create tables in taler-auditor-sign instead of failing obscurely 2017-09-13 14:29:07 +02:00
Christian Grothoff
2c6956f32a
clean up PQ tables (renamings, remove redunant column), and primarily fix #4751 2017-07-14 17:43:07 +02:00
Christian Grothoff
ba95b05256
log interesting errors always 2017-06-25 12:59:46 +02:00
Christian Grothoff
4c6ef74358
update taler-auditor to fix #5010 in auditor as well, technically done, but untested 2017-06-25 01:46:19 +02:00
Christian Grothoff
c42d544736
convert rest of exchangedb plugin API to fix #5010-issues 2017-06-24 16:15:42 +02:00
Christian Grothoff
92e6744ac0
address #5010 for /refund 2017-06-19 16:07:34 +02:00
Christian Grothoff
a57cf67f31
a bit more work on #5010 2017-06-11 02:12:56 +02:00
Florian Dold
85350ced32
rename proposal_data to contract_terms (see #4879) 2017-05-29 01:15:41 +02:00
Marcello Stanisci
02962b4f12
auditor doesn't sign a zero-length list of denominations 2017-05-18 13:48:15 +02:00
Christian Grothoff
673509fac8
fix auditor signing process: include signature over refund fee 2017-05-11 11:02:49 +02:00
Christian Grothoff
20aad54c3e
remove dead transfer details field from reserves_in (API, exchangedb, etc.) 2017-05-08 13:18:36 +02:00
Christian Grothoff
76545519c6
updating DB schema for new wire history operations and future auditor checks of wire transfers 2017-05-05 13:41:32 +02:00
Christian Grothoff
27c921c7c4
finished implementing #4956 in principle, but not yet tested 2017-04-20 21:38:02 +02:00
Christian Grothoff
487237381d
fix misc doxygen issues 2017-04-20 07:49:56 +02:00
Christian Grothoff
b0811dd868
add support for closed reserves to taler-auditor 2017-04-19 21:41:53 +02:00
Christian Grothoff
123b1868ab
implement #4983 2017-04-19 13:46:38 +02:00
Christian Grothoff
62afe341b7
fix #4984 2017-04-16 17:21:26 +02:00
Christian Grothoff
be6dde89db
fix use of uninit value on PAYBACK path in auditor 2017-04-16 02:16:41 +02:00
Christian Grothoff
11b8710a5c
implement checking of denomination revocation status in auditor 2017-04-08 22:52:32 +02:00
Christian Grothoff
d27f7f34b4
have auditor report command to handle denomination key revocation on emergency-detection (#3887) 2017-04-08 20:11:37 +02:00
Christian Grothoff
930101256e
check payback signatures in auditor 2017-04-04 17:05:38 +02:00
Christian Grothoff
4b5efa4e81
towards supporting #3887 in the auditor 2017-04-04 16:27:27 +02:00
Christian Grothoff
4b82a591c5
handle /payback in auditor when checking reserves 2017-04-04 15:38:58 +02:00
Christian Grothoff
8d9dc14227
renaming GNUNET_GETOPT-symbols to match latest changes in GNUnet 2017-03-25 23:39:30 +01:00
Christian Grothoff
e4b209c724
use nicer text for audit report 2017-03-20 04:40:52 +01:00
Christian Grothoff
ab0286f583
finish #3775, including addition of man page 2017-03-20 04:38:08 +01:00
Christian Grothoff
3186dbf58a
fix log level of auditor, elimintate REFERENCES constraint for now, unclear if it is needed/useful 2017-03-20 04:29:42 +01:00
Christian Grothoff
73321daf5a
deal with persisting wire/aggregation fee data in auditor 2017-03-20 04:17:06 +01:00
Christian Grothoff
9fe8da0cc6
deal with aggregation fee lookup and calculations in auditor 2017-03-20 03:58:51 +01:00
Christian Grothoff
4599b25895
report wire amount minus aggregation fee in wire_out table, start logic in auditor to check wire amounts including wire fees 2017-03-20 03:32:16 +01:00
Christian Grothoff
1ce5651373
fix risk/fee calculations in auditor 2017-03-20 03:06:23 +01:00
Christian Grothoff
3fde028650
fix auditor progress point issue 2017-03-20 02:45:33 +01:00
Christian Grothoff
a38fa32484
fixing misc auditor issues 2017-03-20 02:29:33 +01:00
Christian Grothoff
7115eda899
fix misc minor issues in new auditor logic 2017-03-20 00:26:11 +01:00
Christian Grothoff
45d96d8168
minor auditor bugfixes 2017-03-19 13:53:50 +01:00
Christian Grothoff
424b327395
implement check_transaction_history() 2017-03-19 06:50:08 +01:00
Christian Grothoff
9b4d0634e1
simplify analysis by returning denom_pub with rest of coin transaction data instead of bothering fetching with coin history 2017-03-19 01:55:37 +01:00