confluentinc / confluentinc/vscode

Validate existence + vanilla file-ness of chosen or typed-in SSL PEM or JKS path

Open
#1,110 0 comments 0 reactions 1 assignee Claimed by @noeldevelops View on GitHub
direct connection/resources
Dominant language
TypeScript
Stars
34
Forks
17
Avg merge
1d 22h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.