ydb-platform / ydb-nodejs-sdk

YDB Node.js SDK
Apache License 2.0
61 stars 36 forks source link

bug: In YC serverless functions get a YDB UNAUTHENTICATED error after 12 hours after startup #296

Open Zork33 opened 1 year ago

Zork33 commented 1 year ago

In YC serverless functions get a YDB UNAUTHENTICATED error after 12 hours after startup, which coincides with the lifetime of the Iam token

Zork33 commented 1 year ago

As part of this bug fix - this issue has to be solved https://github.com/yandex-cloud/nodejs-sdk/issues/130

Zork33 commented 1 year ago

In serverless mode, there is another way to get iam token via context https://cloud.yandex.ru/docs/functions/lag/nodejs/context

To start recommending this solution it's needed to confirm with the serverless team that this is a stable feature

Redesigned metadata service, while still needed for other cloud solutions

esseswann commented 1 year ago

In serverless mode, there is another way to get iam token via context https://cloud.yandex.ru/docs/functions/lag/nodejs/context

To start recommending this solution it's needed to confirm with the serverless team that this is a stable feature

Redesigned metadata service, while still needed for other cloud solutions

It is not going to properly work for prepared instances