-
Notifications
You must be signed in to change notification settings - Fork 132
agent-network: identity metadata setting and Bedrock cost allocation #857
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
Changes from all commits
918e1e4
f6179bc
0dafcd6
e14b4cf
d8cf032
d9b2011
e51436c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,6 +91,24 @@ skipping verification. | |
|
|
||
| The switch appears only for custom (self-hosted) providers and is **off by default**. | ||
|
|
||
| ### Identity Metadata | ||
|
|
||
| By default NetBird stamps the caller's **user** and the **group that authorized the request** | ||
| onto each upstream request, so the provider or gateway can attribute usage to the real caller | ||
| instead of the shared API key. The exact header or field is provider-specific — see the | ||
| provider's [integration guide](/agent-network/integrations) for details (for example, AWS | ||
| Bedrock carries it in a header used for [cost-allocation tags](/agent-network/integrations/bedrock#cost-allocation), | ||
| and AI gateways receive their own attribution headers). | ||
|
|
||
| This is controlled by the **Forward identity metadata** toggle on the provider — **on by | ||
| default**, and shown only for providers that support it (first-party APIs such as OpenAI or | ||
| Anthropic have no such metadata channel, so the toggle doesn't appear for them). Turn it off | ||
| to keep the caller's identity out of the upstream request. | ||
|
Comment on lines
+103
to
+106
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
# Inspect the target MDX file around the cited lines and nearby references to the toggle label.
git ls-files src/pages/agent-network/providers.mdx
wc -l src/pages/agent-network/providers.mdx
sed -n '80,120p' src/pages/agent-network/providers.mdx
printf '\n--- search for toggle wording ---\n'
rg -n "Disable identity metadata|Forward identity metadata|identity metadata" src/pages/agent-network/providers.mdxRepository: netbirdio/docs Length of output: 2783 🏁 Script executed: #!/bin/bash
set -euo pipefail
sed -n '90,115p' src/pages/agent-network/providers.mdx
printf '\n--- occurrences ---\n'
rg -n "Disable identity metadata|Forward identity metadata|identity metadata" src/pages/agent-network/providers.mdxRepository: netbirdio/docs Length of output: 1856 🏁 Script executed: #!/bin/bash
set -euo pipefail
python3 - <<'PY'
from pathlib import Path
p = Path('src/pages/agent-network/providers.mdx')
text = p.read_text()
for needle in ['Disable identity metadata', 'Forward identity metadata', 'identity metadata']:
print(f'--- {needle} ---')
for i, line in enumerate(text.splitlines(), 1):
if needle.lower() in line.lower():
print(f'{i}: {line}')
PYRepository: netbirdio/docs Length of output: 852 Use one label for this toggle. The body says Forward identity metadata, while the screenshot alt text says Disable identity metadata. Match the UI wording and, if the control is disable-style, make the on/off behavior explicit. 🤖 Prompt for AI Agents |
||
|
|
||
| <p> | ||
| <img src="/docs-static/img/agent-network/providers/agent-network-provider-metadata.png" alt="Connect Provider modal with the Disable identity metadata toggle" className="imagewrapper" /> | ||
| </p> | ||
|
|
||
| ## Models and Pricing | ||
|
|
||
| Each provider carries a list of models it serves. Leaving the list empty makes the | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Qualify the earlier “every request” claim.
This page currently says NetBird forwards identity on every request, but this section introduces a provider-level opt-out. Change the earlier wording to “by default” or otherwise state that forwarding occurs only while the setting is enabled.
🤖 Prompt for AI Agents