[Kimchi-devel] [PATCH] [Wok] Remove support for TLS v1.0 and add SSL timeout
Aline Manera
alinefm at linux.vnet.ibm.com
Fri Jun 17 14:59:19 UTC 2016
Hi Lucio,
On 06/15/2016 06:13 PM, Lucio Correia wrote:
> Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
> ---
> src/nginx/wok.conf.in | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/nginx/wok.conf.in b/src/nginx/wok.conf.in
> index 8dd5d7c..f56f5c0 100644
> --- a/src/nginx/wok.conf.in
> +++ b/src/nginx/wok.conf.in
> @@ -62,10 +62,11 @@ http {
>
> ssl_certificate ${cert_pem};
> ssl_certificate_key ${cert_key};
> - ssl_protocols TLSv1 TLSv1.1 TLSv1.2;he te
> + ssl_protocols TLSv1.1 TLSv1.2;
> ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:@STRENGTH';
> ssl_prefer_server_ciphers on;
> ssl_dhparam ${dhparams_pem};
> + ssl_session_timeout 10m;
>
The session timeout value is configured in wok.conf file
So you should use this value here.
You can add a placeholder like ${session_timeout} and pass the right
value to the template in proxy.py (_create_proxy_config).
> add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
> add_header X-Frame-Options DENY;
More information about the Kimchi-devel
mailing list