git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Bagas Sanjaya <bagasdotme@gmail.com>, Git <git@vger.kernel.org>
Subject: Re: Gmail OAuth2 in git send-email
Date: Thu, 3 Jun 2021 18:49:23 -0700	[thread overview]
Message-ID: <YLmGo8PZDAT90hj+@google.com> (raw)
In-Reply-To: <878s3r73g3.fsf@evledraar.gmail.com>

Hi,

Ævar Arnfjörð Bjarmason wrote:

> It's been a while but I set this up at some point, why would git or
> distros need to make/register a private key? Last I checked you can take
> software like git-send-email or whatever, and just register a new
> "jonathan's e-mail sending script" with Google's OAuth thingy.

Yes, that's what I do.

[...]
> That seems like a much better approach than some centralized solution,
> since as you note doing that will require some authority to manage keys
> etc, and presumably if "jonathan's e-mail sending script" inadvertently
> starts using git-send-email.perl to send spam, that would currently not
> result in ban on "ævar's e-mail sending script", but if the two were
> registered as the same application Google might overzelously ban those
> as two tenticles of the same misbehaving "app".

I agree that it wouldn't be worth "git send-email" registering for its
own API key, mostly because registering for API keys with every email
provider would be a distraction from what git send-email tries to do.

On the other hand, I would mind a perl library or a commandline tool
that git send-email calls having _its_ own API key.  That would be
helpful to other programs that want to send email as well, and it
would help users who are not as patient as we are in trudging through
the multi-step process required.  For example, it's nice that KMail,
Apple's Mail.app, and so on have their own API keys instead of every
user of those programs having to generate their own.

Of course, that's a broader topic than Git; it's not something that we
on the Git list are uniquely positioned to do ourselves.  I only
mention it in case someone in this thread wants to write it.  Then git
send-email could use such a library or point to such a tool in its
documentation.

Thanks,
Jonathan

  parent reply	other threads:[~2021-06-04  1:49 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-03  5:02 Gmail OAuth2 in git send-email Bagas Sanjaya
2021-06-03  5:48 ` ZheNing Hu
2021-06-03  6:08 ` Jonathan Nieder
2021-06-03  6:26   ` Eric Sunshine
2021-06-03  8:28   ` Ævar Arnfjörð Bjarmason
2021-06-03 17:46     ` Felipe Contreras
2021-06-03 18:21       ` Andreas Schwab
2021-06-03 19:01         ` Felipe Contreras
2021-06-04  1:49     ` Jonathan Nieder [this message]
2021-06-04  2:39       ` Jonathan Nieder
2021-06-04  3:44         ` Felipe Contreras
2021-06-03 18:08 ` Konstantin Ryabitsev
2021-06-03 18:25   ` Eric Sunshine
2021-06-03 18:32     ` Konstantin Ryabitsev
2021-06-03 19:02       ` Michal Suchánek
2021-06-03 19:07         ` Konstantin Ryabitsev
2021-06-03 19:23           ` Michal Suchánek
2021-06-03 23:42           ` Eric Sunshine
2021-06-03 19:06     ` Felipe Contreras
2021-06-03 23:35       ` Eric Sunshine
2021-06-04  1:11         ` Felipe Contreras
2021-06-04  1:49           ` Đoàn Trần Công Danh
2021-06-04  2:07             ` Felipe Contreras
2021-06-04  2:11               ` Đoàn Trần Công Danh
2021-06-04  3:45                 ` Felipe Contreras
2021-06-04  5:21                   ` Đoàn Trần Công Danh
2021-06-04  6:00                     ` Felipe Contreras
2021-06-04  6:23                       ` Đoàn Trần Công Danh
2021-06-04 13:32                         ` Felipe Contreras
2021-06-04  4:10           ` Eric Sunshine
2021-06-04  5:35             ` Felipe Contreras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YLmGo8PZDAT90hj+@google.com \
    --to=jrnieder@gmail.com \
    --cc=avarab@gmail.com \
    --cc=bagasdotme@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).