Repository navigation
Release v1.18.0 - #1122
Open
ja573 wants to merge 37 commits into
Open
Release v1.18.0#1122ja573 wants to merge 37 commits into
ja573 wants to merge 37 commits into
Conversation
Documentation only. Proposes that OASIS holds METRICS_COLLECT; serving, import and export stay gated by their own capabilities.
…nts, widen follow-on impact, add changelog
ADR-0017: Metrics collection is independent of package (PROPOSED)
Back-merge v1.17.0 into develop
Run cargo update and raise the actix-web and actix-http version floors to the releases that fix RUSTSEC-2026-0446, -0447, -0448, -0455, -0552, -0553 and -0554. The update also clears the advisories with compatible fixes in rustls, rustls-webpki, webpki-roots, zstd, quinn-proto, url, tokio, h2 0.4 and others.
actix-web 4.19 accepts cleartext HTTP/2 on a plain bind() by default. Turn that off so the update does not change which protocols the servers accept.
Limit account-level operations on the shared instance, define the per-person role target, run the role sync and reconcile on the shared job engine, keep the reconcile report-only until its own activation, enforce the package-to-role matrix at authorization, and add the changelog line.
Define base and package-dependent roles and correct invariant 10, word the boundary to include the worker's identity jobs, bound account-level operations to the deployment's directory, protect by allow-list, state the residual takeover path and give the authorization rule its own setting and place in rollout.
Close the third review's findings: one scope for account-level operations, the authorization rule stays on while the switch is write, and the CTO's recorded acceptance is cited for the API only.
Update dependencies to latest compatible versions (SEC-DEPS-01)
Check each document against three limits before anything parses it: nesting depth (64), tokens (15,000) and names after fragment expansion (15,000), the limits juniper 0.17.2 enforces. The check reads the document with juniper's own lexer and never recurses. A document over a limit gets an ordinary validation-style error response. Addresses RUSTSEC-2026-0416 and RUSTSEC-2026-0417 until juniper is upgraded.
…reads (#1108) Review of the document limits found three ways past them: - fragments that spread each other in a cycle, and a fragment defined twice, both make juniper's own validation do unbounded work before it refuses them, so the check now refuses both itself; - the depth limit counted brackets in the text only, so a chain of fragment spreads nested without limit. Depth is now counted through spreads: a spread adds the fragment's expanded depth to its own. Fragments are expanded in document order, so the result no longer depends on hash order. Tests: the reviewer's documents; boundaries for depth through fragments; the handler refuses an over-limit document before the mutation guard or execution parses it, in every guard mode; and a query at the depth limit runs through the real schema's async execution on a 2 MiB stack. The limits narrow what one request can cost. A document inside them can still take a few seconds of CPU; the juniper upgrade remains the remedy for RUSTSEC-2026-0416 and RUSTSEC-2026-0417.
Limit the depth and size of GraphQL documents (SEC-DEPS-02)
Add a dependency-audit workflow that runs cargo-audit on pull requests that change a manifest, the lockfile or the audit configuration, and daily on master and develop. Dependabot alerts cover only advisories GitHub has reviewed, which left most RustSec advisories unreported. .cargo/audit.toml lists the advisories that remain after the dependency update, each with the reason it is accepted and when to remove it.
…ead-csvg92 # Conflicts: # CHANGELOG.md
ADR-0018: Thoth-managed identity administration (PROPOSED)
Check Cargo.lock against the RustSec advisory database in CI (SEC-DEPS-03)
juniper 0.17 renames the scalars of uuid::Uuid and chrono::NaiveDate to UUID and LocalDate. Thoth now defines Uuid and Date itself as transparent wrappers, so the GraphQL schema is unchanged. The two juniper advisories leave the audit ignore list.
…propagation in fragments juniper 0.17 fixes error propagation inside fragments: an error on a non-null field selected through a fragment now empties data, as it already did without a fragment. Three tests asserted the old behaviour.
Upgrade juniper to 0.17.2 with the GraphQL schema unchanged
Add publisher CMS URL (Publisher.cmsUrl)
THOTH-ASYNC-01-CONTRACT-01, spec R2.1. One new migration (provisional date) locks publisher and work, checks the seven legacy objects exist, locks the three tables NOWAIT, asserts zero rows and drops them and the four enums RESTRICT. down.sql is a schema-only recreation of the v1.7.0 DDL for disposable databases. schema.rs no longer declares the tables; the B3 rename guard and the harness self-heal go; the job inventory, the metric_native_month catalogue filter and the legacy audit follow. New tests T1 to T9 run in throwaway databases.
GB-PLATFORM-MERGE-01: SQL to move archive Google Books history onto the driver platform
Drop the legacy BE-04 job tables (async B4)
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.
Requested by Javi · project thread
Release v1.18.0:
develop232d0e9 (#1119 merged on the CTO's card go, 2026-12-04 23:50Z) plus the version bump and CHANGELOG section. The bump commit changes onlyCHANGELOG.md, the sixCargo.tomlfiles andCargo.lock, the same shape as the v1.17.0 bump.What ships
20261203_v1.18.0(Add publisher CMS URL (Publisher.cmsUrl) #1116) adds the nullablepublisher.cms_urlcolumn and its CHECK.20261204_v1.18.0(THOTH-ASYNC-01-CONTRACT-01 (B4): drop the legacy BE-04 job tables (spec) #1118, async B4, CRITICAL) drops the three empty legacy distribution-job tables and their four enums. It briefly takes ACCESS EXCLUSIVE onpublisherandwork(5 s lock timeout), and it fails, changing nothing, if any row is left.20261203stays applied and v1.17.0 keeps serving;cms_urldoes not affect it.Publisher.cmsUrlandsetPublisherCmsUrl(Add publisher CMS URL (Publisher.cmsUrl) #1116); the Google Books platform-merge ops SQL (GB-PLATFORM-MERGE-01: move archive Google Books history onto the driver platform #1120, not run on deploy); ADR-0018 (docs only); dependency and GraphQL limit security fixes (SEC-DEPS-01: Update locked dependencies to clear RustSec advisories with compatible fixes #1107, SEC-DEPS-02: Limit GraphQL document depth and size (RUSTSEC-2026-0416, RUSTSEC-2026-0417) #1108, SEC-DEPS-03: Check Cargo.lock against RustSec advisories in CI #1109).Gates (thoth#1118, G3)
After merge (the CTO's)
Annotated tag
v1.18.0on the merge commit, then a GitHub Release (its published event runs the image workflow), then a back-merge ofmasterintodevelop. Deploy test first, then prod, in the OPERAS block on 12-05 after 06:45Z, with a fresh RDS snapshot right before prod and no Sphinx writer running. The rollback target is v1.17.0.Generated by Claude Code