newrelic / newrelic/newrelic-lambda-cli
newrelic-lambda integrations install uses arbitrary ingest key
@Sashwatdas123 is already working on this.
Since Nov 4, 2025.
- Dominant language
- Python
- Stars
- 52
- Forks
- 54
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 3
Description
Description
The newrelic-lambda integrations install attempts to dynamically fetch the ingest key using the user key.
In modern times, it is possible to have multiple ingest keys, which means this code just picks one arbitrarily.
This in turn leads to issues, because no one expects it to use an ingest key that was intended for another purpose, and which could therefore be revoked later on without realizing the implication.
Steps to Reproduce
See above
Expected Behavior
There ought to be a command line parameter to indicate which ingest key to inject into the NewRelicLogIngestion stack. The CLI should either mandate this parameter is provided, or at least fail if it isn't and there are multiple license keys in the account. (The former is preferred.)
Relevant Logs / Console output
n/a
Your Environment
n/a
Additional context
n/a
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.