mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
Chroot Listener (#22304)
* Initial oss-patch apply * Added changelog * Renamed changelog txt * Added the imports to the handler file * Added a check that no two ports are the same, and modified changelog * Edited go sum entry * Tidy up using go mod * Use strutil instead * Revert go sum and go mod * Revert sdk go sum * Edited go.sum to before * Edited go.sum again to initial * Revert changes
This commit is contained in:
@@ -789,7 +789,8 @@ func testConfig_Sanitized(t *testing.T) {
|
||||
"listeners": []interface{}{
|
||||
map[string]interface{}{
|
||||
"config": map[string]interface{}{
|
||||
"address": "127.0.0.1:443",
|
||||
"address": "127.0.0.1:443",
|
||||
"chroot_namespace": "admin/",
|
||||
},
|
||||
"type": "tcp",
|
||||
},
|
||||
@@ -882,6 +883,7 @@ listener "tcp" {
|
||||
proxy_api {
|
||||
enable_quit = true
|
||||
}
|
||||
chroot_namespace = "admin"
|
||||
}`))
|
||||
|
||||
config := Config{
|
||||
@@ -926,6 +928,7 @@ listener "tcp" {
|
||||
EnableQuit: true,
|
||||
},
|
||||
CustomResponseHeaders: DefaultCustomHeaders,
|
||||
ChrootNamespace: "admin/",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -12,6 +12,7 @@ cluster_addr = "top_level_cluster_addr"
|
||||
|
||||
listener "tcp" {
|
||||
address = "127.0.0.1:443"
|
||||
chroot_namespace="admin/"
|
||||
}
|
||||
|
||||
backend "consul" {
|
||||
|
||||
Reference in New Issue
Block a user