From a1820e7bc177cbb325d751caa47d08239e5145e9 Mon Sep 17 00:00:00 2001 From: Morgan Kuphal Date: Wed, 20 Sep 2023 13:15:55 -0500 Subject: [PATCH 1/2] Removed max expiration Maximum expiration will be handled by gateway --- src/SecretsManager.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/SecretsManager.ts b/src/SecretsManager.ts index 7687b49..db7de17 100644 --- a/src/SecretsManager.ts +++ b/src/SecretsManager.ts @@ -205,14 +205,8 @@ export class SecretsManager { throw Error('slotId must be a integer of at least 0') } - if ( - !Number.isInteger(minutesUntilExpiration) || - minutesUntilExpiration < 5 || - minutesUntilExpiration > 2880 - ) { - throw Error( - 'minutesUntilExpiration must be an integer of at least 5 and less than 2880 (48 hours)', - ) + if (!Number.isInteger(minutesUntilExpiration) || minutesUntilExpiration < 5) { + throw Error('minutesUntilExpiration must be an integer of at least 5') } const encryptedSecretsBase64 = Buffer.from(encryptedSecretsHexstring.slice(2), 'hex').toString( From 6e98aa638bb1b6ee11a787e2dc15ca5739d02bb8 Mon Sep 17 00:00:00 2001 From: Morgan Kuphal Date: Wed, 20 Sep 2023 13:16:43 -0500 Subject: [PATCH 2/2] changeset --- .changeset/grumpy-adults-lie.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/grumpy-adults-lie.md diff --git a/.changeset/grumpy-adults-lie.md b/.changeset/grumpy-adults-lie.md new file mode 100644 index 0000000..659c7a6 --- /dev/null +++ b/.changeset/grumpy-adults-lie.md @@ -0,0 +1,5 @@ +--- +'@chainlink/functions-toolkit': patch +--- + +Removed maximum expiration check for DON hosted secrets