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

feat: Env var license key #1638

Merged
merged 4 commits into from
Aug 7, 2024
Merged

feat: Env var license key #1638

merged 4 commits into from
Aug 7, 2024

Conversation

noahmmcgivern
Copy link
Contributor

Refactors the validateProfile function and separates out a fetchLicenseKey function.

fetchLicenseKey will attempt to:

  • Read a license key from the environment variable NEW_RELIC_LICENSE_KEY
  • Read a license key from the active profile config
  • Fetch a license key via the API

The license key will be fetched in that order; such that the environment variable is preferred over the active profile config, which is preferred over fetching via the API.

This allows users to use a license key of their choice (via NEW_RELIC_LICENSE_KEY) without the need to configure a profile.

internal/install/command.go Dismissed Show dismissed Hide dismissed
@noahmmcgivern noahmmcgivern merged commit bd3cf0c into main Aug 7, 2024
29 checks passed
@noahmmcgivern noahmmcgivern deleted the feat/env-var-license-key branch August 7, 2024 17:57
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.

2 participants