-
Notifications
You must be signed in to change notification settings - Fork 55
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
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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?
...s/io/aklivity/zilla/specs/catalog/schema/registry/config/resolve/schema/id/secure/zilla.yaml
Outdated
Show resolved
Hide resolved
specs/engine.spec/src/main/scripts/io/aklivity/zilla/specs/engine/schema/engine.schema.json
Show resolved
Hide resolved
...pts/io/aklivity/zilla/specs/catalog/schema/registry/schema/schema.registry.schema.patch.json
Outdated
Show resolved
Hide resolved
.../runtime/catalog/schema/registry/internal/config/SchemaRegistryOptionsConfigAdapterTest.java
Outdated
Show resolved
Hide resolved
...klivity/zilla/runtime/catalog/schema/registry/internal/SchemaRegistryCatalogHandlerTest.java
Outdated
Show resolved
Hide resolved
...ity/zilla/runtime/catalog/schema/registry/internal/handler/SchemaRegistryCatalogHandler.java
Outdated
Show resolved
Hide resolved
...io/aklivity/zilla/runtime/catalog/schema/registry/internal/SchemaRegistryCatalogContext.java
Outdated
Show resolved
Hide resolved
...io/aklivity/zilla/runtime/catalog/schema/registry/internal/SchemaRegistryCatalogContext.java
Outdated
Show resolved
Hide resolved
...io/aklivity/zilla/runtime/catalog/schema/registry/internal/SchemaRegistryCatalogContext.java
Outdated
Show resolved
Hide resolved
@@ -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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
...c/test/java/io/aklivity/zilla/runtime/catalog/schema/registry/internal/SchemaRegistryIT.java
Outdated
Show resolved
Hide resolved
...c/test/java/io/aklivity/zilla/runtime/catalog/schema/registry/internal/SchemaRegistryIT.java
Outdated
Show resolved
Hide resolved
"then": | ||
{ | ||
"properties": | ||
{ | ||
"tls": true | ||
} | ||
}, |
There was a problem hiding this comment.
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?
...ry.spec/src/test/java/io/aklivity/zilla/specs/catalog/schema/registry/config/SchemaTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
Fixes #1195