Mark Anderson c6ff4ba7d8
Support vault namespaces in connect CA (#12904)
* Support vault namespaces in connect CA

Follow on to some missed items from #12655

From an internal ticket "Support standard "Vault namespace in the
path" semantics for Connect Vault CA Provider"

Vault allows the namespace to be specified as a prefix in the path of
a PKI definition, but our usage of the Vault API includes calls that
don't support a namespaced key. In particular the sys.* family of
calls simply appends the key, instead of prefixing the namespace in
front of the path.

Unfortunately it is difficult to reliably parse a path with a
namespace; only vault knows what namespaces are present, and the '/'
separator can be inside a key name, as well as separating path
elements. This is in use in the wild; for example
'dc1/intermediate-key' is a relatively common naming schema.

Instead we add two new fields: RootPKINamespace and
IntermediatePKINamespace, which are the absolute namespace paths
'prefixed' in front of the respective PKI Paths.

Signed-off-by: Mark Anderson <manderson@hashicorp.com>
2022-05-04 19:41:55 -07:00
..
2022-04-05 14:51:10 -07:00
2021-11-16 12:04:01 -06:00
2021-11-16 12:04:01 -06:00
2022-04-05 14:51:10 -07:00
2022-04-05 14:51:10 -07:00
2022-05-04 08:50:59 -07:00
2022-05-04 08:50:59 -07:00
2022-04-05 15:11:49 -07:00
2021-11-16 12:04:01 -06:00
2022-04-05 14:51:10 -07:00
2022-04-05 14:51:10 -07:00
2022-04-05 14:51:10 -07:00
2022-04-05 14:51:10 -07:00
2022-04-05 14:51:10 -07:00
2022-04-21 17:34:40 -05:00
2022-03-28 17:34:41 -04:00
2021-11-16 12:04:01 -06:00
2022-04-05 14:49:31 -07:00
2022-04-05 14:49:31 -07:00