Commit Graph

11951 Commits (29e15de6642915f01d9388f7ffa5baaf00152f28)

Author SHA1 Message Date
derekpierre 7998074c0f
Rename auth scheme from SIWE to EIP4361. 2024-05-28 14:31:18 -04:00
derekpierre ff84b0f40c
Move user address tests out of test_conditions and into test_context module. 2024-05-28 14:31:17 -04:00
derekpierre 5fb87792fe
Add directives for EIP712 and SIWE specific userAddress context variables, to force the use of a specific authentication scheme. 2024-05-28 14:30:54 -04:00
derekpierre f89cffd328
Adjust freshness check to occur after message verification, and skip if "not-before" is specified in the message. 2024-05-28 10:49:36 -04:00
KPrasch fb4ed7c008
condition providers set -> list 2024-05-28 15:48:23 +02:00
KPrasch 97d10b951a
detailed utility logging for default RPC endpoints 2024-05-28 15:48:23 +02:00
KPrasch 1573f3f3ce
RPC healthcheck unit test coverage 2024-05-28 15:48:23 +02:00
KPrasch faba9a10b9
Expands RPC health check logical branching to handle detailed failure cases; prepare for logging integration. 2024-05-28 15:48:23 +02:00
KPrasch 6509b2b3d7
Compares system time with block time for each default RPC provider. 2024-05-28 15:48:23 +02:00
KPrasch be515e26be
Relocate default RPC endpoint list to a standalone repository controlled by nucypher. 2024-05-28 15:48:23 +02:00
Kieran 48a8bf1e0f
lint 2024-05-28 15:48:23 +02:00
Kieran 76ef9fca83
initial mock to avoid RPC health checks to actual endpoints 2024-05-28 15:48:23 +02:00
Kieran bd1962a58c
introduces default RPC endpoint health check utilities, and plant an initial entrypoint at node startup. 2024-05-28 15:48:23 +02:00
Kieran 2ac0aba53f
Introduce hardcoded default RPC endpoint; localize chain IDs, blockchain names to constants.py 2024-05-28 15:48:23 +02:00
KPrasch 11a0b26c82
Merge pull request #3507 from derekpierre/fix-bumpversion
Fix version in pyproject.toml & deprecated ruff command/options
2024-05-28 15:34:19 +02:00
derekpierre 06e56bbc72
Properly sort imports in relevant files causing the ruff CI check to fail. 2024-05-28 08:55:48 -04:00
derekpierre 10b6e74854
Update versions of pre-commit, ruff - for pre-commit hooks. 2024-05-28 08:55:21 -04:00
derekpierre dc3df406b5
Update old ruff command/options that currently have a deprecation warning. 2024-05-28 08:18:43 -04:00
derekpierre 71e868a92b
Add dev newsfragment for #3507. 2024-05-28 08:09:12 -04:00
derekpierre 3f271a4261
Update version value in pyproject.toml; seems like last run of bumpversion did not update it. 2024-05-28 08:06:09 -04:00
KPrasch c28f8977dc
Merge pull request #3502 from derekpierre/siwe
Sign-in With Ethereum (SIWE) verification for `:userAddress` (Bob decryption request)
2024-05-24 11:31:44 +02:00
derekpierre 0e83c1c158
Add a default freshness check for SIWE messages - this prevents perpetual reuse of the same SIWE message.
Improve auth exception messages and update tests to check for relevant messages.
Add tests for stale SIWE messages.
2024-05-16 19:46:42 -04:00
derekpierre 92b06eeb6e
Generate a fresh SIWE signature for tests. 2024-05-16 18:40:09 -04:00
derekpierre bced969340
Update exception message to include underlying exception. 2024-05-16 18:38:35 -04:00
derekpierre 88404ea0af
Add newsfragment for #3502. 2024-05-16 13:11:05 -04:00
derekpierre d699c93bf9
Make auth tests more maintainable by improving fixture parameter usage. 2024-05-15 16:52:06 -04:00
derekpierre c17614be65
Appease codecov by calling userAddress context directive directly during tests so that coverage is registered. 2024-05-15 16:40:00 -04:00
derekpierre 1a8d05a092
Add testing module for Auth/AuthScheme functionality. 2024-05-15 16:39:22 -04:00
derekpierre 147f783aa2
Update parameterization of fixture to make parameters used explicit instead of implicit - allows for more flexibility for specific tests. 2024-05-15 16:37:15 -04:00
derekpierre 09cf716f64
Incorporate SIWE-based user address context into tests. 2024-05-15 11:09:13 -04:00
derekpierre 00235c0dff
Check that address matches expected address for SIWE authentication. 2024-05-15 11:06:12 -04:00
derekpierre c023e924f1
Fix resolution of scheme using string and not enum. 2024-05-15 11:05:12 -04:00
derekpierre f10f9e463f
Minor cleanup. 2024-05-14 17:16:19 -04:00
derekpierre ce8352930a
Fix condition test based on changes - this was a case of invalid context variable vs verification failing. 2024-05-14 16:56:30 -04:00
derekpierre e6d1534d1f
Initial plumbing for authenticating :userAddress context variable information provided using SIWE instead of EIP712 which we've traditionally used.
Leave some room for other possibilities.
2024-05-14 16:55:14 -04:00
derekpierre ac5535c3f1
Add siwe (sign-in with ethereum) package dependency and relock dependencies. 2024-05-14 16:53:01 -04:00
Derek Pierre 008621ed1b
Merge pull request #3499 from KPrasch/contracts
Compatibility with nucypher/nucypher-contracts #254
2024-05-13 16:46:33 -04:00
derekpierre daaaf0e831
Make adjudicator fixture a fake contract for now. 2024-05-13 15:06:02 -04:00
derekpierre abd617ba2c
Add dev newsfragment for #3499. 2024-05-13 14:43:36 -04:00
derekpierre f39ba2bad3
Fix linter errors. 2024-05-13 14:43:35 -04:00
derekpierre 2409ef0e43
Add penaltyIncrement parameter to deployment/instantiation of TACoApplication contract for acceptance tests. 2024-05-13 14:43:34 -04:00
Kieran 05877e2084
compatibility changes for nucypher/nucypher-contracts #254 2024-05-13 14:43:27 -04:00
KPrasch 6ff182c155
Merge pull request #3498 from derekpierre/update-user-address
Update user address verification
2024-05-13 20:40:02 +02:00
derekpierre 55e2173983
Add dev newsfragment for #3498. 2024-05-13 09:30:09 -04:00
derekpierre f4080f6f86
Stop using deprecated method for :userAddress verification - use alternative API method. 2024-05-13 09:26:35 -04:00
KPrasch f8b2bbba9a
Bump version: 7.3.0 → 7.4.0 2024-05-13 09:25:49 -04:00
KPrasch 30f1fabf5a
Release Notes for v7.3.0 2024-05-07 15:39:38 +02:00
Manuel Montenegro 9ce9048605
Merge pull request #3431 from nucypher/v7.3.x
v7.3.x
2024-05-07 15:27:43 +02:00
KPrasch df3b0b2666
Merge pull request #3409 from KPrasch/revoke
removes the `/revoke` endpoint
2024-05-07 09:24:45 -04:00
Kieran c529d71b35
Removal of auxilliary revocation usage. 2024-05-07 09:24:45 -04:00