GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: propose a public remote cache on Cloudflare by fengmk2 · Pull Request #716 · voidzero-dev/vite-task

Conversation

@fengmk2

@fengmk2 fengmk2 commented Sep 9, 2026

Copy link
Copy Markdown
Member

Motivation

Open-source contributors need to reuse task results without credentials. Maintainers need a low-cost service that accepts uploads from trusted GitHub Actions jobs.

Propose a self-hosted remote cache for vp run on Cloudflare Workers, D1, and R2, based on #713. Reads are public. Writes use GitHub OIDC and require a push job on the registered repository's main branch. vp cache push publishes selected results explicitly.

The RFC includes setup and storage diagrams, operational limits, and Free/Paid capacity estimates. Measurements from four published Vite frontends support the cache-size assumptions.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
fengmk2 and others added 4 commits September 7, 2026 10:56
@fengmk2 @codex
docs: propose self-hosted remote cache RFC
5a81d22
Co-authored-by: GPT-6 Codex <[email protected]>
@fengmk2 @codex
docs: quantify remote cache capacity and artifact sizes
a53929a
Co-authored-by: GPT-6 Codex <[email protected]>
@fengmk2 @codex
docs: define public remote cache with GitHub OIDC
9fa2a38
Co-authored-by: GPT-6 Codex <[email protected]>
@fengmk2 @codex
docs: simplify remote cache RFC and add diagrams
d09e1fd
Co-authored-by: GPT-6 Codex <[email protected]>
@github-actions

github-actions Bot commented Sep 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

fspy benchmark

linux

dynamic/launch             change  -0.48%  [ -6.71% ..  +6.69%]  overhead  +285.17%
dynamic/access             change  +0.69%  [-11.56% .. +41.48%]  overhead   +12.58%
dynamic/access-relative    change  +0.05%  [ -2.26% .. +13.55%]  overhead   +54.03%
dynamic/access-contended   change  +1.19%  [ -0.38% ..  +3.01%]  overhead    +8.09%
static/launch              change  -0.96%  [ -7.84% ..  +6.45%]  overhead  +685.51%
static/access              change  +0.22%  [ -6.72% ..  +7.58%]  overhead  +669.97%
static/access-relative     change  -0.16%  [ -3.64% ..  +4.08%]  overhead  +959.75%
static/access-contended    change  -0.43%  [ -3.23% ..  +1.05%]  overhead +2402.72%

macos

dynamic/launch             change  -0.15%  [ -2.78% ..  +3.00%]  overhead  +213.45%
dynamic/access             change  +0.34%  [ -3.64% ..  +4.23%]  overhead   +10.63%
dynamic/access-relative    change  +0.00%  [ -1.88% ..  +1.64%]  overhead  +278.54%
dynamic/access-contended   change  +0.09%  [ -4.03% ..  +2.40%]  overhead    +3.40%

windows

dynamic/launch             change  -1.06%  [ -7.20% ..  +3.20%]  overhead   +24.25%
dynamic/access             change  +0.35%  [ -2.29% ..  +3.88%]  overhead    +1.37%
dynamic/access-relative    change  -0.11%  [-16.45% .. +12.34%]  overhead    +3.07%
dynamic/access-contended   change  -1.58%  [-13.26% .. +10.70%]  overhead   +16.71%
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

wan9chi and others added 2 commits September 10, 2026 21:46
@wan9chi @codex
docs: define per-run remote cache modes
a9d8224
Co-authored-by: GPT-6 <[email protected]>
@wan9chi @codex
docs: use HTTP 404 for remote cache misses
c201f8e
Co-authored-by: GPT-6 <[email protected]>
@fengmk2 fengmk2 mentioned this pull request Sep 12, 2026
feat(remote-cache): add self-hosted public cache server #718
Closed
fengmk2 added a commit that referenced this pull request Sep 12, 2026
@fengmk2 @codex
docs(remote-cache): include RFC and supporting material
f2ff9b1
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>
@wan9chi @codex
docs: return only the key for remote cache fallback hits
05b5556
Co-authored-by: GPT-6 <[email protected]>
fengmk2 added a commit that referenced this pull request Sep 14, 2026
@fengmk2 @codex
docs(remote-cache): include RFC and supporting material
690e0b8
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>
wan9chi pushed a commit that referenced this pull request Sep 27, 2026
@fengmk2 @codex @wan9chi
docs(remote-cache): include RFC and supporting material
7d8957c
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>
wan9chi pushed a commit that referenced this pull request Sep 27, 2026
@fengmk2 @codex
docs(remote-cache): include RFC and supporting material
5774996
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>
wan9chi pushed a commit that referenced this pull request Sep 27, 2026
@fengmk2 @codex @wan9chi
docs(remote-cache): include RFC and supporting material
0a1e3bd
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>
wan9chi pushed a commit that referenced this pull request Sep 28, 2026
@fengmk2 @codex
docs(remote-cache): include RFC and supporting material
5d22b21
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>
This was referenced Sep 28, 2026
feat(cache): authenticate remote cache uploads with GitHub Actions OIDC #774
Closed
refactor(cache): let remote cache requests carry auth headers #797
Merged
feat(cache): authenticate remote cache uploads with GitHub Actions OIDC #798
Merged
wan9chi pushed a commit that referenced this pull request Oct 5, 2026
@fengmk2 @codex @wan9chi
docs(remote-cache): include RFC and supporting material
73a2e16
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>
wan9chi added a commit that referenced this pull request Oct 5, 2026
@wan9chi @claude
refactor(cache): let remote cache requests carry auth headers (#797)
f552002
## Motivation

The self-hosted remote cache server in #718, designed in #716, serves
reads to anyone but accepts a store only with a GitHub Actions OIDC
token. Other servers will need other credentials. For example, a private
cache behind Cloudflare Access could need headers on every request. This
adds one general hook so each kind of credentials is a separate
implementation, and the client doesn't need to know about any of them.

## Changes

- `vt_remote_cache::auth::Auth` supplies the headers for each request,
given its operation: fetch, download, or store. It can use the client's
HTTP client to get credentials, such as a token, and that client doesn't
follow redirects. If it fails, the request isn't sent, and the operation
fails with the new `Error::Auth` ("failed to authenticate").
- `Client::new(endpoint, auth)` takes the auth. `Anonymous` adds no
headers.
- Planning resolves how requests authenticate into `remote_cache.auth`,
next to the access mode and endpoint. The result holds everything needed
to build the credentials, so nothing reads envs after planning. Choosing
the auth from `cache.remote` config or envs later only changes this
step. For now, the only kind is `anonymous`.
- `vt` turns the resolved auth into a `vt_remote_cache` auth with
`build_auth`, a single `match`, and caches clients by endpoint and auth.

Requests don't change. Plan snapshots gain `"auth": {"kind":
"anonymous"}`. The next PR in this stack adds GitHub Actions OIDC as the
first auth with credentials.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
wan9chi added a commit that referenced this pull request Oct 5, 2026
@wan9chi @claude
feat(cache): authenticate remote cache uploads with GitHub Actions OI…
8ecec9a
…DC (#798)

## Motivation

The self-hosted remote cache server in #718, designed in #716, accepts
uploads only with a GitHub Actions OIDC token. The token's audience must
be the namespace endpoint, and it must come from a push job on the main
branch. `vp run` sends stores without credentials today, so that server
rejects every upload with 401.

## Changes

- Planning resolves `remote_cache.auth` to `github-oidc` when
`ACTIONS_ID_TOKEN_REQUEST_URL` and `ACTIONS_ID_TOKEN_REQUEST_TOKEN` are
set in the envs visible at the `vp run` level. That happens in jobs with
`permissions: id-token: write`; otherwise the auth stays `anonymous`.
- It holds the request URL, the request token, and the audience, which
is the endpoint without a trailing slash.
- The request token is a `Secret`, which debug output and serialized
plans redact.
- `build_auth` turns `github-oidc` into
`vt_remote_cache::auth::GithubOidc`, which adds `Authorization: Bearer
<token>` to stores only. Fetches and downloads stay anonymous.
  - It requests a token when the first store needs one.
- Later stores reuse the token until two minutes before its `exp`.
Cloudflare receives a store's whole body before the Worker checks the
token, so the token has to outlast the upload. A token without `exp` is
a malformed response.
  - Concurrent stores wait for the same request.
- A failed request is remembered, so later stores fail right away
without making more requests. Each task with a failed upload shows the
existing "Not uploaded to the remote cache" warning.
  - Neither token appears in debug output or errors.
- Its state is a single enum: ready with a request and an optional
cached token, or failed. A token can't stay cached after a failure.
- Tasks still receive the two env vars as untracked envs, as in #691, so
npm trusted publishing through `vp run` keeps working.

Stacked on #797, which adds the `Auth` hook and the resolved auth
config.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
wan9chi pushed a commit that referenced this pull request Oct 5, 2026
@fengmk2 @codex @wan9chi
docs(remote-cache): include RFC and supporting material
c355193
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>
wan9chi pushed a commit that referenced this pull request Oct 5, 2026
@fengmk2 @codex @wan9chi
docs(remote-cache): include RFC and supporting material
49d4715
Copy RFC #716 from c201f8e and adjust relative paths.

Co-authored-by: GPT-6 Codex <[email protected]>

This branch has not been deployed

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fengmk2 @wan9chi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.