From e0245cff41d0db4e97522e85ecb29b023d7f2b87 Mon Sep 17 00:00:00 2001 From: Jorge Merlino Date: Fri, 25 Jul 2025 12:16:42 -0300 Subject: [PATCH] Change flag for enabling secure cookies Secure cookies where enabled on the local_settings.py template by the flag ssl_configured that was not set anywhere. Setting now that flag on the ApacheSSLContext class. Also fixed functional tests. Closes-Bug: #2118778 Change-Id: Ic73b1a6a878efae126c87764d2a26afbfce4d740 Signed-off-by: Jorge Merlino (cherry picked from commit 2c43ae4b6e6e6b740b96e1ac672e9cb3a5bacbea) --- hooks/horizon_contexts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hooks/horizon_contexts.py b/hooks/horizon_contexts.py index 39bc0d96..e792316f 100644 --- a/hooks/horizon_contexts.py +++ b/hooks/horizon_contexts.py @@ -317,7 +317,10 @@ class ApacheSSLContext(context.ApacheSSLContext): service_namespace = 'horizon' def __call__(self): - return super(ApacheSSLContext, self).__call__() + ctxt = super(ApacheSSLContext, self).__call__() + ctxt["ssl_configured"] = https() + + return ctxt class RouterSettingContext(OSContextGenerator):