From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Never send user email address in HTTP requests Date: Sun, 17 Dec 2023 09:30:54 -0800 Message-ID: References: <8734ybkqf4.fsf@disroot.org> <87sf54q2t8.fsf@posteo.net> <87o7etlzx7.fsf@posteo.net> <83v88xjipo.fsf@gnu.org> <83il4xj9cc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="990"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Stefan Kangas , rms@gnu.org, philipk@posteo.net, akib@disroot.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 17 18:32:04 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rEuzj-000AWV-RY for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Dec 2023 18:32:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEuyu-0004GN-Po; Sun, 17 Dec 2023 12:31:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEuyj-0004CS-U2 for emacs-devel@gnu.org; Sun, 17 Dec 2023 12:31:02 -0500 Original-Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rEuyi-0002MR-6U for emacs-devel@gnu.org; Sun, 17 Dec 2023 12:31:01 -0500 Original-Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3ba31cc0d77so1979205b6e.1 for ; Sun, 17 Dec 2023 09:30:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702834258; x=1703439058; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EJEa5rIdE05cBerwH9RPZn9aINaxVFElRoQK5ZjpTOQ=; b=168Eh5JRnoA5ehY0ElomnmFECG8FGFIZWg88dMQXr4HhudIvDkRj0dZTiT4DbZvNOh qEawtW4MfcwPblf3WI4v+woYxM4Aw1qbD5ROQrjH8qBzq9D9zws2cwAHhXaHWr58TqJW OWcLs7OAm8nFi5tLgupXS1KZtD7f6uhVBwg5n0M4rIlRqV0Eyo1Z8lFIC7R6TNlBGdwA JRZfFd7AFo9L3X86RsmWSviAjfMYpJI9Qa7MfZqIM+ADUhUXIHzcUOwC628Q2iGS7mCl A6VU22UIc5Ik/vyF8/0h3k4tvJQ7Kuc3jLFL6GE3aaoNhqqSP5eEtLupGgwqSK1F7EgZ X3Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702834258; x=1703439058; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EJEa5rIdE05cBerwH9RPZn9aINaxVFElRoQK5ZjpTOQ=; b=dVGRdE/RIVCabtXLGlgqqfaqkrAJjuPZS6U2FsDRrsmDsAPvRra+RQafQQrBvA+198 isaXjABYkvKkyguiLGkg6PKq8r+GMyAG+o54T0h+37vvOEXbZ1X/N37lhSQC5/i/sW9C udxqplr2jjL/4moFSt1T6s3z3j3/sFdTlL+N/Cu8IunWr2Z8uaBAOFFM/qlQWRRaGDoZ 8X8/l9wpI3+AQcwFQ/akjOwMZJWcESbr/sVHAm5Ppgnc3UiRHDSDte/8TMyZxP6PLwQZ JZsSRpUaXjEMagr1apOvm1RSxPQ7uUBAU4TXj8+HmDTn9k7MpJhcaFQL0bhtmhsZXdiV tYPA== X-Gm-Message-State: AOJu0Yx+mQtYhTSYLCpPlWMY2KFt/wRkDdZVsm0Oca9otPWylKTejCTQ XbFiID7yLshqyzaaBChwDSXKOjpumn7B/bCvkCfP4A== X-Google-Smtp-Source: AGHT+IHC4xpIzrkXiYmryboAhf6kjVrlwI0EZx37MT6/hqiSNLpu0dhIXLTaoLYnKpPxZgl7I6gGEQ== X-Received: by 2002:a05:6808:3a19:b0:3b9:e0f1:809b with SMTP id gr25-20020a0568083a1900b003b9e0f1809bmr25509372oib.49.1702834258168; Sun, 17 Dec 2023 09:30:58 -0800 (PST) Original-Received: from raman9 ([2601:646:9e02:3290:fad2:6908:479f:3597]) by smtp.gmail.com with ESMTPSA id y6-20020aa79e06000000b006d26eed29a8sm2846355pfq.95.2023.12.17.09.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 09:30:57 -0800 (PST) In-Reply-To: (Yuri Khan's message of "Sun, 17 Dec 2023 21:05:00 +0700") Received-SPF: pass client-ip=2607:f8b0:4864:20::231; envelope-from=raman@google.com; helo=mail-oi1-x231.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313935 Archived-At: Yuri Khan writes: Just let-bind url-privacy-level to paranoid > On Sun, 17 Dec 2023 at 19:36, Eli Zaretskii wrote: > >> Sorry, but I disagree. Emacs should not second-guess the users, and >> should certainly NOT force them into what we consider to be the secure >> environment. It is okay to behave securely by default, but if someone >> wants to be insecure, for whatever reasons, we should let them have >> the old, insecure behavior. Certainly when we first change the >> default, since there's a possibility that something will break for >> someone due to this change, and we need to let users have a fire >> escape in those cases, until we get our act together in the next >> release. > > The header in question, From, is governed by RFC 9110 =C2=A7 10.1.2[0], w= hich says: > > The From header field is rarely sent by non-robotic user agents. > A user agent SHOULD NOT send a From header field > without explicit configuration by the user, > since that might conflict with the user's privacy interests > or their site's security policy. > > A robotic user agent SHOULD send a valid From header field > so that the person responsible for running the robot can be contacted > if problems occur on servers, > such as if the robot is sending excessive, unwanted, or invalid reque= sts. > > [0]: https://www.rfc-editor.org/rfc/rfc9110.html#section-10.1.2 > > That is, it=E2=80=99s not intended for web browsers or interactive > applications acting on the user=E2=80=99s behalf. It=E2=80=99s for spider= s and other > automation. > > Surely a user who is writing a spider in Elisp can take the extra > conscious step of filling out the general fire escape, > =E2=80=98url-request-extra-headers=E2=80=99, and deciding which email add= ress to > expose. > > It is good that the default value of =E2=80=98url-privacy-level=E2=80=99 = is (email), > preventing the leak by default, but there is no reason to make it > possible to configure url.el to leak it with every request made from > Emacs. If you=E2=80=99re running a spider and also just browsing the Web = with > EWW, you probably only want requests from your spider to be attributed > to you as the spider maintainer. > --=20