hashicorp / vault-action

A GitHub Action that simplifies using HashiCorp Vault™ secrets as build variables.
MIT License
434 stars 138 forks source link

[BUG] Intermittant: "Error message: Failed to get ID Token." #525

Open klemmster opened 7 months ago

klemmster commented 7 months ago

Before I invest time in this, would you be open to contributions here?

Vault server version

1.15.2

vault-action version

v2.8.0

Describe the bug

In the last two weeks we've seen more occurrences of this. https://github.com/hashicorp/vault-action/blob/9f522b85981b491eab9a52c144d15aedbd0bf371/src/auth.js#L38 This line is failing.

Error: Error message: Failed to get ID Token. 

        Error Code : undefined

        Error Message: 

To Reproduce

It's likely an underlying github issue and happens more frequently recently.

Expected behavior

Just retry the idToken retrieval.

Log Output

-

Additional context

Add any other context about the problem here. Others have implemented retries, too: https://github.com/aws-actions/configure-aws-credentials/issues/469 https://github.com/aws-actions/configure-aws-credentials/blob/a5dceb9b44a45021a99d8625cf6bc63214e8114c/src/index.ts#L112

klemmster commented 7 months ago

somewhat related PR: #442

moudgalya1223 commented 1 month ago

same problem for me as well