Skip to content

Conversation

@klemensn
Copy link

@klemensn klemensn commented Jan 2, 2026

f1e77c2 "(PUP-3634) Hide password hash from process list for useradd"
introduced chpasswd -e which does not exist on OpenBSD, thus user
resources managing password would always fail:

Notice: Compiled catalog for atar in environment production in 0.02 seconds
rror: Could not set password on user[test]: No command chpasswd defined for provider openbsd
Error: /Stage[main]/Main/User[test]/password: change from [redacted] to [redacted] failed: Could not set password on user[test]: No command chpasswd defined for provider openbsd
Notice: Applied catalog in 0.01 seconds

Use https://man.openbsd.org/usermod.8#p instead:

Notice: Compiled catalog for atar in environment production in 0.01 seconds
Notice: /Stage[main]/Main/User[test]/password: changed [redacted] to [redacted]
Notice: Applied catalog in 0.21 seconds

password values now do show up briefly in the process list, but given
they must be encrypted in order to work, this does not seem critical.

@klemensn
Copy link
Author

klemensn commented Jan 2, 2026

@bastelfreak bastelfreak added the bug Something isn't working label Jan 2, 2026
f1e77c2 "(PUP-3634) Hide password hash from process list for useradd"
introduced `chpasswd -e` which does not exist on OpenBSD, thus `user`
resources managing `password` would always fail:

```
Notice: Compiled catalog for atar in environment production in 0.02 seconds
rror: Could not set password on user[test]: No command chpasswd defined for provider openbsd
Error: /Stage[main]/Main/User[test]/password: change from [redacted] to [redacted] failed: Could not set password on user[test]: No command chpasswd defined for provider openbsd
Notice: Applied catalog in 0.01 seconds
```

Use https://man.openbsd.org/usermod.8#p instead:

```
Notice: Compiled catalog for atar in environment production in 0.01 seconds
Notice: /Stage[main]/Main/User[test]/password: changed [redacted] to [redacted]
Notice: Applied catalog in 0.21 seconds
```

`password` values now do show up briefly in the process list, but given
they must be encrypted in order to work, this does not seem critical.
@klemensn klemensn force-pushed the user-password-openbsd branch from bf7bb72 to 372aa8f Compare January 2, 2026 16:06
@klemensn
Copy link
Author

klemensn commented Jan 5, 2026

Linters are happy, tests used in CI seem broken and report failures entirely unrelated to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants