From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id C2C431FF161 for ; Tue, 10 Sep 2024 02:31:20 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5B4AC1BD14; Tue, 10 Sep 2024 02:31:21 +0200 (CEST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725928241; x=1726533041; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fO0OQcWL7E9ADopFDNyw1nuTnymZFtQ9VJ7VcHoLnBE=; b=McUNVInpth/TlpCW2XEY2azy9ZY9gTclN0gcBbRRNbSJfDpZvmGVlHDqrmjGgZogXI jiD4oXaHjIBTFJdKuPGqRu+1ZEGbUR3EzlsqEAwaNHOKb9CHYZw2+vsdXeXWrNCpttkH 7vQsylfCiayegmQxK+ZIyIEWNpPgGgr+XGlc10KKhdygIqxSGfUcRY18z1ufDLoURoHf 9JT4m+nCF1oSRhzWUPiPnKzuAf+aIw698Y8LrnpPI8GWcxDSpk7cAv+pK6F4nWACw1n9 RLHzyMUbRdxsH9pP/iG/ZxRwwv+sQNacxYXr10IIqTINvnvXPX3gXUnaxzK7wGUos414 Pp6w== X-Gm-Message-State: AOJu0YwlGeMck4aWu8oVk17sikp6fhqLRyxXteS8MaPePPkOyguC5Y8l iqRJfqzxBc6E01CWiJzrkYcSDQKKiUSyLbvLB9KaoytDN8faTVIcyRH3Yg== X-Google-Smtp-Source: AGHT+IHt0AC5L4hdx5zweb4JbgtkWx0BUlm/6x9EbiTGkKFRFjv23Dau5i3PeFt5I01LQUHxa2jFLg== X-Received: by 2002:a05:690c:d8c:b0:65f:aaf1:9dd3 with SMTP id 00721157ae682-6db71bf09bamr54335247b3.2.1725928241220; Mon, 09 Sep 2024 17:30:41 -0700 (PDT) From: Thomas Skinner To: pve-devel@lists.proxmox.com Date: Mon, 9 Sep 2024 19:30:23 -0500 Message-Id: <20240910003026.667328-1-thomas@atskinner.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.004 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy FREEMAIL_FORGED_FROMDOMAIN 0.001 2nd level domains in From and EnvelopeFrom freemail headers are different FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider HEADER_FROM_DIFFERENT_DOMAINS 0.249 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust RCVD_IN_MSPIKE_H2 -0.001 Average reputation (+2) RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [anyevent.pm, utils.pm, pveproxy.pm] Subject: [pve-devel] [PATCH SERIES manager/http-server/docs] fix #5699: add support for real IP X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" This patch series adds support for setting a HTTP header for passing through a client IP address for logging purposes. Two settings are introduced for /etc/default/pveproxy: PROXY_REAL_IP_HEADER: defines a HTTP header to extract a client IP address from in the request. If the IP address is invalid, it is ignored. Otherwise, it is logged in addition to the sending peer IP address. TRUSTED_PROXY_IPS: defines a list of IP addresses or ranges that are allowed to set the header defined in PROXY_REAL_IP_HEADER. If this setting is not set, any requests with the PROXY_REAL_IP_HEADER set will have the extracted IP address logged. pve-docs: Thomas Skinner (1): fix #5699: pveproxy: add docs for real IP support pveproxy.adoc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) pve-http-server: Thomas Skinner (1): fix #5699: pveproxy: add library methods for real IP support src/PVE/APIServer/AnyEvent.pm | 43 ++++++++++++++++++++++++++++++++--- src/PVE/APIServer/Utils.pm | 15 ++++++++++++ 2 files changed, 55 insertions(+), 3 deletions(-) pve-manager: Thomas Skinner (1): fix #5699: pveproxy: add settings for real IP support PVE/Service/pveproxy.pm | 2 ++ 1 file changed, 2 insertions(+) -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel