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 existence + vanilla file-ness of chosen or typed-in SSL PEM or JKS path #1110

Open
jlrobins opened this issue Mar 3, 2025 · 0 comments
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

When SSL PEM or JKS file path is typed it, need to have extension-side validate that the path is stat-able, the user has read perms on it, and that it stats to a vanilla file and not a directory or a socket path.

Basically, call https://nodejs.org/en/learn/manipulating-files/nodejs-file-stats and ensure stats.isFile().

If any fails, then can throw up an immediate polite error message around the file path input.

@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

3 participants