You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tooling.apache.org by "andrewmusselman (via GitHub)" <gi...@apache.org> on 2026/01/16 21:47:19 UTC
[I] Narrow exception handling in GitHub OIDC verification (tooling-trusted-releases)
andrewmusselman opened a new issue, #556:
URL: https://github.com/apache/tooling-trusted-releases/issues/556
## Summary
Overly broad exception handling in OIDC verification catches all errors including SSL failures, silently falling back to hardcoded URI.
## ASVS Requirements
- 10.4.2 - OAuth/OIDC authorization server security
## Related Audit Reports
- [Universal Spoofing #401](ASVS/universal-spoofing-401.md) - Section 4
## Affected Files
- `atr/jwtoken.py:94-101`
## Current Behavior
```python
except Exception: # Catches ALL errors including SSL failures
jwks_uri = f"{_GITHUB_OIDC_ISSUER}/.well-known/jwks"
```
## Recommended Fix (Needs reworking)
```python
except aiohttp.ClientSSLError as e:
log.error(f"TLS failure fetching OIDC config: {e}")
raise base.ASFQuartException("OIDC unavailable", errorcode=503)
except aiohttp.ClientError as e:
log.warning(f"Failed to fetch OIDC config: {e}")
jwks_uri = f"{_GITHUB_OIDC_ISSUER}/.well-known/jwks"
```
## Acceptance Criteria
- [ ] Specific exception types caught
- [ ] SSL failures logged and not silently ignored
- [ ] Timeout increased from 5s to 10s
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org
Re: [I] Narrow exception handling in GitHub OIDC verification (tooling-trusted-releases)
Posted by "sbp (via GitHub)" <gi...@apache.org>.
sbp commented on issue #556:
URL: https://github.com/apache/tooling-trusted-releases/issues/556#issuecomment-3773600523
@Abhishekmishra2808 We have decided to allocate this task to a member of ASF Tooling, so this issue is no longer available to external contributors. We appreciate the offer of assistance and have many other issues that we would welcome help with if you are interested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org
Re: [I] Narrow exception handling in GitHub OIDC verification (tooling-trusted-releases)
Posted by "Abhishekmishra2808 (via GitHub)" <gi...@apache.org>.
Abhishekmishra2808 commented on issue #556:
URL: https://github.com/apache/tooling-trusted-releases/issues/556#issuecomment-3770093997
Hi @andrewmusselman,
I have just introduced myself on the dev@tooling mailing list (as Abhishek Mishra) and wanted to claim this issue.
I’ve reviewed the requirements in the description and have a clear plan to address the L1 Security/SSL concerns:
- Narrow Exceptions: Replace the broad except Exception in jwtoken.py with specific aiohttp.ClientError and asyncio.TimeoutError blocks.
- Increase Timeout: Bump the discovery timeout from 5s to 10s.
- Explicit Logging: Add log.error calls for SSL/connection failures so they are no longer silent.
- Error Propagation: Ensure ASFQuartException is raised correctly to prevent insecure fallbacks.
I’m ready to submit a PR for review—could you please assign this to me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org
Re: [I] Narrow exception handling in GitHub OIDC verification (tooling-trusted-releases)
Posted by "sbp (via GitHub)" <gi...@apache.org>.
sbp commented on issue #556:
URL: https://github.com/apache/tooling-trusted-releases/issues/556#issuecomment-3770121824
@Abhishekmishra2808 Thank you very much for your offer of assistance! I don't see your message to `dev@tooling` yet, but it's probably in the moderation queue. Just to be sure that everything proceeds smoothly, I suggest that you review https://github.com/apache/tooling-trusted-releases/blob/main/notes/for-prospective-contributors.md carefully and check whether there is any part of the process that you've missed. If you have followed the process correctly, please disregard this message and somebody will be able to get back to you as soon as we can read your message to `dev@tooling`. Please let us know if you need any help. Many thanks again for your offer of assistance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org
Re: [I] Narrow exception handling in GitHub OIDC verification (tooling-trusted-releases)
Posted by "alitheg (via GitHub)" <gi...@apache.org>.
alitheg closed issue #556: Narrow exception handling in GitHub OIDC verification
URL: https://github.com/apache/tooling-trusted-releases/issues/556
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org