Repository navigation
Uncleteslim/frontend changes - #2
Open
UncleTeslim wants to merge 605 commits into
Open
UncleTeslim wants to merge 605 commits into
UncleTeslim wants to merge 605 commits into
Conversation
…int fixes
- Replace lucide Chrome icon with the official Google G SVG in LoginPage
- Add oauthLoading state so each social button shows a spinner while
redirecting and disables the other button to prevent double-clicks
- Remove Chrome from lucide imports
- Add OAuthLoginResponse and OAuthCallbackResponse Pydantic response_model
classes so Swagger UI shows typed schemas for all four OAuth endpoints
- Add Field() descriptions to OAuthCallbackRequest, OAuthLoginResponse,
OAuthCallbackResponse for readable OpenAPI docs
- Add import Field to pydantic imports in management.py
- Add detailed responses={400, 500} docs to each OAuth route decorator
- Fix GitHubCallbackPage and GoogleCallbackPage: move setState calls
inside the async function to resolve react-hooks/set-state-in-effect
lint warnings (all OAuth files now lint and tsc clean)
… name conflicts Docker Compose v2 renames existing containers to a hash-prefixed name during recreation. If a previous deploy was interrupted, that renamed ghost container remains stopped and blocks the next recreate with a naming conflict. Adding docker container prune -f before docker compose up clears stale containers and makes the deploy idempotent.
nginx.conf: - Add Cache-Control: no-store on all HTML/SPA routes so Cloudflare never caches them — prevents stale 404s on new routes like /auth/google-callback - Add Cache-Control: public, immutable on content-hashed static assets DashboardPage.tsx: - Remove dead _latestThreats state and its wsClient useEffect — events were accumulated but never rendered; real data comes from useRecentAttacks - Remove unused useEffect, ThreatDetectedEvent, and wsClient imports InteractiveDemo.tsx: - Remove commented-out api import (leftover from refactor) SearchPalette.tsx: - Remove stale placeholder comment from code generation
…t only Previously every user saw platform-wide data — a new account would show 382 requests, 357 blocked, and threat logs from other users' activity. Backend: - Add GET /v1/management/stats: queries RequestLog filtered by current_user.id, returning per-account totals (requests_total, requests_blocked, requests_allowed, attacks_detected). New users correctly see all zeros until they route traffic through KoreShield. - Fix GET /v1/management/logs: add WHERE user_id = current_user.id to the RequestLog query. Removed unfiltered audit_log_store and server log file reads from this endpoint — those are system-level and should not be exposed to individual accounts. Also counts total correctly using a separate COUNT query instead of counting post-pagination rows. Frontend: - Change getStats() to call /v1/management/stats instead of /status. /status remains available for health checks and monitoring but returns system-wide Redis counters — not appropriate for the account dashboard.
backend: - /stats and /logs now use get_optional_db (was get_db) so they degrade gracefully when DB is unavailable (CI env) instead of throwing 500. Returns zeros / empty list rather than crashing the test suite. - Fix tags on both new endpoints from 'Dashboard' (undefined) to 'Management' so they appear correctly grouped in Swagger UI. - Add response docs (200, 401) to both endpoints. deploy.yml: - Replace regex-based grep cleanup with docker ps --filter 'name=...' which uses substring matching and catches ALL variants of the container name (plain and hash-prefixed) in both running and stopped states. docker rm -f works on running containers too so no ghost container can ever block the compose recreation step.
…th tag
management.py — /v1/management/logs:
Add audit_log_store back as a merged source alongside the DB query.
RAG scans write to audit_log_store (not RequestLog), so the old test
test_rag_scan_is_visible_in_management_logs was broken by the refactor.
Entries from audit_log_store are now filtered by user_id just like the
DB rows, preserving tenant isolation while restoring test correctness.
proxy.py — Redis startup:
Redis URL was read as config.get('url') which returns '' from
config.example.yaml. An empty string passed to redis.from_url() raises
'Redis URL must specify one of the following schemes', spamming error
logs even though the REDIS_URL env var is correctly set.
Fix: fall back to REDIS_URL env var when the config value is empty.
proxy.py — Swagger / OpenAPI:
Register 'OAuth' as a named tag in openapi_tags so GitHub/Google OAuth
endpoints appear under a properly described group in Swagger UI.
…g redis.from_url
config.example.yaml stores url as the literal string "${REDIS_URL}".
YAML does not expand shell-style ${} placeholders, so Python reads the
literal string which is not a valid redis:// URL and causes a startup error.
Detect unexpanded placeholders and fall back to the REDIS_URL env var.
- Added sitemap generators for all 3 Koreshield domains - Updated robots.txt files with sitemap references - Created GitHub Actions workflow for auto-generation - Added Google Search Console API integration option - Updated Astro config with sitemap plugin - Added credentials.json to .gitignore for security
…e sitemap files and robots.txt for blog and docs
…handling, and update websocket event logging
updated ToS, Privacy Policy and Cookie Policy
- Added MFA challenge issuance during admin login for privileged roles. - Introduced MFA verification endpoint to complete admin sign-in. - Enhanced JWT token issuance to include MFA verification status and auth method. - Updated user model to store MFA verification status. - Implemented email service for sending MFA codes to admins. - Added tests for MFA flow in account lifecycle and authentication. - Ensured request logs are append-only and cannot be modified or deleted.
- Added IncidentCreateRequest, IncidentUpdateRequest, MaintenanceCreateRequest, BreachCreateRequest, and BreachUpdateRequest models for managing incidents and breaches. - Introduced OperationalStatusService for managing operational state, incidents, maintenance windows, and breach records. - Implemented AuditIntegrityService for maintaining an append-only audit ledger with verification capabilities. - Enhanced KoreShieldProxy to initialize and utilize the new services. - Updated telemetry to integrate with audit integrity for logging. - Added endpoints for creating incidents, updating incidents, scheduling maintenance, and creating breach records. - Implemented tests for operational status and audit integrity services to ensure functionality and reliability.
…ayout - Added a statistics section showcasing key metrics related to AI breach costs, latency, and logging. - Updated the hero section with a new headline and description emphasizing the product's unique selling points. - Improved the layout of the pricing model explanation and plan cards for better readability. - Revised the enterprise plan section to include dynamic descriptions and a clearer call to action. - Introduced a new category callout highlighting the growing attack surface in AI deployments. - Updated the feature gate table to reflect changes in plan names and capabilities. chore(audit): add initial audit ledger data - Created a new JSONL file to store audit ledger entries, including chain and payload hashes, request IDs, and verification statuses. chore(state): initialize operational state with incident and status history - Added a new operational state JSON file to track incidents, maintenance windows, and provider statuses. - Included a minor service disruption incident and the current status of various AI providers.
Solutions: - Add 5 solution marketing pages: AI Detection & Response, Application Protection, AI Agents Security, AI Usage Control, RAG Security - Wire routes under /solutions/* in App.tsx - Add Solutions section to desktop and mobile nav in MarketingLayout - Fix broken RAG Security nav link (was pointing to /rag-security protected app route, now /solutions/rag-security) Authentication: - Fix sign-out session lingering: make logout() async and await backend cookie deletion before navigating - Fix cookie deletion bug: _delete_auth_cookie() uses set_cookie with matching SameSite/Secure/HttpOnly attrs so browser actually clears it Plan naming: - Rename Free → Dev across BillingPage, ProfilePage, ContactPage, VsLakeraPage, VsBuildYourselfPage Team: - Remove Victor Emmanuel from AboutPage team section
- rag_detector.py: replace 'from datetime import UTC' (Python 3.11+) with 'timezone.utc' alias so tests pass on Python 3.10 CI runner - detector.py: add ml_model attribute, _extract_features(), and _ml_based_detection() methods that tests were calling on AttackDetector - test_detector.py: fix allowlist test — input now contains a genuine injection attempt so detection fires alongside the allowlisted term - test_management_config.py: add mfa_verified:true to test JWT so get_current_admin() (which requires MFA since last auth update) no longer returns 403
…ny, Resources) Desktop nav is now 4 items instead of 10+: - Solutions dropdown (5 pages with descriptions, closes on route change) - Pricing (standalone CTA link) - Company dropdown (About, Contact, Changelog, Careers) - Resources dropdown (Docs, Blog, GitHub) Mobile drawer unchanged in structure — sections still visible. Dropdowns close on outside click, escape key, and route change.
- Add /research page with featured publications, technical notes, research areas, and responsible disclosure sections - Fix favicon: replace SVG-only with proper ICO (multi-size), PNG-192, and apple-touch-icon formats - Fix DemoPage layout: resolve z-index stacking context overlap between sticky left column and right form - Wire ResearchPage into App.tsx routing and Resources dropdown in MarketingLayout
Ship multipart/base64 audio scanning with optional Whisper transcription, auto-gate signup via speech_context on tool sessions, and improve the dashboard playground with scanned-prompt visibility and resilient scan history.
…sers. VoiceGuard callout no longer mentions env vars. RBAC store initializes empty instead of seeding fake users; the authenticated admin is auto-registered on first access.
Wrap all lazy() imports with lazyRetry() which detects chunk-load errors (stale hashes after a deploy) and does a one-shot page reload so the user never sees the "Failed to load page" error boundary.
…udio recording to VoiceGuard playground, and clarify usage counting model - Swap DollarSign icon for PoundSterling in analytics, cost, use-case, and comparison pages - Convert all USD figures to GBP equivalents on the build-vs-buy comparison page - Update FounderPortalPage MRR/ARR/ARPU/plan-pricing to use £ - Add 'Record live' tab to AudioSecurityPage using browser MediaRecorder API - Update UsageLimitsPage to explain per-scan counting for RAG docs and VoiceGuard audio - Include pending UI polish (plan-gating, SEO, billing) from prior session work
…x protected requests - Define RAG_SCAN_WEIGHT=20 and AUDIO_SCAN_WEIGHT=50 constants in proxy.py - Pass weights to entitlement enforcement and telemetry counters for /v1/rag/scan and /v1/audio/scan - Update UsageLimitsPage to display per-scan-type request costs prominently - Add usage weights table to REST API docs
… abuse - Replace flat RAG_SCAN_WEIGHT=20 with RAG_SCAN_WEIGHT_PER_DOC=1 times document count - Units = max(len(documents), 1) so usage scales with actual batch size - Audio scans remain at flat 50x per call (transcription cost is fixed) - Update usage page and API docs to reflect per-document model
Backend: - New deployment.py module with DeploymentMode enum (cloud/self-hosted/airgapped) - HMAC-signed licence key validation (ks_ent_ prefix, offline-only, no phone-home) - 14-day grace period on expired licences before hard shutdown - Licence info surfaced in /health endpoint for self-hosted instances - Deployment mode loaded and checked on app startup via create_app() Documentation: - New self-hosted.mdx: full guide covering architecture, system requirements, licence validation, tenant isolation, monitoring, and update process - New airgapped.mdx: offline bundle installation, image loading, LLM provider options (internal gateway or local models), threat corpus updates - Updated deployment index to feature Enterprise self-hosted options prominently
Deploying koreshield-web with
|
| Latest commit: |
a7391bb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://16c462ab.koreshield-web-2gb.pages.dev |
| Branch Preview URL: | https://uncleteslim-frontend-changes.koreshield-web-2gb.pages.dev |
1cbyc
force-pushed
the
uncleteslim/frontend-changes
branch
from
June 1, 2026 09:35
a7391bb to
20b3e3e
Compare
1cbyc
force-pushed
the
main
branch
3 times, most recently
from
June 5, 2026 18:08
d14b37d to
35af3b6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.