Skip to content

Obsolete cached InRelease file is returned by Cloudfront when using URL-encoded colons (%3a instead of :) in path #3993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
njoyneer opened this issue Apr 24, 2025 · 0 comments
Labels
area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. needs-priority sig/release Categorizes an issue or PR as relevant to SIG Release.

Comments

@njoyneer
Copy link

What happened:

In one of our locations (San-Francisco datacenter) we observed an issue when some package couldn't be installed.

We tracked down the problem to the following: we're using apt-cacher that URL-encodes the path
InRelease file was updated yesterday (last-modified: Wed, 23 Apr 2025 03:08:31 GMT) and the old version (last-modified: Wed, 12 Mar 2025 02:03:58 GMT) stayed in the CF cache reachable from our San-Francisco location.
When requesting the file with a command
curl -v -s http://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.30/deb/InRelease
correct version was returned
When requesting the file with a command
curl -v -s http://prod-cdn.packages.k8s.io/repositories/isv%3a/kubernetes%3a/core%3a/stable%3a/v1.30/deb/InRelease
the old file was returned
Today the problem disappeared and a new file is returned in both cases

What you expected to happen:

Latest file version is returned by CDN when using URL-encoded path

How to reproduce it (as minimally and precisely as possible):

Update InRelease (also should work with any other file)
curl it with a command
curl -v -s http://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.30/deb/InRelease
curl it with a command
curl -v -s http://prod-cdn.packages.k8s.io/repositories/isv%3a/kubernetes%3a/core%3a/stable%3a/v1.30/deb/InRelease
compare last-modified headers

Anything else we need to know?:

Environment:

Debian OS

@njoyneer njoyneer added area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. sig/release Categorizes an issue or PR as relevant to SIG Release. labels Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. needs-priority sig/release Categorizes an issue or PR as relevant to SIG Release.
Projects
None yet
Development

No branches or pull requests

2 participants