rust-lang / rust-lang/simpleinfra

Purge Fastly cache when publishing rustup

Open
#415 1 comment 0 reactions 1 assignee View on GitHub

@jdno is already working on this.

Since May 9, 2024.

Dominant language
HCL
Stars
178
Forks
107
Avg merge
15h 57m
Merged PRs (30d)
38

Description

We recently realized that the cache on Fastly is not purged when a new version of rustup is released.

rustup is distributed via static.rust-lang.org as part of the same Fastly services as the Rust releases. Ideally, we therefore only purge cached versions of rustup and don't purge the whole cache. We already do this for the Rust releases by setting surrogate keys that we can granularly purge.

Fastly's purge APIs require authentication. We can generate a token that is scoped to the service and only grants permissions to purge content. The token can be stored in the parameter store on AWS, similar to other tokens that we already use.

Tasks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.