Opt a secret into Terraform’s write-only handling so it is never persisted to Terraform state (requires the ISE provider 0.5.0+ and Terraform 1.11+). Declaring a <secret>_version key next to a secret opts that secret in; a secret without a _version key keeps using the existing state-storing attribute unchanged. Because the write-only value itself is invisible to Terraform’s plan, the _version integer is the only signal it has that the secret changed — bump it to any higher value whenever the secret value changes, in the same apply.
Internal users support this for password and enable_password.
ise:
identity_management:
internal_users:
- name: secure-user
enabled: true
password: Cisco123
password_version: 1# bump alongside `password` to rotate it; the value itself is never written to state