Homelab · Sanitized report
The credential that could never decrypt
A runner password reset broke access to a protected stored credential.
- Runner identity
- DPAPI protected storage
- Directory tool
Investigation
Symptoms and impact
An unattended directory tool reported “Key not valid for use in specified state” even though the password being supplied was correct.
Diagnostic observations
Kamal investigated the context in which the credential was saved and the identity and logon type used by the task.
Root cause
The password reset left the old DPAPI material unreadable. The task’s logon context and missing batch-logon rights were also incompatible with the workflow.
Remediation
Established the runner identity and compatible task logon before storing a new protected credential in that identity context.
Verification
The replacement workflow was confirmed with a successful directory query.
Lessons learned
Treat identity, logon context, and protected storage as one credential lifecycle.