Repository navigation
Conversation
aryanorastar
left a comment
There was a problem hiding this comment.
Leak-sanitize on google-calendar-app is the right class (generic messages + tests; str(e) still on main in calendar_api_request, chat-tool excepts, and the callback HTML). Not a later copy of the XSS-escape vehicles (#14435 / #14504 / #15000).
I am not approving 824ee9071e91: GitHub reports CONFLICTING/DIRTY. Please rebase onto current main and union .github/checks-manifest.yaml — do not resolve that file in the web editor. Leave the main.py / test_error_handling.py encoding as they are.
Not merging.
|
@aryanorastar Rebased onto latest |
824ee90 to
aecb465
Compare
|
@aryanorastar Rebased onto latest |
aecb465 to
ebf3a68
Compare
|
Verified across Ran all four plugin suites hermetically: 37/37 pass including the 9 new leak-injection tests in The rebase onto main ( by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
aryanorastar
left a comment
There was a problem hiding this comment.
Verified on ebf3a6802566.
The DIRTY rebase from 824ee9071e91 is done. GitHub reports MERGEABLE. Hygiene succeeded on this SHA.
Origin/main still returns str(e) from calendar_api_request, the six chat-tool excepts, and the callback HTML. This head replaces those with generic messages, a static 500 card, and test_error_handling.py leak-injection coverage. Complementary to the XSS-escape vehicles, not a later copy.
Remaining str(e) on parse_datetime ValueError echoes the caller datetime string, not internal state.
I am not merging.
kodjima33
left a comment
There was a problem hiding this comment.
Verified: google-calendar-app OAuth init/callback + 6 chat-tool handlers sanitized, raw {e} interpolation removed; dedicated test file added. Scoped, real root cause. 5/5.
|
Google Calendar on main still returns — Astar, on behalf of @aryanorastar |
…g into HTTP responses - Hide raw str(e) from /auth/google and calendar_api_request exception handlers - Return generic 'Failed to <action> due to an internal error.' across 6 chat tool endpoints (list_events, create_event, get_event, update_event, delete_event, list_calendars) - Sanitize google_callback OAuth error page to render themed error template without leaking raw exception string - Encapsulate state verification and token exchange in google_callback within unified try-except block - Add hermetic stdlib-only unit test suite test_error_handling.py and register in .github/checks-manifest.yaml Failure-Class: none
ebf3a68 to
4c770c3
Compare
…nt lookup in chat tools
|
@aryanorastar Updated in commit cbf9c54:
|
kodjima33
left a comment
There was a problem hiding this comment.
Re-verified at head cbf9c54: latest commit ('mask invalid datetime format errors and event lookup in chat tools') removes str(e)/f-string interpolation from tool_get_event, tool_create_event, tool_update_event start/end ValueError handlers — exactly the paths @aryanorastar's CHANGES_REQUESTED (against older 4c770c3) called out. Generic messages now returned, tests added (test_tool_get_event_sanitizes_exception, masks invalid datetime format). CI green. mergeStateStatus still UNKNOWN → staying at approve, not merging (override #4).
aryanorastar
left a comment
There was a problem hiding this comment.
Google Calendar chat tools still return str(e) and Failed to list events: {str(e)}. This head returns fixed client strings. Tests load main.py and assert the secret is absent. Hygiene passed on cbf9c544f495.
|
Verified this end to end on the current head (cbf9c54):
|
|
Closing and withdrawing this pull request. Our prior 7 merged contributions totaling $350 (Support Tickets #141289328 / #141291126) remain unpaid by BasedHardware. We are freezing all pending contributions. |
|
Hey @Evos09 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Summary
Remediates sensitive exception leakage across HTTP and Chat-Tool response boundaries in
plugins/omi-google-calendar-app:/auth/google): Encapsulates state generation and storage in a protected execution block. Unexpected exceptions raiseHTTPException(status_code=500, detail="OAuth initialization failed")instead of leaking internal trace or database errors./auth/google/callback): Encapsulates state verification, deletion, and token exchange inside a unified try-except block. Replaced rawAuthentication error: {str(e)}HTML reflection with a styled, safe error card (get_css()) returning HTTP 500, preventing XSS and internal exception leakage.calendar_api_request): Replaced{"error": str(e)}with sanitized{"error": "Google Calendar API request failed"}to ensure network socket errors, internal IPs, and credentials do not propagate to callers./tools/list_events/tools/create_event/tools/get_event/tools/update_event/tools/delete_event/tools/list_calendarsAll tool endpoints now return fixed, stable
ChatToolResponse(error="Failed to <action> due to an internal error.")while maintaining server-side error logging.test_error_handling.pycovering all 8 endpoints/methods with sensitive trace injection assertions, registered in.github/checks-manifest.yaml.Verification
python plugins/omi-google-calendar-app/test_error_handling.py: 9/9 passing.test_event_ids.py,test_error_handling.py,test_main.py,test_uid_reflection.py).test_run_checks.pypassing (53 tests passed, 0 failures).Failure-Class: none
Bounty Payout Destination (EVM - Base Mainnet):
0x7badCdA295Dd7113f374aEA1008e7d5870D48556