Skip to content

feat: dprint upgrade bypasses DPRINT_ALLOWED_HOSTS - #1499

Merged
dsherret merged 2 commits into
mainfrom
feat/upgrade-bypass-allowed-hosts
Dec 1, 2026
Merged

dsherret merged 2 commits into
mainfrom
feat/upgrade-bypass-allowed-hosts

Conversation

@dsherret

@dsherret dsherret commented Dec 1, 2026

Copy link
Copy Markdown
Member

Makes dprint upgrade not restricted by DPRINT_ALLOWED_HOSTS. Otherwise, upgrading requires allowing plugins.dprint.dev, github.com, and the host GitHub redirects release assets to, which opens those hosts up for everything else (ex. a plugin or extended config in any GitHub repo).

  • Only the two requests upgrade makes bypass it (along with their redirects and proxy). The version check in --help is still restricted.
  • upgrade still only allows https when the variable is set.

This means the variable can't be used to block dprint upgrade.

@dsherret
dsherret merged commit 4946009 into main Dec 1, 2026
6 checks passed
@dsherret
dsherret deleted the feat/upgrade-bypass-allowed-hosts branch December 1, 2026 00:36
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.

1 participant