`void platform install --app-access public` fails when Cloudflare reports Access is disabled
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- authentication, cli
Research direction
Start in packages/void/src/cli/platform-app-access.ts at lines 175-241, where the installer checks Default-Deny through GET /accounts/{account_id}/access/organizations and sends 403s into the App Access token flow. Follow how --app-access public and --no-access-protection reach that check, then treat Cloudflare's access.api.error.not_enabled response as public setup while other 403s keep the existing path. Update the CLI tests covering Access disabled. Done when the reproduction finishes without a token prompt and other auth failures still prompt.
Written by the indexing model from the issue text.
Description
Affected version
Void CLI 1.9.1
Steps to reproduce
-
Start a fresh install in a Cloudflare account where Access is disabled. Set
CLOUDFLARE_API_TOKENto an installer token with the usual install permissions and account-level Access: Organizations, Identity Providers, and Groups Read. LeaveVOID_PLATFORM_APP_ACCESS_TOKENandappAccess.tokenEnvunset. -
Use a platform login method that does not rely on Cloudflare Access. Run the following in a non-interactive shell with the rest of your installation settings.
--no-access-protectiondisables Access protection for the platform itself, so the reproduction reaches the separate check for deployed apps.void platform install --app-access public --no-access-protection --yes
Actual behavior
The install stops while checking whether the account enforces Access Default-Deny.
platform: App access requires VOID_PLATFORM_APP_ACCESS_TOKEN or appAccess.tokenEnv in --auth-config, scoped to the hosting account.
A separate request to GET /accounts/{account_id}/access/organizations with the account-level read permission returned HTTP 403 with access.api.error.not_enabled: Access is not enabled. The 1.9.1 installer sends that response through the same credential flow as other 403 responses. In an interactive install, that flow prompts for an App Access API token. Void CLI 1.9.1 source
Expected behavior
When --app-access public is selected and Cloudflare explicitly reports that Access is disabled, the installer should continue with public app setup without requesting a separate App Access token or creating Access policies. Other authorization failures and accounts with Default-Deny enabled should continue through the existing checks.
- Dominant language
- TypeScript
- Stars
- 684
- Forks
- 83
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 219
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from voidzero-dev/void
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
voidzero-dev/void#834 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
voidzero-dev/void#833 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
voidzero-dev/void#832 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
voidzero-dev/void#825 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
voidzero-dev/void#808 · 1 comment ·
Maintainers usually reply within 1 day
All issues in voidzero-dev/void
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
open-webui/tether#52 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AykutSarac/jsoncrack.com#616 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
melgarafael/DeskcommCRM#4679 ·
Maintainers usually reply within 1 day
-
enhancement size:medium
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day