dev mode: skip auto register ent plugins (#14382) (#14387)

Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com>
This commit is contained in:
Vault Automation 2026-05-07 14:11:08 -06:00 committed by GitHub
parent 74ab0fec97
commit 70da33ce56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3069,6 +3069,16 @@ func initDevCore(c *ServerCommand, coreConfig *vault.CoreConfig, config *server.
for _, name := range list {
path := filepath.Join(f.Name(), name)
// Skip directories (e.g., enterprise plugin packages)
fileInfo, err := os.Stat(path)
if err != nil {
return fmt.Errorf("Error reading plugin file info %s: %s", name, err)
}
if fileInfo.IsDir() {
continue
}
if err := c.addPlugin(path, init.RootToken, core); err != nil {
if !errwrap.Contains(err, plugincatalog.ErrPluginBadType.Error()) {
return fmt.Errorf("Error enabling plugin %s: %s", name, err)