Add initial templating support to Vault credential libraries (#2569) (#2575)

Add initial templating support to Vault credential libraries

This adds support for templating various account and user values into
Vault dynamic credential library POST bodies and GET/POST paths.

It also unifies how parameters are used in grants, with backwards
compatibility.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2022-10-27 09:01:05 -04:00
1 parent b5ef8a516b
commit cede1aec93
25 files changed
+612 -78

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
package util
// Pointer is just a generic function to return a pointer of whatever type is
// given
func Pointer[T any](input T) *T {
ret := input
return &ret
}