IMPORTANT: Service interruption due to auth.docker.io API change (03/01/22) #566
xopham
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
tl;dr ⏳
notaryv1
signatures due to an unexpected api change ofauth.docker.io
.aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url=URL('https://auth.docker.io/token?service=notary.docker.io&scope=repository:docker.io/securesystemsengineering/testimage:pull')
v2.5.0
: Release 2.5.0 #538 .helm uninstall
the old version andhelm install
the new version, as upgrade cannot work when the docker API is non-functional.Details 📃
Docker apparently made an unexpected change to
auth.docker.io/token
by which the responsecontent-type
header was changed fromapplication/json
totext/plain; charset=utf-8
. Note that the body itself has not changed and remains proper json. The cause for the change is not known.During validation via
notaryv1
validator, Connaisseur uses theauth.docker.io/token
endpoint to get an access token via the asyncioaiohttp
method to extract the response json. However, while the received payload is still json, the json coroutine also verifies thecontent-type
header which fails with the api change and aClientResponseError
is raised. This causes anynotaryv1
validation to fail including upgrading Connaisseur by which Connaisseur's own signature is verified.#564 resolves this issue by setting
content_type=None
, thus disablingcontent-type
verification. However, as making ahelm upgrade
requires verification of Connaisseur's own signature which will fail for any version priorv2.5.0
, it is required tohelm uninstall
andhelm install
to install the latest version with the fix.Problems? 🛠️
This is a very unfortunate situation, but we hope the arising problems can be resolved. Feel free to share any feedback or question that may arise in this thread 🙏
Beta Was this translation helpful? Give feedback.
All reactions