8000 Move shadow processing out of task event loop by Firstyear · Pull Request #3631 · kanidm/kanidm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Move shadow processing out of task event loop #3631

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

Merged
merged 6 commits into from
May 14, 2025

Conversation

Firstyear
Copy link
Member
@Firstyear Firstyear commented May 13, 2025

Change summary

As part of the recent unixd changes, we moved shadow processing to the privileged tasks daemon. In that move the handling of those files was moved into the event loop of the task handler itself, which could cause the daemon to become unresponsive for short or long periods, which then caused unixd to fail to make home directories.

This moves the shadow processing to a separate task, and only once it's ready the state flips and notifies the connected unixd caller.

Fixes #3620

Checklist

  • This PR contains no AI generated code
  • book chapter included (if relevant)
  • design document included (if relevant)

@Firstyear Firstyear changed the title Debug Patch Move shadow processing out of task event loop May 14, 2025
@Firstyear Firstyear marked this pull request as ready for review May 14, 2025 04:59
@github-project-automation github-project-automation bot moved this from 🆕 New to 🔖 Ready in Organising Everything May 14, 2025
@Firstyear Firstyear merged commit 8a4bb41 into kanidm:master May 14, 2025
25 checks passed
@Firstyear Firstyear deleted the 20250513-3620-tasks-homedir branch May 14, 2025 05:18
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in Organising Everything May 14, 2025
Firstyear added a commit that referenced this pull request May 14, 2025
As part of the recent unixd changes, we moved shadow processing to the privileged tasks daemon. In that move the handling of those files was moved into the event loop of the task handler itself, which could cause the daemon to become unresponsive for short or long periods, which then caused unixd to fail to make home directories.

This moves the shadow processing to a separate task, and only once it's ready the state flips and notifies the connected unixd caller.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

kanidm-unixd-tasks goes deaf on 1.6.2 if it's fed cached tasks on startup
2 participants
0