cfsolve 0.1.0-aarch64-linux-gnu → 0.1.2-aarch64-linux-gnu

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 136d833ed4de8c4baf8404d64bf6c99b47b21a56decfb194f3c4021b928620c2
4
- data.tar.gz: f1859cf32f6d3471400539e74f54c57a2952487dc5f58a1b4407d90c7c8b16f2
3
+ metadata.gz: 91a4e298a190d76e9cf31071a134f659588ab1deb287dbb719c6e82629c4ee1e
4
+ data.tar.gz: bc5ca348865162aea58d74f933ed8540007a24a441c06ed7fbb2cdabb12c4794
5
5
  SHA512:
6
- metadata.gz: 9f16985cc9681e32221cf9621dbfe367456f3d95c0cd92e09ee00efc54fc8bbf8d7947ccf79eb75ed0e778a01c144d7689964b1becf4cb2f10b13d63ea8dba0b
7
- data.tar.gz: 7b8dbde00db756025804ee918d12d50864e7874fde65bc18046e26476794decce5e3ed48d976dd9f3be2a8f852b141079e1e092fea539ea85c148d94e8369c54
6
+ metadata.gz: '055338a39d8f635a5c361e6b078db9ec12c7aef9f97f8f62281a69815ef6ff8bb57d9f3de5b5f2e4a0f4df33f58769cbce21379fb72d0252f04e2ab129165947'
7
+ data.tar.gz: 11ae6591ede7916ed93855d014ec35d6eb26d5ca46281576dcadca721e677a2ba8a36a247c72750d26840b8d7fa14e4a0b3efc61a56c46acce83133a2e99cf77
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2
4
+
5
+ Update the native engine to upstream master (`1599e9b`) and refresh the bundled
6
+ Safari profile. Upstream now supplies the challenge recovery and replay fixes
7
+ previously carried from PR #5, including support for build `5c2e6b612edd`.
8
+
9
+ Use `Cfsolve::Browser.new` for the updated bundled profile. Custom answers from
10
+ earlier releases use a different format; regenerate them with upstream's capture
11
+ tools before use. Converting the format alone does not guarantee that older
12
+ browser measurements will be accepted by a newer challenge build.
13
+
14
+ ## 0.1.1
15
+
16
+ Update the native engine to rebased upstream PR #5 (`0f97eb7`). Adopt upstream's
17
+ regional worker-host discovery, copied-option recovery, and lower probe-matching
18
+ threshold while retaining the fixes for replay across challenge builds.
19
+
3
20
  ## 0.1.0
4
21
 
5
22
  Initial Ruby interface based on cfsolve PR #5. Includes isolated native solves,
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # cfsolve
2
2
 
3
- Ruby bindings for [cfsolve](https://github.com/chris124567/cfsolve), based on
4
- [PR #5](https://github.com/chris124567/cfsolve/pull/5).
3
+ Ruby bindings for [cfsolve](https://github.com/chris124567/cfsolve), using its
4
+ upstream master solver and bundled browser profile.
5
5
 
6
6
  ```ruby
7
7
  gem "cfsolve"
@@ -10,7 +10,7 @@ gem "cfsolve"
10
10
  ```ruby
11
11
  require "cfsolve"
12
12
 
13
- browser = Cfsolve::Browser.new(profile: "/secure/browser.json")
13
+ browser = Cfsolve::Browser.new
14
14
  token = browser.solve_turnstile("https://example.com/sign-in", sitekey: "your-sitekey")
15
15
  # Submit token using the site's authentication protocol.
16
16
 
@@ -25,13 +25,14 @@ sitekey, it uses the page's first Turnstile container. `clear` and `solve` accep
25
25
  `proxy` and `timeout`; `solve` returns a hash with type `token` or `clearance`.
26
26
  Proxies may use HTTP, HTTPS, SOCKS5, or SOCKS5H.
27
27
 
28
- Profiles contain browser measurements, not site login credentials. A profile
29
- file may reference answer files relative to its directory. Applications can
30
- instead pass parsed hashes through `profile:`, `answers:`, and
28
+ The upstream Safari profile is bundled as the default. To use a custom profile,
29
+ pass `profile: "/path/to/browser.json"`. Profiles contain browser measurements,
30
+ not site login credentials. A profile file may reference answer files relative
31
+ to its directory. Applications can instead pass parsed hashes through
32
+ `profile:`, `answers:`, and
31
33
  `challenge_page_answers:`. Store private profiles in your application's secret
32
- configuration. The upstream Safari profile is bundled as the default; support
33
- depends on the challenge build and profile. Changes at Cloudflare may require
34
- an updated solver or freshly captured browser answers.
34
+ configuration. Support depends on the challenge build and profile. Changes at
35
+ Cloudflare may require an updated solver or freshly captured browser answers.
35
36
 
36
37
  Each call launches a bundled Rust executable, sends configuration through stdin,
37
38
  and reads its result through stdout. No tokens or profiles appear in process
data/UPSTREAM.md CHANGED
@@ -1,11 +1,11 @@
1
- The Rust engine is vendored from [chris124567/cfsolve](https://github.com/chris124567/cfsolve),
2
- including [PR #5](https://github.com/chris124567/cfsolve/pull/5), at commit
3
- `1ee7a203e2a9a17fbb82148b6707d2d82181f56a`.
1
+ The Rust engine is vendored from [chris124567/cfsolve](https://github.com/chris124567/cfsolve)
2
+ master at commit `1599e9b80b74689587f0e35445185c8174066793`.
4
3
 
5
4
  `vendor/cfsolve` is an unmodified archive of that revision. Its three patched
6
5
  dependencies are applied by the extension's top-level Cargo manifest. The Ruby
7
6
  adapter is in `lib/` and `ext/cfsolve/src/main.rs`.
8
7
 
9
- To update, replace the vendored archive with an audited upstream revision, update
10
- the revision in `lib/cfsolve/version.rb`, regenerate the extension's Cargo.lock,
11
- and run the Ruby tests and fresh challenge checks before releasing.
8
+ To update, replace the vendored archive with an audited upstream revision, copy
9
+ its `profiles/` directory to `lib/cfsolve/profiles/`, update the revision in
10
+ `lib/cfsolve/version.rb`, and refresh the extension's Cargo.lock if dependencies
11
+ changed. Run the Ruby tests and fresh challenge checks before releasing.
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: data/lib/cfsolve/cfsolve-engine
3
- size: 55480456 bytes
4
- sha256: 6790d0dcd09c9636d3a6e47f371840e0e0e692c09a15928f809f4d368b51e995
3
+ size: 55498736 bytes
4
+ sha256: 45c921f6315960ee04c942664e83b641f308920d7376ff19da040804229a485a