Implement authentication using Starlette's AuthenticationMiddleware #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently authentication for almost all endpoints (the OpenTofu state endpoints used directly by
tofu
being the exception as they cannot use OAuth2) is implemented via dependency injection. This is fine for now and will probably be just fine while implementing the mirrors module.Starlette does, however, have an
AuthenticationMiddleware
that we can take advantage of, that has some nice decorators. It's not currently clear how beneficial it is to use this as it won't help with the per-organisation permissions but it may make it easier to not mess up authentication even if it's not a good fit for our authorisation needs.The transition can be per-endpoint and both systems can run in paralell with no issues.