File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @chainlink/functions-toolkit ' : patch
3
+ ---
4
+
5
+ Added maximum expiration for DON hosted secrets
Original file line number Diff line number Diff line change @@ -205,8 +205,14 @@ export class SecretsManager {
205
205
throw Error ( 'slotId must be a integer of at least 0' )
206
206
}
207
207
208
- if ( ! Number . isInteger ( minutesUntilExpiration ) || minutesUntilExpiration < 5 ) {
209
- throw Error ( 'minutesUntilExpiration must be an integer of at least 5' )
208
+ if (
209
+ ! Number . isInteger ( minutesUntilExpiration ) ||
210
+ minutesUntilExpiration < 5 ||
211
+ minutesUntilExpiration > 2880
212
+ ) {
213
+ throw Error (
214
+ 'minutesUntilExpiration must be an integer of at least 5 and less than 2880 (48 hours)' ,
215
+ )
210
216
}
211
217
212
218
const encryptedSecretsBase64 = Buffer . from ( encryptedSecretsHexstring . slice ( 2 ) , 'hex' ) . toString (
You can’t perform that action at this time.
0 commit comments