Skip to content

Commit 2275956

Browse files
authored
OCI Distribution Improvements (krustlet#682)
* Use HEAD request when fetching manifest digest. Signed-off-by: Kevin Flansburg <kevin.flansburg@gmail.com> * More logging and predictable error message for 401 manifest response. Signed-off-by: Kevin Flansburg <kevin.flansburg@gmail.com> * Stub token cache Signed-off-by: Kevin Flansburg <kevin.flansburg@gmail.com> * Token cache expiration logic Signed-off-by: Kevin Flansburg <kevin.flansburg@gmail.com> * Fix type errors in test Signed-off-by: Kevin Flansburg <kevin.flansburg@gmail.com> * Fix tests Signed-off-by: Kevin Flansburg <kevin.flansburg@gmail.com>
1 parent 108579d commit 2275956

7 files changed

Lines changed: 343 additions & 130 deletions

File tree

Cargo.lock

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oci-distribution/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ sha2 = "0.9.2"
4242
tokio = {version = "1.0", features = ["macros", "fs"]}
4343
tracing = {version = "0.1", features = ['log']}
4444
www-authenticate = "0.3"
45+
jwt = "0.15"
4546

4647
[dev-dependencies]
4748
rstest = "0.11"
49+
hmac = "0.11"

0 commit comments

Comments
 (0)