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

Referrer API must return correct Content-Type #1968

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

GregoireW
Copy link
Contributor

As per the spec, https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers Content-Type header MUST be set to application/vnd.oci.image.index.v1+json.

This is important as GAR today (OCI 1.0) redirect "referrers" API call to the google console authentication page, and doing so the call return 200 OK + content-type: text/html.

As the test use the registry package it is quite difficult to set a test explicitly on this part.

As per the spec, Content-Type header MUST be set to application/vnd.oci.image.index.v1+json

This is important as GAR today (OCI 1.0) redirect "referrers" API call to the authentication page, and doing so the call return 200 OK  + content-type: text/html.
@imjasonh imjasonh merged commit 9915a85 into google:main Jul 2, 2024
18 checks passed
renovate bot added a commit to validator-labs/validator-plugin-oci that referenced this pull request Jul 9, 2024
…0.20.0 (#207)

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

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/google/go-containerregistry](https://togithub.com/google/go-containerregistry)
| `v0.19.2` -> `v0.20.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgoogle%2fgo-containerregistry/v0.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgoogle%2fgo-containerregistry/v0.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgoogle%2fgo-containerregistry/v0.19.2/v0.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgoogle%2fgo-containerregistry/v0.19.2/v0.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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

#### What's Changed

- Referrer API must return correct Content-Type by
[@&#8203;GregoireW](https://togithub.com/GregoireW) in
[google/go-containerregistry#1968
- 🚨 POTENTIALLY BREAKING: Restore blind-write to remote.Put by
[@&#8203;jonjohnsonjr](https://togithub.com/jonjohnsonjr) in
[google/go-containerregistry#1970

#### New Contributors

- [@&#8203;GregoireW](https://togithub.com/GregoireW) made their first
contribution in
[google/go-containerregistry#1968

**Full Changelog**:
google/go-containerregistry@v0.19.2...v0.20.0

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **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/validator-labs/validator-plugin-oci).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJnbyJdfQ==-->

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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

3 participants