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

fix: PROJECT_ID exposed as an env value just like INFISICA_TOKEN #2912 #2976

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aaryan182
Copy link

What does this PR do?

This PR addresses issue #2912 by exposing PROJECT_ID as an environment variable, similar to how INFISICAL_TOKEN is handled. This enhancement improves the developer experience by enabling users to configure the PROJECT_ID through environment variables, streamlining workflows and making it easier to manage configurations in CI/CD pipelines.

Type ✨

  • [ ✅] Improvement

Tests 🛠️

The following tests were conducted to verify the changes:

Default Behavior:
Verified that the application continues to function as expected when PROJECT_ID is not set as an environment variable.

Environment Variable Usage:
Set the PROJECT_ID as an environment variable and ensured that the application correctly utilized the value.

Priority Check:
Tested scenarios where both the environment variable and CLI flag for projectId were provided to confirm that the CLI flag takes precedence.

Invalid Inputs:
Verified that invalid or missing PROJECT_ID values are properly handled with relevant error messages.

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.

1 participant