Check credential expiry
Read when a credential expires, how many days are left and whether it has expired. The user the run runs as must be able to use the vault folder.
Command in the Credential vault toolkit · id ooa.vault/credential_expiry · 2 inputs (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Credential | String | Yes | vault folder/credential, or folder/credential/attribute (the expiry belongs to the whole credential). | |
| Warn (days) | Number | No | 14 | Report expiring_soon when this many days or fewer are left. |
Outputs
| Output | Type | What it is |
|---|---|---|
| expires | String | The expiry date (yyyy-MM-dd), or empty when it has none. |
| days_left | Number | Days until it expires (negative once past); empty when it has no expiry date. |
| expired | Boolean | True when the expiry date has passed. |
| expiring_soon | Boolean | True when it expires within warn_days (and has not expired yet). |
| has_expiry | Boolean | True when the credential has an expiry date. |