Merge pull request #2293 from Xvvln/fix/management-asset-security

fix(security): harden management panel asset updater
This commit is contained in:
Luis Pater
2026-03-25 10:22:49 +08:00
committed by GitHub
3 changed files with 21 additions and 2 deletions
+3
View File
@@ -178,6 +178,9 @@ type RemoteManagement struct {
SecretKey string `yaml:"secret-key"`
// DisableControlPanel skips serving and syncing the bundled management UI when true.
DisableControlPanel bool `yaml:"disable-control-panel"`
// AutoUpdatePanel enables automatic periodic background updates of the management panel asset from GitHub.
// When false (the default), the panel is only downloaded on first access if missing, and never auto-updated.
AutoUpdatePanel bool `yaml:"auto-update-panel"`
// PanelGitHubRepository overrides the GitHub repository used to fetch the management panel asset.
// Accepts either a repository URL (https://github.com/org/repo) or an API releases endpoint.
PanelGitHubRepository string `yaml:"panel-github-repository"`