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
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:

python scripts/validate-h3-url-map.py
python scripts/validate-h3-hub-cutover.py
python -m unittest discover -s scripts -p "test_*.py"

echo "Validated static deployment output: public/"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ jobs:
set -euo pipefail
python scripts/validate-h3-url-map.py
python scripts/validate-h3-hub-cutover.py
python -m unittest discover -s scripts -p "test_*.py"
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ Secure Tools products. Products and libraries remain independently maintained an

## Status

The repository now includes its information architecture, standardized product disclosure
model, and a production-polished visual system aligned with Secure Tools Web Utilities, but it
is not released as the production Hub.
Production migration has not happened: `securetools.app` remains assigned to Secure Tools Web
Utilities. The configured workflow publishes `main` only to the Cloudflare-managed `pages.dev`
validation target.
The Hub is live at `https://securetools.app/`. It discovers independently maintained
products; Web Utilities is hosted at `https://tools.securetools.app/`.
GitHub Actions validates and deploys the static `public/` directory to Cloudflare Pages.
See [the v2.2 link migration](docs/migrations/v2.2-tool-links.md) for canonical tool destinations.

## Documentation

Expand Down
39 changes: 12 additions & 27 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,34 +39,19 @@ workflow's short-lived `GITHUB_TOKEN` so that each upload creates or updates a v
Deployment record. The workflow has only `contents: read` and `deployments: write`
permissions.

## Current validation deployment
## Production identity

The current deployment target is the Cloudflare Pages-managed
`https://secure-tools-hub-53i.pages.dev` site. This endpoint is for validating the Hub
deployment path and does not mean that the Hub has become the Secure Tools production site.
`https://securetools.app/` serves the Hub. `https://tools.securetools.app/` serves Web Utilities.
The stable and immutable `secure-tools-hub-53i.pages.dev` aliases remain validation endpoints
with hostname-specific noindex headers. The Hub is a static catalog, not a tool runtime.

## Future production domain
## Redirect contract

`https://securetools.app` is **not yet connected to this repository**. It remains assigned to
Secure Tools Web Utilities. This workflow does not change DNS, configure a custom domain, or
perform the future production migration.
`public/_redirects` preserves the 18 historical apex source paths and sends them directly
to root-level canonical Web Utilities URLs with 301 responses. The root and all Hub routes
remain Hub-owned. Query strings are preserved by Pages redirect behavior.
The migration CSV documents historical sources, canonical targets, and tools-host 308 support.
See [the v2.2 link migration](./migrations/v2.2-tool-links.md).

Any production domain migration and related redirects must be handled as a separate,
explicitly reviewed milestone.

## Prepared H3.5 deployment contract

The unmerged H3.4B branch prepares static `public/_headers` and `public/_redirects`
artifacts. The hostname-specific header rules keep the stable and immutable
`*.secure-tools-hub-53i.pages.dev` aliases non-indexable without applying noindex to the
future custom domain. The redirects contain only the 18 explicit H3.1 legacy Web Utilities
paths and preserve each path on `https://tools.securetools.app`; the Hub root and all Hub
routes are excluded.

Cloudflare Pages path redirects do not implement the future `www → apex` domain redirect.
That change requires a Cloudflare zone/account-level Redirect Rule or Bulk Redirect plus
proxied DNS during the coordinated H3.5 window. The exact activation and rollback order is
documented in [the H3.5 cutover runbook](./migrations/h3.5-cutover-runbook.md).

The H3.4B pull request does not attach a custom domain, change DNS, activate a `www` rule,
modify Search Console, or deploy from its feature branch.
This content/link migration changes no DNS, custom domains, TLS, zone rules, Search Console,
or Web Utilities code. The H3.5 runbook is retained as a historical cutover record.
4 changes: 4 additions & 0 deletions docs/migrations/h3-migration-contract.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# H3.1 — Domain Migration Contract and URL Inventory

> Historical H3 preparation record. The apex now serves the Hub and Web Utilities uses
> root-level canonical routes. The old same-path destination contract below is superseded
> by [the verified v2.2 migration](./v2.2-tool-links.md); do not execute this historical runbook.

Status: planning only. Nothing in this document authorizes a DNS, hosting, custom-domain, redirect, metadata, or Search Console change.

Issue: [#12](https://github.com/SecureToolsProject/hub/issues/12)
Expand Down
36 changes: 18 additions & 18 deletions docs/migrations/h3-url-map.csv
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
old_url,new_url,status,reason
https://securetools.app/,https://securetools.app/,no_redirect,The apex root becomes the Hub and must not redirect
https://securetools.app/about/,https://tools.securetools.app/about/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/privacy/,https://tools.securetools.app/privacy/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/pdf/,https://tools.securetools.app/tools/pdf/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/pdf/images-to-pdf/,https://tools.securetools.app/tools/pdf/images-to-pdf/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/pdf/merge/,https://tools.securetools.app/tools/pdf/merge/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/pdf/split/,https://tools.securetools.app/tools/pdf/split/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/pdf/organize/,https://tools.securetools.app/tools/pdf/organize/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/pdf/to-images/,https://tools.securetools.app/tools/pdf/to-images/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/pdf/metadata/,https://tools.securetools.app/tools/pdf/metadata/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/image/,https://tools.securetools.app/tools/image/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/image/converter/,https://tools.securetools.app/tools/image/converter/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/image/resize/,https://tools.securetools.app/tools/image/resize/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/image/compress/,https://tools.securetools.app/tools/image/compress/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/image/metadata/,https://tools.securetools.app/tools/image/metadata/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/privacy/,https://tools.securetools.app/tools/privacy/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/scan/,https://tools.securetools.app/tools/scan/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/media/,https://tools.securetools.app/tools/media/,301,Preserve the existing Web Utilities path on the tools host
https://securetools.app/tools/image-to-pdf/,https://tools.securetools.app/tools/image-to-pdf/,301,Preserve the existing noindex legacy interstitial without combining path cleanup
https://securetools.app/about/,https://tools.securetools.app/about/,301,Historical apex URL; direct canonical tools-host target
https://securetools.app/privacy/,https://tools.securetools.app/privacy/,301,Historical apex URL; direct canonical tools-host target
https://securetools.app/tools/pdf/,https://tools.securetools.app/pdf/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/pdf/images-to-pdf/,https://tools.securetools.app/pdf/images-to-pdf/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/pdf/merge/,https://tools.securetools.app/pdf/merge/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/pdf/split/,https://tools.securetools.app/pdf/split/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/pdf/organize/,https://tools.securetools.app/pdf/organize/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/pdf/to-images/,https://tools.securetools.app/pdf/to-images/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/pdf/metadata/,https://tools.securetools.app/pdf/metadata/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/image/,https://tools.securetools.app/image/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/image/converter/,https://tools.securetools.app/image/converter/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/image/resize/,https://tools.securetools.app/image/resize/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/image/compress/,https://tools.securetools.app/image/compress/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/image/metadata/,https://tools.securetools.app/image/metadata/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/privacy/,https://tools.securetools.app/privacy/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
https://securetools.app/tools/scan/,https://tools.securetools.app/scan/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support; unavailable category remains unpublished
https://securetools.app/tools/media/,https://tools.securetools.app/media/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support; unavailable category remains unpublished
https://securetools.app/tools/image-to-pdf/,https://tools.securetools.app/pdf/images-to-pdf/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support
4 changes: 4 additions & 0 deletions docs/migrations/h3.5-cutover-runbook.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# H3.5 coordinated cutover runbook

> Historical H3 preparation record. The apex now serves the Hub and Web Utilities uses
> root-level canonical routes. The old same-path destination contract below is superseded
> by [the verified v2.2 migration](./v2.2-tool-links.md); do not execute this historical runbook.

Status: prepared by H3.4B; do not execute from the preparation pull request.

This runbook coordinates the final architecture:
Expand Down
68 changes: 68 additions & 0 deletions docs/migrations/v2.2-tool-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Verified v2.2 Hub tool URL migration

Base: SecureToolsProject/hub main c99f52fcadfbb4c701238b8030d924c9e4496698.
Web Utilities production main: 4b07f2962e524f4cfa5736de35e0f31ad52aaa15.
The live tools sitemap and route manifest are the canonical reference; all 19 destinations
returned HTTP 200 with zero redirect hops before editing.

## Audit before editing

- public/_redirects: 16 legacy tools-host destinations among 18 exact redirects.
- docs/migrations/h3-url-map.csv: the same 16 stale destination URLs; preserve historical sources.
- scripts/validate-h3-url-map.py: enforced obsolete same-path destinations.
- docs/deployment.md and docs/seo.md: repeated the obsolete/currently inaccurate contract.
- docs/migrations/h3-migration-contract.md and h3.5-cutover-runbook.md: historical same-path
instructions, now clearly marked superseded; preserve historical route tables.
- public/products/web-utilities/index.html: two canonical root entry links, no individual
tool discovery; old cutover wording. Add available tool links using its existing list design.
- README.md: stale pre-production status.
- Other source, public assets, navigation, metadata, sitemap and robots: no stale published
tools-host destinations. Hub has English-only static content, no locale/theme controls.

## Exact apex-source to tools-host canonical mapping

| Historical apex source | Canonical tools-host destination |
| --- | --- |
| /about/ | /about/ |
| /privacy/ | /privacy/ |
| /tools/pdf/ | /pdf/ |
| /tools/pdf/images-to-pdf/ | /pdf/images-to-pdf/ |
| /tools/pdf/merge/ | /pdf/merge/ |
| /tools/pdf/split/ | /pdf/split/ |
| /tools/pdf/organize/ | /pdf/organize/ |
| /tools/pdf/to-images/ | /pdf/to-images/ |
| /tools/pdf/metadata/ | /pdf/metadata/ |
| /tools/image/ | /image/ |
| /tools/image/converter/ | /image/converter/ |
| /tools/image/resize/ | /image/resize/ |
| /tools/image/compress/ | /image/compress/ |
| /tools/image/metadata/ | /image/metadata/ |
| /tools/privacy/ | /privacy/ |
| /tools/scan/ | /scan/ |
| /tools/media/ | /media/ |
| /tools/image-to-pdf/ | /pdf/images-to-pdf/ |

The root remains the Hub with no redirect. Tools-host `/tools/*` URLs remain supported
historically through 308 redirects, but are never Hub destinations. The image-to-PDF alias
maps directly to `/pdf/images-to-pdf/`. PDF to Text is new since the original H3 inventory:
link directly to `/pdf/to-text/`, with Searchable PDF integrated there; do not invent a legacy
redirect or a separate Searchable PDF route. Scan/media legacy redirects preserve historical
routing only; those unavailable tools remain absent from discovery. No new tool is activated.

## Validation

The Hub has no package manager, install dependencies, compilation, or separate build step.
`public/` is the unchanged static deployment output format. Run:

```text
python scripts/validate-h3-url-map.py
python scripts/validate-h3-hub-cutover.py
python -m unittest discover -s scripts -p "test_*.py"
git diff --check
```

The existing URL validator now checks canonical destinations, exact historical sources,
discovery links, unpublished tools and redirect-map consistency. SEO validation retains
10 Hub-only canonical pages, sitemap/robots and Pages-alias isolation. Regression tests
exercise stale destinations, aliases, missing PDF OCR discovery and unavailable tool links.
DNS, Search Console, Web Utilities code, tags and releases are outside this change.
22 changes: 10 additions & 12 deletions docs/seo.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Hub search metadata

Status: H3.4B preparation only. The pull request must remain unmerged until the coordinated
H3.5 cutover.
Status: production Hub. The v2.2 link migration updates tool destinations without changing
Hub canonical metadata, sitemap, robots, or indexing policy.

## Final canonical identity

Expand Down Expand Up @@ -29,27 +29,25 @@ https://secure-tools-hub-53i.pages.dev/*
https://:version.secure-tools-hub-53i.pages.dev/*
```

The future `securetools.app` custom domain does not match those patterns and remains
The production `securetools.app` custom domain does not match those patterns and remains
indexable. No Worker or Pages Function is required.

## Legacy path ownership

`public/_redirects` contains exactly the 18 explicit 301 mappings in
`docs/migrations/h3-url-map.csv`. Every destination is the same path on
`https://tools.securetools.app`. The Hub root and all Hub routes are excluded; no wildcard
`docs/migrations/h3-url-map.csv`. Every destination is the root-level canonical path on
`https://tools.securetools.app`, including the historical image-to-PDF alias. The Hub root and all Hub routes are excluded; no wildcard
can swallow future Hub content.

These redirects become reachable on the apex only after H3.5 attaches the custom domain to
the Hub Pages project. The H3.4B feature branch does not deploy or activate them.
The apex redirects go directly to canonical tools URLs. Historical `/tools/*` sources are
retained; destination URLs no longer rely on the tools host's legacy 308 redirects.

## Validation and search activation

`scripts/validate-h3-hub-cutover.py` checks route metadata, social image dimensions,
sitemap, robots, and Pages-alias isolation. `scripts/validate-h3-url-map.py` compares the
redirect artifact directly with the H3.1 inventory and rejects duplicates, wildcards, wrong
hosts, changed paths, non-301 status, root redirects, and Hub-route collisions.
hosts, incorrect canonical targets, non-301 status, root redirects, and Hub-route collisions.

Search Console remains unchanged during preparation. After H3.5 HTTP, TLS, canonical, and
redirect validation, submit the Hub sitemap to the root property and monitor Web Utilities
through the tools URL-prefix property. Do not use Change of Address for this partial
migration.
Search Console and DNS remain unchanged by the v2.2 link migration. Historical activation
instructions remain in the archived H3.5 runbook.
32 changes: 16 additions & 16 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/about/ https://tools.securetools.app/about/ 301
/privacy/ https://tools.securetools.app/privacy/ 301
/tools/pdf/ https://tools.securetools.app/tools/pdf/ 301
/tools/pdf/images-to-pdf/ https://tools.securetools.app/tools/pdf/images-to-pdf/ 301
/tools/pdf/merge/ https://tools.securetools.app/tools/pdf/merge/ 301
/tools/pdf/split/ https://tools.securetools.app/tools/pdf/split/ 301
/tools/pdf/organize/ https://tools.securetools.app/tools/pdf/organize/ 301
/tools/pdf/to-images/ https://tools.securetools.app/tools/pdf/to-images/ 301
/tools/pdf/metadata/ https://tools.securetools.app/tools/pdf/metadata/ 301
/tools/image/ https://tools.securetools.app/tools/image/ 301
/tools/image/converter/ https://tools.securetools.app/tools/image/converter/ 301
/tools/image/resize/ https://tools.securetools.app/tools/image/resize/ 301
/tools/image/compress/ https://tools.securetools.app/tools/image/compress/ 301
/tools/image/metadata/ https://tools.securetools.app/tools/image/metadata/ 301
/tools/privacy/ https://tools.securetools.app/tools/privacy/ 301
/tools/scan/ https://tools.securetools.app/tools/scan/ 301
/tools/media/ https://tools.securetools.app/tools/media/ 301
/tools/image-to-pdf/ https://tools.securetools.app/tools/image-to-pdf/ 301
/tools/pdf/ https://tools.securetools.app/pdf/ 301
/tools/pdf/images-to-pdf/ https://tools.securetools.app/pdf/images-to-pdf/ 301
/tools/pdf/merge/ https://tools.securetools.app/pdf/merge/ 301
/tools/pdf/split/ https://tools.securetools.app/pdf/split/ 301
/tools/pdf/organize/ https://tools.securetools.app/pdf/organize/ 301
/tools/pdf/to-images/ https://tools.securetools.app/pdf/to-images/ 301
/tools/pdf/metadata/ https://tools.securetools.app/pdf/metadata/ 301
/tools/image/ https://tools.securetools.app/image/ 301
/tools/image/converter/ https://tools.securetools.app/image/converter/ 301
/tools/image/resize/ https://tools.securetools.app/image/resize/ 301
/tools/image/compress/ https://tools.securetools.app/image/compress/ 301
/tools/image/metadata/ https://tools.securetools.app/image/metadata/ 301
/tools/privacy/ https://tools.securetools.app/privacy/ 301
/tools/scan/ https://tools.securetools.app/scan/ 301
/tools/media/ https://tools.securetools.app/media/ 301
/tools/image-to-pdf/ https://tools.securetools.app/pdf/images-to-pdf/ 301
Loading
Loading