Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: codu-code/codu
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: develop
Choose a base ref
...
head repository: codu-code/codu
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: chore/security-updates
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 110 files changed
  • 1 contributor

Commits on Nov 17, 2026

  1. chore: clear all security advisories, update dependencies, and fix wh…

    …at surfaced
    
    Security and dependencies
    - npm audit at the root goes from 87 advisories (5 critical, 17 high) to 0.
    - In-range updates across the board; nodemailer 7 -> 10, sharp 0.33 -> 0.35,
      aws-cdk-lib -> 2.277 (cdk/), and TipTap 2 -> 3, which has no patched 2.x
      release. Editor behaviour is pinned to what it was, and TipTap JSON post
      bodies now render through the server entry point.
    - Drop packages only the unused old editor needed, and the CDK packages the
      root never imported.
    
    Duplicate vercel.app site
    - On production, *.vercel.app hosts 308 to the project's production domain.
      /api, preview deploys and forks are left alone.
    
    Moderation
    - System reports raised by the nightly review are now listed, counted and
      dismissible in the admin queue, for posts and comments.
    - The cron raises at most one system report per post or comment.
    
    Feed sources
    - Admin Sync ingests into the live posts table through a shared module that
      the feed:fetch script also uses, instead of the legacy tables.
    - Creating a source sets its slug and linked author profile.
    - Untrusted article pages are fetched through one guarded fetch that
      validates every redirect hop and caps the body.
    
    Cleanup
    - Remove tRPC procedures with no caller, the unused comment router, the old
      editor, unused helpers, and unreferenced files including a 17 MB binary.
    - Search links use the shared URL builder; /feed.xml returns 500 on failure;
      canonicals on three static pages; Lambda runtimes to Node 22;
      actions/cache v4; .mcp.json untracked.
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    0fed34e View commit details
    Browse the repository at this point in the history
  2. test(e2e): make five specs hold on real mobile emulation

    Playwright 1.57 had no "Pixel 9" or "iPhone 16" device descriptors, so the
    Mobile Chrome and Mobile Safari projects were spreading `undefined` and
    running as desktop Chromium. 1.65 ships both, which exposes tests that were
    never exercised on a mobile viewport.
    
    - search: find the trigger by accessible name, which matches the desktop
      field and the mobile icon button alike.
    - my-posts: assert a closed select's options are attached, not visible.
    - my-posts: skip the dialog Close (X) test on mobile, where it is hidden.
    - editor: skip the modifier-key shortcut tests on touch devices.
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    c5478fb View commit details
    Browse the repository at this point in the history
  3. test(e2e): wait for the editor to hydrate before typing

    The editor specs navigated to /create and typed immediately. On WebKit under
    CI load the form had not hydrated yet, so the typed title and tags were
    discarded and the assertions timed out or passed only on retry. The TipTap
    body mounts on the client only, so the specs now wait for it before
    interacting.
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    8b7138f View commit details
    Browse the repository at this point in the history
  4. test(e2e): let the report modal's navigation settle before the next p…

    …age load
    
    Closing the report modal drops ?report= with a client-side navigation. The
    spec went straight on to load the admin queue, and the two navigations
    occasionally collided ("interrupted by another navigation").
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    495d538 View commit details
    Browse the repository at this point in the history
  5. fix(rate-limit): honour RATE_LIMIT_DISABLED for every limit, not only…

    … middleware ones
    
    The flag exists so the e2e suite, which drives every browser project through
    the same seeded users, is not throttled. It was only checked in the tRPC
    middleware, so limits applied inline in a procedure ignored it. The publish
    throttle (10 per 5 minutes) is one of those: by the last browser project the
    test user was told "You're posting too fast" and the publish and link-dedupe
    specs failed.
    
    The check now lives in enforceRateLimit, which both paths go through.
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    98c248b View commit details
    Browse the repository at this point in the history
  6. fix(ssrf): block IPv4-mapped IPv6 hosts in the form the URL parser emits

    new URL() serialises [::ffff:169.254.169.254] as [::ffff:a9fe:a9fe]. The guard
    only recognised the dotted form, so a mapped loopback, link-local or private
    address written that way was treated as public. Decode the hex form and run it
    through the IPv4 check.
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    5a5fc80 View commit details
    Browse the repository at this point in the history
  7. fix: address review feedback on the redirect, source names and feed d…

    …ates
    
    - The vercel.app redirect now leaves the bare /api path alone, not only
      paths beneath it.
    - Creating a feed source whose name has no a-z or 0-9 characters returns a
      clear BAD_REQUEST instead of "already exists".
    - RSS items dated in the future are skipped; they would otherwise sit at the
      top of the feed.
    - The post body test uses a javascript: image URL, which the sanitizer
      itself has to remove.
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    ce05d93 View commit details
    Browse the repository at this point in the history
  8. fix(cdk): bundle the sharp lambdas inside the Lambda build image

    sharp ships per-platform binaries. NodejsFunction bundles locally when esbuild
    is available, so a deploy from a Mac packaged sharp-darwin-arm64 into the
    avatar and upload resize functions, which cannot load on Lambda. It stayed
    hidden while the lambdas' source hash was unchanged; bumping sharp changes the
    hash and would have shipped the wrong binaries. Force Docker bundling for the
    two functions that depend on sharp.
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    cde8762 View commit details
    Browse the repository at this point in the history
  9. fix(cdk): connect the cron lambdas to RDS over verified TLS

    The RSS fetcher and vote-reconcile lambdas connected without TLS, which
    RDS has rejected since the Postgres 15 upgrade turned rds.force_ssl on,
    so both have failed on every run. They now use TLS and verify the server
    certificate against the RDS CA bundle that ships in the Lambda runtime.
    
    Verification needs a valid server certificate: the instance still served
    one issued under rds-ca-2019, which expired in August 2024. Move it to
    rds-ca-rsa2048-g1 (Postgres 15 rotates without a restart).
    NiallJoeMaher committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    1d0c9f4 View commit details
    Browse the repository at this point in the history
Loading