Skip to content

Document endpoint use for private networking needs.#91

Open
James Robinson (jlrobins) wants to merge 1 commit intomainfrom
feat/90-document-private-networking-endpoint-use
Open

Document endpoint use for private networking needs.#91
James Robinson (jlrobins) wants to merge 1 commit intomainfrom
feat/90-document-private-networking-endpoint-use

Conversation

@jlrobins
Copy link
Copy Markdown
Contributor

Closes #90

@jlrobins James Robinson (jlrobins) requested a review from a team as a code owner April 8, 2026 20:00
Copilot AI review requested due to automatic review settings April 8, 2026 20:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project documentation to clarify how to use the endpoint parameter for Confluent Cloud Flink private networking scenarios, complementing the previously-added endpoint support in connect() / Connection.

Changes:

  • Expand endpoint parameter docstrings to mention private networking and provide an example private endpoint URL.
  • Add a README section describing when and how to set endpoint for private networking, plus common symptoms when it’s misconfigured.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/confluent_sql/connection.py Improves endpoint parameter docstrings with private-networking guidance and an example URL.
README.md Adds a “Private Networking Considerations” section explaining how to use endpoint and what misconfiguration looks like.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


Symptoms of using the public endpoint when private networking is required include:
* HTTP 429-related exceptions raised when submitting statements querying tables whose backing Kafka topics / clusters are configured for private networking only.
* Empty or surpsingly missing results when querying `INFORMATION_SCHEMA` or `SHOW TABLES`, due to silent filtering of private-networking-only tables/topics when querying the system catalog.
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: "surpsingly" should be "surprisingly".

Suggested change
* Empty or surpsingly missing results when querying `INFORMATION_SCHEMA` or `SHOW TABLES`, due to silent filtering of private-networking-only tables/topics when querying the system catalog.
* Empty or surprisingly missing results when querying `INFORMATION_SCHEMA` or `SHOW TABLES`, due to silent filtering of private-networking-only tables/topics when querying the system catalog.

Copilot uses AI. Check for mistakes.
## Private Networking Considerations

By default, this driver uses the public Confluent Cloud API networking endpoint for the provided cloud provider and region. However, if the Flink database / Kafka cluster you intend to query requires private networking connectivity, then provide the appropriate Flink private networking base URL as the `endpoint` parameter
to `connect()` or `Connection.__init__()`. Refer to the Confluent Cloud [Flink private networking documentation](https://docs.confluent.io/cloud/current/flink/concepts/flink-private-networking.html) for more information at composing your endpoint URL.
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar: "for more information at composing your endpoint URL" reads incorrect; consider "for more information on (or about) composing your endpoint URL".

Suggested change
to `connect()` or `Connection.__init__()`. Refer to the Confluent Cloud [Flink private networking documentation](https://docs.confluent.io/cloud/current/flink/concepts/flink-private-networking.html) for more information at composing your endpoint URL.
to `connect()` or `Connection.__init__()`. Refer to the Confluent Cloud [Flink private networking documentation](https://docs.confluent.io/cloud/current/flink/concepts/flink-private-networking.html) for more information on composing your endpoint URL.

Copilot uses AI. Check for mistakes.
slash is optional and will be stripped if provided (e.g., both
endpoint: The base URL for Confluent Cloud API (optional). If not provided, the public
networking endpoint will be constructed based on the cloud_provider and cloud_region
parameters ala "https://flink.{cloud_region}.{cloud_provider}.confluent.cloud".
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docstring wording: "parameters ala ..." is nonstandard English; consider changing to "in the format ..." or "like ..." for clarity.

Suggested change
parameters ala "https://flink.{cloud_region}.{cloud_provider}.confluent.cloud".
parameters in the format "https://flink.{cloud_region}.{cloud_provider}.confluent.cloud".

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how endpoint can be used for private networking endpoint

2 participants