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
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
..
common web/admin: fix error adding users to groups (#5016) 2023-03-20 18:15:36 +01:00
config website: add documentation for AUTHENTIK_REDIS__TLS (#5349) 2023-04-23 11:37:53 +03:00
constants release: 2023.5.3 2023-06-01 19:35:13 +02:00
crypto internal: fix crash when port 9000 is in use (#4863) 2023-03-07 13:27:46 +01:00
debug internal: fix linting error 2023-01-09 17:17:27 +01:00
gounicorn cmd: always stop gunicorn before exiting 2022-10-15 11:54:11 +02:00
outpost outposts/ldap: fix race condition when refreshing the provider 2023-06-02 15:42:19 +02:00
utils internal: ignore insecure TLS certs (#5483) 2023-05-05 15:57:52 +03:00
web internal: ignore insecure TLS certs (#5483) 2023-05-05 15:57:52 +03:00