[Kimchi-devel] [PATCH V2] [Wok] Remove support for TLS v1.0 and add SSL timeout

Ramon Medeiros ramonn at linux.vnet.ibm.com
Fri Jun 17 20:10:54 UTC 2016


Reviewed-By: Ramon Medeiros <ramonn at br.ibm.com>

On 06/17/2016 04:30 PM, Lucio Correia wrote:
> Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
> ---
>   src/nginx/wok.conf.in | 3 ++-
>   src/wok/proxy.py      | 1 +
>   2 files changed, 3 insertions(+), 1 deletion(-)
>
> Changes in V2:
> * read timeout value from config
>
> diff --git a/src/nginx/wok.conf.in b/src/nginx/wok.conf.in
> index 8dd5d7c..cb05e4d 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;
> +        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 ${session_timeout}m;
>
>           add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
>           add_header X-Frame-Options DENY;
> diff --git a/src/wok/proxy.py b/src/wok/proxy.py
> index 9d39dbd..a74e88a 100644
> --- a/src/wok/proxy.py
> +++ b/src/wok/proxy.py
> @@ -102,6 +102,7 @@ def _create_proxy_config(options):
>                                   websockets_port=options.websockets_port,
>                                   cert_pem=cert, cert_key=key,
>                                   max_body_size=eval(options.max_body_size),
> +                                session_timeout=options.session_timeout,
>                                   dhparams_pem=dhparams_pem)
>
>       # Write file to be used for nginx.

-- 

Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn at br.ibm.com




More information about the Kimchi-devel mailing list