<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>242647</bug_id>
          
          <creation_ts>2022-07-12 13:45:52 -0700</creation_ts>
          <short_desc>Using git-webkit pr via SSH dumps errors</short_desc>
          <delta_ts>2025-06-25 10:45:31 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=242726</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>239082</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>emw</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1882521</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-07-12 13:45:52 -0700</bug_when>
    <thetext>Using git-webkit pr via SSH does not work.

```
No valid authentication session for Radar
&apos;main&apos; is not a pull request branch, enter issue URL or title of new issue: https://bugs.webkit.org/show_bug.cgi?id=242599
Traceback (most recent call last):
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/keyring/backends/macOS/__init__.py&quot;, line 49, in get_password
    return api.find_generic_password(self.keychain, service, username)
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/keyring/backends/macOS/api.py&quot;, line 144, in find_generic_password
    Error.raise_for_status(status)
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/keyring/backends/macOS/api.py&quot;, line 114, in raise_for_status
    raise cls(status, &quot;Unknown Error&quot;)
keyring.backends.macOS.api.Error: (-25308, &apos;Unknown Error&apos;)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;/Users/yusukesuzuki/dev/Internal/Tools/Scripts//git-webkit&quot;, line 89, in &lt;module&gt;
    sys.exit(program.main(
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py&quot;, line 148, in main
    return parsed.main(
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py&quot;, line 456, in main
    branch_point = cls.pull_request_branch_point(repository, args, **kwargs)
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py&quot;, line 179, in pull_request_branch_point
    if Branch.main(
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/branch.py&quot;, line 114, in main
    if issue and issue.title and not redact and not issue.redacted:
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/issue.py&quot;, line 89, in title
    self.tracker.populate(self, &apos;title&apos;)
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/bugzilla.py&quot;, line 160, in populate
    response = requests.get(&apos;{}/rest/bug/{}{}&apos;.format(self.url, issue.id, self._login_arguments(required=False)))
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/bugzilla.py&quot;, line 138, in _login_arguments
    username, password = self.credentials(required=required)
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/bugzilla.py&quot;, line 124, in credentials
    return webkitcorepy.credentials(
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/credentials.py&quot;, line 71, in credentials
    username = keyring.get_password(url, &apos;username&apos;)
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/keyring/core.py&quot;, line 55, in get_password
    return get_keyring().get_password(service_name, username)
  File &quot;/Users/yusukesuzuki/dev/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/keyring/backends/macOS/__init__.py&quot;, line 55, in get_password
    raise KeyringError(&quot;Can&apos;t get password from keychain: &quot; &quot;{}&quot;.format(e))
keyring.errors.KeyringError: Can&apos;t get password from keychain: (-25308, &apos;Unknown Error&apos;)
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883289</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-13 13:51:07 -0700</bug_when>
    <thetext>I suspect that this may be unfixable as long as we use Keychain for credentials.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883832</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-14 14:50:24 -0700</bug_when>
    <thetext>Elliott pointed out in bug 242726 that keychain does work over ssh. So we just need to run `security unlock`, which will ask for user&apos;s password.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884655</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-07-17 17:53:47 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; Elliott pointed out in bug 242726 that keychain does work over ssh. So we
&gt; just need to run `security unlock`, which will ask for user&apos;s password.

Nice!!! Thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885186</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-19 13:46:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/97279550&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885194</commentid>
    <comment_count>5</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-07-19 14:11:31 -0700</bug_when>
    <thetext>I think git-webkit should detect this condition, and instead of crashing, suggest `security unlock` and/or do `security unlock` to proceed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885716</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-07-21 10:24:05 -0700</bug_when>
    <thetext>This does seem quite detectable, we only have a single function which access the keychain this way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926331</commentid>
    <comment_count>7</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2023-01-18 11:17:56 -0800</bug_when>
    <thetext>*** Bug 242726 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2117933</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-05-17 14:58:58 -0700</bug_when>
    <thetext>rdar://151526906</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125607</commentid>
    <comment_count>9</comment_count>
    <who name="Brianna Fan">bfan2</who>
    <bug_when>2025-06-24 15:29:12 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/47141</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125821</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-06-25 10:45:29 -0700</bug_when>
    <thetext>Committed 296626@main (2cfc0247c976): &lt;https://commits.webkit.org/296626@main&gt;

Reviewed commits have been landed. Closing PR #47141 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>