Commit 4ce413b
committed
deps: Downgrade oci-client to 0.15
In oci-client 0.16.0, parse_expiration_from_jwt uses
jsonwebtoken::dangerous::insecure_decode to parse the bearer token.
Registries like GHCR.io issue opaque tokens (not JWTs), so this decode
fails, returning early and not caching the token. The kwctl pull suceeds
because the token is used directly in the HTTP requests, but without the
cache, each request will fetch a fresh token, and this will happen for
each layer pull, which amounts to a performance penalty.
This needs to be fixed upstream, but meanwhile, we can downgrade
oci-client to 0.15 in policy-fetcher.
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>1 parent b40e971 commit 4ce413b
2 files changed
Lines changed: 4 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments