Added: Support to disable TLS for data plane operations
This release adds the support for users to disable TLS verification for data plane operations. Users can disable it by setting enableTLS
parameter of PineconeConfig
class to false
. We do not recommend going to production with TLS verification disabled. Following example shows how to disable TLS verification:
import io.pinecone.clients.Index;
import io.pinecone.configs.PineconeConfig;
import io.pinecone.configs.PineconeConnection;
import io.pinecone.unsigned_indices_model.QueryResponseWithUnsignedIndices;
import io.pinecone.proto.UpsertResponse;
import java.util.Arrays;
public class DisableTLSExample {
public static void main(String[] args) {
PineconeConfig config = new PineconeConfig("api");
config.setHost("localhost:5081");
config.setTLSEnabled(false);
PineconeConnection connection = new PineconeConnection(config);
Index index = new Index(connection, "example-index");
// Data plane operations
// 1. Upsert data
UpsertResponse upsertResponse = index.upsert("v1", Arrays.asList(1f, 2f, 3f));
// 2. Query data
QueryResponseWithUnsignedIndices queryResponse = index.queryByVectorId(1, "v1", true, true);
}
}
What's Changed
- Change "client" to "SDK" by @jseldess in #149
- Updating issue templates by @anawishnoff in #148
- Add support for disabling TLS by @rohanshah18 in #150
- Prep for release v2.1.0 and add proxy config & disabling TLS examples to README by @rohanshah18 in #152
New Contributors
- @jseldess made their first contribution in #149
- @anawishnoff made their first contribution in #148
Full Changelog: v2.0.0...v2.1.0