Skip to content

Decide post-launch hosting and pull request previews for mecatl.dev #1009

Closed

Description

@danbarr

Decide post-launch hosting and pull request previews for mecatl.dev

Context

The current Docusaurus site is deployed from main to a private S3 bucket behind CloudFront. That design made it straightforward to place the pre-public site behind a password. The password gate is not a requirement after the open source launch, and the project is free to choose the hosting platform that best fits Stacklok's other sites.

Hosted pull request previews remain valuable for reviewing layout, navigation, redirects, and responsive behavior. The hosting choice determines how those previews are built, isolated, authorized, retained, and linked from GitHub.

Decision to make

Choose the post-launch production host and pull request preview model together. The current candidates are:

  • move production and previews to Vercel;
  • keep production on S3 and CloudFront and add an isolated AWS preview deployment; or
  • use Vercel for previews only as a time-bounded migration stage.

The decision must cover:

  • external-fork authorization and exposure of build-time environment variables or credentials;
  • isolation of contributor-controlled HTML and JavaScript from the mecatl.dev same-site boundary;
  • production and preview domains, redirects, caching, response headers, observability, and retention;
  • infrastructure and repository ownership, operating cost, and cleanup; and
  • production migration, rollback, and decommissioning if the host changes.

Discussion artifact

Draft ADR 0331 in #1382 contains the current proposal and alternatives. Keep it Proposed until the team resolves the open hosting, security, and operating questions. If the team accepts a direction, create a separate implementation issue and Architectural acceptance plan.

Interim workflow

  • Keep the existing pull request Docusaurus build as the required validation gate.
  • Use task site:dev for local visual review.
  • Keep production on the current S3 and CloudFront deployment until a migration is approved and verified.

Non-goals

  • Making this decision an open source launch gate.
  • Implementing the selected host or preview workflow in this issue.
  • Expanding the documentation authoring or editorial process.

Activity

  1. changed the title [-]Evaluate PR previews separately from docs authoring[/-] [+]Decide post-launch hosting and pull request previews for mecatl.dev[/+] on Sep 11, 2026
  2. danbarr commented on Sep 11, 2026

    @danbarr
    ContributorAuthor

    Agreed direction after the SRE discussion: move both production mecatl.dev hosting and documentation pull request previews to Vercel.

    This selects Vercel as the end state rather than maintaining a permanent split between Vercel previews and AWS production. The migration will keep S3 and CloudFront available as the rollback target until the Vercel production deployment, redirects, DNS cutover, and external-fork controls are verified. After the rollback window, the bespoke AWS site resources and deployment role can be decommissioned through stacklok/infra.

    The security constraints remain:

    • keep Vercel Git Fork Protection enabled;
    • keep the Preview environment free of project secrets;
    • use provider-generated preview domains rather than aliases below mecatl.dev;
    • treat preview output as untrusted HTML and JavaScript; and
    • configure published URL redirects in the repository so Vercel returns HTTP redirects.

    Draft ADR 0331 in #1382 now records this direction and the operational details that still need to be resolved before implementation. Keep this issue open until the ADR is accepted; implementation will be tracked separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions