confluentinc / confluentinc/vscode

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

Open
#1,111 1 comment 0 reactions 2 assignees 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

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.

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.