Skip to content

Replace deprecated api_key with agent_id in example config#8342

Merged
lpcox merged 1 commit into
mainfrom
lpcox-fix-deprecated-api-key-8305
Jun 30, 2026
Merged

Replace deprecated api_key with agent_id in example config#8342
lpcox merged 1 commit into
mainfrom
lpcox-fix-deprecated-api-key-8305

Conversation

@lpcox

@lpcox lpcox commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Replace the deprecated api_key field with agent_id in config.example-payload-threshold.toml.

Problem

config.example-payload-threshold.toml uses the deprecated api_key field (api_key = "your-api-key-here") on line 12. Users who copy this example as a starting point see deprecation warnings at runtime.

Fix

Replace api_key = "your-api-key-here" with agent_id = "", matching the pattern used in config.example.toml.

Fixes #8305

Update config.example-payload-threshold.toml to use agent_id instead of the
deprecated api_key field, matching the pattern in config.example.toml.

Fixes #8305

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 30, 2026 13:26
GitHub Advanced Security started work on behalf of lpcox June 30, 2026 13:26 View session
GitHub Advanced Security finished work on behalf of lpcox June 30, 2026 13:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the config.example-payload-threshold.toml example configuration to avoid runtime deprecation warnings by replacing the deprecated gateway.api_key field with the current gateway.agent_id field (Fixes #8305).

Changes:

  • Replace api_key = "your-api-key-here" with agent_id = "" in the payload-threshold example config.
Show a summary per file
File Description
config.example-payload-threshold.toml Updates the gateway example config to use agent_id instead of deprecated api_key, preventing deprecation warnings for users copying the example.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

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.

📚 Documentation Reconciliation Report - 2026-06-29

2 participants