Граф коммитов

218 Коммитов

Автор SHA1 Сообщение Дата
Julien Maffre 9e0e908012
Remove `/gov/read` and `/gov/query` endpoints (#2442) 2021-04-12 10:54:42 +01:00
Eddy Ashton 229850184d
Add indentation to make read_ledger.py collapsible (#2431) 2021-04-08 15:09:36 +01:00
Julien Maffre 095acd4dcb
Print size of private domain in read_ledger.py utility (#2424) 2021-04-08 11:19:05 +01:00
Amaury Chamayou 82a7f808a0
Code id gov + misc fixes (#2406) 2021-04-06 09:23:42 +01:00
Amaury Chamayou f59d416b57
Node gov actions (#2405) 2021-04-01 20:57:22 +01:00
Julien Maffre c9c05cdc81
More js actions (#2396) 2021-04-01 20:19:31 +01:00
Julien Maffre c3494c9aad
New Python read ledger tool (#2364) 2021-04-01 11:37:37 +01:00
Maik Riechert f0e43aa99f
remove set_js_app, {set|remove}_module & rename {deploy->set}_js_app (#2391) 2021-03-31 20:15:00 +01:00
Eddy Ashton 805902dba5
Add semicolons, use JSON.stringify for object equality (#2393) 2021-03-31 19:03:00 +01:00
Maik Riechert 1fca50998a
js gov: exceptions as errors (#2382) 2021-03-31 14:19:51 +01:00
Julien Maffre 244e860669
JS proposal actions (#2372) 2021-03-30 18:33:14 +01:00
Maik Riechert 1ade171496
JS governance: Use exported functions directly (#2377) 2021-03-30 16:39:17 +01:00
Eddy Ashton 3592fc0e2f
Add JS proposals and votes to proposal_generator (#2370) 2021-03-30 14:01:17 +01:00
Julien Maffre 7af1179111
Remove msgpack from framework - Part I (#2343) 2021-03-29 12:40:20 +01:00
Julien Maffre 160f899f37
Serialise code ID as hex string (#2361) 2021-03-26 13:48:07 +00:00
Eddy Ashton 6b56644d93
Add named TxID type to Python (#2354) 2021-03-25 16:37:34 +00:00
Eddy Ashton 44ac55d223
/tx and /commit use a single transaction_id rather than separate view and seqno (#2347) 2021-03-25 10:06:37 +00:00
Julien Maffre 6f9261d01f
Unify open network and accept recovery proposals (#2332) 2021-03-24 09:50:28 +00:00
Julien Maffre 2e3254ce57
Remove retired members from the store (#2330) 2021-03-23 10:58:29 +00:00
Julien Maffre 9ec30330ec
Change serialisation format for service maps (#2301) 2021-03-18 11:25:55 +00:00
Maik Riechert 674c4f190b
PascalCase enum members in REST API responses (#2323) 2021-03-16 19:23:54 +00:00
Eddy Ashton 8996d5d15c
Add API for getting View from SeqNo (#2283) 2021-03-10 19:21:20 +00:00
Julien Maffre de2ae8c3e9
Use hash of certificate for user and member IDs (#2279) 2021-03-10 18:05:49 +00:00
Amaury Chamayou 06d462b24c
Historical receipts (#2270) 2021-03-09 15:44:13 +00:00
Julien Maffre a62eef9466
Use hash of node's public key as unique node identifier (#2241) 2021-03-05 09:54:16 +00:00
Eddy Ashton 17834663f1
Combine view and seqno into single HTTP header (#2257) 2021-03-03 15:02:59 +00:00
Maik Riechert 0458b02398
Support CA cert bundles (#2222) 2021-03-01 12:03:30 +00:00
Syed Wali Hamza 6c94bda814
Add ability for implicit ledger verification in ccf/ledger.py (#2193) 2021-02-22 14:11:40 +00:00
Amaury Chamayou 96edbc9db6
Do not set content type on empty requests (#2212) 2021-02-19 16:00:02 +00:00
Christoph M. Wintersteiger cd5792537a
Hash harmonisation and signature exploration. Fixes #2106. (#2123) 2021-02-18 15:13:14 +00:00
Julien Maffre 3c95d76f7f
Rename internal tables (#2166) 2021-02-08 13:06:59 +00:00
Julien Maffre 346a561f83
Split client and ledger tutorial (#2172) 2021-02-08 11:39:27 +00:00
Amaury Chamayou cf940d3574
Replaces references to master with references to main (#2171) 2021-02-05 11:32:19 +00:00
Julien Maffre 4fad6df042
Update quote format and record endorsements in KV (#2161) 2021-02-04 18:46:03 +00:00
Maik Riechert 1921801cff
rename /quote to /quotes/self (#2156) 2021-02-02 16:55:57 +00:00
Eddy Ashton 6d61f53682
Remove x-ccf-global-commit header (#2144) 2021-02-02 14:05:32 +00:00
Syed Wali Hamza 38769b138b
Fix Signatures Table Name in Python Ledger module (#2130) 2021-01-29 16:29:27 +00:00
Eddy Ashton 321cd89fc7
Suffix bodies with a space to avoid escaping loguru closing tag (#2108)
This fixes the failure in the Daily Build, so I'm overriding the CI check.
2021-01-25 11:45:19 +00:00
Maik Riechert e6cb6c9b99
Change schemas of /recovery_share GET/POST endpoints (#2089) 2021-01-19 14:39:17 +00:00
Eddy Ashton 5e8fd5c505
Allow redirects by default, but make this overridable (#2083)
Squashing and merging, this should fix the daily.
2021-01-15 17:26:07 +00:00
Julien Maffre 4c2de84448
tutorial fix (#2075) 2021-01-13 19:20:15 +00:00
Alex 74e8b9fb20
Track the max version a transaction would conflict with (#2056) 2021-01-08 19:34:48 +00:00
Eddy Ashton 20e2d6ed11
Fix handling of corrupted HTTP signatures on secp256k1 (#2058) 2021-01-08 17:11:13 +00:00
Julien Maffre d07dafef87
Update tutorial for authentication policies (#2052) 2021-01-08 15:57:44 +00:00
Eddy Ashton 1ce5c093bb
Fix signature verification (#2051) 2021-01-07 17:35:25 +00:00
Amaury Chamayou 24361ea1d4
Fix signature auth on read-only member endpoints (#2044) 2021-01-06 16:22:56 +00:00
Maik Riechert 30055d4b02
Pin Python package dependencies more weakly (#2046) 2021-01-06 10:46:04 +00:00
Julien Maffre e204222fa1
Governance history snapshot fix (#2036) 2020-12-18 17:15:23 +00:00
Eddy Ashton 8d050636d6
Support multiple auth policies, decouple auth from frontends (#2010) 2020-12-17 16:37:34 +00:00
Amaury Chamayou 092d799633
Only store valid Code IDs (#2011) 2020-12-11 11:09:53 +00:00
Julien Maffre 216d15e8bc
Install logging JS app (#1932) 2020-11-27 08:53:09 +00:00
Maik Riechert 9dfadcd055
set_ca_cert/remove_ca_cert (#1917) 2020-11-24 16:39:57 +00:00
Maik Riechert 6528a33907
Add JWT public signing key auto-refresh (#1908) 2020-11-23 17:50:27 +00:00
Eddy Ashton 6b64b2ac45
Remove lua_generic (#1905) 2020-11-20 15:17:25 +00:00
Eddy Ashton 595787a94d
Deprecate set_js_app (#1902) 2020-11-19 18:47:53 +00:00
Julien Maffre ebda2365aa
Document HSM usage for members identity and encryption keys (#1884) 2020-11-16 13:02:06 +00:00
Julien Maffre 5e78572299
Fix incorrect typing (#1879) 2020-11-12 18:33:45 +00:00
Amaury Chamayou 7923029ace
Signature-authenticated proposals (#1870) 2020-11-12 16:09:22 +00:00
Julien Maffre 98eaff2543
Support for hs2019 in HTTP signature scheme (#1872) 2020-11-10 17:02:33 +00:00
Julien Maffre 7afef2cc2b
Support for shareless members (#1866) 2020-11-10 15:34:58 +00:00
Amaury Chamayou 82e4d007fd
Make what we can prettier (#1862) 2020-11-10 10:57:56 +00:00
Maik Riechert 70b09e53cf
JWT auth proposal types and kv maps (#1851) 2020-11-09 08:55:36 +00:00
Amaury Chamayou 9e7106f50b
Unbundle ballots (#1853) 2020-11-06 12:48:34 +00:00
Julien Maffre 07e2389d1c
Quote verification CLI (#1850) 2020-11-03 17:24:39 +00:00
Julien Maffre b0df355f29
Member recovery shares encryption with RSA-OAEP-256 (#1841) 2020-10-30 16:57:26 +00:00
dependabot[bot] 39db7a952e
Bump cryptography from 3.0 to 3.2 in /python (#1828) 2020-10-28 09:15:12 +00:00
Eddy Ashton 5eceea662f
Spell checking pass over the RST docs (#1808) 2020-10-23 16:32:46 +01:00
Maik Riechert e5002c11a1
fix deploy_js_app proposal generation (#1768) 2020-10-15 17:59:51 +01:00
Julien Maffre 9d2f3d010c
Add historical queries capabilities to infra logging app (#1735) 2020-10-12 11:14:07 +01:00
Eddy Ashton 5f21e3bf95
Encode privacy domain in all table names (#1727) 2020-10-09 10:29:50 +01:00
Amaury Chamayou 0ed6249ec2
Remove dead mbedtls code (#1719) 2020-10-07 14:13:13 +01:00
Maik Riechert 12b58098ae
Remove update_modules proposal from gov.lua (#1691) 2020-10-05 21:10:12 +01:00
Eddy Ashton fdab6233d1
Regex is not re (#1702) 2020-10-02 17:22:58 +01:00
Eddy Ashton aa07efb755
Complex lua literals in proposal generator (#1694) 2020-10-02 15:30:53 +01:00
Eddy Ashton 5e4542878c
Escape loguru tags (#1689) 2020-10-02 11:19:58 +01:00
Amaury Chamayou 7f38bb8ff5
Fix cft election (#1641) 2020-09-30 13:16:57 +01:00
Amaury Chamayou 2f3dbc5038
Fix tutorial (#1670) 2020-09-29 20:38:55 +01:00
msftsettiy 3bfac60196
Added a ledger chunk class to manage the Transactions in a single chunk (#1644) 2020-09-29 18:49:17 +01:00
Eddy Ashton 5003a25b7d
Add generic member_data to simplify operator governance (#1657) 2020-09-28 15:17:10 +01:00
Julien Maffre 9f7c9364af
recovery_share/submit -> POST recovery_share (#1660) 2020-09-28 13:59:55 +01:00
Maik Riechert 4c85145a07
Add JS app bundle support (#1651) 2020-09-28 09:04:47 +01:00
Maik Riechert 3757b5d147
Expose response body in Python client similar to request body in JS endpoints (#1621) 2020-09-20 17:47:44 +01:00
Amaury Chamayou c1c038bdd9
Proposing more compact logging in tests (#1610) 2020-09-17 16:56:53 +01:00
Eddy Ashton 95d749e2c3
Remove new_user_code (#1611) 2020-09-15 18:59:39 +01:00
Amaury Chamayou 8848ba89ae
python 3.7 to 3.8 (#1592) 2020-09-11 16:33:09 +01:00
Eddy Ashton 67a50447c6
Support optional arguments when creating proposals via the CLI (#1599) 2020-09-10 17:24:07 +01:00
Amaury Chamayou 2df2049d48
Resolve incompatibility (#1595) 2020-09-09 17:07:11 +01:00
Maik Riechert df22a85202
Support more content types (#1575) 2020-09-08 11:21:57 +01:00
Maik Riechert c16ccc9fe1
Update collections of JS modules in one proposal (#1557)
* Update collections of JS modules in one proposal.
Fixes #1479.

* formatting

Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
2020-09-02 18:52:51 +01:00
Amaury Chamayou 321e9cb8db
Add retire_node_code proposal (#1558) 2020-09-02 18:00:06 +01:00
Maik Riechert 3e7750bdb0
Add support for proposing attested CA certs (#1448) 2020-09-02 10:46:17 +01:00
Alex 407caf673d
Updated websocket client invalid view (#1533) 2020-08-27 15:48:07 +01:00
Julien Maffre 3203203eb9
Update black (#1535) 2020-08-26 16:52:41 +01:00
Julien Maffre 6a3c82e653
Fix Pylint exception chaining warnings (#1519) 2020-08-21 12:09:13 +01:00
Lyndon Shi c3ad64f5f7
Add example for proposal generation in Python (#1493) 2020-08-20 11:32:07 +01:00
Eddy Ashton a19d19697c
Remove ProposalGenerator (#1513) 2020-08-19 18:02:26 +01:00
Julien Maffre 05e0805db3
Generate setup.py before installing docs (#1489) 2020-08-10 12:07:14 +01:00
Eddy Ashton 834fc52588
Allow user_data to be set during new_user proposal (#1488) 2020-08-07 09:54:57 +01:00
Eddy Ashton 77246cb771
Add inspected types to proposal_generator CLI args (#1483) 2020-08-05 14:34:44 +01:00
Maik Riechert e38abb1117
Support relative paths in js modules (#1481) 2020-08-04 16:50:29 +01:00
Julien Maffre 0bcc6a3d28
Python install cleanup (#1474)
* Cleanup dependencies

* Automated python package versioning

* Pin deps

* Install wheel

* Format

* Revert requirements.txt

* Pin deps manually

* Install package requirements for Pylint

Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
Co-authored-by: Eddy Ashton <edashton@microsoft.com>
2020-08-03 13:12:34 +01:00
Amaury Chamayou 3db24e8eb7 Fix Python formatting 2020-07-31 14:41:46 +01:00
Maik Riechert f941046011
JS modules (#1469)
* Add ccf.modules table.

* add set_module proposal function

* add remove_module proposal function

* add js module loader

* custom Module type; test; remove prefix

* patch quickjs for querying module exports

* add quickjs .patch

* endpoint modules!

* address pr comments

* formatting

Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
2020-07-31 14:05:05 +01:00
Amaury Chamayou deb2b65d26
Update setup.py (#1470) 2020-07-31 11:49:50 +01:00
Eddy Ashton 464136ceff
Require / prefix on URL paths in Python (#1457) 2020-07-29 15:52:30 +01:00
Julien Maffre f8c9d45f1d
PyPi releases (#1456) 2020-07-29 13:08:26 +01:00
Julien Maffre beedc9568d
Python type annotations (#1449) 2020-07-29 11:03:53 +01:00
Julien Maffre 96e9af622f
Python Ledger docs and tutorial (#1435) 2020-07-28 10:01:27 +01:00
Julien Maffre f798d8b902
Python clients cleanup and docs (#1429) 2020-07-27 17:34:16 +01:00
Amaury Chamayou 122f6a284e
Primary endpoint (#1439) 2020-07-27 09:53:28 +01:00
Eddy Ashton bf3a5f1930
Document proposal_generator.py (#1440) 2020-07-27 08:43:55 +01:00
Brayden e750fe35d2
File chunk chaining and getting transactions (#1408) 2020-07-22 17:34:29 +01:00
Amaury Chamayou 2b6e358e62
Remove jsonrpc leftovers (#1388) 2020-07-20 14:07:33 +01:00
Eddy Ashton a9c13e45c1
Use generated votes (#1413) 2020-07-17 14:13:53 +01:00
Julien Maffre a456509093
KV snapshot serialisation/deserialisation (#1403) 2020-07-16 10:21:05 +01:00
Eddy Ashton 12cdc5e46c
Use templated paths for common and proposal endpoints (#1393) 2020-07-13 19:52:25 +01:00
Eddy Ashton 0424c127fd
Remove mkSign (#1398) 2020-07-13 12:43:04 +01:00
Julien Maffre b53a4445ce
Start packaging Python infra (#1380) 2020-07-07 15:46:44 +01:00