Add special path to enforce root on plugin configuration

This commit is contained in:
Brian Kassouf
2017-03-09 21:31:29 -08:00
parent 3766ab14e5
commit b63147b7c2
3 changed files with 146 additions and 113 deletions

View File

@@ -20,8 +20,15 @@ func Backend(conf *logical.BackendConfig) *databaseBackend {
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),
PathsSpecial: &logical.Paths{
Root: []string{
"dbs/plugin/*",
},
},
Paths: []*framework.Path{
pathConfigConnection(&b),
pathConfigureConnection(&b),
pathConfigurePluginConnection(&b),
pathListRoles(&b),
pathRoles(&b),
pathRoleCreate(&b),