git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Gmail OAuth2 in git send-email

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jun 4, 2021, 01:49 UTC
Message-ID
<YLmGo8PZDAT90hj+@google.com>
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.
[...]
Show 7 quoted lines
> 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

Previous: Felipe ContrerasNext: Jonathan Nieder
Message 9 of 31 in “Gmail OAuth2 in git send-email”
  1. Bagas SanjayaJun 3, 2021
  2. ZheNing HuJun 3, 2021
  3. Jonathan NiederJun 3, 2021
  4. Eric SunshineJun 3, 2021
  5. Ævar Arnfjörð BjarmasonJun 3, 2021
  6. Felipe ContrerasJun 3, 2021
  7. Andreas SchwabJun 3, 2021
  8. Felipe ContrerasJun 3, 2021
  9. Jonathan NiederJun 4, 2021
  10. Jonathan NiederJun 4, 2021
  11. Felipe ContrerasJun 4, 2021
  12. Konstantin RyabitsevJun 3, 2021
  13. Eric SunshineJun 3, 2021
  14. Konstantin RyabitsevJun 3, 2021
  15. Michal SuchánekJun 3, 2021
  16. Konstantin RyabitsevJun 3, 2021
  17. Michal SuchánekJun 3, 2021
  18. Eric SunshineJun 3, 2021
  19. Felipe ContrerasJun 3, 2021
  20. Eric SunshineJun 3, 2021
  21. Felipe ContrerasJun 4, 2021
  22. Đoàn Trần Công DanhJun 4, 2021
  23. Felipe ContrerasJun 4, 2021
  24. Đoàn Trần Công DanhJun 4, 2021
  25. Felipe ContrerasJun 4, 2021
  26. Đoàn Trần Công DanhJun 4, 2021
  27. Felipe ContrerasJun 4, 2021
  28. Đoàn Trần Công DanhJun 4, 2021
  29. Felipe ContrerasJun 4, 2021
  30. Eric SunshineJun 4, 2021
  31. Felipe ContrerasJun 4, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.