mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Add deprecation notices for policymap/pathmap
External plugin authors keep using it :-(
This commit is contained in:
@@ -10,6 +10,9 @@ import (
|
||||
"github.com/hashicorp/vault/sdk/logical"
|
||||
)
|
||||
|
||||
// DEPRECATED: Don't use this. It's too inflexible, nearly impossible to use
|
||||
// with some modern Vault features, and imposes specific API designs.
|
||||
//
|
||||
// PathMap can be used to generate a path that stores mappings in the
|
||||
// storage. It is a structure that also exports functions for querying the
|
||||
// mappings.
|
||||
|
||||
@@ -8,6 +8,9 @@ import (
|
||||
"github.com/hashicorp/vault/sdk/logical"
|
||||
)
|
||||
|
||||
// DEPRECATED: Don't use this. It's too inflexible, nearly impossible to use
|
||||
// with some modern Vault features, and imposes specific API designs.
|
||||
//
|
||||
// PolicyMap is a specialization of PathMap that expects the values to
|
||||
// be lists of policies. This assists in querying and loading policies
|
||||
// from the PathMap.
|
||||
|
||||
Reference in New Issue
Block a user