From 2ac8d137efc4fdb279dc3f0d05736deb4da50988 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 04:24:49 +0000 Subject: [PATCH 1/2] chore: redact api-key headers in debug logs --- .../com/openlayer/api/core/http/LoggingHttpClient.kt | 7 ++++--- .../com/openlayer/api/core/http/LoggingHttpClientTest.kt | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/LoggingHttpClient.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/LoggingHttpClient.kt index 9f42b02e..c74685f4 100644 --- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/LoggingHttpClient.kt +++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/LoggingHttpClient.kt @@ -31,7 +31,7 @@ private constructor( /** * Sensitive headers to redact from logs. * - * Defaults to `Set.of("Authorization")`. + * Defaults to `Set.of("authorization", "api-key", "x-api-key", "cookie", "set-cookie")`. */ @get:JvmName("redactedHeaders") val redactedHeaders: SortedSet, /** @@ -192,7 +192,8 @@ private constructor( class Builder internal constructor() { private var httpClient: HttpClient? = null - private var redactedHeaders: Set = setOf("Authorization") + private var redactedHeaders: Set = + setOf("authorization", "api-key", "x-api-key", "cookie", "set-cookie") private var clock: Clock = Clock.systemUTC() private var level: LogLevel? = null @@ -210,7 +211,7 @@ private constructor( /** * Sensitive headers to redact from logs. * - * Defaults to `Set.of("Authorization")`. + * Defaults to `Set.of("authorization", "api-key", "x-api-key", "cookie", "set-cookie")`. */ fun redactedHeaders(redactedHeaders: Set) = apply { this.redactedHeaders = redactedHeaders diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/core/http/LoggingHttpClientTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/core/http/LoggingHttpClientTest.kt index 80477f20..ac8f1d32 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/core/http/LoggingHttpClientTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/core/http/LoggingHttpClientTest.kt @@ -870,7 +870,8 @@ internal class LoggingHttpClientTest { httpClient: HttpClient, level: LogLevel, clock: Clock = clockFrom(Instant.parse("1998-04-21T00:00:00Z")), - redactedHeaders: Set = setOf("Authorization"), + redactedHeaders: Set = + setOf("authorization", "api-key", "x-api-key", "cookie", "set-cookie"), ): LoggingHttpClient = LoggingHttpClient.builder() .httpClient(httpClient) From 6af1296e8835e9d1549c0d7ccb48d9d4dc7a4f1c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 04:25:15 +0000 Subject: [PATCH 2/2] release: 0.9.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6d78745c..05988747 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.9.0" + ".": "0.9.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c6d755b..f60b662e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.9.1 (2026-05-08) + +Full Changelog: [v0.9.0...v0.9.1](https://github.com/openlayer-ai/openlayer-java/compare/v0.9.0...v0.9.1) + +### Chores + +* redact api-key headers in debug logs ([2ac8d13](https://github.com/openlayer-ai/openlayer-java/commit/2ac8d137efc4fdb279dc3f0d05736deb4da50988)) + ## 0.9.0 (2026-05-07) Full Changelog: [v0.8.1...v0.9.0](https://github.com/openlayer-ai/openlayer-java/compare/v0.8.1...v0.9.0) diff --git a/README.md b/README.md index 0d7669c8..f0dc043c 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![Maven Central](https://img.shields.io/maven-central/v/com.openlayer.api/openlayer-java)](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.9.0) -[![javadoc](https://javadoc.io/badge2/com.openlayer.api/openlayer-java/0.9.0/javadoc.svg)](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.9.0) +[![Maven Central](https://img.shields.io/maven-central/v/com.openlayer.api/openlayer-java)](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.9.1) +[![javadoc](https://javadoc.io/badge2/com.openlayer.api/openlayer-java/0.9.1/javadoc.svg)](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.9.1) @@ -13,7 +13,7 @@ It is generated with [Stainless](https://www.stainless.com/). -The REST API documentation can be found on [openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.9.0). +The REST API documentation can be found on [openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.9.1). @@ -24,7 +24,7 @@ The REST API documentation can be found on [openlayer.com](https://openlayer.com ### Gradle ```kotlin -implementation("com.openlayer.api:openlayer-java:0.9.0") +implementation("com.openlayer.api:openlayer-java:0.9.1") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.openlayer.api:openlayer-java:0.9.0") com.openlayer.api openlayer-java - 0.9.0 + 0.9.1 ``` diff --git a/build.gradle.kts b/build.gradle.kts index f52c9a56..3622c3bc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.openlayer.api" - version = "0.9.0" // x-release-please-version + version = "0.9.1" // x-release-please-version } subprojects {