Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ jobs:
- name: Verify responsive navigation, metadata layouts and accessibility
run: node tests/browser/responsive.mjs

- name: Inspect isolated release review artifact
run: node scripts/inspect-release-artifact.mjs

- name: Retain inspected release review artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: release-review-${{ github.sha }}
path: .ts-build/release-review
if-no-files-found: error
retention-days: 7

- name: Retain artifact browser diagnostics
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Expand Down
39 changes: 38 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,43 @@
# Changelog

## Unreleased
## 2.3.0 — Release candidate, unpublished

### Security and reliability

- Bind CI artifacts to the source commit and canonical package version through
`/build-info.json`; live production equality remains a release-time gate.
- Pin all external GitHub Actions to reviewed full SHAs; prepare reviewed weekly
Actions/npm maintenance, whose default-branch activation is still pending.
- Require `%PDF-` at byte zero before original-source PDF parsing. Signature
admission is not a parser safety or resource-budget guarantee.
- Add root SECURITY.md, supported-version boundaries and verified GitHub private
vulnerability reporting.
- Deliver the reviewed HTTP CSP, no-referrer, Permissions-Policy and nosniff policy
in the isolated Pages artifact. Live delivery is not yet signed off.
- Add JS/TS CodeQL and exact lockfile/vendor advisory monitoring. Nested/native
dependency coverage remains incomplete; no-known-advisory results are bounded.
- Retain pdf-lib 1.17.1 and JSZip 3.10.1 following the maintenance assessment;
investigate a pdf-lib successor separately in v2.4, without an automatic upgrade.
- Exclude repository instructions, package manifests and build configs from the
public artifact root; retain license metadata and isolate Cloudflare CNAME removal.

### UX

- Compact mobile navigation, language and theme into a native disclosure, with
keyboard/Escape support and usable navigation without JavaScript.
- Reduce category-bar padding, keep one scrollable row and retain touch targets.
- Improve mobile workspace spacing, intended system-font inheritance and narrow
viewport fit without changing the brand or adding a component framework.
- Move both metadata scope cards after results on desktop/mobile, preserving all
supported-scope limitations.
- Theme native selects and supported desktop pickers while retaining mobile
platform pickers and existing form/accessibility behavior.

Image OCR, PDF OCR/TXT and searchable PDF export are existing v2.2 capabilities,
not newly introduced v2.3 tools. Release notes are a candidate record, not
production GO, audit closure, release publication or deployment authorization.

## Earlier development history

### Added

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@ See the [privacy model](./docs/privacy-model.md) for exact guarantees and bounda
- [PDF Organizer](https://tools.securetools.app/pdf/organize/) — preview, reorder, rotate, remove, and export pages.
- [PDF to Images](https://tools.securetools.app/pdf/to-images/) — render pages to PNG, JPEG, or WebP.
- [PDF Metadata Inspector & Cleaner](https://tools.securetools.app/pdf/metadata/) — inspect and remove supported document-info fields.
- [PDF to Text OCR](https://tools.securetools.app/pdf/to-text/) — recognize selected pages locally and save text or a searchable PDF.

### Image

- [Image Converter](https://tools.securetools.app/image/converter/) — convert JPEG, PNG, and WebP batches.
- [Image Resize](https://tools.securetools.app/image/resize/) — resize batches by pixels or percentage.
- [Image Compressor](https://tools.securetools.app/image/compress/) — quality-compress images and compare byte results.
- [Image Metadata Inspector & Cleaner](https://tools.securetools.app/image/metadata/) — inspect supported metadata and save a verified cleaned copy without pixel re-encoding.
- [Image to Text OCR](https://tools.securetools.app/image/to-text/) — recognize English/Korean text locally and save editable UTF-8 text.

### Privacy

The [Privacy hub](https://tools.securetools.app/privacy/) links to the specialized Image and PDF metadata tools. It is a cross-category navigation surface, not a generic sanitizer. Scan/OCR and Media remain planned.
The [Privacy hub](https://tools.securetools.app/privacy/) links to the specialized Image and PDF metadata tools. It is a cross-category navigation surface, not a generic sanitizer. The Scan & OCR category links to the existing OCR tools; document scanning and Media tools remain planned.

Detailed formats, limits, and behavior are listed in [tool status](./docs/tool-status.md).

Expand Down
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ The root [README](../README.md) introduces Secure Tools. This directory owns det

## Release evidence

- [v2.3 release readiness](./v2.3-release-readiness.md) freezes feature scope,
inventories the integration delta and open findings, and separates candidate
artifact validation from the later [production verification gate](./v2.3-post-deploy-checklist.md).

- [v1.0.0 release QA](./release-qa.md) is a historical Sprint 11 release-candidate snapshot. Its unchecked items remain historical and are not current requirements.
- [v2 promotion QA](./v2-release-qa.md) preserves the automated, manual Chrome, Orientation-regression, and promotion evidence for the v2.0.0 pre-release line.
- The root [changelog](../CHANGELOG.md) records release and change history; it is not a technical specification.
Expand Down
135 changes: 135 additions & 0 deletions docs/v2.3-post-deploy-checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# v2.3.0 production verification — later authorization required

No step here authorizes merging to main, deploying, tagging or publishing.
Use a clean GitHub-hosted Ubuntu runner for authoritative HTTP/browser evidence;
local AdGuard rewriting must fail closed and must not change expected headers.

## Before authorized promotion

1. Review/merge the release-readiness PR into `v2.3` only with explicit permission.
Confirm package/lock root version `2.3.0`, frozen feature scope, no new blockers,
and green CI/security checks at the final integration SHA.
2. Open/review the dedicated `v2.3` to `main` release PR. Require separate explicit
merge authorization; never squash/rebase the preserved sprint history.
3. Record the actual resulting **main merge commit** as `RELEASE_SHA`. Do not use
the integration head or the PR's synthetic test merge as production identity.
The current workflow automatically deploys main pushes: authorization to
merge must explicitly account for this deployment trigger.

## Artifact and deployment identity

4. Verify main CI and `Deploy Cloudflare bridge` checkout/build source are
`RELEASE_SHA`, version `2.3.0`, Node 24, locked dependency inputs and prepared
asset hashes/licenses. Check the CI-generated record before upload:

```text
schemaVersion = 1
commit = RELEASE_SHA (40 lowercase hex characters)
version = 2.3.0
build.source = github-actions
```

The reviewed candidate archive/digest identifies its own CI build only. A
later main build has a different source SHA and must be checked again. A ZIP
digest/source record is not a signed attestation or reproducibility proof.
5. Check isolated deployment output contains `_headers`, `_redirects`, license
metadata and the full expected site; no CNAME, test/debug/config/agent files,
TS source/maps, runtime CDN or injected telemetry. Root/generic CNAME must
remain `securetools.app`; strip only the isolated Cloudflare copy.
6. Record the successful deployment run, GitHub deployment, Cloudflare deployment
ID and **new immutable URL** from that run. Confirm the expected project,
canonical custom domain and disabled Web Analytics without changing settings
as part of verification. Never reuse an old immutable URL as release evidence.

## F-05: live HTTP policy

7. Check canonical `https://tools.securetools.app` and the new immutable origin on
`/`, `/pdf/merge/`, `/image/to-text/`, `/pdf/to-text/`, `/build-info.json`.
Use real HTTP responses without redirects/fallback HTML. The existing clean
browser smoke calls the shared strict `assertSecurityHeaders` validator.
Require on each document/JSON response:

- CSP default/script/style/font sources restricted to self; `img-src 'self'
blob: data:`; `worker-src 'self'`; `connect-src 'none'`; `object-src 'none'`;
`frame-src 'none'`; `frame-ancestors 'none'`; `base-uri 'self'`;
`form-action 'self'`.
- `Referrer-Policy: no-referrer`.
- `Permissions-Policy: camera=(), microphone=(), geolocation=()`.
- `X-Content-Type-Options: nosniff`.

Keep the already-reviewed narrow Tesseract entry-worker header-detach exception;
do not infer that document CSP may be relaxed. PDF.js retains strict policy.
Verify canonical indexing remains allowed and pages.dev aliases retain noindex.

## F-06 / Issue #112: live provenance equality

8. Check out `RELEASE_SHA`, then run on the clean runner with the actual immutable
URL (substitute the recorded values, never run literal angle-bracket labels):

```sh
node scripts/verify-build-provenance.mjs https://tools.securetools.app "$RELEASE_SHA"
node scripts/verify-build-provenance.mjs "$IMMUTABLE_ORIGIN" "$RELEASE_SHA"
node tests/deployment-smoke.mjs "$IMMUTABLE_ORIGIN" noindex
node tests/deployment-smoke.mjs https://tools.securetools.app indexable
```

Confirm HTTP 200 JSON, strict schema, version `2.3.0`, source `github-actions`:

```text
main/release source SHA == CI build-info commit
== immutable build-info commit
== canonical production build-info commit
```

Existing bounded alias retries allow propagation; do not accept stale bytes.
Only after equality and browser checks pass is #112 eligible for closure of
its compact-provenance scope. Full manifests/attestation/reproducible builds
were not implemented and must not be claimed.

## Production browser gate

9. Dispatch **Production smoke** at the reviewed main workflow with inputs:
`production_origin=https://tools.securetools.app`, `immutable_origin` equal to
the recorded new URL, and `source_commit=RELEASE_SHA`. Verify checkout uses the
same SHA. Do not dispatch it during preparation.
10. Require all existing production gates: canonical/immutable assets/locales,
strict headers/provenance, English/Korean OCR, exact TXT and searchable PDF
downloads, visible content preservation, cancellation/retry/replacement,
object URL cleanup, zero external requests/analytics, console/page errors or
CSP violations. Record the successful hosted summary; failures mean NO-GO.

## F-02 / F-04: default-branch activation

11. Confirm `.github/dependabot.yml` is now present on default branch main, with
Actions/npm weekly entries targeting `v2.3` and reviewed commit prefixes.
Confirm recognition through **Insights → Dependency graph → Dependabot** /
update-job configuration logs showing both ecosystems, or an available API
exposing equivalent recognized jobs. A source file alone is insufficient
evidence of recognition; do not require an immediate dependency PR.
If the token/API cannot expose this, record the specific missing evidence
and request maintainer UI evidence; do not broaden credentials silently.
12. Distinguish version-update configuration from Dependabot alerts/security
updates (observed disabled before promotion). Default-branch placement does
not itself enable these separate settings; no automatic merges or silent
setting changes are approved. Record the actual state and scoped limitation.
13. Confirm **Security monitoring** runs on the actual main SHA and succeeds for
CodeQL JS/TS upload plus exact lockfile/vendor advisories. Read the resulting
default-branch analysis, not only a PR status. Keep nested/native bundle,
unpublished-project and undisclosed-advisory limitations explicit.

## Closure and remaining manual work

14. Update #111/#113/#116/#117/#112 only to the extent supported by collected
activation/live evidence; verify implementation issues #114/#115/#128 and
release closing links. A merged implementation is not automatic audit closure.
15. Retain #126 as v2.4 work; keep JSZip deferred. Record physical iOS Safari and
Android Chrome pickers plus VoiceOver/TalkBack header/menu/select checks as
manual follow-up without blocking solely on device access.
16. Declare production GO only after the above gates pass. Tag/release publication
requires new explicit authorization after verification. Update SECURITY.md's
latest stable row when the GitHub release is actually published; do not
advertise an unpublished candidate as supported stable.

References: [default-branch Dependabot placement](https://docs.github.com/en/code-security/concepts/supply-chain-security/about-the-dependabot-yml-file),
[target-branch/version versus security updates](https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference),
[artifact digests](https://docs.github.com/en/actions/tutorials/store-and-share-data).
55 changes: 55 additions & 0 deletions docs/v2.3-release-pr-draft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Staged release PR body — not yet submitted

Open only after the release-readiness changes are reviewed and integrated and
final integration checks pass. Base `main`, head `v2.3`, title
`🚀[Deploy] Release v2.3.0`. Confirm no existing release PR before creating one.

## Summary

Prepare v2.3.0 security/reliability hardening and mobile UX improvements on the
existing v2.2 local-only tool baseline. No new document/media tools or dependency
upgrades are included. Image/PDF OCR and searchable PDF export already existed.

## Security and reliability changes

- Compact commit/version CI provenance; strict future canonical/immutable equality.
- Full-SHA Action pins and reviewed weekly maintenance configuration.
- Shared byte-zero PDF signature admission, retaining parser/resource limitations.
- SECURITY.md and private reporting route.
- Reviewed HTTP headers, preserving the existing narrow OCR worker exception.
- CodeQL JS/TS, exact lockfile/vendor/project advisories and unchanged release pins.
- Explicit dependency-maintenance decisions: keep pdf-lib/JSZip; scope v2.4 separately.
- Public artifact root allowlist, isolated CNAME removal and review artifact inspection.

## UX changes

Native mobile navigation disclosure, compact category scrolling, shared workspace
spacing, metadata limitations after results, corrected system-font/narrow fit,
and native select theming with mobile system pickers retained. Six locales,
keyboard, reduced motion, local-only processing and CSP remain supported.

## Known release-time verification still required

- Live HTTP header enforcement on canonical and new immutable deployment.
- `/build-info.json` equals the **actual main release source SHA**, version 2.3.0,
CI source marker and strict schema on both origins.
- Default-branch Dependabot configuration recognition and actual main CodeQL/
advisory runs. Nested/native coverage remains incomplete; version-update
recognition does not silently enable separate Dependabot security settings.
- Clean hosted production smoke/browser verification; physical mobile/AT follow-up.

## Test evidence

Before submission, link the final approved hardening and integration CI runs,
security/CodeQL/advisory analysis, artifact inspection/digest, real OCR/download/
cancellation evidence and 441-case responsive matrix. The hardening PR's review
description records candidate evidence; do not reuse old production signoff.
See [readiness record](./v2.3-release-readiness.md) and
[post-deploy checklist](./v2.3-post-deploy-checklist.md).

## Release boundary

This PR prepares production promotion. Merge/deployment/tagging require separate
explicit authorization. Main pushes currently trigger the deployment workflow;
review that consequence before authorizing the release merge. This is not
production GO or full audit closure.
Loading
Loading