newrelic / newrelic/newrelic-lambda-cli

newrelic-lambda integrations install uses arbitrary ingest key

Open
#358 3 comments 1 reaction 1 assignee View on GitHub

@Sashwatdas123 is already working on this.

Since Nov 4, 2025.

enhancement
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.

https://github.com/newrelic/newrelic-lambda-cli/blob/6b5d8d4298f00f91d4a67a37e53c1473b52bcc7e/newrelic_lambda_cli/api.py#L93-L116

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.