Skip to content

Commit

Permalink
turn on proxy ssl verification
Browse files Browse the repository at this point in the history
unfortunately this can't be behind a flag
  • Loading branch information
mikz committed Mar 24, 2017
1 parent 25c4230 commit 2fe7e5c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions apicast/.s2iignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.s2i
conf/ca-bundle.crt
apicast.d/proxy_ssl.conf
4 changes: 4 additions & 0 deletions apicast/apicast.d/proxy_ssl.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file is not in the built docker image and have to be added by hand.

proxy_ssl_trusted_certificate ca-bundle.crt;
proxy_ssl_verify on;
4 changes: 4 additions & 0 deletions apicast/conf.d/apicast.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ location @out_of_band_authrep_action {
}
}

proxy_ssl_server_name on;
proxy_ssl_name $http_host;
proxy_ssl_verify_depth 5;

location / {
set $cached_key null;
set $credentials null;
Expand Down
2 changes: 2 additions & 0 deletions apicast/http.d/init.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ init_by_lua_block {
init_worker_by_lua_block {
require('module'):init_worker()
}

lua_shared_dict init 16k;
2 changes: 1 addition & 1 deletion t/012-configuration-loading-boot-with-config.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ my $pwd = cwd();
my $apicast = $ENV{TEST_NGINX_APICAST_PATH} || "$pwd/apicast";

$ENV{TEST_NGINX_LUA_PATH} = "$apicast/src/?.lua;;";
$ENV{TEST_NGINX_HTTP_CONFIG} = "$apicast/http.d/*.conf";
$ENV{TEST_NGINX_HTTP_CONFIG} = "$apicast/http.d/init.conf";
$ENV{TEST_NGINX_APICAST_PATH} = $apicast;
$ENV{APICAST_CONFIGURATION_LOADER} = 'boot';
$ENV{THREESCALE_CONFIG_FILE} = 't/servroot/html/config.json';
Expand Down

0 comments on commit 2fe7e5c

Please sign in to comment.