pulumi/changelog/pending
Thomas Gummerer 898e02e3ab
stop the token source loop correctly on 403 errors (#17714)
In the token source loop, when a 403 error happens, there's no way it's
going to succeed in the future, and we want to abort it. We try to do so
currently, however we're passing the incorrect type to `errors.As`, and
thus never get an expiredTokenError, and never abort the loop.

Note that we are no longer retrying this in a tight loop, but if someone
calls `GetToken` frequently for whatever reason, we'd still end up in
the same situation as in https://github.com/pulumi/home/issues/3660.

Fix that, and add a test that reproduces the whole round trip through
the client by setting up a fake http server.

Fixes https://github.com/pulumi/pulumi/issues/17551
2024-11-08 08:31:50 +00:00
..
20241025--sdk-python--add-uv-as-a-python-toolchain.yaml Add Uv as a Python toolchain (#17609) 2024-11-07 16:26:22 +00:00
20241104--sdk-python--allow-accessing-configuration-in-python-dynamic-providers.yaml Allow accessing configuration in Python dynamic providers (#17673) 2024-11-07 10:12:24 +00:00
20241106--sdk-nodejs--allow-accessing-configuration-in-node-js-dynamic-providers.yaml Allow accessing configuration in Node.js dynamic providers (#17697) 2024-11-07 14:34:11 +00:00
20241107--engine--fix-frequent-retries-on-403-errors-when-the-update-token-expires.yaml stop the token source loop correctly on 403 errors (#17714) 2024-11-08 08:31:50 +00:00
20241107--pkg--allow-generating-docs-in-parallel.yaml Add `codegen/docs.NewContext` and supported methods (#17711) 2024-11-07 17:02:12 +00:00
20241107--sdk-python--log-a-message-about-deleting-requirements-txt-when-converting-to-using-poetry.yaml Log a message about deleting requirements.txt when converting to using Poetry (#17716) 2024-11-07 20:05:11 +00:00