Plugins: Ignore symlinked folders when verifying plugin signature (#34434) (#35719)

* add check + test

* fix test

* add manifest

* fix linter

* add nolint

* separate err cond checks

* only collect relevant plugin files

* skip symlinks

* refactor

* add missing test files + enable scanning Chromium.app/

* remove test since case already covered

* remove unnecessary changes from before

* refactor

* remove comment

(cherry picked from commit 303352a89b)

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-15 12:19:24 +02:00
committed by GitHub
co-authored by Will Browne
parent eb018c417d
commit c9b8c851fa
16 changed files with 215 additions and 92 deletions
-1
View File
@@ -71,7 +71,6 @@ type PluginBase struct {
PluginDir string `json:"-"`
DefaultNavUrl string `json:"-"`
IsCorePlugin bool `json:"-"`
Files []string `json:"-"`
SignatureType PluginSignatureType `json:"-"`
SignatureOrg string `json:"-"`