mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
Add '.' to GenericNameRegex; it cannot appear as the first or last
character. This allows its usage in a number of extra path-based variables. Ping #244
This commit is contained in:
parent
c0f6fa88a7
commit
97820e2d77
@ -10,6 +10,7 @@ IMPROVEMENTS:
|
||||
* core: The physical storage read cache can now be disabled via "disable_cache" [GH-674]
|
||||
* core: Tokens can now renew themselves [GH-455]
|
||||
* core: Base64-encoded PGP keys can be used with the CLI for `init` and `rekey` operations [GH-653]
|
||||
* logical: Allow `.` in path-based variables in many more locations [GH-244]
|
||||
* logical: Responses now contain a "warnings" key containing a list of warnings returned from the server. These are conditions that did not require failing an operation, but of which the client should be aware. [GH-676]
|
||||
|
||||
BUG FIXES:
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
// Helper which returns a generic regex string for creating endpoint patterns
|
||||
// that are identified by the given name in the backends
|
||||
func GenericNameRegex(name string) string {
|
||||
return fmt.Sprintf("(?P<%s>\\w[\\w-]+\\w)", name)
|
||||
return fmt.Sprintf("(?P<%s>\\w[\\w-.]+\\w)", name)
|
||||
}
|
||||
|
||||
// PathAppend is a helper for appending lists of paths into a single
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user