Skip to content
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

Don't wrap DefaultKeychain with refreshes #1791

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

jonjohnsonjr
Copy link
Collaborator

The heuristic only works well if the upstream keychain doesn't do any caching. This is usually the case, but I've run into a couple situations where the hardcoded 5 minutes does not overlap well with certain cred helper implementations.

Undoing that wrap allows callers to set a time that makes sense for them. With the wrap, there's not any direct reference to DefaultKeychain, which feels... bad.

The heuristic only works well if the upstream keychain doesn't do any
caching. This is usually the case, but I've run into a couple situations
where the hardcoded 5 minutes does not overlap well with certain cred
helper implementations.

Undoing that wrap allows callers to set a time that makes sense for
them. With the wrap, there's not any direct reference to
DefaultKeychain, which feels... bad.
@jonjohnsonjr jonjohnsonjr enabled auto-merge (squash) September 19, 2023 00:23
@jonjohnsonjr jonjohnsonjr merged commit dbcd01c into google:main Sep 19, 2023
18 checks passed
@jonjohnsonjr jonjohnsonjr deleted the lessfresh branch September 19, 2023 00:29
maximilianbraun added a commit to crossplane-contrib/xp-testing that referenced this pull request Dec 11, 2023
….17.0 (#35)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/google/go-containerregistry](https://togithub.com/google/go-containerregistry)
| require | minor | `v0.16.1` -> `v0.17.0` |

---

### Release Notes

<details>
<summary>google/go-containerregistry
(github.com/google/go-containerregistry)</summary>

###
[`v0.17.0`](https://togithub.com/google/go-containerregistry/releases/tag/v0.17.0)

[Compare
Source](https://togithub.com/google/go-containerregistry/compare/v0.16.1...v0.17.0)

#### What's Changed

- 🦅 Validate index architectures match children 🦅 by
[@&#8203;jonjohnsonjr](https://togithub.com/jonjohnsonjr) in
[google/go-containerregistry#1776
- Set Content-Length for blob uploads by
[@&#8203;jonjohnsonjr](https://togithub.com/jonjohnsonjr) in
[google/go-containerregistry#1781
- Don't wrap DefaultKeychain with refreshes by
[@&#8203;jonjohnsonjr](https://togithub.com/jonjohnsonjr) in
[google/go-containerregistry#1791
- Build releases with Go 1.21 by
[@&#8203;imjasonh](https://togithub.com/imjasonh) in
[google/go-containerregistry#1840
- fix: mimic oci-layout in diskblobhandler by
[@&#8203;thesayyn](https://togithub.com/thesayyn) in
[google/go-containerregistry#1810
- tag: add command explanation to the long help by
[@&#8203;abitrolly](https://togithub.com/abitrolly) in
[google/go-containerregistry#1843
- feat: implement gc command by
[@&#8203;thesayyn](https://togithub.com/thesayyn) in
[google/go-containerregistry#1811
- feat: allow port and disk path to be overriden by
[@&#8203;thesayyn](https://togithub.com/thesayyn) in
[google/go-containerregistry#1848

**Full Changelog**:
google/go-containerregistry@v0.16.1...v0.17.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/crossplane-contrib/xp-testing).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants