1 vote
I use a lot of secret variables to hold, well, secrets. Many of these secrets have an expiration date. I would like to be able to set an 'expiration date' property for these variables so I can quickly see when these secrets expire.
It could also be useful to have notifications when a secret is expiring soon (ie: 30 days, 7 days, 3/2/1 days) notification when a variable's expiration date is nearing.
@dylk9 This is a good idea! Would you expect the usage of an expired secret to throw an exception?
For example, using something like this in a script, app or API would result in the access to throw an exception that the secret is expired. It may be clearer than an error returned by the target system.
$Secret:MyExpiredSecret
Adam Driscoll
PowerShell Expert and Software Architect at Devolutions
@dylk9 This is a good idea! Would you expect the usage of an expired secret to throw an exception?
For example, using something like this in a script, app or API would result in the access to throw an exception that the secret is expired. It may be clearer than an error returned by the target system.
$Secret:MyExpiredSecret
@Adam Driscoll
I think having an option to throw an error or not would be nice, with the default value being OFF. I could see some situations where I may want to ignore an expiration or not just default to an error.