Commit Graph

9473 Commits (0dfcb228229752d272503bc502604ebedd5f7d99)

Author SHA1 Message Date
derekpierre c5d62ba771 Replace exec_work_order docs with retrieve_cfrags. 2021-09-14 15:58:08 -04:00
derekpierre 4568fc1f5a Ensure that /retrieve_cfrags can be executed using url query parameters. 2021-09-14 15:58:08 -04:00
derekpierre 001dd39ac2 Improve Porter retrieve_cfrags tests to ensure that capsules match in results. 2021-09-14 15:58:08 -04:00
derekpierre d2c3b7a1f9 Make Porter Web endpoints return error status codes instead of exceptions in tests. 2021-09-14 15:58:08 -04:00
derekpierre ff6b1bae98 Encrypted and Decrypted treasure map fields. 2021-09-14 15:58:08 -04:00
derekpierre 72de21fb08 Initial tests for BobRetrieveCFrags schema. 2021-09-14 15:58:08 -04:00
derekpierre 419bddcac0 Add newsfragment for #2768. 2021-09-14 15:58:08 -04:00
derekpierre 61c0978e52 Define initial schema for /retrieve_cfrags Porter endpoint - (untested at the moment) 2021-09-14 15:58:08 -04:00
derekpierre 2cd7698da7 Fix failing tests with respect to treasure map needed for bob's retrieve endpoint. 2021-09-14 15:58:08 -04:00
derekpierre ae1e7edf43 Add RetrievalKit field for marshalling/unmarshalling of request/response data that requires a RetrievalKit - intended to be part of Bob's retrieve schema in Porter. 2021-09-14 15:58:08 -04:00
derekpierre 602f2b6d05 Modify EncryptedTreasureMap field so that deserialize produces a TreasureMap object and not bytes. 2021-09-14 15:58:08 -04:00
derekpierre aa1006ca16 Modify Key field so that deserialize produces a PublicKey object and not bytes. 2021-09-14 15:58:08 -04:00
derekpierre 2fec681e66 Skip Porter exec_work_order tests; they'll be reworked for the new retrieve protocol. 2021-09-14 15:58:08 -04:00
KPrasch 5957394a5c
Merge pull request #2730 from fjarri/retrieval-protocol
Retrieval protocol
2021-09-14 12:57:13 -07:00
Bogdan Opanchuk b2f689c65f Add some TODOs 2021-09-14 12:45:31 -07:00
Bogdan Opanchuk e2a6d756e2 Update the Prometheus collector 2021-09-08 17:34:08 -07:00
Bogdan Opanchuk 1a10ddf7e7 Remove `EncryptedTreasureMap` datastore model 2021-09-08 08:55:49 -07:00
Bogdan Opanchuk bb31fac083 Remove the unused Bob.matching_nodes_among() and related machinery/tests 2021-09-08 08:23:46 -07:00
Bogdan Opanchuk 8517942c49 Fix error message in `_request_reencryption()` 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk 074d44a750 Make treasure map a required CLI argument 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk 1428a3d4aa Remove hardcoded redundancy, fix allow_missing calculation 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk 66175a04da Rename Bob.retrieve_cfrags()/retrieve() to avoid confusion with RetrievalClient.retrieve_cfrags() 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk 39dcab3aa1 Ensure enough Ursulas are available before retrieval 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk a9cc13e825 Move retrieval machinery to network/retrieval and revocation to policy/revocation 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk 1ad868bf41 Remove internal cfrag cache from Bob 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk da816586fa Remove "enrico" as a parameter to Bob.retrieve(); make "policy_encrypting_key" mandatory. 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk 0f85435ac7 Require encrypted_treasure_map in retrieve() 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk 5632d523c4 Minor RFCs 2021-09-08 08:21:04 -07:00
Bogdan Opanchuk 1d3642d960 Retrieval rework 2021-09-08 08:21:03 -07:00
Bogdan Opanchuk a338ff1a69 Don't return the signature along with the MessageKit from MessageKit.author() 2021-09-07 11:58:55 -07:00
Bogdan Opanchuk 60c79553d2 Make encrypt_and_sign() a classmethod of MessageKit 2021-09-07 11:58:55 -07:00
Bogdan Opanchuk 41ae6dbcca Move message kits to policy submodule 2021-09-07 11:58:55 -07:00
Bogdan Opanchuk 161bb8f06d Use __bytes__ instead of to_bytes() in MessageKit 2021-09-07 11:58:55 -07:00
Bogdan Opanchuk 3ef534b812 Rename PolicyMessageKit to MessageKit 2021-09-07 11:58:55 -07:00
Bogdan Opanchuk 0b697881a1 Move TLSHostingPower to powers.py
To avoid circular dependencies
2021-09-07 11:58:55 -07:00
Bogdan Opanchuk 3b43eac717 Remove UmbralMessageKit alias 2021-09-07 11:58:55 -07:00
Bogdan Opanchuk 17353ddf55 Fix some remainders of `m` and `n` 2021-09-07 11:58:55 -07:00
Bogdan Opanchuk 9d2d36cbf3 Remove an unused parameter from TreasureMap.construct_by_publisher() 2021-09-07 11:58:55 -07:00
Bogdan Opanchuk d5851eb910 Add a newsfragment for #2730 2021-09-07 11:58:54 -07:00
KPrasch db8c49f395
Merge pull request #2786 from derekpierre/events-path
Fix creation of filepath for output of events to csv file
2021-08-28 10:28:22 -07:00
derekpierre 86339a54c6 Add newsfragment for #2786. 2021-08-27 15:03:02 -04:00
derekpierre d6e6d22288 Return Path instead of str when generating filepath for output of events from status & stake cli commands. 2021-08-27 15:01:03 -04:00
derekpierre 56fdf113b6 Code cleanup. 2021-08-27 11:12:03 -04:00
derekpierre 7a2279099d Add newsfragment for #2785. 2021-08-27 11:11:57 -04:00
derekpierre 0d3388f7d7 Ensure that prometheus collectors do not hold references to contract agents.
Update cached from_block for EventMetricsCollectors before running potentially long running execution task to improve concurrency handling.
2021-08-26 12:23:59 -04:00
Derek Pierre bcd6071e3d
Merge pull request #2772 from piotr-roslaniec/handle-missing-ursulas
Porter - return meaningful error if there are not enough Ursulas
2021-08-26 09:19:53 -04:00
derekpierre 2620d55df6 Respond to RFCs for #2772. 2021-08-25 19:53:30 -04:00
derekpierre 731013aa92 Add special case for WorkerPoolExceptions in WebController to handle response message - ensure WorkerPoolExceptions provide access to relevant data. 2021-08-25 19:53:30 -04:00
derekpierre 8b748dea52 Allow WorkerPool failure tracebacks to accessed directly from the exceptions raised. If callers need more context they can use the get_tracebacks() function on the exception to obtain all execution failure tracebacks. 2021-08-25 19:53:27 -04:00
Piotr Roslaniec 388be8ffd3 Add a newsfragment 2021-08-25 19:52:11 -04:00