Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .changeset/restrict-defer-to-verify.md

This file was deleted.

6 changes: 6 additions & 0 deletions demos/provider-mock/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @prosopo/provider-mock

## 2.8.126
### Patch Changes

- Updated dependencies [44fe294]
- @prosopo/provider@4.15.4

## 2.8.125
### Patch Changes

Expand Down
4 changes: 2 additions & 2 deletions demos/provider-mock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/provider-mock",
"version": "2.8.125",
"version": "2.8.126",
"author": "PROSOPO LIMITED <info@prosopo.io>",
"license": "Apache-2.0",
"type": "module",
Expand Down Expand Up @@ -32,7 +32,7 @@
"@prosopo/database": "3.15.12",
"@prosopo/dotenv": "3.0.49",
"@prosopo/locale": "3.2.6",
"@prosopo/provider": "4.15.3",
"@prosopo/provider": "4.15.4",
"@prosopo/types": "4.9.8",
"@prosopo/types-database": "4.11.11",
"cors": "2.8.5",
Expand Down
7 changes: 7 additions & 0 deletions dev/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @prosopo/scripts

## 3.1.126
### Patch Changes

- Updated dependencies [44fe294]
- @prosopo/provider@4.15.4
- @prosopo/cli@3.6.62

## 3.1.125
### Patch Changes

Expand Down
6 changes: 3 additions & 3 deletions dev/scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/scripts",
"version": "3.1.125",
"version": "3.1.126",
"description": "Dev scripts for working with prosopo packages",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -31,15 +31,15 @@
"@iarna/toml": "2.2.5",
"@polkadot/util": "13.5.7",
"@polkadot/util-crypto": "13.5.7",
"@prosopo/cli": "3.6.61",
"@prosopo/cli": "3.6.62",
"@prosopo/common": "3.1.45",
"@prosopo/logger": "2.0.3",
"@prosopo/datasets": "3.1.50",
"@prosopo/dotenv": "3.0.49",
"@prosopo/env": "3.6.12",
"@prosopo/keyring": "2.9.56",
"@prosopo/locale": "3.2.6",
"@prosopo/provider": "4.15.3",
"@prosopo/provider": "4.15.4",
"@prosopo/types": "4.9.8",
"@prosopo/types-env": "2.10.11",
"@prosopo/util": "3.3.4",
Expand Down
2 changes: 1 addition & 1 deletion docker/images/provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/provider-docker",
"version": "3.6.61",
"version": "3.6.62",
"engines": {
"node": "^24",
"npm": "^11"
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@prosopo/captcha",
"packageManager": "npm@11.0.0",
"version": "3.6.61",
"version": "3.6.62",
"author": "Prosopo",
"type": "module",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @prosopo/cli

## 3.6.62
### Patch Changes

- Updated dependencies [44fe294]
- @prosopo/provider@4.15.4

## 3.6.61
### Patch Changes

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/cli",
"version": "3.6.61",
"version": "3.6.62",
"description": "CLI for Prosopo Provider",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -39,7 +39,7 @@
"@prosopo/env": "3.6.12",
"@prosopo/keyring": "2.9.56",
"@prosopo/locale": "3.2.6",
"@prosopo/provider": "4.15.3",
"@prosopo/provider": "4.15.4",
"@prosopo/types": "4.9.8",
"@prosopo/util": "3.3.4",
"@prosopo/workspace": "3.1.20",
Expand Down
20 changes: 20 additions & 0 deletions packages/provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @prosopo/provider

## 4.15.4
### Patch Changes

- 44fe294: feat(provider): support `deferToVerify: true` on Restrict rules — serve the challenge, fail at verify

Extends `findHardBlockPolicy` in `captchaManager.ts` so that a Restrict rule with `deferToVerify: true` is treated as a hard-block at verify time.

Behaviour:

- **Frictionless**: the Restrict rule fires as normal — the client is served the configured `captchaType` and `solvedImagesCount` (e.g. `image` / 8 rounds). Compute burden of the challenge is imposed on the caller.
- **Verify**: `checkForHardBlock` matches the same rule and marks the commitment `Disapproved` with `ACCESS_POLICY_BLOCK`, so the dApp's `verify()` returns `{verified: false}` regardless of whether the client's solution was correct.

Motivation: PROXY_POOL_TLS_NARROW targets solving-farm-backed residential proxy pools that solve image captchas at ~100% (they use human solvers), so we can't stop them by demanding correctness — only by wasting their compute. The existing Restrict/image/8-rounds shape imposes the cost but still lets them through if they solve. Layering `deferToVerify: true` closes that loop: they burn 8 image rounds per session AND fail verify.

Test coverage updated in `captchaManager.unit.test.ts`:

- Restrict + deferToVerify → returns the policy (new behaviour).
- Restrict without deferToVerify → returns undefined (routing rule, unchanged).
- All existing Block cases (Block+deferToVerify, Block+no-captchaType, Block+captchaType-without-defer) continue to behave as before.

## 4.15.3
### Patch Changes

Expand Down
2 changes: 1 addition & 1 deletion packages/provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/provider",
"version": "4.15.3",
"version": "4.15.4",
"author": "PROSOPO LIMITED <info@prosopo.io>",
"license": "Apache-2.0",
"type": "module",
Expand Down
Loading