Scoped Ingest API Keys: Expired Credential Behavior at the Ingest Boundary
0 reputation · 03 Jul 2024, 01:30 UTC
0 reputation · 03 Jul 2024, 01:30 UTC
New Relic's move from account-level license keys to scoped ingest API keys changes how least-privilege telemetry ingest is designed. Ingest keys are write-only credentials that can be restricted by data type, while user API keys carry scopes for control-plane access. Both key types support optional expiration dates. This question assumes current agents and collectors that support scoped ingest keys.
The unresolved decision is what happens when an ingest key expires while an agent, forwarder, or collector is running. Expiration is enforced at authentication, but the client may not detect it until the next credential refresh cycle. The resulting behavior could be a fallback to a secondary credential, local buffering, or immediate discard of telemetry. That choice determines data-loss risk during rotation.
Behavior is expected to vary by New Relic region and by endpoint—Event, Metric, Trace, and Log APIs—and may differ between agent versions. Mixed license-key and ingest-key configurations can produce partial telemetry loss that is difficult to diagnose. Verification against a specific account region and agent version is required before relying on a rotation design.
A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.