Skip to content

chore: decompose finding SEC-24 into atomic implementation subtask - #237

Open
esafwan wants to merge 2 commits into
developfrom
task/SweepSecurity-SEC-24-decompose
Open

chore: decompose finding SEC-24 into atomic implementation subtask#237
esafwan wants to merge 2 commits into
developfrom
task/SweepSecurity-SEC-24-decompose

Conversation

@esafwan

@esafwan esafwan commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What it does / Summary

Decomposes security finding SEC-24 into an actionable, structured implementation subtask by generating plans/SweepSecurity:SEC-24-plan.json.

What it solves / Motivation

  • Outlines remediation steps for removing guest access from the get_site_name KOT display API endpoint in ury/ury/api/ury_kot_display.py.
  • Verifies that authenticated KOT display callers in URYMosaic remain functional after removing guest permissions.

Key Technical Changes

  • Created plans/SweepSecurity:SEC-24-plan.json specifying:
    • Objective: Remove allow_guest=True from get_site_name while keeping it whitelisted for authenticated users.
    • Acceptance Criteria: Endpoint requires authentication, and existing authenticated KOT display callers can successfully fetch the site name.
    • Scope: ury/ury/api/ury_kot_display.py and URYMosaic/src/components/kot.vue.
    • Metadata: Task type impl, difficulty 1, risk 1, uncertainty 1, priority 100.

@esafwan esafwan changed the title Decompose SweepSecurity finding SEC-24 into atomic implementation subt chore: decompose finding SEC-24 into atomic implementation subt Jul 21, 2026
@esafwan esafwan changed the title chore: decompose finding SEC-24 into atomic implementation subt chore: decompose finding SEC-24 into atomic implementation subtask Jul 21, 2026
- Removed `allow_guest=True` from `get_site_name` in `ury_kot_display.py` so the endpoint is accessible only to authenticated users.
- Updated `fetchAndSetSiteName` in `kot.vue` to include session credentials with API requests.
- Added HTTP error handling to gracefully handle 403 Forbidden responses for unauthenticated requests and allow the native Frappe authentication flow to complete before retrying.
@ShahalaKP-Tridz
ShahalaKP-Tridz marked this pull request as ready for review July 28, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants