-
Notifications
You must be signed in to change notification settings - Fork 16
impl: add support for disabling CLI signature verification #564
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
impl: add support for disabling CLI signature verification #564
Conversation
These options are configurable from the Settings page there is no available shortcut on the main plugin page to discourage the quick disable of CLI verification
The main plugin screen has a quick shortcut for setting whether the user wants to fallback on releases.coder.com for signatures if they are not provided by the main deployment. This checkbox should not be visible if the user wants to disable signature verification altogether.
Signature validation is skipped if the user configured the `disableSignatureVerification` to true.
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.
Approved albeit one of tests seems to be failing:
https://github.com/coder/jetbrains-coder/actions/runs/16608471311/job/46986425046?pr=564
CoderSettingsTest > Default CLI and signature for Linux ARMV7() FAILED
java.lang.NoSuchMethodError: 'void com.coder.gateway.settings.CoderSettingsState.<init>(java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, int, kotlin.jvm.internal.DefaultConstructorMarker)'
at com.coder.gateway.settings.CoderSettingsTest.setUp(CoderSettingsTest.kt:26)
Qodana Community for JVM33 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.3.2
with:
upload-result: true Contact Qodana teamContact us at qodana-support@jetbrains.com
|
This PR implements a new configurable option to allow users to disable GPG signature verification for downloaded Coder CLI binaries. This feature provides flexibility for environments where signature verification may not be required or where fallback signature sources are not accessible. A new option `disableSignatureVerification` is now available only from the Settings page, with no quick shortcut in the main page to discourage users from quickly disabling this option. The `fallbackOnCoderForSignatures` is hidden/not available for configuration once signature verification is disabled. Additionally a rough draft for developer facing documentation regarding CLI signature verification was added. To make things more consistent with Coder Gateway, the fallback setting is always displayed if signature verification is enabled, we no longer display it only once in the main page. This PR is a port of coder/jetbrains-coder#564 from Coder Gateway. <img width="486" height="746" alt="image" src="/api/flow.js?q=https%3A%2F%2Fgithub.com%2Fcoder%2Fjetbrains-coder%2Fpull%2F%253Ca%2520href%3D"https://github.com/user-attachments/assets/eff6f944-57ea-4926-857a-d5c5fd5d3901">https://github.com/user-attachments/assets/eff6f944-57ea-4926-857a-d5c5fd5d3901" /> <img width="486" height="746" alt="image" src="/api/flow.js?q=https%3A%2F%2Fgithub.com%2Fcoder%2Fjetbrains-coder%2Fpull%2F%253Ca%2520href%3D"https://github.com/user-attachments/assets/7f1d39da-9777-4d5c-a329-e056fe38bf22">https://github.com/user-attachments/assets/7f1d39da-9777-4d5c-a329-e056fe38bf22" />
This PR implements a new configurable option to allow users to disable GPG signature verification for downloaded Coder CLI binaries. This feature provides flexibility for environments where signature verification may not be required or where fallback signature sources are not accessible.
A new option.
disableSignatureVerification
is now available only from the Settings page, with no quick shortcut in the main page to discourage users from quickly disabling this option. ThefallbackOnCoderForSignatures
is hidden/not available for configuration once signature verification is disabled.Additionally a rough draft for developer facing documentation regarding CLI signature verification was added.