fingerly 0.4.0 → 0.4.1
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 +4 -4
- data/README.md +2 -2
- data/lib/fingerly/enums.rb +16 -0
- data/lib/fingerly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c77b9ed11a4ea1bb5bf81b5de416a0a2943e32ee9be806b4e531db1d5d64c0b
|
|
4
|
+
data.tar.gz: 0e3b9e16f45b9e4c84efcfbc81d50131fdf925f0f5293b64ee0a6246c7f08479
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ede4c294f90137cf3c068cdea18e18a391de904d72f02eefc9f6b7ef46d4c9d83539e6c77fdbb3701e20217deeb606c35edc5c25638085741bdbb10a0e906a7f
|
|
7
|
+
data.tar.gz: cc1e8ba7c18c8c0d24b0124483a03faeb4b47df20cf1f83ac4b65d5ea7aa91af1d464e3519ab678c9a463d285ee06801d66db261e69ddc7d3397f1f282e401e6
|
data/README.md
CHANGED
|
@@ -36,7 +36,7 @@ device behind each session and scores how suspicious it is.
|
|
|
36
36
|
2. **Install.** Add it to your `Gemfile`:
|
|
37
37
|
|
|
38
38
|
```ruby
|
|
39
|
-
gem "fingerly", "~> 0.4.
|
|
39
|
+
gem "fingerly", "~> 0.4.1"
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
3. **Read an event.**
|
|
@@ -498,7 +498,7 @@ then sees a path that is not its own and answers `404`.
|
|
|
498
498
|
| Origin or platform | Requests without either `Origin` or a validated native `X-Fingerly-SDK-Platform` header (`ios`, `android`, `react-native`, `react-native-ios`, `react-native-android`, `flutter`, `flutter-ios`, `flutter-android`, `lynx-ios`, `lynx-android`, `capacitor`, `kotlin-multiplatform`) are rejected locally with `400` (`missing_origin`), and `x-fingerly-origin` is never synthesized from `Host`, `Referer` or the request URL. A request is forwarded on one channel only: with an `Origin` the proxy sends `x-fingerly-origin` and drops the platform header, and without one it sends the validated platform. |
|
|
499
499
|
| Body size | Bodies over 1 MiB get `413`, enforced while reading rather than after buffering. |
|
|
500
500
|
| Forwarded headers | All incoming `x-fingerly-*`, `cookie` and `authorization` headers are stripped, restoring only a validated `x-fingerly-sdk-platform` (when there is no `Origin`) alongside `x-fingerly-host`, `idempotency-key`, `sec-fetch-*` and `sec-ch-ua-*`. |
|
|
501
|
-
| Proxy identity | The proxy reports itself upstream as `ruby/0.4.
|
|
501
|
+
| Proxy identity | The proxy reports itself upstream as `ruby/0.4.1` in `x-fingerly-proxy-version`, which the dashboard shows per proxy. |
|
|
502
502
|
| Fingerly unreachable | The visitor gets a gateway error rather than your application's `500`. |
|
|
503
503
|
| Deadline passes | `504 Gateway timeout` when `timeout:` (5 seconds by default) passes. |
|
|
504
504
|
| Any other upstream failure | `502 Bad gateway`, whether the connection was refused or reset, the name did not resolve, or the answer was malformed, cut short or over 4 MiB. Redirects are never followed, and an upstream redirect or a status outside `200` to `599` is answered `502` as well. |
|
data/lib/fingerly/enums.rb
CHANGED
|
@@ -165,12 +165,28 @@ module Fingerly
|
|
|
165
165
|
# Why a native app sent no attestation: the archived document's
|
|
166
166
|
# +attestation.attest_skipped+. Diagnostic only; it never lowers the score.
|
|
167
167
|
module AttestSkippedReason
|
|
168
|
+
# The challenge offered no attestation: on iOS the SDK key has no Apple app
|
|
169
|
+
# ID for App Attest, on Android the app's transport returned no challenge
|
|
170
|
+
# offer.
|
|
168
171
|
NOT_OFFERED = "not_offered"
|
|
172
|
+
# The device cannot make an attested key: App Attest is not supported on
|
|
173
|
+
# the iOS device, or Android is older than 7.0 (API 24).
|
|
169
174
|
UNSUPPORTED = "unsupported"
|
|
175
|
+
# No usable challenge ticket: the challenge request failed, or on Android
|
|
176
|
+
# the ticket it returned was malformed.
|
|
170
177
|
CHALLENGE_UNAVAILABLE = "challenge_unavailable"
|
|
178
|
+
# The platform key store failed to create, attest or sign with the key, or
|
|
179
|
+
# on Android the stored key record could not be read.
|
|
171
180
|
KEY_ERROR = "key_error"
|
|
181
|
+
# Attestation did not finish in time: a key store call ran past its budget,
|
|
182
|
+
# or another identification held the attestation step too long.
|
|
172
183
|
TIMEOUT = "timeout"
|
|
184
|
+
# The server rejected a new key from this install (on iOS, also when it
|
|
185
|
+
# asked for a replacement), and the SDK is waiting out a backoff before it
|
|
186
|
+
# registers another.
|
|
173
187
|
BACKOFF = "backoff"
|
|
188
|
+
# The report has no usable install ID, or on iOS the stored key record could
|
|
189
|
+
# not be read or saved.
|
|
174
190
|
INSTALL_UNAVAILABLE = "install_unavailable"
|
|
175
191
|
|
|
176
192
|
ALL = [
|
data/lib/fingerly/version.rb
CHANGED