Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support secure schema access #1369

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

Conversation

ankitk-me
Copy link
Contributor

Fixes #1195

@ankitk-me ankitk-me requested a review from jfallows January 15, 2025 09:33
Copy link
Contributor

@jfallows jfallows left a comment

Choose a reason for hiding this comment

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

This looks good.

How would we support TLS client certificates to securely access a schema registry?

@@ -97,7 +98,7 @@ public SchemaRegistryCatalogHandler(
VaultHandler vault = supplyVault.apply(catalog.vaultId);

HttpClient client;
if (vault != null)
if (this.baseUrl.regionMatches(true, 0, HTTPS, 0, 5))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (this.baseUrl.regionMatches(true, 0, HTTPS, 0, 5))
if (this.baseUrl.startsWith("https://"))

FYI - we don't tolerate case-insensitive https scheme anywhere else.

Comment on lines 131 to 137
"then":
{
"properties":
{
"tls": true
}
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this still validate the contents of tis properly when https url is present?

Copy link
Contributor

@jfallows jfallows left a comment

Choose a reason for hiding this comment

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

Please confirm invalid content for tls is rejected when https:// url is present.

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.

Allow separate Auth config for Catalog definitions
2 participants