Homelab · Sanitized report

The credential that could never decrypt

A runner password reset broke access to a protected stored credential.

Credential lifecycle
  • Runner identity
  • DPAPI protected storage
  • Directory tool
  1. Symptoms and impact

    An unattended directory tool reported “Key not valid for use in specified state” even though the password being supplied was correct.

  2. Diagnostic observations

    Kamal investigated the context in which the credential was saved and the identity and logon type used by the task.

  3. 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.

  4. Remediation

    Established the runner identity and compatible task logon before storing a new protected credential in that identity context.

  5. Verification

    The replacement workflow was confirmed with a successful directory query.

Lessons learned

Treat identity, logon context, and protected storage as one credential lifecycle.