Skip to content

fix(deploy-cloudflare): remove require-access, and require visibility (#177) - #276

Merged
mmcky merged 5 commits into
mainfrom
fix/177-remove-require-access
Nov 7, 2026
Merged

mmcky merged 5 commits into
mainfrom
fix/177-remove-require-access

Conversation

@mmcky

@mmcky mmcky commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ BREAKING. deploy-cloudflare's require-access is removed, and visibility is required. #177 replaced require-access with visibility. v0.14.0 deprecated require-access, and leaving out both inputs, saying both would become errors in the next minor release. v0.15.0 moved that to v0.16.0, so that sites had a release's notice (CHANGELOG, [0.15.0], Deprecated). The maintainer confirmed on 2026-11-05 that it goes in v0.16.0. This PR carries it out.

require-access: 'false' was the only way to deploy with no check at all. With it goes the unchecked mode it opened: from now on every deploy is checked as private or public, before the upload, after the deploy and on the alias.

A workflow passes Before (v0.15.0) After
visibility: private or public Checked as that unchanged
neither input Checked as private, with a warning Fails the first step: visibility is required: set it to private, for a site behind Access, or public.
require-access: 'true' Checked as private, with a warning Fails the first step: require-access has been removed: use visibility. For require-access: 'true', set visibility: private. For require-access: 'false', …
require-access: 'false' No check at all, with two warnings; visibility output empty Fails the first step, with the same message
require-access with any other value Fails: must be 'true' or 'false' Fails, with the same message
both inputs Fails: visibility and require-access are both set Fails: require-access has been removed: remove it, and keep visibility: private. (or public)
require-access holding a line break Fails: require-access must be a single line Fails, with one of the two messages above. require-access is never printed now, so it leaves the line-break check
require-access: '' The same as leaving it out unchanged: the same as leaving it out

Callers

Before writing the CHANGELOG entry I listed every repository in the QuantEcon org, 307 of them (28 archived), and read every workflow file on each default branch through GraphQL: 347 files, with no API errors. I parsed each step that uses quantecon/actions/deploy-cloudflare. A GitHub-wide code search for quantecon/actions/deploy-cloudflare finds the same callers and none outside the org.

  • Two QuantEcon workflows call the action. Both are pinned exactly to @v0.12.0, and both pass neither visibility nor require-access, relying on the old default: a private site, with team-domain set.
  • Nobody passes require-access.
  • So this release changes nothing for either caller until it moves its pin. When it does, it needs visibility: private, and its team-domain stays.

I sent the list and a draft entry to the organiser before writing the entry. The maintainer chose its section, a new ### Removed, and its wording. It is marked ⚠️ BREAKING, with a migration line, and names neither caller.

Changes

File Change
deploy-cloudflare/action.yml Validation: a non-empty require-access fails first. Beside a valid visibility the message says only to remove it; otherwise it gives the migration for each of its values. An empty visibility fails with visibility is required. A private site without team-domain gets the one message, visibility is private, so team-domain is required, now that visibility is always set by then. The deprecation warnings and the UNCHECKED first line go. The unchecked mode goes: the check before the deploy loses its condition and runs on every deploy, the "Warn that nothing is checked" step goes, the alias's check runs whenever there is an alias, and the summary loses its unchecked heading and rows. The check after the deploy already ran only when the one before it had passed, so it needs no change. Inputs: visibility is required: true, with no default. require-access stays declared, so that the action receives it and can refuse it: an undeclared input gets only a runner warning. Its description says it is removed. The visibility output is set on every run whose inputs pass.
docs/user/actions/deploy-cloudflare.md The generated tables follow. Behaviour step 1 names the rule, and the paragraph about require-access: 'false' skipping the checks becomes "No input turns the checks off". "Moving from require-access" is a two-column table from each old form to its replacement. Troubleshooting gains visibility is required and require-access has been removed, in place of visibility and require-access are both set.
.github/workflows/test-actions.yml dc-inputs gains three cases, the forms that were accepted with a warning: neither input, require-access: 'true' and require-access: 'false', each with no visibility. Each must fail in validation, with no visibility output and nothing installed. The 'yes' case goes, since every value is refused alike now; the case with both inputs stays. 14 cases, up from 12. dc-refuses-ungated loses its two deprecated-form cases, which dc-inputs now covers, and its positive control, which turned the gate off with require-access: 'false'. See below.
docs/dev/TESTING.md deploy-cloudflare's row names the new cases.
CHANGELOG.md One ⚠️ BREAKING entry in a new ### Removed section under [Unreleased], between Changed and Documentation, where Keep a Changelog puts it. The CHANGELOG has used Removed twice before.

Two choices in the harness

  • visibility: '' in the three new cases. visibility is required: true now, and actionlint, which the gate runs, reads a local action's action.yml and refuses a step that leaves out a required input. visibility: '' is what leaving it out gives the action, since it has no default: a composite action's input arrives empty either way. The comment above the cases says so.
  • dc-refuses-ungated's positive control. It showed that the same inputs reach wrangler with the gate off, through require-access: 'false', and its own comment said it would go with require-access. No input turns the gate off now. dc-refuses-mismatch's private-gated case is the positive control for a private site: the same mode, against a stand-in for a gated Worker on the runner, passes the check and reaches wrangler. A comment in dc-refuses-ungated points at it. I considered a visibility: public control against the real workers.dev, but whether a Worker that doesn't exist answers 404 or an error is outside this repository's control, and the stand-in's answer is not.

What I checked, and how

The issue first, against origin/main at 9644f17. I read #177, both Deprecated entries (v0.14.0 and v0.15.0) and the action as it is. The unchecked path is where the brief said: validation (:127-175), the visibility output (:238), the check before the deploy (:267-271), the warning step (:299-302), the alias's check (:485) and the summary (:540-547). The proposal holds as the brief gives it. No other file in the repository mentions require-access except the CHANGELOG, the harness and two dated review logs under .qe/dev/log/, which are history and stay as they are.

The new cases fail on main. I pushed the harness commit alone, 2f26a8e, on top of main, and dispatched the harness there. dc-inputs failed for exactly the three new cases:

  • neither and require-true: visibility is [private], so the inputs passed validation and the case failed later;
  • require-false: $RUNNER_TEMP/deploy-cloudflare exists — an invalid input got as far as the wrangler install. In that run's annotations, the deprecation warning and "require-access is false, so this deploy does not check who can see the site" show where it went instead.

dc-refuses-ungated, slimmed down, passed on main, as it should. I then cancelled the run and deleted the branch.

The validation step, case by case, locally. I ran its run: script from each action.yml, as shell: bash runs it, for twelve cases, and compared:

  • private and public pass, and write visibility, on both;
  • on main, neither input and require-access: 'true' pass as private, and require-access: 'false' passes as UNCHECKED, with an empty visibility. On this branch all three fail, with the messages in the table above, and write no visibility;
  • require-access: 'yes', both inputs, and require-access holding a line break fail on both. Now 'yes' gets the migration message, and the other two, beside visibility: private, get "remove it, and keep visibility: private". The line break never reaches the log;
  • visibility: Public, a private site without team-domain and a public one with it fail on both, with the same messages.

Current with main. The branch has main merged in at 879ecc5 (#271), with no conflicts. git diff origin/main -- CHANGELOG.md only adds lines, all inside [Unreleased].

Lint and docs. python3 scripts/generate-docs.py --check --check-examples --actionlint … passes with actionlint 1.7.12. Every example in the manual already passes visibility, so --check-examples finds none that leaves out the now-required input. actionlint over .github/workflows/ reports nothing. scripts/lint-shell.py with shellcheck 0.11.0 is clean: 56 run: scripts in 8 actions, one fewer for the warning step.

What to watch after merge

This ships in v0.16.0's staged release. The canary doesn't call deploy-cloudflare, and no harness job deploys, so the first real proof is a consumer's first run after it moves its pin. For the two known callers, both pinned to @v0.12.0, that is when they add visibility: private. Until then nothing changes for them.

Not in this PR

  • Moving either caller off @v0.12.0, or adding visibility to its workflow. That's their own repositories' change, when they choose to upgrade.
  • check-access-gate.sh and its modes, which don't change.
  • The two dated review logs under .qe/dev/log/ that mention require-access. They are history.

Follows up #177, which is closed: this is the removal its sequencing and the two Deprecated entries promised.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj

mmcky and others added 4 commits November 7, 2026 09:01
…isibility (#177)

dc-inputs gains the three forms that were accepted with a warning while
require-access was deprecated: neither input, require-access: 'true' and
require-access: 'false', each without visibility. Each must now fail in
validation, with no visibility output and nothing installed. The 'yes'
case goes, since every value is now refused alike; the case with both
inputs set stays.

dc-refuses-ungated drops its two deprecated-form cases, which dc-inputs
now covers, and its positive control, which turned the gate off with
require-access: 'false'. No input turns the gate off now; the
private-gated case in dc-refuses-mismatch is the positive control for a
private site.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
…#177)

As the v0.14.0 and v0.15.0 deprecations said. Passing require-access,
with any value, now fails the first step with a message that says
which visibility replaces it, and so does leaving out visibility, which
used to check the site as private with a warning.

require-access: 'false' was the only way to turn the checks off, and
the unchecked mode it opened goes with it: the warning step, the
conditions that skipped the check before the deploy and the alias's
check, and the summary's unchecked heading and rows. Every deploy is
now checked as private or public, and the visibility output is set on
every run whose inputs pass.

require-access stays declared, so that the action sees it and can
refuse it: an undeclared input gets only a runner warning. It is not
printed, so it leaves the line-break check. visibility is required:
true, which the manual's tables and actionlint now show.

visibility's and require-access's descriptions, the visibility output's,
the chapter's Behaviour, "Moving from require-access" and
Troubleshooting, and TESTING's row follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
A new Removed section under [Unreleased], between where Deprecated goes
and Documentation, with one BREAKING entry and its migration. The
maintainer chose the section and the wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
Copilot AI balanced review requested due to automatic review settings November 6, 2026 23:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟢 Approval recommended

The change fully updates the action’s input validation contract and aligns documentation, tests, and the changelog with the new required visibility behavior and removal of require-access, with no unresolved issues called out beyond these coordinated updates.

No open issues 🎉

What changed in this PR

This pull request implements a breaking change to deploy-cloudflare by removing the deprecated require-access input and requiring visibility, eliminating the prior “unchecked” deployment path and ensuring deploys are always validated as private or public. It also updates documentation, tests, and the changelog to reflect the new contract.

Changes:

  • Make visibility required and remove the “unchecked” mode; refuse use of require-access at validation time.
  • Update user and developer documentation (including migration/troubleshooting guidance) to match the new input rules.
  • Expand the action test harness to cover newly-invalid input shapes and record the breaking change in CHANGELOG.md.
File Summary
docs/​user/​actions/​deploy-cloudflare.md Updates generated docs, migration guidance, and troubleshooting; ensure error-message wording is consistent with the action (notably for cases where both inputs are set).
docs/​dev/​TESTING.md Updates the testing matrix to include the new/removed input-validation scenarios for deploy-cloudflare.
deploy-cloudflare/​action.yml Enforces required visibility, removes unchecked behavior, and rejects require-access; adjust wording to match actual behavior around empty require-access, and refine the removal error message to avoid misleading migrations when visibility is already set.
CHANGELOG.md Adds a breaking “Removed” entry documenting require-access removal and required visibility; align wording with actual rejection behavior (non-empty require-access).
.github/​workflows/​test-actions.yml Extends harness coverage for missing-visibility and removed-input forms; removes/updates cases tied to the former unchecked path.

This pull request requires changes.

Review effort: Balanced

… beside a valid visibility (#177)

Copilot's review of #276. With visibility already private or public,
the removal message's migration for each require-access value was
beside the point: the caller need only remove require-access. It now
says so, and keeps the full migration for a workflow without a valid
visibility. require-access's description and the chapter said that any
value fails the job, where an empty one, the same as leaving it out,
does not; they now say any value but an empty one. The troubleshooting
entry covers both messages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
@mmcky

mmcky commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

On Copilot's review notes, which are in its summary table rather than inline:

  • action.yml, empty require-access: right. The description said any value fails the job, but require-access: '' is the same as leaving it out, and passes. The description and the chapter now say "any value but an empty one". Fixed in 5af4634.
  • action.yml and the chapter, the message when both inputs are set: right. Beside a valid visibility, the per-value migration was beside the point. The message is now require-access has been removed: remove it, and keep visibility: <private or public>. A workflow without a valid visibility still gets the migration for each value. The troubleshooting entry, now headed require-access has been removed, covers both. Fixed in 5af4634.
  • CHANGELOG.md, "non-empty": left as it is. The maintainer approved the entry's wording, and "passing require-access" already excludes an empty value, which is the same as not passing it. The input's description, which the manual copies, is now precise about it.

I re-ran the validation step locally for all twelve cases, and the docs check, actionlint and lint-shell are clean.

Claude Code (on behalf of mmcky)

@mmcky
mmcky merged commit a835362 into main Nov 7, 2026
56 checks passed
@mmcky
mmcky deleted the fix/177-remove-require-access branch November 7, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants