Skip to content

[Engine] resolve signed feed filenames within URL paths - #288

Closed
Afloat16 wants to merge 1 commit into
Edge0-AI:mainfrom
Afloat16:fix/update-feed-url-base-20261117
Closed

Afloat16 wants to merge 1 commit into
Edge0-AI:mainfrom
Afloat16:fix/update-feed-url-base-20261117

Conversation

@Afloat16

Copy link
Copy Markdown
Contributor

What & why

A valid update-feed URL with a query or fragment cannot be read by strata update. For example, --feed http://127.0.0.1:PORT/release/named.json?token=a/b is rewritten to .../named.json?token=a/b/strata-feed.json, so the check exits with code 6. Appending .sig to the entire URL also puts the signature suffix into a query or fragment instead of the filename. This breaks update feeds served behind query-based routing or access checks.

Parse HTTP(S) URLs before deciding whether the source names a feed file or a directory. Append the default feed name and the detached-signature suffix to the path component, preserving the supplied query. The existing fetch and Ed25519 verification paths then receive the intended resources.

All-state, all-author searches covered Edge0 and its imported Strata source, including feed/query, feed/relative, feed/urlsplit, feed/urljoin, and feed/signature/URL history. No equivalent submitted change was found.

Area

  • Other: signed update-feed acquisition in edge0-strata/strata_control/

How was it tested?

Linux x86_64. The regression starts a real loopback HTTP server, generates an Ed25519 key using the production signing implementation, signs an actual feed, and serves a ZIP archive whose SHA-256 is listed in that feed.

  • The actual python strata.py update --check --feed ... --output json command fails on the unchanged base with the query-bearing URL and passes with this patch. The plain-URL command passes on both.
  • Six file/directory URL cases verify the exact feed and .sig HTTP request paths, including slash-containing queries and fragments. Four cases fail on the unchanged base; all six pass after the correction.
  • Relative package downloads pass through the real updater download function and check all ZIP bytes. Local folder/path/file-URI controls pass. Invalid Ed25519 signatures, wrong package hashes, escaping references, and disallowed remote plain-HTTP references remain refused.
  • Across the new HTTP/CLI cases, unchanged base bc2dc409d420097b4e864d511901180d7c2c6bac has five failures; all new cases pass with this change. The new suite plus related setup, update, GPU-selection, and component-start suites: 31 tests pass.
  • Release CPU build passes. Full L0/L1: 97 passed, 3 Vulkan tests skipped, 4 failed. The four failures independently reproduce on the unchanged base: system temporary-directory permissions in moe_test_app_generation, unavailable host memory data in moe_test_platform_memory, and existing large-number serialization in moe_test_ordered_json / moe_test_template_tools.
  • git diff --check passes. No model or GPU performance claim is made.

Checklist

  • Full L0/L1 passes locally (the four baseline failures are listed above)
  • Ran affected update/feed and setup tests
  • Added signed-feed HTTP, real CLI, and integrity regression coverage
  • No public command or feed-schema change is needed

@shuk777

shuk777 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Closing as part of clearing this pre-hygiene queue; see #298 (comment) for the note on the updated review process. Thank you again.

@shuk777 shuk777 closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants