Validate existence + vanilla file-ness of chosen or typed-in SSL PEM or JKS path #1110
Labels
direct resources
Connecting to or interacting with Kafka or Schema Registry through a "direct" connection.
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.
The text was updated successfully, but these errors were encountered: