Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check INFURA_API_KEY value at startup #1642

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

hectorgomezv
Copy link
Member

Changes

  • Adds INFURA_API_KEY to the sample .env file.
  • Adds INFURA_API_KEY to docker-compose.yml file.
  • Adds INFURA_API_KEY to the startup environment validator.

@hectorgomezv hectorgomezv self-assigned this Jun 12, 2024
@hectorgomezv hectorgomezv requested a review from a team as a code owner June 12, 2024 08:27
@@ -59,6 +59,7 @@ export class BlockchainApiManager implements IBlockchainApiManager {
};
}

// Note: this assumes Infura as provider when using an API key as authentication method.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you think this note is redundant @iamacook, but I think we have to be aware that if a Chain is configured with a different RPC provider, this function will try to use INFURA_API_KEY with the other provider URL, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will but I think it's fine. It's the same implementation as the Web.

We could alternatively check that the value contains "infura" in it. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm totally OK with checking the URL, will do it separately 👍🏻

@coveralls
Copy link

coveralls commented Jun 12, 2024

Pull Request Test Coverage Report for Build 9479245935

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.04%) to 92.694%

Totals Coverage Status
Change from base Build 9478670067: -0.04%
Covered Lines: 7216
Relevant Lines: 7481

💛 - Coveralls

@hectorgomezv hectorgomezv merged commit 449ab9c into main Jun 12, 2024
16 checks passed
@hectorgomezv hectorgomezv deleted the add-infura-api-key-to-mandatory-configuraton branch June 12, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants