From 0ac7a59ec3a553a2ad5514a5170b92f83e986e7c Mon Sep 17 00:00:00 2001 From: Krystian Nowak Date: Thu, 17 Oct 2024 15:11:25 +0200 Subject: [PATCH] sync dispatcher immutable files with Dispatcher SDK and image v2.0.232 --- dispatcher/pom.xml | 8 +- .../src/conf.d/available_vhosts/default.vhost | 2 +- dispatcher/src/conf.d/dispatcher_vhost.conf | 141 +++++++++++------- .../available_farms/default.farm | 14 +- .../filters/default_filters.any | 4 +- 5 files changed, 108 insertions(+), 61 deletions(-) diff --git a/dispatcher/pom.xml b/dispatcher/pom.xml index c03a00bbbf..c9e53c4784 100644 --- a/dispatcher/pom.xml +++ b/dispatcher/pom.xml @@ -53,13 +53,13 @@ src/conf.d/available_vhosts/default.vhost - d4bc425c3f0ce825450019ce2501e14e + 758e78c452d8d93685eaaf6d78561828 md5 There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.d/available_vhosts/default.vhost src/conf.d/dispatcher_vhost.conf - 8be9f535a8a4d15bd895cebb2a9e03ad + 37d6ff3af540dea2d0b3eb6fcbd373cc md5 There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.d/dispatcher_vhost.conf @@ -77,7 +77,7 @@ src/conf.dispatcher.d/available_farms/default.farm - 3d8a01ff3465ac69b229bff6e90ecdeb + c5e805cade08939226c3c69ecd6ebc3a md5 There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.dispatcher.d/available_farms/default.farm @@ -113,7 +113,7 @@ src/conf.dispatcher.d/filters/default_filters.any - 33ab21977347e87a04dac059cd15fc06 + 89984e2bace630d1f2e160d1a01cf91f md5 There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.dispatcher.d/filters/default_filters.any diff --git a/dispatcher/src/conf.d/available_vhosts/default.vhost b/dispatcher/src/conf.d/available_vhosts/default.vhost index e284b20551..1733784c2c 100644 --- a/dispatcher/src/conf.d/available_vhosts/default.vhost +++ b/dispatcher/src/conf.d/available_vhosts/default.vhost @@ -28,7 +28,7 @@ Include conf.d/variables/custom.vars # Some items cache with the wrong mime type # Use this option to use the name to auto-detect mime types when cached improperly ModMimeUsePathInfo On - # Use this option to avoid cache poisioning + # Use this option to avoid cache poisoning # Sling will return /content/image.jpg as well as /content/image.jpg/ but apache can't search /content/image.jpg/ as a file # Apache will treat that like a directory. This assures the last slash is never stored in cache DirectorySlash Off diff --git a/dispatcher/src/conf.d/dispatcher_vhost.conf b/dispatcher/src/conf.d/dispatcher_vhost.conf index 3e48cfbfbc..b6368b61f6 100644 --- a/dispatcher/src/conf.d/dispatcher_vhost.conf +++ b/dispatcher/src/conf.d/dispatcher_vhost.conf @@ -15,8 +15,6 @@ Include conf.d/variables/global.vars # Liveness probe URL Alias "/system/probes/live" probes/live-status.json -# Readiness probe URL -Alias "/system/probes/ready" probes/ready-status.json # Startup probe URL Alias "/system/probes/start" probes/startup-status.json @@ -111,16 +109,53 @@ Alias "/system/probes/start" probes/startup-status.json -# Legacy /systemready mapped to new Health probe URL /system/probes/health in AEM - - ProxyPass http://${AEM_HOST}:${AEM_PORT}/system/probes/health - RewriteEngine Off - - -# Allow ingressroute checks through on /system/probes/health (regardless of dispatcher filters) - - ProxyPass http://${AEM_HOST}:${AEM_PORT}/system/probes/health - RewriteEngine Off +# managed redirect maps not configured (= backward-compatible) + + # Legacy /systemready mapped to new Health probe URL /system/probes/health in AEM + + ProxyPass http://${AEM_HOST}:${AEM_PORT}/system/probes/health + RewriteEngine Off + + + # Allow ingressroute checks through on /system/probes/health (regardless of dispatcher filters) + + ProxyPass http://${AEM_HOST}:${AEM_PORT}/system/probes/health + RewriteEngine Off + + +# managed redirect maps configured + + # check if traffic can be already allowed to pass (404/redirects not existing yet prevention) + + # Legacy /systemready mapped to new Health probe URL /system/probes/health in AEM + + ProxyPass http://${AEM_HOST}:${AEM_PORT}/system/probes/health + RewriteEngine Off + + + # Allow ingressroute checks through on /system/probes/health (regardless of dispatcher filters) + + ProxyPass http://${AEM_HOST}:${AEM_PORT}/system/probes/health + RewriteEngine Off + + + # else forcing "403 Forbidden" for Health probes + # "Any code greater than or equal to 200 and less than 400 indicates success. Any other code indicates failure." + # as per https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ + + + Require all denied + + + Require all denied + + + + +# Readiness probe for K8S Endpoints also depends on AEM readiness probe + + ProxyPass http://${AEM_HOST}:${AEM_PORT}/system/probes/ready + RewriteEngine Off # Allow access to CRXDE on dev environment @@ -228,48 +263,48 @@ Alias "/gitinit-status" metadata/gitinit-status.json Require expr "%{HTTP_HOST} == '${POD_NAME}'" -# Dedicated vhost for EaaS: +# Dedicated vhost for Adobe proxy testing: # (currently disabled, but customers can expect it to be enabled in future versions - CQ-4349728) -# -# ServerName "test.eaas" -# # possibility to make overrides before directives in this vhost -# IncludeOptional conf.d/includes/first-listed-vhost.pre.includes -# # since this vhost is first-listed one, this setting influences other vhosts - see https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestfieldsize -# LimitRequestFieldSize 32768 -# DocumentRoot /var/www/localhost/htdocs -# AllowEncodedSlashes NoDecode -# -# Header add X-Vhost "test.eaas" -# -# -# Options Indexes FollowSymLinks -# AllowOverride None -# Require all granted -# -# -# # SKYOPS-49434: Allow EaaS to access publish instance directly for dev and stage environments when test.eaas vhost is requested -# -# -# ProxyPassMatch http://${AEM_HOST}:${AEM_PORT} -# RewriteEngine Off -# -# -# -# -# ProxyPassMatch http://${AEM_HOST}:${AEM_PORT} -# RewriteEngine Off -# -# -# # 403 Forbidden on prod -# -# -# RewriteEngine on -# RewriteRule ^ - [F] -# -# -# # possibility to make overrides after directives in this vhost -# IncludeOptional conf.d/includes/first-listed-vhost.post.includes -# + + ServerName "test.proxy" + # possibility to make overrides before directives in this vhost + IncludeOptional conf.d/includes/first-listed-vhost.pre.includes + # since this vhost is first-listed one, this setting influences other vhosts - see https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestfieldsize + LimitRequestFieldSize 32768 + DocumentRoot /var/www/localhost/htdocs + AllowEncodedSlashes NoDecode + + Header add X-Vhost "test.proxy" + + + Options Indexes FollowSymLinks + AllowOverride None + Require all granted + + + # SKYOPS-49434: Allow EaaS to access publish instance directly for dev and stage environments when test.proxy vhost is requested + + + ProxyPassMatch http://${AEM_HOST}:${AEM_PORT} + RewriteEngine Off + + + + + ProxyPassMatch http://${AEM_HOST}:${AEM_PORT} + RewriteEngine Off + + + # 403 Forbidden on prod + + + RewriteEngine on + RewriteRule ^ - [F] + + + # possibility to make overrides after directives in this vhost + IncludeOptional conf.d/includes/first-listed-vhost.post.includes + # Customer's vhosts: Include conf.d/enabled_vhosts/*.vhost diff --git a/dispatcher/src/conf.dispatcher.d/available_farms/default.farm b/dispatcher/src/conf.dispatcher.d/available_farms/default.farm index a6bfbeeaf4..a35f6a8891 100644 --- a/dispatcher/src/conf.dispatcher.d/available_farms/default.farm +++ b/dispatcher/src/conf.dispatcher.d/available_farms/default.farm @@ -9,6 +9,9 @@ # /publishfarm { + # Dispatcher Debugging Flag + # Include X-Cache-Info response header if X-Dispatcher-Info is in request header + # /info "1" # client headers which should be passed through to the render instances # (feature supported since dispatcher build 2.6.3.5222) /clientheaders { @@ -34,6 +37,7 @@ # /url "/libs/granite/dispatcher/content/vanityUrls.html" # /file "/tmp/vanity_urls" # /delay 300 + # /loadOnStartup 1 # } # allow propagation of replication posts (should seldomly be used) /propagateSyndPost "0" @@ -86,9 +90,17 @@ } # The ignoreUrlParams section contains query string parameter names that # should be ignored when determining whether some request's output can be - # cached or delivered from cache. + # cached or delivered from cache. Please only enable one of the examples below. + # The recommended setting is to ignore all parameters and selectively allow them. e.g. + # /ignoreUrlParams { + # /0001 { /glob "*" /type "allow" } + # /0002 { /glob "page" /type "deny" } + # /0003 { /glob "product" /type "deny" } + # } + # # In this example configuration, the "q" parameter will be ignored as # well as general marketing related parameters such as e.g. utm_campaign. + # If any other parameters are specified the request gets forwarded to the publisher. # Marketing parameters can normally be ignored on most websites as they are tracked # through different means. # /ignoreUrlParams { diff --git a/dispatcher/src/conf.dispatcher.d/filters/default_filters.any b/dispatcher/src/conf.dispatcher.d/filters/default_filters.any index ae35ff0ec1..e1aa7229c9 100644 --- a/dispatcher/src/conf.dispatcher.d/filters/default_filters.any +++ b/dispatcher/src/conf.dispatcher.d/filters/default_filters.any @@ -96,8 +96,8 @@ # GraphQL Persisted Queries & preflight requests /0061 { /type "allow" /method '(GET|POST|OPTIONS)' /url "/graphql/execute.json*" } -# Allow Forms Document Services requests -/0062 { /type "allow" /method '(GET|POST)' /url "/adobe/forms/*" } +# Allow Adaptive Form & Document Services requests +/0062 { /type "allow" /method '(GET|POST|OPTIONS)' /url "/adobe/forms/*" } # Allow PUT for Forms DocAssurance Services Decryption API /0063 { /type "allow" /method "PUT" /url "/adobe/forms/document/assure/encrypt" }