You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pw_hash: Use JVM-wide mutex to prevent race conditions
Native crypt(3) uses a static buffer and is not thread-safe. On puppetserver,
multiple JRuby workers share the same JVM, causing intermittent failures when
concurrent pw_hash calls corrupt each other's crypt results. This fix uses
synchronized block on the Crypt class for JVM-wide locking on JRuby, and a
Ruby Mutex for MRI.
0 commit comments