Skip to content

Phase 1: Prod-safety foundation (is_exemplar, ID partition, import block, webhook gate) #924

Closed

Description

@neuromechanist

Part of epic #923

is_exemplar migration 0057; xx090001+ ID partition (SANDBOX_ID_FLOOR/CEILING in datasetId.ts + upload.ts); env-conditional sandbox size cap; non-prod on-import 403 (routes/admin/imports.ts); webhook dev-range gate (routes/webhooks/github.ts, return-only half). All no-ops/narrowing on prod; promote to main promptly. Unit tests for generator boundary, webhook gate, import block.

Activity

  1. neuromechanist commented on Jul 6, 2026

    @neuromechanist
    ContributorAuthor

    AWS provisioning complete (verified) — mirrors prod

    Bucket nemar-dev (us-east-2), configured identically to prod nemar:

    • Object Lock: Enabled (creation-time; required for the publish s3_lock GOVERNANCE-retention step)
    • Versioning: Enabled
    • Public-access-block: BlockPublicAcls=true, IgnorePublicAcls=true, BlockPublicPolicy=false, RestrictPublicBuckets=false (same as prod)
    • Bucket policy: PublicReadExceptPrivate deny-list (same model as prod; carve-out nemar-dev/staging/*)

    IAM — the dev worker already authenticates as nemar-worker-dev (key in active use), so no rotation needed. Mirrored nemar-worker-prod:nemar:

    • nemar-worker-dev-inline: added full nemar-dev access (bucket-level + object RW incl. retention/legal-hold), kept existing prod sandbox access.
    • Shared boundary nemar-bucket-boundary extended (v3) to include nemar-dev (additive ceiling; prod worker / actions / hallu unaffected — their inline policies don't reference nemar-dev).
    • Verified via iam simulate-principal-policy: full RW on nemar-dev = allowed; PutObject/DeleteObject on nemar/nm000103/* = denied; iam:DeleteUser/iam:CreateAccessKey = denied (boundary has no iam:*).

    Secret hygiene (dev worker): removed EZID_USERNAME, EZID_PASSWORD, ZENODO_API_KEY; retained EZID_SANDBOX_*, ZENODO_SANDBOX_API_KEY.

    Code (PR): S3_BUCKET=nemar-dev, MANIFEST_VIA_CENTRAL_WORKFLOW=false in [env.dev.vars]. Takes effect on the dev worker at the next dev deploy. Deferred: D1 legacy-xx-row cleanup (rows point at old nemar/xx* objects; harmless, disposable).

  2. neuromechanist commented on Jul 7, 2026

    @neuromechanist
    ContributorAuthor

    Work merged to epic branch feature/issue-923-epic-test-staging (Phases 1-3, PRs #931/#932/#933). Closing as part of issue-number reconciliation to the by-title mapping. Tracked under epic #923.

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

    featureNew feature or enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions