Revert "AutoMTLS for secrets/auth plugins (#15671)" (#16377)

This reverts commit 39bcd5c715.
This commit is contained in:
John-Michael Faircloth
2022-07-20 10:36:23 -05:00
committed by GitHub
parent a5f6b1cc70
commit 58b88b8aca
14 changed files with 439 additions and 740 deletions

View File

@@ -37,13 +37,12 @@ func Serve(opts *ServeOpts) error {
})
}
// pluginSets is the map of plugins we can dispense.
// pluginMap is the map of plugins we can dispense.
pluginSets := map[int]plugin.PluginSet{
// Version 3 used to supports both protocols. We want to keep it around
// since it's possible old plugins built against this version will still
// work with gRPC. There is currently no difference between version 3
// and version 4.
// AutoMTLS is not supported by versions lower than 5.
3: {
"backend": &GRPCBackendPlugin{
Factory: opts.BackendFactoryFunc,
@@ -56,13 +55,6 @@ func Serve(opts *ServeOpts) error {
Logger: logger,
},
},
5: {
"backend": &GRPCBackendPlugin{
Factory: opts.BackendFactoryFunc,
Logger: logger,
AutoMTLSSupported: true,
},
},
}
err := pluginutil.OptionallyEnableMlock()