-
Notifications
You must be signed in to change notification settings - Fork 2
Add insecure option, deprecate allowSelfSigned #101
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
base: main
Are you sure you want to change the base?
Conversation
675a73d to
703f104
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple comments
Also, adding @GabrielCousin as reviewer as he's a typescript expert
| ): Promise<GGShieldConfiguration> { | ||
| const config = workspace.getConfiguration("gitguardian"); | ||
|
|
||
| const ggshieldPath: string | undefined = config.get("GGShieldPath"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's worth keeping for local debugging
| "type": "boolean", | ||
| "default": false, | ||
| "markdownDescription": "Allow Self Signed Certificates" | ||
| "markdownDescription": "Allow Self Signed Certificates", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the option still showing on the extension settings? Can you share a screenshot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is not a title, I'd suggest Allow self-signed certificates without capitalization.
| const insecure: boolean = config.get( | ||
| "insecure", | ||
| // Read allowSelfSigned for backward compatibility | ||
| config.get("allowSelfSigned", false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering if it could make sense to use a notification if the deprecated setting is still present? https://code.visualstudio.com/api/ux-guidelines/notifications
On one hand, it's seemless for the user but on the other hand, you can't know about the deprecation very easily, right?
| }); | ||
|
|
||
| const testCasesAllowSelfSigned = [ | ||
| const testCasesInsecure = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe consider temporarily keeping a test that asserts the --insecure flag is forced if providing allowSelfSigned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some orthography suggestions.
| "type": "string", | ||
| "default": "", | ||
| "markdownDescription": "You can override the value here for On Premise installations" | ||
| "markdownDescription": "You can override the value here for On Premise installations", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change On Premise to on-premises?
| "type": "boolean", | ||
| "default": false, | ||
| "markdownDescription": "Allow Self Signed Certificates" | ||
| "markdownDescription": "Allow Self Signed Certificates", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is not a title, I'd suggest Allow self-signed certificates without capitalization.
Context
ggshield 1.44 introduced the
--insecureoption to replace the ambiguous--allow-self-signed. This PR makes similar changes to the VSCode extension.What has been done
insecure.allowSelfSignedsetting as deprecated.--insecureinstead of--allow-self-signed.PR check list