Pinecone Java SDK 6.3.1 stops a malformed API key leaking into logs (November 14, 2026)
Java SDK 6.3.1 stops whitespace-padded API keys being echoed into errors and logs, and stops close() dropping async writes.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. What you paste stays in this tab. It is never sent to Wirestack or saved.
- Pinecone API keyPINECONE_API_KEYGet key
Pick your project, open API keys, click + API key, name it, choose its permissions, then Create key
3 of 3 free copies left this month.Unlimited with Pro
What changed
November 14, 2026: Pinecone released v6.3.1 of its Java SDK, a patch on top of 6.3.0. No method signatures changed.
- Security: before 6.3.1,
Pinecone.Builder.build()accepted an API key with leading or trailing whitespace or control characters, often a trailing newline from a file or a Kubernetes secret. With a newline, every later call threw anIllegalArgumentExceptionwhose message held the full key. With a tab, gRPC dropped theapi-keyheader and logged the key.build()now trims such characters, and rejects a key that is empty or contains anything other than printable ASCII with aPineconeConfigurationExceptionthat does not echo it. - Async writes on close:
Index.close()andAsyncIndex.close()used to cancel calls still running. Calls already issued now get up to 5 seconds to finish, so closing the last index object on a connection can block that long. - Ids and namespaces: a string with half an emoji (an unpaired surrogate, often left by
substring) used to be sent as?, so two different ids could overwrite each other. Such values now throwPineconeValidationExceptionbefore the request is sent. - Listeners: a
ResponseMetadataListenerthat throws anErrorno longer hangs the call. - 6.3.1 is signed with the same key as 6.3.0.
Prerequisites
Steps
- Raise the version to 6.3.1.
Maven:
<dependency>
<groupId>io.pinecone</groupId>
<artifactId>pinecone-client</artifactId>
<version>6.3.1</version>
</dependency>