Skip to content

Codebase audit (v0.8.0): tracking PRs and follow-up work #2922

Backlog

Description

@giswqs

Tracking issue for the repository audit conducted against main (19941736, post-v0.8.0).

Pull requests

  • CI, workflow permissions, and documentation sync (ci,docs: tighten workflow scope filter and permissions, sync docs #2911)
    • Tighten .github/workflows/ci.yml licenses and schema scope filters (-z --no-renames, nested/case-variant .cargo paths, all .github/scripts/*.py).
    • Add explicit top-level permissions: contents: read to ci-label.yml and python.yml.
    • Sync docs/contributing.md, README.md, docs/architecture.md, and docs/user-guide/workspace.md with current xtask checks, crates, and commands.
  • Network, auth, parser, web, and CLI hardening (Tighten hostname, path, CRS, SVG, and transport boundary validation #2929)
    • Tighten AWS S3 hostname and bucket parsing (crates/tiles/src/s3.rs), local archive path checks (pmtiles.rs, mbtiles.rs), and native auth response bounds (arcgis_auth.rs, arcgis_token.rs, copernicus.rs).
    • Disable DTD expansion in SVG marker parsing (crates/render/src/picture/svg.rs).
    • Align PROJ/GDAL CRS validation (gdal.rs, crs.rs), MySQL connection query redaction (myconn.rs), absolute-only PATH resolution (acp.rs), web fetch/DOM/embed handling (apps/rustgis-web/src/web.rs), and CLI --trace redaction/permissions (apps/rustgis-cli/src/main.rs).
  • Core correctness fixes across data, geom, analysis, tiles, assistant, and Python (Fix core bugs in GRIB, SQLite, OGC paging, Aeqd, analysis, tiles, assistant, and Python embed #2927)
    • GRIB2 complex-packing zero-width missing-value fix and O(1) constant-group validation (grib/complex.rs).
    • Pure-Rust SQLite cell-byte accounting per page (sqlite.rs) and OGC Phase::Linked page limits (ogc.rs).
    • Non-finite coordinate guards in Aeqd (crates/geom/src/lib.rs).
    • Total-order float sorting (total_cmp) in topology.rs and sibling analysis/render sorters; band_math_on unused-band NoData handling and f64 -> f32 overflow guard; viewshed_on finite-height validation (rasterops.rs, kriging.rs).
    • Overflow-safe byte-range length arithmetic (cache.rs), deduplicated subagent always approvals (agent.rs), and URL fragment/scheme handling in Python _app_src (_embed.py, _widget.js).
  • Engine policy, format-version, and silent-loss fixes (Harden engine scope, credential, format, and sharing guards #2924)
    • Consistent policy_allows_reserved() and file_reach() enforcement across S3 listing, automatic connection resolution, and "ran" handoffs; project.openText and project.fromTemplate hardening.
    • Add project::check_format guards to presentation.import, report.open, notebook.open (plus nbformat > 4 check), bookmark.import, and dl.import.
    • Report counted truncation notices in share.webMap and share.locator past MAX_FEATURES.
  • Hot-path performance improvements (perf: eliminate hot-path allocations in query, routing, k-means, and publish #2926)
    • Avoid per-row float parsing and string allocations for Text = Text and LIKE in crates/data/src/query.rs (5.3x and 8.1x faster, 0 allocs).
    • Eliminate full-network cloning and restore bbox snap culling in crates/analysis/src/network.rs::route_on (8.2x to 8.8x faster).
    • Move published.read instead of cloning features in crates/engine/src/cmd/publish.rs (lowers xtask/row-uses.txt from 768 to 764).
    • Eliminate per-comparison Vec allocations and add cancellation checks in kmeans_on (crates/analysis/src/rasterops.rs, 2.0x faster).
  • UI export, backgrounding, dialog validation, and teardown fixes (Fix UI dialog validation, browser export notices, and project replacement state #2930)
    • Pass actual export CRS to export_losses_notes_in, gate export notices on download success, and translate the .prj notice in crates/ui-egui/src/lib.rs.
    • Route desktop add_csv file loads through readjob::run, share strict numeric parsing in add_for_editing and add_tiles, and wrap untranslated dialog errors in tl!.
    • Align project-replace UI teardown (including ws.task_edit reset and open_peer_text table pruning) and save prompts in open_bytes_with.

Follow-up issues (larger scope / design)

Suggested follow-up design & feature directions

  • Cross-crate hardening: Unify session credential scoping (CredentialScope) and owner-bound async handoffs (PendingStore<T>); review SQL Server routing destination checks and download-unpack limits in crates/geolibre/src/install.rs.
  • Large data & interoperability: GeoParquet 1.1 native coordinate encodings and Parquet 2.11 GEOMETRY/GEOGRAPHY; predicate and column projection pushdown in FeatureSource; COG internal transparency masks and PAM band scale/offset; spatial index for MapInfo/DXF hole nesting past 5,000 rings.
  • Analysis & rendering performance: Shared 2D k-d tree for IDW and Ordinary Kriging (alongside empirical variogram fitting and LOO cross-validation); O(R^2) radial-sweep viewshed; multi-raster Band Math functions.
  • Cross-surface parity & tooling: Persist the plugin blocklist in browser storage before restoring saved plugins; rustgis-cli plugin subcommand and opt-in plugin loading in Python; cargo xtask docs validation gate in CI.

Activity

  1. giswqs commented on Nov 29, 2026

    @giswqs
    MemberAuthor

    Follow-up from #2924 review: share.webMap, share.webLayer and share.locator (and the other Share As commands in crates/engine/src/cmd/sharing.rs) run on the UI thread with no Cancel check. They are not in exports::IN_BACKGROUND, and their work grows with the layer (load_whole of a streamed layer, the OGC collection over every feature, and since #2924 a counting pass over the rows past MAX_FEATURES). Per AGENTS.md "Never hold the window" they should go through the export background path with progress and Cancel, and into long_commands. #2924 documents the exemption in the doc comments for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions