-
Notifications
You must be signed in to change notification settings - Fork 131
Document Agent Network prompt-cache token and cost accounting #886
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+40.5 KB
...ic/img/agent-network/usage-and-logs/agent-network-access-log-cost-breakdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.9 KB
...c/img/agent-network/usage-and-logs/agent-network-access-log-token-breakdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-37.2 KB
(94%)
public/docs-static/img/agent-network/usage-and-logs/agent-network-access-logs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: netbirdio/docs
Length of output: 6661
🌐 Web query:
AWS Bedrock API keys long-term only for exploration development expire AWS documentation💡 Result:
Amazon Bedrock provides two types of API keys for authentication, and AWS explicitly states that long-term keys are recommended only for exploration and development purposes [1][2][3]. Key Details: - Short-term API keys: These are the recommended standard for production applications [1][2]. They expire after a maximum of 12 hours or when the console session ends, whichever occurs first, and they inherit the permissions of the IAM principal used to generate them [1][2][4]. - Long-term API keys: These are intended specifically for exploration and development [1][4]. When generated, they create a dedicated IAM user and associate the key with that user [2][4][5]. You can configure an expiration date for these keys, ranging from one day to an indefinite duration [4][5]. Security Warnings: AWS strongly emphasizes that long-term keys should only be used when temporary credentials (such as those provided by AWS STS) or short-term API keys are not viable [5]. For production environments, you should transition to more secure methods like IAM roles or temporary credentials [3][6][7]. When using long-term keys, it is important to apply the principle of least privilege, protect the keys, and regularly monitor their usage through AWS CloudTrail and other auditing tools [5]. Generation and Management: - You can generate both key types via the Amazon Bedrock console [4]. - For long-term keys, you can specify an expiration time at the time of creation [8][4]. - Once created, the associated IAM user's permissions can be managed through the IAM service [2][4]. - API key generation and usage can be controlled using specific IAM policy conditions, such as limiting the age of service-specific credentials or restricting usage to certain types of bearer tokens [1][4]. For further guidance, consult the official Amazon Bedrock documentation on API keys [1] and security best practices [5].
Citations:
Warn about Bedrock API key expiry and production use.
Long-term Bedrock API keys are only intended for exploration/development, are tied to IAM user credentials, and can expire on a configured date. Clarify this in the “Generate a Bedrock API Key” flow and point users to the production credential path or a rotation plan before deployment.
🤖 Prompt for AI Agents