Closed tsgsh closed 6 months ago
@tsgsh thank you for the report! This feels like a temporarily issue, or is it reproducible on your side?
@saschagrunert thanks. It's still reproducible this morning.
In case it's useful, here's the details of the requests and responses gathered by mitm, indicating that it's Cloudfront that's generating the 403.
2024-04-25 13:38:29 GET https://pkgs.k8s.io/core:/stable:/1.30/rpm/repodata/repomd.xml HTTP/2.0
← 302 text/html 138b 116ms
user-agent: libdnf (AlmaLinux 9.3; generic; Linux.x86_64)
accept: */*
cache-control: no-cache
pragma: no-cache
No request content [m:auto]
2024-04-25 13:38:29 GET https://pkgs.k8s.io/core:/stable:/1.30/rpm/repodata/repomd.xml HTTP/2.0
← 302 text/html 138b 116ms
server: nginx
date: Thu, 25 Apr 2024 12:38:29 GMT
content-type: text/html
content-length: 138
location: https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/1.30/rpm/repodata/repomd.xml
via: 1.1 google
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
HTML [m:auto]
<html>
<head>
<title>302 Found</title>
</head>
<body>
<center>
<h1>302 Found</h1>
</center>
<hr>
<center>nginx</center>
</body>
</html>
2024-04-25 13:38:30 GET https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/1.30/rpm/repodata/repomd.xml HTTP/2.0
← 403 application/xml 243b 120ms
Request Response Detail
user-agent: libdnf (AlmaLinux 9.3; generic; Linux.x86_64)
accept: */*
cache-control: no-cache
pragma: no-cache
No request content [m:auto]
2024-04-25 13:38:30 GET https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/1.30/rpm/repodata/repomd.xml HTTP/2.0
← 403 application/xml 243b 120ms
content-type: application/xml
date: Thu, 25 Apr 2024 12:38:29 GMT
server: AmazonS3
x-cache: Error from cloudfront
via: 1.1 8671c9c28d4abb06df55e1091d0f124a.cloudfront.net (CloudFront)
x-amz-cf-pop: LHR50-P4
x-amz-cf-id: FoL2-AO-RG5TZX_kpSqtSop2j7_dCvpyar1LDwR4jpLBsvMT797sqA==
XML [m:auto]
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>40AF0019CBBVAH8T</RequestId>
<HostId>OiMpm2o+2j3cVp+EJfh+AK0ZTUe3oNxZ6VihktmT2hNPZTh9vnNXKAgAGK3L8mW8JAaBWHkDS/c=</HostId>
</Error>
@tsgsh You have a mistake in your URLs, it should be v1.30, not 1.30
@xmudrii thanks. I'd checked that thoroughly several times and didn't see it! It's a mistake in a Jinja2 template expression that creates that.
Sorry for the trouble!
What happened:
Error 403 in dnf using kubernetes yum repository according to instructions at https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
What you expected to happen:
no error should occur
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
The error occurs 4 times, each from https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/1.30/rpm/repodata/repomd.xml (from mitmdump; see above)
Environment:
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9" ALMALINUX_MANTISBT_PROJECT_VERSION="9.3" REDHAT_SUPPORT_PRODUCT="AlmaLinux" REDHAT_SUPPORT_PRODUCT_VERSION="9.3"