Skip to content

Commit

Permalink
Add some more SealWrap declarations (#3531)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai authored Nov 3, 2017
1 parent d2e23f1 commit 8004f05
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin/credential/aws/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ func Backend(conf *logical.BackendConfig) (*backend, error) {
LocalStorage: []string{
"whitelist/identity/",
},
SealWrapStorage: []string{
"config/client",
},
},
Paths: []*framework.Path{
pathLogin(b),
Expand Down
4 changes: 4 additions & 0 deletions builtin/credential/ldap/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ func Backend() *backend {
Unauthenticated: []string{
"login/*",
},

SealWrapStorage: []string{
"config",
},
},

Paths: append([]*framework.Path{
Expand Down
3 changes: 3 additions & 0 deletions builtin/credential/okta/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ func Backend() *backend {
Unauthenticated: []string{
"login/*",
},
SealWrapStorage: []string{
"config",
},
},

Paths: append([]*framework.Path{
Expand Down
4 changes: 4 additions & 0 deletions builtin/credential/radius/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ func Backend() *backend {
"login",
"login/*",
},

SealWrapStorage: []string{
"config",
},
},

Paths: append([]*framework.Path{
Expand Down
3 changes: 3 additions & 0 deletions builtin/logical/aws/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ func Backend() *backend {
LocalStorage: []string{
framework.WALPrefix,
},
SealWrapStorage: []string{
"config/root",
},
},

Paths: []*framework.Path{
Expand Down
6 changes: 6 additions & 0 deletions builtin/logical/cassandra/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ func Backend() *backend {
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),

PathsSpecial: &logical.Paths{
SealWrapStorage: []string{
"config/connection",
},
},

Paths: []*framework.Path{
pathConfigConnection(&b),
pathRoles(&b),
Expand Down
6 changes: 6 additions & 0 deletions builtin/logical/consul/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ func Factory(conf *logical.BackendConfig) (logical.Backend, error) {
func Backend() *backend {
var b backend
b.Backend = &framework.Backend{
PathsSpecial: &logical.Paths{
SealWrapStorage: []string{
"config/access",
},
},

Paths: []*framework.Path{
pathConfigAccess(),
pathListRoles(&b),
Expand Down
6 changes: 6 additions & 0 deletions builtin/logical/database/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ func Backend(conf *logical.BackendConfig) *databaseBackend {
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),

PathsSpecial: &logical.Paths{
SealWrapStorage: []string{
"config/*",
},
},

Paths: []*framework.Path{
pathListPluginConnection(&b),
pathConfigurePluginConnection(&b),
Expand Down
6 changes: 6 additions & 0 deletions builtin/logical/mongodb/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ func Backend() *framework.Backend {
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),

PathsSpecial: &logical.Paths{
SealWrapStorage: []string{
"config/connection",
},
},

Paths: []*framework.Path{
pathConfigConnection(&b),
pathConfigLease(&b),
Expand Down
6 changes: 6 additions & 0 deletions builtin/logical/mssql/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ func Backend() *backend {
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),

PathsSpecial: &logical.Paths{
SealWrapStorage: []string{
"config/connection",
},
},

Paths: []*framework.Path{
pathConfigConnection(&b),
pathConfigLease(&b),
Expand Down
6 changes: 6 additions & 0 deletions builtin/logical/mysql/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ func Backend() *backend {
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),

PathsSpecial: &logical.Paths{
SealWrapStorage: []string{
"config/connection",
},
},

Paths: []*framework.Path{
pathConfigConnection(&b),
pathConfigLease(&b),
Expand Down
6 changes: 6 additions & 0 deletions builtin/logical/postgresql/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ func Backend(conf *logical.BackendConfig) *backend {
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),

PathsSpecial: &logical.Paths{
SealWrapStorage: []string{
"config/connection",
},
},

Paths: []*framework.Path{
pathConfigConnection(&b),
pathConfigLease(&b),
Expand Down
6 changes: 6 additions & 0 deletions builtin/logical/rabbitmq/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ func Backend() *backend {
b.Backend = &framework.Backend{
Help: strings.TrimSpace(backendHelp),

PathsSpecial: &logical.Paths{
SealWrapStorage: []string{
"config/connection",
},
},

Paths: []*framework.Path{
pathConfigConnection(&b),
pathConfigLease(&b),
Expand Down

0 comments on commit 8004f05

Please sign in to comment.