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

Validate chosen PEM or JKS file is actually a PEM or JKS file #1111

Open
jlrobins opened this issue Mar 3, 2025 · 1 comment
Open

Validate chosen PEM or JKS file is actually a PEM or JKS file #1111

jlrobins opened this issue Mar 3, 2025 · 1 comment
Assignees
Labels
direct resources Connecting to or interacting with Kafka or Schema Registry through a "direct" connection.

Comments

@jlrobins
Copy link
Contributor

jlrobins commented Mar 3, 2025

We could do a little file validation here based on the file type chosen and sniffing of contents through basic heuristics to help ensure the user has chosen not obviously definitely wrong files based on either JKS or PEM formats.

@noeldevelops could do the form -> extension host messaging easy enough, and a @jlrobins or @shouples could provide the implementation functions for extension-side validateSSLFileFormat(type: PEMorJKSEnum, path: Path): void or Error-with-message-to-show-to-user-raised function.

@rohitsanj
Copy link
Contributor

We also have PKCS12 in case we wanted to validate that too.

@shouples shouples added the direct resources Connecting to or interacting with Kafka or Schema Registry through a "direct" connection. label Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
direct resources Connecting to or interacting with Kafka or Schema Registry through a "direct" connection.
Projects
None yet
Development

No branches or pull requests

4 participants