Skip to content

Commit

Permalink
Allow unsigned nested plugins if parent is allowed (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
mure authored and cameronwaterman committed Nov 12, 2024
1 parent a347048 commit 5f2a746
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/plugins/manager/signature/authorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@ func (u *UnsignedPluginAuthorizer) CanLoadPlugin(p *plugins.Plugin) bool {
}
}

// Allow a plugin to be unsigned when nested in an whitelisted app plugin
if p.Parent != nil {
for _, pID := range u.cfg.PluginsAllowUnsigned {
if pID == p.Parent.ID {
return true
}
}
}

return false
}

0 comments on commit 5f2a746

Please sign in to comment.