This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/internal/outpost
Marc 'risson' Schmitt 5d87eb97be outposts/ldap: fix race condition when refreshing the provider
Fixes the race condition causing the crash found in #4138, which doesn't
actually have anything to do with the issue itself.

As far as I can work out, when the outpost refreshes its list of
providers, it copies over its `boundUsers`, probably to avoid having to
fetch them all again, and does so by making a shallow copy of that
`map`, but not the mutex associated with it. It now has multiple
references to the same map, each protected by a different mutex, which
under certain conditions can cause a `concurrent map read and map write`
error.

This fix copies the map contents instead of make a shallow copy.

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
2023-06-02 15:42:19 +02:00
..
ak root: optimise healthchecks (#5337) 2023-04-21 13:32:48 +03:00
flow stages/user_login: stay logged in (#4958) 2023-03-15 20:21:05 +01:00
ldap outposts/ldap: fix race condition when refreshing the provider 2023-06-02 15:42:19 +02:00
proxyv2 providers/proxy: fix panic when claims in session were nil (#5569) 2023-05-10 20:58:44 +02:00
radius core: bump github.com/getsentry/sentry-go from 0.20.0 to 0.21.0 (#5548) 2023-05-09 11:22:57 +02:00