Commit Graph

9377 Commits (8e5dc8f0f67a6dd2313e85a428f445b03ea0a35e)

Author SHA1 Message Date
derekpierre ece5c97f81 Add note about the vagaries of the url character limit. 2021-07-26 15:14:43 -04:00
derekpierre 6ca5292105 Clarify format of "work_order_result" returned as the result of Porter /exec_work_order. Documentation cleanup: use version 6.0.0 in output, 401 error status code. 2021-07-26 15:14:43 -04:00
derekpierre da0231673c Fix lingering references to relayer_verifying_key to instead be publisher_verifying_key. 2021-07-26 15:14:43 -04:00
derekpierre c77de789c8 Allow URL query parameters for all HTTP methods. Add documentation about URL query parameters and the usage. 2021-07-26 15:14:43 -04:00
derekpierre 463078ce0d Fix issues after TMapConKFrag rebase including how work orders are created and used for tests. exec_work_order tests now actually use /reencrypt ursulas endpoints. 2021-07-26 15:14:43 -04:00
derekpierre d9cbee9469 Cleanup tests that use the random treasure map data to instead use a common fixture. 2021-07-26 15:14:43 -04:00
derekpierre 25f3db3355 Use query parameters for GET methods; updated tests for stringlist and query parameters. 2021-07-26 15:14:43 -04:00
derekpierre 1e0607b89b Clean up WebController handling of request data. 2021-07-26 15:14:43 -04:00
derekpierre 927e89ebe4 Properly verify ursulas before returning as sample result for /get_ursulas endpoing and log any exceptions. 2021-07-26 15:14:43 -04:00
damon 0dfada8056 StringList field for flexible handling of GET/POST data close #2735 2021-07-26 15:14:43 -04:00
derekpierre 42a42b7fe4 Initial documentation of Porter '/exec_work_order' endpoint. 2021-07-26 15:14:43 -04:00
derekpierre d31f5938ca Fix imports and function calls after rebasing over latest changes (TMapConKFrags and umbral_adapter).
Fix incompatible treasure map data used in tests.
2021-07-26 15:14:43 -04:00
damon 43559443b9 add handling for HTTP query params 2021-07-26 15:14:43 -04:00
derekpierre 1baa05ba3f Initial implementation of Porter '/exec_work_order' functionality and tests.
Some code refactoring.
2021-07-26 15:14:43 -04:00
derekpierre 26968e05bc Rename docker image to nucypher/porter instead of nucypher/nucypher-porter.
Update documentation regarding the port that the Porter service runs on.
2021-07-26 15:14:43 -04:00
derekpierre c9c72a29ab Remove unnecessarly CLI commands for Porter. Some schema cleanup to group ursula schemas together. 2021-07-26 15:14:43 -04:00
derekpierre 00f38e7b35 Build and publish separate nucypher/nucypher-porter docker image.
Minor cleanups including docker-compose container names, and documentation updates.
2021-07-26 15:14:43 -04:00
derekpierre 3faf1de19b Fix broken docker-compose for porter. 2021-07-26 15:14:43 -04:00
derekpierre ad36021a2f Make pagination exception check a little less specific. 2021-07-26 15:14:43 -04:00
derekpierre f384c7e87a Properly handle pagination sizes when getting active stakers from StakingEscrow, and standardize porter execution timeouts. 2021-07-26 15:14:43 -04:00
derekpierre b8f1a96367 Fix Porter Docker TLS volume mapping path. 2021-07-26 15:14:43 -04:00
derekpierre 5c21990fce Add mising command line prompts for docs. 2021-07-26 15:14:43 -04:00
derekpierre 1fe532c99c Add documentation about Basic Authentication provided by Porter. 2021-07-26 15:14:43 -04:00
derekpierre 73a186ba90 Updated information for `/publish_treasure_map` endpoint and what it returns - it should have some data representing confirmation. 2021-07-26 15:14:43 -04:00
derekpierre c58184f246 Add Docker and Docker Compose sections as separate. 2021-07-26 15:14:43 -04:00
derekpierre 5c80256456 Add documentation for Porter docker usage. 2021-07-26 15:14:43 -04:00
derekpierre 11a5eea51b Add documentation about CLI usage of Porter service. 2021-07-26 15:14:43 -04:00
derekpierre bcaa4c2bd6 Flesh out initial API documentation for Porter endpoints. 2021-07-26 15:14:43 -04:00
derekpierre 9c7051ce6a Very rough initial diagram and blurb for Porter documentation. 2021-07-26 15:14:43 -04:00
derekpierre e8f0e20400 Add Basic Authentication tests. 2021-07-26 15:14:43 -04:00
derekpierre dc2b75b0ba Provide informed import error if basic authentication is attempted without porter extra installation. 2021-07-26 15:14:43 -04:00
derekpierre 5485484e36 Add very simple iteration of basic authentication to Porter. 2021-07-26 15:14:42 -04:00
derekpierre ed17df1be3 Docker compose file for porter. 2021-07-26 15:14:42 -04:00
derekpierre 0720f7ca51 Modify --certificate-filepath option to instead be --tls-certificate-filepath. 2021-07-26 15:14:42 -04:00
derekpierre 8babb11e96 Add acceptance cli tests for porter. 2021-07-26 15:14:42 -04:00
derekpierre fd890e33e4 Allow Porter to be launched with TLS. 2021-07-26 15:14:42 -04:00
derekpierre e83128fd91 One potential solution for contextualizing federated vs non-federated treasure maps provided as bytes in the `/publish_treasure_map` endpoint.
The context information is provided either at construction time of the TreasureMap field, or via the parent Schema context.
2021-07-26 15:14:42 -04:00
derekpierre 2403c27370 Code cleanup based on RFCs from #2717. 2021-07-26 15:14:42 -04:00
derekpierre e45124463c Fix import statement, and add comment about follow-up PR for treasure map id length.
Co-authored-by: David Núñez <david@nucypher.com>
2021-07-26 15:14:42 -04:00
derekpierre 2cdad04528 Cleanup reservoir exclusion/inclusion code a little to make it simpler. 2021-07-26 15:14:42 -04:00
derekpierre 39e5217d63 Use uri instead of ip_address for UrsulaInfo. 2021-07-26 15:14:42 -04:00
derekpierre ebd0a18916 Apply RFCs from #2717. 2021-07-26 15:14:42 -04:00
derekpierre 8df7a5da80 Apply RFCs from #2717. 2021-07-26 15:14:42 -04:00
derekpierre ab4b001b1e Fixed bug where teacher uri was not being used. Allow registry filepath to be specified. 2021-07-26 15:14:42 -04:00
derekpierre 471d807c75 Ensure acceptance/porter tests are run on Circle CI. 2021-07-26 15:14:42 -04:00
derekpierre 5b2984fd74 Improve treasuremap validation for rest api, and some code cleanup.
Added rpc and web control tests for porter.
2021-07-26 15:14:42 -04:00
derekpierre 34fbc058d6 Make duration_period for get_ursulas optional on the Learner object for federated mode (not changed for rest api). 2021-07-26 15:14:42 -04:00
derekpierre dbeec7f1ae Add integration and acceptance tests for porter functionality.
Remove unused 'publish_treasure_map' parameter from _enact() function.
Loosen validation on treasure map id which can be 32 bytes (federated) or 16 bytes (non-federated). Probably only care about non-federated but for ease of testing, federated really helps.
2021-07-26 15:14:42 -04:00
derekpierre 778c018593 Initial implementation of Alice.get_ursulas for Porter. 2021-07-26 15:14:42 -04:00
derekpierre b697831213 Very simple initial implementation of Bob.get_treasure_map and Alice.publish_treasure_map for Porter.
Added federated functionality to Porter.
2021-07-26 15:14:42 -04:00