confluentinc / confluentinc/vscode
Validate chosen PEM or JKS file is actually a PEM or JKS file
Open
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
Assessment
This issue has not been assessed yet.