Skip to content

feat(ide/jetbrains): suppress JetBrains trust dialog#251

Merged
dubinsky merged 1 commit intoskevetter:mainfrom
dubinsky:suppress-jetbrains-trust-dialog
Jan 7, 2026
Merged

feat(ide/jetbrains): suppress JetBrains trust dialog#251
dubinsky merged 1 commit intoskevetter:mainfrom
dubinsky:suppress-jetbrains-trust-dialog

Conversation

@dubinsky
Copy link

@dubinsky dubinsky commented Jan 6, 2026

When a workspace is opened for the first time in a JetBrains IDE, a trust dialog pops up.

In most cases, is useless and annoying.

Fortunately, JetBrains provide a way to suppress this dialog: set a workspace environment variable REMOTE_DEV_TRUST_PROJECTS to any value.

Unfortunately, supplying --workspace-env REMOTE_DEV_TRUST_PROJECTS=1
to devpod up explicitly on the devpod up command line is arguably even more annoying...

This pull request adds a few more environment variables that can be used to supply values for devpod CLI options.

One of them can be used to seamlessly suppresses JetBrains trust dialog:

set DEVPOD_WORKSPACE_ENV="REMOTE_DEV_TRUST_PROJECTS=1" - for instance, in .envrc file.

@dubinsky dubinsky requested a review from skevetter January 6, 2026 18:08
Copy link
Owner

@skevetter skevetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

supplying --workspace-env REMOTE_DEV_TRUST_PROJECTS=1 to devpod up explicitly is arguably even more annoying...

I am not sure I follow. Could there be a case where the user is working on a repository and wants to grant trust through env or through the trust dialog?

For security purposes, I think the default should be to deny unless an override is supplied.

@dubinsky
Copy link
Author

dubinsky commented Jan 6, 2026

supplying --workspace-env REMOTE_DEV_TRUST_PROJECTS=1 to devpod up explicitly is arguably even more annoying...

I am not sure I follow. Could there be a case where the user is working on a repository and wants to grant trust through env or through the trust dialog?

For security purposes, I think the default should be to deny unless an override is supplied.

The dialog provides three choices (see https://www.jetbrains.com/help/idea/project-security.html#projects_security):

  • "Don't Open" - this is not a viable choice: if you do not want to open the project because you do not trust it, do not run devpod up ;)
  • "Trust Project" - I think that this is the intention of running devpod up, so this should not just be the default but the only meaningful choice;
  • "Preview in Safe Mode" - I personally see no use for this, nor is it (I think) an option for the non-JetBrains IDEs; requiring the developer to click on something to be able to work with the code seems unnecessary to me; but if you think that the default for JetBrains workspaces should be to deny, I am not going to argue - as long as a way to seamlessly remove this dialog is provided.

@skevetter
Copy link
Owner

I am fine with this change, but let's log a warning message stating that it is opening in unsafe (or trusted) mode.

If there is a demographic of 1 user, I don't see any reason for us to not support that preference, and we could reevaluate at a later time.

@dubinsky dubinsky force-pushed the suppress-jetbrains-trust-dialog branch from 6d0b36e to dceaf3c Compare January 6, 2026 21:36
@dubinsky
Copy link
Author

dubinsky commented Jan 6, 2026

I am fine with this change, but let's log a warning message stating that it is opening in unsafe (or trusted) mode.

If there is a demographic of 1 user, I don't see any reason for us to not support that preference, and we could reevaluate at a later time.

In the current form, this pull request no longer auto-sets anything; instead, it provides a way to supply the devpod up --workspace-env option via an environment variable DEVPOD_WORKSPACE_ENV. This is yet another step in the direction of enabling describing the environment via environment variables - and in this case, it can be used (by those who figure it out ;)) to set the default to "trust the projects that I open".

What do you think - should I re-instate the trust dialog suppression (with a warning you suggested) or leave it at that? Thanks!

@dubinsky dubinsky requested a review from skevetter January 6, 2026 22:42
Copy link
Owner

@skevetter skevetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the trust dialog suppression (with a warning you suggested)

If you are using IntelliJ on the regular basis, then I would add it. It improves the UX.

When a workspace is opened for the first time in a JetBrains IDE, a trust dialog pops up.

In most cases, is useless and annoying.

Fortunately, JetBrains provide a way to suppress this dialog: set a workspace environment variable `REMOTE_DEV_TRUST_PROJECTS` to any value.

Unfortunately, supplying `--workspace-env REMOTE_DEV_TRUST_PROJECTS=1`
to `devpod up` explicitly on the `devpod up` command line is arguably even more annoying...

This pull request adds a few more environment variables that can be used to supply values for devpod CLI options.

One of them can be used to seamlessly suppresses JetBrains trust dialog:
  set `DEVPOD_WORKSPACE_ENV="REMOTE_DEV_TRUST_PROJECTS=1"` - for instance, in `.envrc` file.

Signed-off-by: Leonid Dubinsky <dub@podval.org>
@dubinsky dubinsky force-pushed the suppress-jetbrains-trust-dialog branch from dceaf3c to 8030213 Compare January 6, 2026 23:36
@dubinsky
Copy link
Author

dubinsky commented Jan 6, 2026

the trust dialog suppression (with a warning you suggested)

If you are using IntelliJ on the regular basis, then I would add it. It improves the UX.

I do, but my UX will be fine with this pull request as is: it lets me set DEVPOD_WORKSPACE_ENV="REMOTE_DEV_TRUST_PROJECTS=1" in my .envrc file, and the "trust" pop up does not pop up any more...

I think for now I will just add the general facility to use environment variables DEVPOD_WORKSPACE_ENV (and DEVPOD_SINGLE_MACHINE).

@dubinsky dubinsky merged commit 2511cdc into skevetter:main Jan 7, 2026
35 checks passed
@dubinsky
Copy link
Author

dubinsky commented Jan 7, 2026

@skevetter for some reason, my pull request branches do not get deleted on merge...

@dubinsky dubinsky deleted the suppress-jetbrains-trust-dialog branch January 7, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants