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:
divyaac
2023-08-14 12:35:34 -07:00
committed by GitHub
parent 951f1fef1b
commit d5b29f697a
12 changed files with 146 additions and 20 deletions

View File

@@ -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/",
},
},
},

View File

@@ -12,6 +12,7 @@ cluster_addr = "top_level_cluster_addr"
listener "tcp" {
address = "127.0.0.1:443"
chroot_namespace="admin/"
}
backend "consul" {