open-consul/agent/config
Mark Anderson 18193f2916
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
..
testdata Add an internal env var for managed cluster config in the ui (#12796) 2022-04-15 09:55:52 -07:00
agent_limits.go
builder.go Support vault namespaces in connect CA (#12904) 2022-05-04 19:41:55 -07:00
builder_oss.go
builder_oss_test.go Rename `master` and `agent_master` ACL tokens in the config file format (#11665) 2021-12-01 21:08:14 +00:00
builder_test.go polish rpc.service.call metric behavior (#12624) 2022-03-31 10:49:37 -07:00
config.go peering: Make Upstream peer-aware (#12900) 2022-04-29 18:12:51 -04:00
config_oss.go Fixup acl.EnterpriseMeta 2022-04-05 15:11:49 -07:00
default.go agent: convert listener config to TLS types (#12522) 2022-03-24 15:32:25 -04:00
default_oss.go
deprecated.go agent: convert listener config to TLS types (#12522) 2022-03-24 15:32:25 -04:00
deprecated_test.go agent: convert listener config to TLS types (#12522) 2022-03-24 15:32:25 -04:00
doc.go
file_watcher.go add a rate limiter to config auto-reload (#12490) 2022-04-04 11:31:39 -04:00
file_watcher_test.go add a rate limiter to config auto-reload (#12490) 2022-04-04 11:31:39 -04:00
flags.go auto-reload configuration when config files change (#12329) 2022-03-31 15:11:49 -04:00
flags_test.go
flagset.go
golden_test.go
limits.go
limits_windows.go
merge.go
merge_test.go
ratelimited_file_watcher.go add a rate limiter to config auto-reload (#12490) 2022-04-04 11:31:39 -04:00
ratelimited_file_watcher_test.go add a rate limiter to config auto-reload (#12490) 2022-04-04 11:31:39 -04:00
runtime.go Add an internal env var for managed cluster config in the ui (#12796) 2022-04-15 09:55:52 -07:00
runtime_oss.go
runtime_oss_test.go
runtime_test.go Merge pull request #12685 from hashicorp/http-check-redirect-option 2022-04-07 11:29:27 -07:00
segment_oss.go
segment_oss_test.go