Bug 241658

Summary: git webkit setup asks for api.github.com keychain access four times
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfan2, emw, jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 239082    

Description Alexey Proskuryakov 2022-06-15 17:39:40 PDT
When I re-run `git webkit setup` to renew a GitHub access token, I'm asked to allow Python access to api.github.com in Keychain four times.

This is very annoying, as I need to type my password every time. There is an "always allow" option, but that's super insecure, as any python script would then have the access.
Comment 1 Radar WebKit Bug Importer 2022-06-22 17:40:13 PDT
<rdar://problem/95736776>
Comment 2 Elliott Williams 2023-09-21 11:04:25 PDT
One way we could work around this is by building a helper program that does the keychain access on behalf of git-webkit. I spent some time hacking on a little Swift program that would facilitate this months ago, but never finished: https://github.com/emw-apple/WebKit/tree/wip-git-webkit-credentials-program/Tools/git-webkit-credentials
Comment 3 Alexey Proskuryakov 2023-09-21 12:33:03 PDT
We'd probably want git-webkit itself to be binary, for better security. It can call out to the existing script as necessary, so we don't need to rewrite it all.

One question is how to actually get it signed.