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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.4.1

- Each `AttestSkippedReason` constant describes when the iOS and Android
SDKs send it.
- The vendored OpenAPI contract declares `enum` for the closed string
fields. The SDK's own types are unchanged and stay open strings.

## 0.4.0

- Named constants for every closed string set the API sends: `Signal` (every
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ Java 11 or newer, and Kotlin and Scala through the same artifacts. Releases are
<dependency>
<groupId>io.fingerly</groupId>
<artifactId>fingerly-server</artifactId>
<version>0.4.0</version>
<version>0.4.1</version>
</dependency>
```

```kotlin
implementation("io.fingerly:fingerly-server:0.4.0")
implementation("io.fingerly:fingerly-server:0.4.1")
```

For the proxy, add the adapter for your stack as well (see [Artifacts](#artifacts)).
Expand Down Expand Up @@ -474,7 +474,7 @@ The proxy key (`fly_px_{production|staging|development}_…`) is required: `buil

Incoming headers follow the sanitize-and-restore sequence: all incoming `X-Fingerly-*`, `Cookie` and `Authorization` headers are stripped, restoring `X-Fingerly-SDK-Platform` only if it matches an exact lowercase native or bridge platform (`ios`, `android`, `react-native`, `react-native-ios`, `react-native-android`, `flutter`, `flutter-ios`, `flutter-android`, `lynx-ios`, `lynx-android`, `capacitor`, `kotlin-multiplatform`). When both `Origin` and a validated `X-Fingerly-SDK-Platform` are absent, the request is rejected locally with `400` (`missing_origin`), and `X-Fingerly-Origin` is never synthesized from `Host`, `Referer` or the request URL. A request carries one channel upstream: with an `Origin`, the proxy sends `X-Fingerly-Origin` and drops the platform header, as the API does on a direct call; without one, it sends the validated `X-Fingerly-SDK-Platform`.

Alongside verified proxy metadata (`X-Fingerly-Host` included), only `Content-Type`, `X-Api-Key`, `User-Agent`, `Idempotency-Key`, `Sec-Fetch-*` and `Sec-CH-UA-*` are forwarded; customer cookies and authorization headers never are, and a visitor header that could not be forwarded is dropped. The proxy reports itself upstream as `java/0.4.0`, which the dashboard shows per proxy.
Alongside verified proxy metadata (`X-Fingerly-Host` included), only `Content-Type`, `X-Api-Key`, `User-Agent`, `Idempotency-Key`, `Sec-Fetch-*` and `Sec-CH-UA-*` are forwarded; customer cookies and authorization headers never are, and a visitor header that could not be forwarded is dropped. The proxy reports itself upstream as `java/0.4.1`, which the dashboard shows per proxy.

Only `Content-Type`, `X-Request-Id`, `RateLimit-Limit`, `RateLimit-Remaining` and `Retry-After` are relayed back, plus `Cache-Control: no-store`, so nothing on the response names Fingerly. The answer is read whole before anything is relayed, so a truncated one is never passed on as a success.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public final class FingerlyClient {

/** The SDK version, reported to the API on every request. */
public static final String VERSION = "0.4.0";
public static final String VERSION = "0.4.1";

private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(10);
private static final String DEFAULT_API_VERSION = "v1";
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.4.0
version=0.4.1
org.gradle.jvmargs=-Xmx2g
org.gradle.caching=true
org.gradle.parallel=true
Loading