feat(firebolt): Switch to the new auth method #8182
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check List
Description of Changes Made (if issue reference is not provided)
Firebolt has a new version that requires service account authentication in order to connect programmatically. Reflecting these changes in code as well as docs.
Username/password is now legacy, working only for customers on the old version of Firebolt, who are gradually being migrated.
firebolt-sdk
handles connection to the right version, but needs the correct credentials wrapper, which is determined based on the presence of @ symbol in the email (service account id is alpha-numeric only).CUBEJS_DB_USER/PASS environment variables are used to be backwards-compatible with the connections setup on the old versions of the connector.
CUBEJS_FIREBOLT_ACCOUNT is required for the new authentication to succeed.