nebari-dev / nebari

🪴 Nebari - your open source data science platform
https://nebari.dev
BSD 3-Clause "New" or "Revised" License
282 stars 93 forks source link

[BUG] - Error Retrieving Vault Token on Recent Tests #2758

Closed viniciusdc closed 1 month ago

viniciusdc commented 1 month ago

Describe the bug

We are experiencing an issue where retrieving the vault token fails, impacting all tests that require credentials from Vault.

Error: failed to retrieve vault token. code: ERR_NON_2XX_3XX_RESPONSE, 
message: Response code 400 (Bad Request), 
vaultResponse: {"errors":["audience claim found in JWT but no audiences bound to the role"]}

Expected behavior

tests should be passing

OS and architecture in which you are running Nebari

Linux (CI)

How to Reproduce the problem?

https://github.com/nebari-dev/nebari/actions/runs/11192855913/job/31117510633?pr=2756

Command output

No response

Versions and dependencies used.

No response

Compute environment

None

Integrations

No response

Anything else?

No response

viniciusdc commented 1 month ago

@dcmcand fixed the issue by updating the bound_audiences scope that was missing from the tokens.