Skip to content

Default ALCHEMY_API_KEY in the Code #4

@intls

Description

@intls

Hello team, in ListAccount.js I've noticed that in our codebase, assigning a default value to the ALCHEMY_API_KEY as shown below:

const ALCHEMY_API_KEY =
process.env.ALCHEMY_API_KEY || "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF";

Before making any changes, I want to ensure that including a default API key like this does not pose any security risks. Is it safe to have a default ALCHEMY_API_KEY hardcoded in repository? Could this lead to potential misuse or exposure of our API resources? What are the best practices for handling API keys in our projects to ensure security and flexibility?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions