Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 6069 - Avoid race condition #6070

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

slominskir
Copy link
Contributor

Bug Description:
The dscontainer currently signals that the container is healthy (via the dscontainer -H healthcheck) before the Directory Manager password is actually set.

Fix Description:
The startup code now sets a marker file once the runtime supplied password is set and the command line invoked healthcheck returns healthy only if the existing checks pass and the marker file exists

Fixes #6069

Bug Description:
The dscontainer currently signals that the container is healthy (via the dscontainer -H healthcheck) before the Directory Manager password is actually set.

Fix Description:
The startup code now sets a marker file once the runtime supplied password is set and the command line invoked healthcheck returns healthy only if the existing checks pass and the marker file exists

Fixes 389ds#6069
@slominskir slominskir marked this pull request as ready for review February 6, 2024 18:28
@slominskir
Copy link
Contributor Author

The healthcheck uses ldapi, but clients may be using ldap_bind. The healthcheck should probably be using ldap_bind as this could also be a source of another race condition. The server isn't really ready for clients until it successfully is connecting via ldap_bind. Might be separate PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid race condition in dscontainer setting Directory Manager password
1 participant